Неработает убегание
Posted: 2012-11-08 09:38:34
Не реагирует на стенки
Code: Select all
sub maning()
var mx, my, mz, i, j, jor, ser, noto
uo.exec('terminate controlLopata')
wait(200)
uo.exec('terminate controlLopata')
wait(200)
Uo.exec("set norbcheck 1");
uo.exec("set norbcalc 1");
na4alo:
noto=0
mx = UO.GetX("self")
my = UO.GetY("self")
mz = UO.GetZ("self")
UO.DeleteJournal()
for i = mx-4 to mx+4
for j = my -4 to my+4
while not UO.Hidden()
UO.Warmode(0)
uo.print("Прячемся...")
UO.UseSkill("Hiding")
wait(2500)
wend
uo.exec('terminate control')
wait(200)
uo.exec('terminate control')
wait(200)
UO.Print("Копаем в координатх: "+str(mx-i)+" "+str(my-j))
while not UO.InJournal("no ore here|location|far away|in rock|Iron Ore|Copper|Rusty Ore")
UO.DeleteJournal()
repeat
if uo.life < 140 or uo.InJournal('In Sanct Ylem') or uo.InJournal('In Ex Grav') or uo.InJournal('In Sanct Grav') or uo.InJournal('[FRAERA]') then
uo.Press(112)
uo.exec('exec control')
endif