Your script is clumsy.
For example, unexpected "until UO.Life == UO.str", expected "endif" and unexpected "wend", expected "endif"..
Two unclosed operators..
And as Mr Nmy wrote, u must use some pause in cycles (for, while, repeat).
PS: Correct version:
Code:
sub hpoison()
while NOT UO.Dead()
repeat
if UO.Poisoned()==1 then
wait(700)
uo.exec("cast 'Cure' self")
end if
if uo.poisoned()==0 then
if UO.Life < UO.str then
UO.bandageself()
wait(4000)
endif
endif ; !!! NEW LINE !!!
wait( 100 ) ; !!! NEW LINE !!!
until UO.Life == UO.str
if UO.Life <= 30 then
uo.usetype('0x0E24')
endif ; !!! NEW LINE !!!
wend
end sub
I was add comment to new lines in script. Don't forget to close IF in next times
