Yoko

All sides of Injection
It is currently 2025-12-04 00:47:51

All times are UTC+02:00




Post new topic  Reply to topic  [ 11 posts ] 
Author Message
 Post subject: how to pick up item?
PostPosted: 2005-09-01 13:54:48 
Offline

Joined: 2005-08-26 13:51:14
Posts: 8
Hi,
can anyone help me? I need help with command: I need to pickup everything from the ground under my character.
thank?s


Top
   
 Post subject:
PostPosted: 2005-09-01 14:01:51 
Offline
Expert!
User avatar

Joined: 2005-01-15 19:15:05
Posts: 791
Location: Dragon World
Code:
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


Top
   
 Post subject:
PostPosted: 2005-09-01 14:08:17 
Offline

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


Top
   
 Post subject:
PostPosted: 2005-09-01 14:40:20 
Offline

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


Top
   
 Post subject:
PostPosted: 2005-09-01 14:49:55 
Offline
Expert!
User avatar

Joined: 2004-08-11 23:56:17
Posts: 746
Location: The Citadel
Try this

Code:
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


Top
   
 Post subject:
PostPosted: 2005-09-01 16:01:22 
Offline

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


Top
   
 Post subject:
PostPosted: 2005-09-01 20:55:11 
Offline

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


Top
   
 Post subject:
PostPosted: 2005-09-02 10:06:07 
Offline
Expert!
User avatar

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


Top
   
 Post subject:
PostPosted: 2005-09-02 10:49:42 
Offline

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


Top
   
 Post subject:
PostPosted: 2005-09-02 10:55:50 
Offline
Expert!
User avatar

Joined: 2005-01-15 19:15:05
Posts: 791
Location: Dragon World
Only write types of your fishes.
Code:
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


Top
   
 Post subject:
PostPosted: 2005-09-02 11:15:03 
Offline

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


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 11 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited