Writing a script to pick items up out of a box or ground
Moderators: Murderator+, Murderator
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.
2: How do I set a script for the exact same thing except from the floor or ground?
Thanks guys! You all are awesome.
-
- Posts: 2259
- Joined: 2005-04-19 18:00:29
- Location: Московская область
- Contact:
Code: Select all
uo.moveitem(... , ... , 'backpack')
-
- Posts: 2259
- Joined: 2005-04-19 18:00:29
- Location: Московская область
- Contact:
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))
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:
I just want it to pick up the wool, put 300 in my bag and then stop. But it keeps trying to keep going.
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.
-
- Posts: 2259
- Joined: 2005-04-19 18:00:29
- Location: Московская область
- Contact:
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
-
- Expert!
- Posts: 1032
- Joined: 2006-02-25 21:48:38
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?
-
- Expert!
- Posts: 1032
- Joined: 2006-02-25 21:48:38
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
-
- Expert!
- Posts: 1032
- Joined: 2006-02-25 21:48:38