Code: Select all
Sub invis()
while NOT uo.hidden() AND uo.count('0x0F08')>0
uo.print(' Inviska ...')
uo.usetype('0x0F08','0x0060')
wait(300)
wend
end sub
Sub CheckHealth()
while NOT uo.dead()
if uo.life < uo.str*0.8 then
invis()
return
endif
wait(300)
wend
end sub
############################################################################################################
######################### HIDING ###########################
############################################################################################################
sub hidd()
uo.deletejournal()
uo.exec('exec CheckHealth')
while not UO.Hidden()
uo.warmode(0)
uo.print(" Прячемся...")
UO.UseSkill("Hiding")
wait(4000)
if uo.dead() then
uo.exec('terminate all')
endif
wend
wait(100)
uo.exec('terminate CheckHealth')
end sub