Page 1 of 1
Please help with script - making bolts of chloth
Posted: 2005-01-02 22:22:18
by sh
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
Re: Please help with script - making bolts of chloth
Posted: 2005-01-03 06:20:21
by punkesito
sh wrote:1) Get 30 flax bundles from container
,moveitem container.flax 30 (container is object and flax is objecttype)
sh wrote:2) Use that flax bundles on "Spinning Wheel" while they run out (that will produce "Spolls of Tread").
,waittargetground 0x1015 (Spinning Wheel)
,usetype flax
sh wrote:3) Use "Spools of Thread" on "Loom" while they run out (that will produce "Bolts of Chloth").
,waittargetground 0x105F (Loom)
,usetype 0x0FA0 (Spools of Thread)
sh wrote:4) Move all bolts of chloth from backpack to container.
,moveitem ^bolts container
Posted: 2005-01-10 01:59:03
by sh
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