All pastes #751896 Raw Edit

Untitled

public text v1 · immutable
#751896 ·published 2007-10-27 20:46 UTC
rendered paste body
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 SetupGOReg(ScriptMgr * mgr)
{
	mgr->register_gameobject_script(184503, &SCRIPTSLOL::Create);
}