Code: Select all
/newif (${Target.Type}="NPC") /goto :nextthing
Tons of hints here:
http://macroquest2.com/phpBB2/viewtopic.php?t=6022
Biggest help is to look at the return types for each of the members, and that tells you what members you can use with the return.
For example... Target can use the members of spawn
spawn Target
Looking at spawn... it has the member
string Type: PC NPC Mount Pet Corpse Trigger Item
Type is a string, so lets go look at the members of the string type, oh, look!
bool Equal[text]: Strings equal? Case does not count...
So, combining these...
Target.Type.Equal[NPC]
Then surrounding that with ${ }
Code: Select all
/if (${Target.Type.Equal[NPC]}) /goto :nextthing
This will do /goto :nextthing if your target is an NPC