Page 1 of 1

2 questions

Posted: Sun Feb 27, 2005 3:51 pm
by overnuker2323
First is this: Is there a way to verify a characters class? I know that Me.Class returns the class, but I'm having problems in my macro... I want to do something like..

/if (${Me.Class}="shaman") /goto :shamanstuff

but obviously the if command needs a t/f response instead of a string...



Secondly, is there a way to check if a spell is available in your spellbook? like ${Me.Spellbook.Find[Tainted breath]} returns true if it's available?

thanks for the help in advance.

Posted: Sun Feb 27, 2005 4:14 pm
by Lax
Me.Class.Name.Equal[shaman]

other question...

Posted: Sun Feb 27, 2005 4:18 pm
by overnuker2323
is there a way to check if a spell is available in your spellbook? obviously you can try to /mem it, but is there a way to return a true/false that it's memmable? ( and thanks for answering the first part of the question, Lax) :)

Posted: Sun Feb 27, 2005 4:54 pm
by Lax
members of character:
...spell Book[slot]: Spell assigned to this slot in your spellbook
...int Book[name]: Spell slot the spell with this name is assigned to in your spellbook

Example:
/if (${Me.Book[Aegolism]}) /echo I have aegolism

Posted: Sun Feb 27, 2005 5:30 pm
by overnuker2323
kick ass :) I'm making a spell trainer and trying to get my programming above the simple commands... (and now that you point out the book part, I see it in the help file that comes with mq2 lol) thanks again!

Posted: Sun Feb 27, 2005 11:01 pm
by tomb_eater
horrah for people that read :) /clap

Posted: Mon Feb 28, 2005 12:17 am
by eqjoe
Check out TFM bro... its all in there.

-j