вот так работает с большыми перебоями
Code: Select all
Sub regs()
VAR n, w1=uo.weight, w2
VAR regbag=0x4007F61C
DIM r[8]
r[1]=0x0F86
r[2]=0x0F8D
r[3]=0x0F88
r[4]=0x0F7A
r[5]=0x0F85
r[6]=0x0F84
r[7]=0x0F8C
r[8]=0x0F7B
For n=1 to 8
uo.findtype(r[n],-1,regbag)
if uo.findcount() then
uo.moveitem('finditem','50','backpack',43,129,0)
repeat
wait(250)
w2=uo.weight
until w2>w1
end if
next
uo.print(' !!! -= Done =- !!! ')
end sub
но каждый раз когда кидаются реги, а их 8, надо w1=uo.weight обновлять, а где невсуну иго, скрипт стоит...
вот так работает хорошо
Code: Select all
Sub regs()
VAR n, w1=uo.weight, w2
VAR regbag=0x4007F61C
DIM r[8]
r[1]=0x0F86
r[2]=0x0F8D
r[3]=0x0F88
r[4]=0x0F7A
r[5]=0x0F85
r[6]=0x0F84
r[7]=0x0F8C
r[8]=0x0F7B
For n=1 to 8
uo.findtype(r[n],-1,regbag)
if uo.findcount() then
uo.moveitem('finditem','50','backpack',43,129,0)
repeat
wait(250)
w2=uo.weight
until w2>w1
w1=w2
wait(500)
end if
next
uo.print(' !!! -= Done =- !!! ')
end sub
но вейт 500 некатит
