sub drop1() if uo.getglobal('drop')=='on' then uo.print('*DROP is allready running!!*') goto q end if var s dim d[6] d[0]=0x1B9B d[1]=0x1B9C d[2]=0x1B9D d[3]=0x1B9E d[4]=0x09AA d[5]=0x0E7D for s=0 to 5 uo.setglobal('drop','on') uo.set('lasttarget','laststatus') x=uo.getserial('lasttarget') uo.findtype(d[s]) if uo.findcount('finditem') then if uo.getdistance('finditem')<3 then end if uo.drop("1",str(uo.getx(x)-1),str(uo.gety(x)),0,"finditem") end if wait(267) uo.findtype(d[s]) if uo.findcount('finditem') then if uo.getdistance('finditem')<3 then end if uo.drop("1",str(uo.getx(x)),str(uo.gety(x)+1),0,"finditem") end if wait(432) uo.findtype(d[s]) if uo.findcount('finditem') then if uo.getdistance('finditem')<3 then end if uo.drop("1",str(uo.getx(x)+1),str(uo.gety(x)),0,"finditem") end if wait(600) uo.findtype(d[s]) if uo.findcount('finditem') then if uo.getdistance('finditem')<3 then end if uo.drop("1",str(uo.getx(x)),str(uo.gety(x)-1),0,"finditem") end if uo.setglobal('drop','off') uo.print('.....d o n e.....') q: end sub
YokoInjection CodeSweeper Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Telegram: @tatikom
p.s. вообще я пытался написать скрипт кидающий любые из вышезаданных предметов вокруг врага, при этом если расстояния становится больше 3 тайлов, то выводит сообщение и выключается.. а получилось... ничего не получилось..
ЗЫ: А wait(267) меня просто убил. Как ты умудрился так точно замерить необходимую тебе паузу? Именно 0.267 секунды, ни на одну тысячную больше или меньше...
Edred wrote:Ты забыл в начале скрипта объявить переменную X.
ЗЫ: А wait(267) меня просто убил. Как ты умудрился так точно замерить необходимую тебе паузу? Именно 0.267 секунды, ни на одну тысячную больше или меньше...
sub drop1() if uo.getglobal('drop')=='on' then uo.print('*DROP is allready running!!*') goto q end if var s dim d[6] d[0]=0x1B9B d[1]=0x1B9C d[2]=0x1B9D d[3]=0x1B9E d[4]=0x09AA d[5]=0x0E7D for s=0 to 5 uo.setglobal('drop','on') uo.set('lasttarget','laststatus') x=uo.getserial('lasttarget')
x=uo.getserial('lasttarget') вот вроде пытался тут задать икс..
p.s. задержку я такую от балды ставил, в рассчете на то, что в логах сферы будет отображаться как рандомное кидание веток (если бы я везде поставил 500, то в логах бы везде наверное тоже были 500) - но на счет этого не уверен