TrinityCore
uldaman.cpp
Go to the documentation of this file.
1/*
2 * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18/* ScriptData
19SDName: Uldaman
20SD%Complete: 100
21SDCategory: Uldaman
22EndScriptData */
23
24/* ContentData
25go_keystone_chamber
26EndContentData */
27
28#include "ScriptMgr.h"
29#include "GameObject.h"
30#include "GameObjectAI.h"
31#include "InstanceScript.h"
32#include "Player.h"
33#include "uldaman.h"
34
35/*######
36## go_keystone_chamber
37######*/
38
40{
41 public:
42 go_keystone_chamber() : GameObjectScript("go_keystone_chamber") { }
43
45 {
46 go_keystone_chamberAI(GameObject* go) : GameObjectAI(go), instance(go->GetInstanceScript()) { }
47
49
50 bool OnGossipHello(Player* /*player*/) override
51 {
52 instance->SetData(DATA_IRONAYA_SEAL, IN_PROGRESS); //door animation and save state.
53 return false;
54 }
55 };
56
57 GameObjectAI* GetAI(GameObject* go) const override
58 {
59 return GetUldamanAI<go_keystone_chamberAI>(go);
60 }
61};
62
64{
66}
@ IN_PROGRESS
virtual void SetData(uint32, uint32)
Definition: ZoneScript.h:92
GameObjectAI * GetAI(GameObject *go) const override
Definition: uldaman.cpp:57
bool OnGossipHello(Player *) override
Definition: uldaman.cpp:50
void AddSC_uldaman()
Definition: uldaman.cpp:63
@ DATA_IRONAYA_SEAL
Definition: uldaman.h:46