Требуется ходилка.
Posted: 2006-03-02 17:46:18
Мне нужна любая ходилка для скрипта Асканелли на форенсик вида GotoXY(X,Y,R), где R это расстояние на которое надо подойти. Желательно без установки дополних программы типа асм.
Code: Select all
sub Forensic()
var vendor='0x00076B23'
var ptaha=''
var corpse=''
uo.set("finddistance",15)
while not uo.dead()
uo.findtype('0x0006','-1','ground')
if uo.findcount()>0 then
ptaha=uo.getserial('finditem')
while uo.getdistance(ptaha)>1
GotoXY(uo.getx(ptaha),uo.gety(ptaha),1)
wend
uo.warmode(1)
uo.deletejournal()
uo.attack(ptaha)
repeat
wait(100)
if uo.getdistance(ptaha)>1 then
GotoXY(uo.getx(ptaha),uo.gety(ptaha),1)
end if
until uo.injournal("Body of")
uo.warmode(0)
wait(100)
corpse=uo.getserial('lastcorpse')
repeat
if uo.skillval("Forensic Evaluation",1)>=1000 then
uo.closeuo()
end if
uo.deletejournal()
uo.useskill("Forensic Evaluation",corpse)
repeat
wait(10)
until uo.injournal("You can tell nothing about the corpse.") or uo.injournal("This is Body of") or uo.injournal("Forensics must be used on a corpse.") or uo.injournal("You can't see the target")
until uo.injournal("Forensics must be used on a corpse.") or uo.injournal("You can't see the target")
uo.usetype('0x097B')
wait(1500)
else
while uo.getdistance(vendor)>1
GotoXY(uo.getx(vendor),uo.gety(vendor),1)
wend
uo.click(vendor)
wait(1000)
uo.buy("pta",uo.getname(vendor))
wait(3000)
end if
wend
uo.closeuo()
end sub
sub GotoXY(x,y,r)
end sub