how to pick up item?

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
jolybob
Posts: 8
Joined: 2005-08-26 13:51:14

how to pick up item?

Post 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
Leo
Expert!
Posts: 791
Joined: 2005-01-15 19:15:05
Location: Dragon World
Contact:

Post 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
jolybob
Posts: 8
Joined: 2005-08-26 13:51:14

Post by jolybob »

nice simple genial
thank you :)
jolybob
Posts: 8
Joined: 2005-08-26 13:51:14

Post 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...
flake
Expert!
Posts: 746
Joined: 2004-08-11 23:56:17
Location: The Citadel
Contact:

Post 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
jolybob
Posts: 8
Joined: 2005-08-26 13:51:14

Post by jolybob »

thank you, its working :-)
jolybob
Posts: 8
Joined: 2005-08-26 13:51:14

Post 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 :)
flake
Expert!
Posts: 746
Joined: 2004-08-11 23:56:17
Location: The Citadel
Contact:

Post 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 :)
jolybob
Posts: 8
Joined: 2005-08-26 13:51:14

Post 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.
Leo
Expert!
Posts: 791
Joined: 2005-01-15 19:15:05
Location: Dragon World
Contact:

Post 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
jolybob
Posts: 8
Joined: 2005-08-26 13:51:14

Post 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 :)
Post Reply