where is error

Ask for help

Moderators: Murderator+, Murderator

Post Reply
khitans
Posts: 4
Joined: 2007-11-25 22:31:17

where is error

Post 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
Scripts Writer
Posts: 2259
Joined: 2005-04-19 18:00:29
Location: Московская область
Contact:

Post 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
Post Reply