Maybe somebody can be very heplfull and and write script. Maybe not real script, but template for same actions...
I want to make bolts of chloth. For that i need:
1) Get 30 flax bundles from container
2) Use that flax bundles on "Spinning Wheel" while they run out (that will produce "Spolls of Tread").
3) Use "Spools of Thread" on "Loom" while they run out (that will produce "Bolts of Chloth").
4) Move all bolts of chloth from backpack to container.
5) Repeat...
P.S. RunUO, AOS
Please help with script - making bolts of chloth
Moderators: Murderator+, Murderator
Re: Please help with script - making bolts of chloth
,moveitem container.flax 30 (container is object and flax is objecttype)sh wrote: 1) Get 30 flax bundles from container
,waittargetground 0x1015 (Spinning Wheel)sh wrote: 2) Use that flax bundles on "Spinning Wheel" while they run out (that will produce "Spolls of Tread").
,usetype flax
,waittargetground 0x105F (Loom)sh wrote: 3) Use "Spools of Thread" on "Loom" while they run out (that will produce "Bolts of Chloth").
,usetype 0x0FA0 (Spools of Thread)
,moveitem ^bolts containersh wrote: 4) Move all bolts of chloth from backpack to container.
Thanks! There is script and it works:
Code: Select all
sub Spools()
var flax=0x1A9C
var wheel=0x1015
var spools=0x0FA0
var loom=0x1062
var bolts=0x0F95
var Exit=0
var Exit2=0
var Exit3=0
Exit=0
while Exit<>1
UO.findtype(flax, -1, 'lastcontainer')
IF UO.GetQuantity('finditem')>0 Then
UO.findtype(flax, -1, 'lastcontainer')
uo.grab("30","finditem")
wait(1000)
Exit2=0
while Exit2<>1
UO.findtype(flax, -1, 'backpack')
IF UO.GetQuantity('finditem')>0 Then
UO.findtype(flax, -1, 'my')
UO.waittargetground(wheel)
UO.UseObject('finditem')
wait(1500)
Else
uo.print('All flax was run out...');
Exit2=1
Endif
wend
Exit3=0
while Exit3<>1
UO.findtype(spools, -1, 'backpack')
IF UO.GetQuantity('finditem')>0 Then
UO.findtype(spools, -1, 'my')
UO.waittargetground(loom)
UO.UseObject('finditem')
wait(1500)
Else
uo.print('All spools was run out...');
Exit3=1
Endif
wend
UO.findtype(bolts, -1, 'my')
uo.moveitem('finditem',"0",'lastcontainer')
wend
end sub