Yoko

All sides of Injection
It is currently 2026-01-17 23:46:37

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 2005-01-02 22:22:18 
Offline

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


Top
   
PostPosted: 2005-01-03 06:20:21 
Offline

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


Top
   
 Post subject:
PostPosted: 2005-01-10 01:59:03 
Offline

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


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited