Moderator: MacroQuest Developers

I'm sure that is the correct way to work around the issue. If only everyone wrote all their holyshit/downshits that way.demonstar55 wrote:/casting "${Spell[foo].SpellRank}" doesn't work?

Code: Select all
PSPELL SpellBook(PCHAR ID)
{
if (PSPELL pSpell = GetSpellByName(ID)) {
for (DWORD nSpell = 0; nSpell < NUM_BOOK_SLOTS; nSpell++) {
if (PCHARINFO2 pChar2 = GetCharInfo2()) {
if (pChar2->SpellBook[nSpell] != 0xFFFFFFFF) {
if (PSPELL pFoundSpell = GetSpellByID(pChar2->SpellBook[nSpell])) {
if (pFoundSpell->SpellGroup == pSpell->SpellGroup && !_strnicmp(pSpell->Name, pFoundSpell->Name, strlen(pSpell->Name)))
{
return pFoundSpell;
}
}
}
}
}
return pSpell;
}
return NULL;
}
dont_know_at_all wrote:Gee, if only there was a way to correctly report a crash...

dont_know_at_all wrote:Gee, if only there was a way to correctly report a crash...
Code: Select all
PLUGIN_API VOID InitializePlugin(VOID)
...
AddCommand("/cast", CastCommand);
PLUGIN_API VOID ShutdownPlugin(VOID)
...
RemoveCommand("/casting");

dont_know_at_all wrote:Gee, if only there was a way to correctly report a crash...

MacQ wrote:Swifty,
Are you making a change to /cast in the MQ core?
If so, would that mean /cast "${Spell[${SpellName}].RankName}" would no longer work?
dont_know_at_all wrote:Gee, if only there was a way to correctly report a crash...