Yoko
http://forum.yoko.com.ua/

Please help with script - making bolts of chloth
http://forum.yoko.com.ua/viewtopic.php?f=20&t=2448
Page 1 of 1

Author:  sh [ 2005-01-02 22:22:18 ]
Post subject:  Please help with script - making bolts of chloth

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

Author:  punkesito [ 2005-01-03 06:20:21 ]
Post subject:  Re: Please help with script - making bolts of chloth

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

Author:  sh [ 2005-01-10 01:59:03 ]
Post subject: 

Thanks! There is script and it works:
Code:
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

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/