TrinityCore
Loading...
Searching...
No Matches
steam_vault.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#include "ScriptMgr.h"
19#include "Creature.h"
20#include "CreatureAI.h"
21#include "GameObject.h"
22#include "GameObjectAI.h"
23#include "InstanceScript.h"
24#include "steam_vault.h"
25
26// 184125, 184126 - Main Chambers Access Panel
28{
29 go_main_chambers_access_panel(GameObject* go) : GameObjectAI(go), _instance(go->GetInstanceScript()) { }
30
31 bool OnGossipHello(Player* /*player*/) override
32 {
34 controller->AI()->Talk(CONTROLLER_TEXT_ACESS_USED);
35
39 return true;
40 }
41
42private:
44};
45
@ GO_FLAG_NOT_SELECTABLE
@ GO_STATE_ACTIVE
@ ACTION_OPEN_DOOR
GameObject *const me
void SetGoState(GOState state)
void SetFlag(GameObjectFlags flags)
Definition GameObject.h:171
Creature * GetCreature(uint32 type)
virtual void SetData(uint32, uint32)
Definition ZoneScript.h:56
void AddSC_steam_vault()
@ DATA_DOOR_CONTROLLER
Definition steam_vault.h:38
#define RegisterSteamVaultGameObjectAI(ai_name)
Definition steam_vault.h:71
@ CONTROLLER_TEXT_ACESS_USED
Definition steam_vault.h:60
bool OnGossipHello(Player *) override
go_main_chambers_access_panel(GameObject *go)