Плавим арморы из пака, указывая форжу и получая инги айрона, которые складываем в указаный сундук(прописать ID).
Code:
sub SmelthingForIron()
var Forge='0x4002A8D6'
var i
var Sunduk=' ID of container,where script'll put iron ingots'
var ingot=' type of iron ingots(maybe not only iron) '
uo.Print(' Select a Forge ')
uo.Exec('addobject Forge')
while uo.targeting()
wait(100)
wend
DIM chain[8]
chain[0]='0x13EC'
chain[1]='0x13F0'
chain[2]='0x13BF'
chain[3]='0x13BB'
chain[4]='0x13EE'
chain[5]='0x13EB'
chain[6]='0x13BE'
chain[7]='0x1B76'
for i = 0 to 7
uo.FindType(chain[i],'-1','backpack')
if uo.GetQuantity('finditem') then
repeat
if uo.Weight > 500 then
uo.UseObject(Sunduk)
uo.FindType(ingot,'-1','backpack')
uo.moveitem(ingot,'500',Sunduk)
else
wait(100)
end if
uo.FindType(chain[i],-1,'backpack')
uo.WaitTargetObject('finditem')
uo.UseObject(Forge)
wait(750)
until uo.Count(chain[i]) == 0
else
uo.Print('There are no chainmail armor')
end if
next
end sub
2.Плавим арморы из сундука, указывая форжу и получая инги айрона, которые складываем в тот же сундук(прописать ID).
Code:
sub SmelthingForIron()
var Forge='0x4002A8D6'
var i
var Sunduk=' ID of container,where script'll put iron ingots'
var ingot=' type of iron ingots(maybe not only iron) '
uo.Print(' Select a Forge ')
uo.Exec('addobject Forge')
while uo.targeting()
wait(100)
wend
DIM chain[8]
chain[0]='0x13EC'
chain[1]='0x13F0'
chain[2]='0x13BF'
chain[3]='0x13BB'
chain[4]='0x13EE'
chain[5]='0x13EB'
chain[6]='0x13BE'
chain[7]='0x1B76'
for i = 0 to 7
uo.FindType(chain[i],'-1',Sunduk)
while uo.FindCount()
uo.moveitem('finditem','1')
uo.FindType(chain[i],'-1','backpack')
if uo.GetQuantity('finditem') then
repeat
if uo.Weight > 500 then
uo.UseObject(Sunduk)
uo.FindType(ingot,'-1','backpack')
uo.moveitem(ingot,'500',Sunduk)
else
wait(100)
end if
uo.WaitTargetObject('finditem')
uo.UseObject(Forge)
wait(750)
until uo.Count(chain[i]) == 0
end if
wend
next
end sub