Mine
public text v1 · immutableclass RhahkZorAI : public CreatureAIScript // name of your script
{
public:
ADD_CREATURE_FACTORY_FUNCTION(RhahkZorAI); // making some stuff to work
RhahkZorAI(Creature* pCreature) : CreatureAIScript(pCreature) // a must
{
}
void OnDied(Unit * mKiller) // when npc dies
{
}
void OnCombatStop(Unit *mTarget)
{
RemoveAIUpdateEvent(); // removes aiupdate
}
void OnCombatStart(Unit* mTarget) // combatstart
{
}
void AIUpdate() // aiupdate
{
}
protected:
}; // here you put variables