rendered paste bodyclass 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); }