Please help with script - making bolts of chloth

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
sh
Posts: 14
Joined: 2005-01-02 03:12:32

Please help with script - making bolts of chloth

Post 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
punkesito
Posts: 46
Joined: 2004-10-16 12:30:54
Location: Argentina
Contact:

Re: Please help with script - making bolts of chloth

Post 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
sh
Posts: 14
Joined: 2005-01-02 03:12:32

Post 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
Post Reply