Yoko

All sides of Injection
It is currently 2025-12-22 16:52:45

All times are UTC+02:00




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Grab
PostPosted: 2005-08-23 22:55:32 
Offline

Joined: 2005-08-16 22:37:23
Posts: 2
Is there a way to make a script where u ,grab everything around u thats on the floor within a distance of 2tiles?


Top
   
 Post subject:
PostPosted: 2005-08-24 00:02:03 
Offline
Expert!
User avatar

Joined: 2004-08-11 23:56:17
Posts: 746
Location: The Citadel
Code:
sub GrabAll()
UO.Ignore( 'self' )
UO.Set( 'finddistance', '2' )
  Repeat
  UO.FindType( '-1', '-1', 'ground' )
  UO.Grab( '1', 'finditem' )
  Until UO.FindCount() == 0
endsub


Top
   
 Post subject:
PostPosted: 2005-08-26 00:32:28 
Offline

Joined: 2005-08-16 22:37:23
Posts: 2
it doesnt work, my uo freeze when i try to use it


Top
   
 Post subject:
PostPosted: 2005-08-26 11:38:23 
Offline
Expert!
User avatar

Joined: 2005-01-15 19:15:05
Posts: 791
Location: Dragon World
You try to grab everything. Maybe there are too many different items around you?


Top
   
 Post subject:
PostPosted: 2005-08-27 17:18:04 
Offline

Joined: 2005-05-28 12:04:30
Posts: 3
maybe adding a wait should do the trick


Top
   
 Post subject:
PostPosted: 2005-08-27 17:20:34 
Offline
Expert!
User avatar

Joined: 2005-01-15 19:15:05
Posts: 791
Location: Dragon World
Code:
sub GrabAll() 
UO.Ignore( 'self' )
UO.Set( 'finddistance', '2' )
  Repeat
  UO.FindType( '-1', '-1', 'ground' )
  UO.Grab( '1', 'finditem' )
  wait(500)
  Until UO.FindCount() == 0
endsub

You're right :wink:


Top
   
 Post subject:
PostPosted: 2005-09-09 19:11:33 
Offline

Joined: 2005-07-24 10:10:09
Posts: 2
[ quote=".Leo"][.code].sub GrabAll()
UO.Ignore("self ') UO.Set("finddistance ', "2 ') Repeat UO.FindType('
- 1', ' - 1 ', ' ground ') UO.Grab(' 1'," finditem ') wait(500) Until
UO.FindCount() == to 0 endsub[/.code ] You're right:.shink:[/.tsuote
]

When i try to use this scritp , it pause at "UO.Set("finddistance ', "2 ')"
Why ?
why dont work if me ?
ty


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 1 guest


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:  
Powered by phpBB® Forum Software © phpBB Limited