Несработало((( Задержка нужна?
вОТ Весь скрипт
Code:
sub main()
var bottle='0x0F0C'
var sunduk='0x4007DC74'
var pestik='0x0E9B'
var reg='0x0F85'
var regcost=7
var keg='0x1940'
var sum='0x400965D3'
var kegcolor='0x0499'
start:
UO.usetype(pestik)
wait(200)
if uo.count(pestik)<1 then
UO.findtype(pestik,'-1',sunduk)
UO.moveitem('finditem')
wait(1000)
UO.usetype(pestik)
wait(100)
endif
if uo.count(reg)<regcost then
wait(300)
goto rrg
endif
if uo.count(bottle)>0 then
wait(300)
goto bbs
end if
UO.lclick(321,453)
wait(100)
goto start
bbs:
uo.findtype(keg ,kegcolor,'backpack')
if uo.findcount() then
uo.moveitem('finditem','0','0x400965C2')
uo.say('Еще БОЧЕНОК')
wait(1000)
end if
uo.findtype(keg,'-1',sum)
if uo.findcount() then
uo.moveitem('finditem')
uo.say('И пустой')
wait(2000)
goto jjk
jjk:
uo.say('PPPPPPPP')
uo.findtype(bottle,'-1','backpack')
wait(1000)
uo.setreceivingcontainer(keg)
wait(1000)
uo.grab('0','finditem')
wait(1000)
uo.unsetreceivingcontainer(keg)
goto jjk
rrg:
UO.findtype(reg,'-1',sum)
uo.moveitem('finditem','1000')
#UO.Grab('1000', 'finditem')
uo.say('Еще РЕГОВ')
wait(2000)
goto start
end sub
Вот именно момент вложения бутля в кег
Code:
jjk:
uo.say('PPPPPPPP')
uo.findtype(bottle,'-1','backpack')
wait(1000)
uo.setreceivingcontainer(keg)
wait(1000)
uo.grab('0','finditem')
wait(1000)
uo.unsetreceivingcontainer(keg)
goto jjk
Только он непашит(