Page 1 of 1

how to pick up item?

Posted: 2005-09-01 13:54:48
by jolybob
Hi,
can anyone help me? I need help with command: I need to pickup everything from the ground under my character.
thank?s

Posted: 2005-09-01 14:01:51
by Leo

Code: Select all

sub grab()
UO.Set('finddistance','1')
UO.Findtype(-1,-1,1)
While UO.FindCount()>1
UO.MoveItem('finditem',0,'backpack')
wait(500)
wend
UO.Findtype(-1,-1,1)
end sub

Posted: 2005-09-01 14:08:17
by jolybob
nice simple genial
thank you :)

Posted: 2005-09-01 14:40:20
by jolybob
em just one problem :)
it pick up an item from ground, and than it is still moving that one item from main bag to main bag.. but nothing else...

Posted: 2005-09-01 14:49:55
by flake
Try this

Code: Select all

sub grab() 
UO.Set('finddistance','1')
UO.Findtype('-1','-1','ground')
While UO.FindCount()>1
UO.MoveItem('finditem',0,'backpack')
wait(500)
UO.Findtype('-1','-1','ground')
wend
end sub

Posted: 2005-09-01 16:01:22
by jolybob
thank you, its working :-)

Posted: 2005-09-01 20:55:11
by jolybob
uff another problem: it pickup items, but ussually after 5 items it start writing me that: "can?t pickup item" I tried to increase delay, but it doesn?t help... I?ll try to fix it... but you may be faster :)

Posted: 2005-09-02 10:06:07
by flake
Well, you should check that you can actually pick all items that are around you. mayber there are locked items or other players?
The script will try to pick them also :)

Posted: 2005-09-02 10:49:42
by jolybob
no no.. i am trying to use it in fishing: after the fishing is done on one place I want to pick up everything whats under me. When i pull out a fish, it doesn?t stack them... (I?m not sure if it is because of version of sphere or if it is setup by our gm?s...) anyway: I tryed to make it pickup an item after every "pullout", but it sometimes come up with the same problem.

Posted: 2005-09-02 10:55:50
by Leo
Only write types of your fishes.

Code: Select all

sub grab()
DIM Fish[6]
Fish[1]='0x09CC'
Fish[2]='0x09CD'
Fish[3]='0x09CE'
Fish[4]='0x09CF'
Fish[5]='0x0DD6'
Fish[6]='0x0DCA'
var s
for s=1 to 6
uo.findtype(Fish[s],'-1','ground')
wait(100)
while uo.findcount()>0
uo.moveitem('finditem','-1','backpack')
wait(500)
uo.findtype(Fish[s],'-1','ground')
wait(100)
wend
next
end sub

Posted: 2005-09-02 11:15:03
by jolybob
:) ok i now about this.. but i dont now all types of things i can pull out on our shard... I know about fishes, bucketts, shoes, bottles... :) I?ll have to add all that to .)
thank you :)