Page 1 of 1

Writing a script to pick items up out of a box or ground

Posted: 2006-04-21 19:59:24
by fourtytwo
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.

Posted: 2006-04-21 20:06:43
by Scripts Writer

Code: Select all

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

Posted: 2006-04-21 20:14:58
by fourtytwo
first set of dots being the item and the 2nd set being the bag?

Posted: 2006-04-21 20:19:57
by Scripts Writer
fourtytwo wrote:first set of dots being the item and the 2nd set being the bag?


Code: Select all

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

Posted: 2006-04-21 20:21:11
by fourtytwo
ok thanks :D I'll see if i can get her to work.

Posted: 2006-04-23 19:12:50
by fourtytwo
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: Select all

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.

Posted: 2006-04-23 19:15:55
by Scripts Writer

Code: Select all

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

Posted: 2006-04-23 19:24:20
by fourtytwo
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?

Posted: 2006-04-23 19:34:28
by fourtytwo
Any idea why its doing this?

Posted: 2006-04-23 19:44:11
by DerMeister =)

Code: Select all

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?

Posted: 2006-04-23 19:47:25
by fourtytwo
sdfs

Posted: 2006-04-23 19:51:54
by DerMeister =)

Code: Select all

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

Posted: 2006-04-23 19:55:29
by fourtytwo
Awesome Perfect!!!!

Posted: 2006-04-23 19:55:42
by fourtytwo
.

Posted: 2006-04-23 20:01:32
by DerMeister =)
fourtytwo wrote:Awesome Perfect!!!!


What does it means? :)