Code:
VAR sunduk='0x4023FEA2'; Откуда брать инги, пустые мешки
VAR sundukk='0x4023FEA6'; куда всё будем кидать
VAR meshok='0x0E76';тип мешков
VAR ingi='0x1BEF'
var colour
VAR smeshok
VAR molotok ='0x13E4'
VAR a=0
sub main()
uo.useobject(sunduk)
wait(1000)
checklag()
uo.useobject(sundukk)
wait(1000)
checklag()
uo.cancelmenu()
uo.automenu('Blacksmithing','Colored Armor & Weapons')
uo.automenu('Colored Armor & Weapons','Weapons')
uo.automenu('Weapons','Swords & Blades')
uo.automenu('Swords & Blades','Dagger')
meshok:
UO.FindType( meshok,'-1', sunduk )
smeshok=UO.GetSerial('finditem')
UO.moveitem('finditem','1',sundukk )
wait(1000)
checklag()
zagruzka:
if uo.count('0x1BEF')<8 then
while uo.count('0x1BEF')
uo.findtype(ingi,'-1','2')
uo.moveitem('finditem','0',sunduk)
wait(1000)
checklag()
wend
poisk:
UO.FindType( ingi,'-1', sunduk )
if uo.findcount() and uo.getquantity('finditem')>=8 then
UO.moveitem('finditem','500','backpack' )
wait(1000)
checklag()
colour=uo.getcolor('finditem')
else
if uo.findcount() and uo.getquantity('finditem')<8 then
uo.ignore('finditem')
goto poisk
else
uo.print('Инготы закончились')
return
endif
endif
endif
if uo.count('0x097B','0x0000') then
repeat
uo.deletejournal()
uo.usetype('0x097B','0x0000')
repeat
wait(1000)
until uo.injournal('You are stuffed|You are simply too|You feel quite|You eat the food|After eating the food|You are nearly stuffed')
until uo.injournal('You are stuffed|You are simply too full') or not uo.count('0x097B','0x0000')
endif
if uo.getgraphic(uo.objatlayer('Rhand'))<>molotok then
uo.findtype(molotok,'-1','2')
if uo.findcount() then
uo.equip('Rhand','finditem')
wait(1000)
checklag()
else
uo.print('Нету молотка')
endif
endif
while uo.count(ingi,colour)>=8 and a<255
while not uo.hidden()
uo.deletejournal()
uo.useskill('Hiding')
repeat
wait(300)
until uo.injournal('seem|hidden|preoccupied')
if uo.injournal('preoccupied') then
uo.warmode(0)
endif
wend
uo.deletejournal()
uo.usetype(ingi,colour)
repeat
wait(300)
until uo.injournal('You put|You have failed')
while uo.count('0x0F51')
uo.findtype('0x0F51','-1','2')
uo.moveitem('finditem','1',smeshok)
wait(1000)
checklag()
wend
uo.findtype('0x0F51','-1',smeshok)
a=uo.findcount()
wend
if a>=255 then
a=0
goto meshok
endif
goto zagruzka
end sub
Sub Checklag()
deljournal('a backpack')
uo.click('backpack')
repeat
wait(50)
until uo.injournal('a backpack')
endsub
Sub deljournal(msg)
while uo.injournal(msg)
uo.setjournalline(uo.injournal(msg)-1,"")
wend
endsub
Вот примерно так, тока он не будет ковать из золота, серебра и меди, потому что у них тип ингов другой