All pastes #769521 Raw Edit

Untitled

public text v1 · immutable
·published 2007-11-11 14:20 UTC
rendered paste body
class RhahkZorAI : public CreatureAIScript
{
public:
    RhahkZorAI(Creature* pCreature) : CreatureAIScript(pCreature) {}

    void OnCombatStart(Unit* mTarget)
    {
     pCreature->SafeTeleport(yaddayii);
    }

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

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

CreatureAIScript * create_rhakzor(Creature * c) { return new RhahkZorAI(c); }

-----------------------------------------------------------------------------------

#include "StdAfx.h"
#include "Setup.h"

    class OrbOfTransLocUC : public GameObjectAIScript
      {
      public:
              OrbOfTransLocUC(GameObject* goinstance) : GameObjectAIScript(goinstance) {}
              void OnActivate(Player * pPlayer)
              {
                      pPlayer->SafeTeleport(yaddayii);      
              }
              static GameObjectAIScript *Create(GameObject * GO) { return new OrbOfTransLocUC(GO); }
      };
      GameObjectAIScript * create_go(GameObject * GO) { return new OrbOfTransLocUC(GO); }