All pastes #752352 Raw Edit

Something

public text v1 · immutable
#752352 ·published 2007-10-28 10:34 UTC
rendered paste body
#include "StdAfx.h"
#include "Setup.h"

	class SCRIPTSLOL : public GameObjectAIScript
      {
      public:
              //GameObjectAIScript * CreateAIScriptClassForGameObject(uint32 uEntryId, GameObject* pGameObject);
              SCRIPTSLOL(GameObject* goinstance) : GameObjectAIScript(goinstance) {}
              void OnActivate(Player * pPlayer)
              {
                      pPlayer->SafeTeleport(530, 0, 10021.254883, -7014.893066, 49.717690, 4.00532);
              }
              static GameObjectAIScript *Create(GameObject * GO) { return new SCRIPTSLOL(GO); }
      };
      GameObjectAIScript * create_go(GameObject * GO) { return new SCRIPTSLOL(GO); }

	  void SetupSCRIPTSLOL(ScriptMgr * mgr)
      {
              mgr->register_gameobject_script(184503, &SCRIPTSLOL::Create);
      }