alert(1)==True? "TFM" didn't help.

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

Hank Hill
decaying skeleton
decaying skeleton
Posts: 6
Joined: Mon Mar 15, 2004 5:46 am

alert(1)==True? "TFM" didn't help.

Post by Hank Hill » Thu Jul 08, 2004 3:41 am

Before the new mq2data I had a series of macros with player alerts, like this:

Code: Select all

/if $alert(1)==TRUE /call Stop
How can I find out if an alert is true with this new system?


Also I heard you can make it so a player alert doesn't get triggered by players you specify, an ignore list of sorts. Is this just a rumor?

If this was covered in the manual I must have missed it, and if that's the case I'd appreciate if you let me know. Thanks!

wassup
Official Guardian and Writer of TFM
Official Guardian and Writer of TFM
Posts: 1487
Joined: Sat Oct 26, 2002 5:15 pm

Post by wassup » Thu Jul 08, 2004 5:46 am

Huh... I guess you must have missed /alert in MQ2 Commands section.
/alert [add # [pc|npc|corpse|any] [radius #] [range min max] "spawnname"] [clear|list #]
Used to manipulate alert lists which 'watch' for spawns.

/alert add 1 "spawnname"
Adds 'spawnname' to alert list 1

/alert clear 1
Clears all members from alert list 1

/alert list 1
Lists all members of alert list 1

/alert add 1 npc radius 300 "spawnname"
Sets alert(1) to TRUE if "spawnname" is within a radius of 300 from your location

/alert add 2 npc range 30 200 "spawnname"
Sets alert(2) to TRUE if any "spawnname" are within 30 to 200 range from your location
/if $alert(1)==TRUE /call Stop should be similar to:

Code: Select all

/if (${Spawn[alert 1].ID})  /call Stop