Page 1 of 1

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

Posted: Thu Jul 08, 2004 3:41 am
by Hank Hill
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!

Posted: Thu Jul 08, 2004 5:46 am
by wassup
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