Вот уже стал более или менее разбиратся в скриптовании, но все равно есть вопросы.
Я вот тут накалякал скрипт на обкидывание:
Code:
sub vetki()
var x
if uo.getglobal('vetki')=='1' then
uo.print('Vetki system allready on')
goto dropp
end if
uo.setglobal('vetki','1')
UO.Set('lasttarget','laststatus')
x=uo.getserial('lasttarget')
uo.findtype("0x13FE")
if uo.findcount() then
uo.drop("1",str(uo.getx(x)-1),str(uo.gety(x)),0,"finditem")
end if
wait(500)
uo.findtype("0x13FE")
if uo.findcount() then
uo.drop("1",str(uo.getx(x)),str(uo.gety(x)+1),0,"finditem")
end if
wait(500)
uo.findtype("0x13FE")
if uo.findcount() then
uo.drop("1",str(uo.getx(x)+1),str(uo.gety(x)),0,"finditem")
end if
wait(500)
uo.findtype("0x13FE")
if uo.findcount() then
uo.drop("1",str(uo.getx(x)),str(uo.gety(x)-1),0,"finditem")
end if
uo.setglobal('vetki','0')
dropp:
uo.print('Обкидано')
end sub
Вот скрипт иногда пашет, а иногда нет, причем если я оставляю какую-нибудь 1 сторону для закидывания, то скрипт не работает...
Где проблема то?