All pastes #676912 Raw Edit

Someone

public text v1 · immutable
#676912 ·published 2007-08-31 14:44 UTC
rendered paste body
#include "StdAfx.h"
//#include "Setup.h"

// PushasTest - push the learning to the limit

class PushasTest : public CreatureAIScript
{
public:
    PushasTest(Creature* pCreature) : CreatureAIScript(pCreature) {}

    void OnCombatStart(Unit* mTarget)
    {
        _unit->SendChatMessage(CHAT_MSG_MONSTER_YELL, LANG_UNIVERSAL, "Pusha you'r killing me slowly!");
    }

    void Destroy()
    {
        delete (PushasTest*)this;
    }

    static CreatureAIScript *Create(Creature * c) { return new PushasTest(c); }
};

CreatureAIScript * create_PushasTest(Creature * c) { return new PushasTest(c); }

void SetupPusha(ScriptMgr * mgr)
{
    mgr->register_creature_script(644, &PushasTest::Create);
}