I've been trying to get the highest available spellID using:
docs/api/FindSpellBookSlotByID - World of Warcraft Programming: A Guide and Reference for Creating WoW Addons
and
GetKnownSlotFromHighestRankSlot - World of Warcraft Programming: A Guide and Reference for Creating WoW Addons
my code is:
int slot = SpellSlotByID(spellID);
int maxSpellSlot = MaxRankSlotByID(slot);
DoString("CastSpell(" + maxSpell +", \"spell\");");
This has never returned the correct highest available spell from the lowest rank's spellID. Does anyone know how i might be able to change the code to display the max spell rank's slot id?