2 questions

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

Moderator: MacroQuest Developers

overnuker2323
orc pawn
orc pawn
Posts: 18
Joined: Sat Sep 25, 2004 2:06 am

2 questions

Post by overnuker2323 » Sun Feb 27, 2005 3:51 pm

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.

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Sun Feb 27, 2005 4:14 pm

Me.Class.Name.Equal[shaman]
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

overnuker2323
orc pawn
orc pawn
Posts: 18
Joined: Sat Sep 25, 2004 2:06 am

other question...

Post by overnuker2323 » Sun Feb 27, 2005 4:18 pm

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) :)

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Sun Feb 27, 2005 4:54 pm

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
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

overnuker2323
orc pawn
orc pawn
Posts: 18
Joined: Sat Sep 25, 2004 2:06 am

Post by overnuker2323 » Sun Feb 27, 2005 5:30 pm

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!

tomb_eater
orc pawn
orc pawn
Posts: 20
Joined: Mon Dec 06, 2004 1:46 pm
Contact:

Post by tomb_eater » Sun Feb 27, 2005 11:01 pm

horrah for people that read :) /clap

eqjoe
a grimling bloodguard
a grimling bloodguard
Posts: 984
Joined: Sat Sep 28, 2002 12:26 pm

Post by eqjoe » Mon Feb 28, 2005 12:17 am

Check out TFM bro... its all in there.

-j