Thanks for the info so far.
The question relates to the Bot plugin (not the mac)
I am not on here often, so sorry for the late reply (also missed that your post is in the MQ2Bot forum - clicked from the "New posts" section).
If HTW's pointer to IF statements didn't help you solve your problem, here are a few ideas from the
wiki:
The first thing you need to know is how Mind Wrack is categorized by MQ2Bot. When you type /Bot on it should spew a bunch of data into the MQ2Chat window, including which spells you have memmed and how MQ2Bot categorizing them.
If that doesn't tell you what you need to know, MQ2Bot adds a TLO that lets you (in a sense) query the plugin to understand how it is categorizing spells and such, so you can know how to interact with it.
I am going to assume that the Mindwrack line is a "Mana" spell according to MQ2Bot. To check what Mana spells are available to your character, type the following string into your MQ@ chat window:
That should return a list of Mana spells available to your Necro. You may need the appropriate Mindwrack spell loaded in a spell gem (again, no active account to test on).
If you have the spell memmed and it isn't showing up in that list, it's possible it's categorized differently.
Code:
/echo ${Bot.SpellCat[[COLOR="Red"]#[/COLOR]]}
will tell you how the spell is categorized. I think "#" references the Spell ID (which you can get from Lucy).
Once you know how the spell is categorized, you should be able to write an IF statement in the INI for your necro to set a condition for casting Mind Wrack.
Let's assume Mind Wrack is your first Mana spell.
Add the following line to your necros INI file:
Code:
ManaIf1=${Target.Class.CanCast}
If that doesn't work (if CanCast isn't available for mobs), you may need to specifically choose which classes you want to cast on. Any Target that returns a different class (or NULL) should skip the spell. This may work:
Code:
ManaIf1=${Select[${Target.Class.ShortName},WIZ,MAG,CLR,NEC,DRU]}
Add the rest of the class short names, because I'm lazy.
You're probably going to have to play with the above, because I am doing this entirely from a combination of the MQ2Bot Wiki, the MQ2 Wiki, search, and memory.
Good luck.