I reversed this lua function and found the actual
Code:
void CastPetAction(unsigned long* actionbar_slot, u_int64_t* target, unsigned long unk);
function.
Now my question is regarding the petactionbar_slot.
It points to a 32 bit value anded with 0x0FFFFFF to get the actual spell id of the slot, somewhere in the function it tests the most significant byte and ands it with 0x3F (if irc).
Does anyone have a clue on what flags they use on these ids?
I've seen values of 0xC1, 0x70, 0x60.
0x70 is used with the attack, stay and follow spells,
0xC1 is used with regular spells and 0x60 with the pet stances.
There may be more.