sub heal
finditem ZLF c_ , #backpackid ; <-----------------------HERE
if #findkind <> -1
{
set #lobjectId #findId
event macro 17
target 5s
event macro 23
repeat
{
finditem %monster G_2
set %target #findID
set #ltargetID #findID
set #ltargetKind 1
repeat
event macro 27 0
until #enemyid = n/a
}
until %fullheal in #sysmsg || %lilheal in #sysmsg || %retry in #sysmsg || %tryagain in #sysmsg || %wait in #sysMsg
}
return
This code seems to have some hang ups. You are finding bandages everywhere, and need to change it to what's pointed at above. Also, if you're hurt and it's entering the heal sub, it's waiting a long time.. 5s from clicking your aid, till you target yourself. Once it gets past that, it's in a monster loop, first, the monsters within 2 tiles, must be dead, or walking away, and then, you must see one of the healing sys messages to get out. This may not be seen to a player that might be a vamp and not lose health, or, if you happen to get lucky and all these events fall into place.
I downloaded this code today, just right now, and this is the spots that Pearls is having troubles at, where he hangs up.
I just think the heal sub should be checking your health, making sure you are healed, not also checking to see if a monster isn't around you. It's a time sensitive sub, and if something is out of sync, then it gets stuck.