Is there a way to call a function based off of class? Here's what I'm after (note this is obviously not code):
Can something like that be done?
Code:
void Warrior(VOID) {
dostuff}
void Monk(VOID)
dostuff}
PLUGIN_API VOID SetGameState(DWORD GameState)
{
if (GameState==GAMESTATE_INGAME)
sprintf(ClassIs, "%s", GetClassDesc(GetCharInfo2()->Class));
ClassIs();
}
Can something like that be done?