Мираж спасибо! Да, в начало потому, что он проверяет условие не мёртвый ли чар? Чтобы воскреснуть!
Вот начало куска скрипта на мининг (с которого взята воскрешалка):)
Code:
sub main()
var markflag
uo.exec('exec Reconnector')
if not uo.getglobal('flagRes')=='1' then
uo.exec('exec Resurrector')
uo.setglobal('flagRes','1')
endif
wait(1000)
uo.print('Dont forget track world items!')
uo.findtype(rune,-1,'backpack')
if uo.findcount() then
Runehome=uo.getserial('finditem')
else
uo.print('Runehome not found! Terminate.')
uo.exec('terminate all')
endif
Open(Chest)
GrabBlankRune()
while not uo.dead()
Open(Runebag)
uo.findtype(rune,-1,Runebag)
а вот начало куда хочетца вставить: как лучче это сделать? скажите пожалуйста!
Code:
sub maning()
var mx, my, mz, i, j, jor, ser, noto
Uo.exec("set norbcheck 1")
uo.exec("set norbcalc 1")
uo.exec('addobject Shovel')
while uo.targeting()
wait(100)
wend
uo.exec('addobject Runebook')
while uo.targeting()
wait(100)
wend
start:
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()