тебе надо немного структуру поменять
Этот кусок
Code:
while uo.findcount()
Elemental=uo.getserial('finditem')
if checkcolor(Elemental)==1 then
invis()
flagvortex=1
castvortex()
uo.textopen()
uo.textprint(uo.getname(Elemental)+' Galambur '+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
нужно заменить вот таким
Code:
if uo.findcount() then
Elemental=uo.getserial('finditem')
repeat
if checkcolor(Elemental)==1 then
invis()
flagvortex=1
castvortex()
uo.textopen()
uo.textprint(uo.getname(Elemental)+' Galambur '+MakeTime())
for n=0 to 10
wait(1000)
checkpk()
if flagpk==1 then
return
endif
next
else
uo.ignore(Elemental)
# return ; возможно потребуется раскоментировать ретурн
endif
until uo.dead() or uo.GetX(Elemental)==0
endif
Фишка в том что мой вариант будет срабатывать на цветного элементаля пока он находится в зоне видимости или пока чар не умрет.
PS ниже скрипт не смотрел - это редактирование относится только к заданному вопросу.