Grab

General Injection issues

Moderators: Murderator+, Murderator

Post Reply
EusowEu
Posts: 2
Joined: 2005-08-16 22:37:23

Grab

Post by EusowEu »

Is there a way to make a script where u ,grab everything around u thats on the floor within a distance of 2tiles?
flake
Expert!
Posts: 746
Joined: 2004-08-11 23:56:17
Location: The Citadel
Contact:

Post by flake »

Code: Select all

sub GrabAll()
UO.Ignore( 'self' )
UO.Set( 'finddistance', '2' )
  Repeat
  UO.FindType( '-1', '-1', 'ground' )
  UO.Grab( '1', 'finditem' )
  Until UO.FindCount() == 0
endsub
EusowEu
Posts: 2
Joined: 2005-08-16 22:37:23

Post by EusowEu »

it doesnt work, my uo freeze when i try to use it
Leo
Expert!
Posts: 791
Joined: 2005-01-15 19:15:05
Location: Dragon World
Contact:

Post by Leo »

You try to grab everything. Maybe there are too many different items around you?
Redneck
Posts: 3
Joined: 2005-05-28 12:04:30

Post by Redneck »

maybe adding a wait should do the trick
Leo
Expert!
Posts: 791
Joined: 2005-01-15 19:15:05
Location: Dragon World
Contact:

Post by Leo »

Code: Select all

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:
Br|hair
Posts: 2
Joined: 2005-07-24 10:10:09

Post by Br|hair »

[ 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
Post Reply