spell gem availability?

Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!

Moderator: MacroQuest Developers

Soulzek
flagrant idiot
Posts: 35
Joined: Mon Aug 26, 2002 2:12 pm
Location: The Void
Contact:

spell gem availability?

Post by Soulzek » Sat Oct 25, 2003 8:57 pm

I remember I saw somewhere around here an /if command that checked to see if a certain spell gem # was ready or not. anyone know this?
[b]Click on the image below to visit my site![/b]
[url=http://mywebpages.comcast.net/soulzek/][img]http://mywebpages.comcast.net/soulzek/title.png[/img][/url]

User avatar
blueninja
a grimling bloodguard
a grimling bloodguard
Posts: 541
Joined: Thu Aug 28, 2003 7:03 am
Location: Göteborg, Sweden

Post by blueninja » Sat Oct 25, 2003 9:07 pm

Yes, it goes something like this:

Code: Select all

/if n $char(gem,"Divine aura")==-2
/if n $char(gem,"$char(gem,1)")==-2
If it returns -2 the spell is memorized but not ready to cast. However, I just used it and it seems to be broken. Haven't rebuilt MQ for about a week so I don't know if it works again.

Soulzek
flagrant idiot
Posts: 35
Joined: Mon Aug 26, 2002 2:12 pm
Location: The Void
Contact:

Post by Soulzek » Sat Oct 25, 2003 9:27 pm

thanks!
[b]Click on the image below to visit my site![/b]
[url=http://mywebpages.comcast.net/soulzek/][img]http://mywebpages.comcast.net/soulzek/title.png[/img][/url]

Falco72
a hill giant
a hill giant
Posts: 215
Joined: Fri Sep 26, 2003 3:24 am

Post by Falco72 » Sun Oct 26, 2003 2:13 am

It works, but you have to dismount. I you are mounted it will not work. The syntax is this:

Code: Select all

 $char(gem,"Spell name") 
It will return -2 if the spell is memmed but not ready, 0 if the spell is not memmed or the gem slot number if the spell is memmed.