uo.set("finddistance","7")
Posted: 2007-10-19 10:42:08
Проблема такая он идёт к мобу который находится за екраном !
А который бегает в 2 тайлох от чара он не трогает (
Cтавлю меньше uo.set("finddistance","7") например на 4 все равно он бежыт к мобу который где то там далеко

А который бегает в 2 тайлох от чара он не трогает (
Cтавлю меньше uo.set("finddistance","7") например на 4 все равно он бежыт к мобу который где то там далеко
Code: Select all
sub atack()
var c, a, noto, ser, f=0
while 1==1
uo.warmode(1)
uo.deletejournal()
uo.set("finddistance","7") ################
uo.findtype('0x0004','-1','ground')
uo.arm('1')
if uo.findcount() then
f=1
uo.attack('finditem')
while f==1
uo.findtype('0x0004','-1','ground')
go(uo.getx('finditem'),uo.gety('finditem'))
uo.findtype('0x0004','-1','ground')
wait(500)
if uo.gethp()<55 then
GHDrink()
endif
if uo.injournal('Body of Gargoyle') then
f=0
endif
uo.deletejournal()
wend
endif
rez()
wait(2000)
uo.FindType(0x0F78,'-1','lastcorpse')
if uo.FindCount() then
uo.moveitem('finditem','all')
wait(750)
end if
uo.warmode(0)
if not uo.hidden() then
uo.useskill('Hiding')
c=0
while not uo.injournal('have hidden') and c<18
wait(300)
c=c+1
wend
endif
uo.waittargetobject('lastcontainer')
uo.setarm(11)
wait(100)
uo.useobject('sword')
wait(1500)
uo.arm(11)
wait(1000)
while uo.gethp()<190
healing()
wait(1000)
wend
endif
uo.deletejournal()
wend
endsub
sub healing()
if not uo.hidden() then
uo.UseSkill('Meditation')
endif
uo.setarm('11')
uo.bandageself()
wait(1500)
uo.arm('11')
uo.attack('lastattack')
end sub
