Ground Spawn attempt

Help section from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

Turmoil Toad
orc pawn
orc pawn
Posts: 15
Joined: Thu Jan 09, 2003 10:23 pm

Ground Spawn attempt

Post by Turmoil Toad » Tue Sep 30, 2003 2:04 am

I need to limit the distance that this thing works (it'd be really cool if I could do it with a variable, but I'll settle for a static 150. I tried:

/if $target(distance)>=150 /goto :GetItem

with no luck...any suggestions? Idealy I don't want to run to something that's more than X distance away...

Also, is there a nicer way to open / close the inventory window besides my "/press i"? Seems a little 'simple' :P
Last edited by Turmoil Toad on Thu Oct 02, 2003 12:17 pm, edited 1 time in total.

User avatar
blueninja
a grimling bloodguard
a grimling bloodguard
Posts: 541
Joined: Thu Aug 28, 2003 7:03 am
Location: Göteborg, Sweden

Post by blueninja » Tue Sep 30, 2003 2:45 am

The 'n' after /if tells it to do a numeric comparison.

Code: Select all

/if n $target(distance)>=150 /goto :GetItem 
As for the closing of the inventory window, most people I've seen do it by calling '/press esc' about 4 times. Don't think there is a cleaner way, perhaps you could use $invpanel before each call to see if it's open but I guess that's only a minor improvment.