$char(gem) help

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

Yalp
a ghoul
a ghoul
Posts: 90
Joined: Thu Dec 05, 2002 6:28 pm

$char(gem) help

Post by Yalp » Tue Dec 02, 2003 3:13 pm

$char(gem,xxx) returns the casting gem for a spell
Also can return:
0: Spell not on an gem
-2: The spell is on a gem but unusable right now

so should it work like this

Code: Select all

/cast 1
:wait
/if n $char(gem,1)==-2  {
/goto :wait
}  
??
Because i wouldn't have it any other way

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 » Thu Dec 04, 2003 7:58 pm

No, the second parameter to $char(gem,xxx) is the name of a spell. Replace it with the name of the spell (or with "$char(gem,1)" which returns the name of the spell in slot 1, don't forget the quotes) and you can use it to wait until you can cast again.