Page 1 of 1

Grab

Posted: 2005-08-23 22:55:32
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?

Posted: 2005-08-24 00:02:03
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

Posted: 2005-08-26 00:32:28
by EusowEu
it doesnt work, my uo freeze when i try to use it

Posted: 2005-08-26 11:38:23
by Leo
You try to grab everything. Maybe there are too many different items around you?

Posted: 2005-08-27 17:18:04
by Redneck
maybe adding a wait should do the trick

Posted: 2005-08-27 17:20:34
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:

Posted: 2005-09-09 19:11:33
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