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

Writing a script to pick items up out of a box or ground
http://forum.yoko.com.ua/viewtopic.php?f=1&t=7450
Page 1 of 1

Author:  fourtytwo [ 2006-04-21 19:59:24 ]
Post subject:  Writing a script to pick items up out of a box or ground

1: How do I set a script to remove 325 of item "xxyy" from a chest and place it in my back pack?

2: How do I set a script for the exact same thing except from the floor or ground?


Thanks guys! You all are awesome.

Author:  Scripts Writer [ 2006-04-21 20:06:43 ]
Post subject: 

Code:
uo.moveitem(... , ... , 'backpack')

Author:  fourtytwo [ 2006-04-21 20:14:58 ]
Post subject: 

first set of dots being the item and the 2nd set being the bag?

Author:  Scripts Writer [ 2006-04-21 20:19:57 ]
Post subject: 

fourtytwo wrote:
first set of dots being the item and the 2nd set being the bag?


Code:
uo.FindType( type of item , [color] , container )
uo.MoveItem('finditem','quantity',container(backpack, ground))

Author:  fourtytwo [ 2006-04-21 20:21:11 ]
Post subject: 

ok thanks :D I'll see if i can get her to work.

Author:  fourtytwo [ 2006-04-23 19:12:50 ]
Post subject: 

I can't seem to get the script to stop. It keeps trying to pick them up when I only want to pick up 300 of them and then the script stop.. Here is my script:

Code:
sub wooltome()
var wool = "0x0DF8"; the wool
var bag = "0x4002E458"; my backpack
    uo.findtype( wool, '0x0000', '0x40080EFF' )
      while uo.findcount()
        uo.moveitem( 'finditem', '300', bag )
     wend
endsub


I just want it to pick up the wool, put 300 in my bag and then stop. But it keeps trying to keep going.

Author:  Scripts Writer [ 2006-04-23 19:15:55 ]
Post subject: 

Code:
sub wooltome() 
var wool = "0x0DF8"; Write GH bottle type here
var bag = "0x4002E458"; Keg ID here
var i = 0
    uo.findtype( wool, '0x0000', '0x40080EFF' )
    if uo.findcount() then
      for i = 0 to 300
        uo.moveitem( 'finditem', '300', bag )
      next
    end if
end sub

Author:  fourtytwo [ 2006-04-23 19:24:20 ]
Post subject: 

Ok thanks it works BUT it floods my screen with "you can not pick up this item" for about 5-7 seconds.. is there anyway to cut that time out?

Author:  fourtytwo [ 2006-04-23 19:34:28 ]
Post subject: 

Any idea why its doing this?

Author:  DerMeister =) [ 2006-04-23 19:44:11 ]
Post subject: 

Code:
sub wooltome() 
var wool = "0x0DF8"; the wool
var bag = "0x4002E458"; my backpack   
      uo.findtype( wool, '0x0000', '0x40080EFF' )
      if uo.findcount() then
        uo.moveitem( 'finditem', '300', bag )
     end if
endsub


Wool collecting into stack or each wool is a separate item?

Author:  fourtytwo [ 2006-04-23 19:47:25 ]
Post subject: 

sdfs

Author:  DerMeister =) [ 2006-04-23 19:51:54 ]
Post subject: 

Code:
sub wooltome() 
var wool = "0x0DF8"; the wool
var bag = "0x4002E458"; my backpack   
      uo.findtype( wool, '-1', '0x40080EFF' )
      if uo.findcount() then
        uo.moveitem( 'finditem', '300')
     end if
endsub

Author:  fourtytwo [ 2006-04-23 19:55:29 ]
Post subject: 

Awesome Perfect!!!!

Author:  fourtytwo [ 2006-04-23 19:55:42 ]
Post subject: 

.

Author:  DerMeister =) [ 2006-04-23 20:01:32 ]
Post subject: 

fourtytwo wrote:
Awesome Perfect!!!!


What does it means? :)

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