All pastes #829050 Raw Edit

Mine

public text v1 · immutable
#829050 ·published 2007-12-22 21:57 UTC
rendered paste body
class 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