;============================================================== ; Chase's Auto Healer ; version 1.0 ; Shard OSI ; Purpose: AFK healing while being attacked by sheep ; Globals none ;============================================================== ;==========================Setup=============================== set %healpotHP ( #maxHits - 80 ) ; change this for how many points down to drink your heal pot set %healbandagesHP ( #maxHits - 10 ) ; change this for how many points down to bandage yourself. ;=========================Main Loop============================ SUO: repeat onhotkey F10 gosub UseBandage if c in #charstatus gosub DrinkIt NUF if #hits < %healbandagesHP && #sCnt > %timer_bandages_heal { gosub UseBandage set %timer_bandages_heal ( #sCnt + 60 ) } if #hits < %healpotHP && #sCnt > %timer_pot_heal { gosub DrinkIt UUF set %timer_pot_heal ( #sCnt + 10 ) } until #CharGhost = Yes while #CharGhost = Yes wait 0 GoTo SUO ;===========================Subs================================= sub UseBandage findItem ZJF C_ , #backpackID if #findkind = -1 return set #lobjectID #findID set #ltargetKind 1 event macro 17 0 target 3 event macro 23 0 wait 5 Return sub DrinkIt namespace push namespace local DIT ; short for DrinkIt finditem %1 C_ , #backpackID if #findkind = -1 return set #lobjectID #findID set #ltargetKind 1 event macro 17 0 wait 5 namespace clear namespace pop Return |