how to pick up item?
Moderators: Murderator+, Murderator
how to pick up item?
Hi,
can anyone help me? I need help with command: I need to pickup everything from the ground under my character.
thank?s
can anyone help me? I need help with command: I need to pickup everything from the ground under my character.
thank?s
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
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
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.
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