/click left item distances

Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!

Moderator: MacroQuest Developers

ImaNoob
a ghoul
a ghoul
Posts: 89
Joined: Mon Mar 08, 2004 4:37 am

/click left item distances

Post by ImaNoob » Sun Mar 21, 2004 5:35 pm

Just wondering if anyone knows what the max distance from an item you can be to use /click left item ?

10 seems to be the highest I have been able to go with my druid, but is this different for various races or even classes, what about on a Drogmor or Horse?

Here is an example from my modified version of the groundcollect.mac file.
Could anyone tell me if 10 is too far away for their toon?

Also as always suggestions and comments on how to cleanup or make the code better are welcome.

Code: Select all

Sub PickUpItem 
   /face item 
:Nudge 
   /if n $distance(item)>10{
 	/press up 
   	/goto :Nudge
   } 
   /face item 
   /sendkey down Page_Down 
   /delay 2s 
   /sendkey up Page_Down 
   /click left item
   /delay 1s 
   /if "$cursor()"=="NULL" /goto :Nudge 
   /autoinventory 
   /delay 1s    
   /if $invpanel==True /press I 
   /press Home 
/return 

NotSoCSharp
a ghoul
a ghoul
Posts: 85
Joined: Sat Oct 25, 2003 10:48 am

Post by NotSoCSharp » Mon Mar 22, 2004 8:15 am

In my collection macro I have the distance set to 18 and it works.