TarantuL wrote:Можно добавить в килл элемов, В отчет, скоко он руды с него поднял?)
А то я вообще не понимаю, убил, убежал или чё)
Code: Select all
sub checkelem()
var n
var flagvortex, Elemental, flaginvis
Dim ore[2]
ore[1]='0x19B8'
ore[2]='0x19B9'
uo.set('finddistance','3')
uo.findtype('0x0010',-1,'ground')
while uo.findcount()
Elemental=uo.getserial('finditem')
if checkcolor(Elemental)==1 then
flagvortex=1
if not flaginvis==1 then
invis()
flaginvis=1
endif
castvortex()
uo.textopen()
uo.textprint(uo.getname(Elemental)+' @ '+MakeTime())
for n=0 to 10
wait(1000)
checkpk()
if flagpk==1 then
return
endif
next
else
uo.ignore(Elemental)
endif
uo.findtype('0x0010',-1,'ground')
wend
if flagvortex==1 then
repeat
checklag()
while uo.mana<22
wait(500)
wend
uo.waittargetobject('self')
uo.cast('Mass Dispel')
WaitForMana()
wait(1000)
until not uo.injournal('The spell fizzles')
for n=1 to 2
uo.findtype(ore[n],-1,'ground')
while uo.findcount()
uo.textprint(uo.getname('finditem'))
uo.moveitem('finditem',-1,'backpack')
checklag()
wait(700)
uo.findtype(ore[n],-1,'ground')
wend
next
return 1
endif
endsub