Code: Select all
sub main()
var i
uo.print("поехали")
While UO.Life>0
for i=1 to 17
kopat()
uo.press(34)
wait(200)
uo.press(34)
next
uo.print("GO назад =)")
kopat()
for i=1 to 17
wait(500)
uo.press(36)
next
uo.press(34)
wend
end sub
sub kopat()
var where_x,where_y,coords,i
InfoLogs()
UO.DeleteJournal()
where_x=uo.getx()
where_y=uo.gety()
for i=-2 to 2
uo.print("Тайл "+str(i+3)+"/5")
coords="waittargettile "+" 1343 "+str(where_x)+" "+str(where_y+i)+" 0"
uo.exec(coords)
uo.exec("usetype '0x0E85'") # Здесь прописываем тип кирки
UO.DeleteJournal()
while (not (UO.InJournal("stop mining") or UO.InJournal("far")))
wait(1000)
ArmsLore()
wend
next
end sub
sub ArmsLore()
while (uo.count('0x0E85')<1)
uo.waittargettype('0x0f51')
uo.useskill('Arms Lore')
wait(10000)
wend
end sub