Well, i was try to do a script that when i press its hotkey its starts to heal and stop only when i press the hotkey again, but with this script below the functions aren't terminate, the script stops to heal but the funstion T still running, Why ?
Anyone knows how to do what i want ?
plz tell me
thanks
Code:
sub T() #Heal
var m=uo.mana
if uo.getglobal('Healing')=='On' then
uo.setglobal('Healing','Off')
else
uo.setglobal('Healling','On')
end if
repeat
m=uo.mana
uo.cast('Heal','self')
uo.deletejournal()
while uo.mana>=m || uo.injournal('fizzles')
wait(1)
wend
until uo.getglobal('Healing')=='Off'
end sub