Page 1 of 1

where is error

Posted: 2007-11-25 22:34:03
by khitans
where is error

Code: Select all

sub healpassive()
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
until UO.Life == UO.str
wend
end sub

Posted: 2007-11-26 05:00:21
by Scripts Writer
Can u see now, where is error?

Code: Select all

sub healpassive() 
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
      until UO.Life == UO.str
wend
end sub