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
31
32// 184125, 184126 - Main Chambers Access Panel
34{
35 go_main_chambers_access_panel(GameObject* go) : GameObjectAI(go), _instance(go->GetInstanceScript()) { }
36
37 bool OnGossipHello(Player* /*player*/) override
38 {
40
42 controller->AI()->Talk(EMOTE_PANEL_USED);
43
45 {
47 controller->AI()->Talk(EMOTE_MAIN_DOOR_OPENS);
48
50 {
52 go->ActivateObject(GameObjectActions::MakeInert, 0);
53 }
54 }
55
56 return false;
57 }
58
59private:
61};
62
@ DONE
GameObject *const me
void ActivateObject(GameObjectActions action, int32 param, WorldObject *spellCaster=nullptr, uint32 spellId=0, int32 effectIndex=-1)
Creature * GetCreature(uint32 type)
void HandleGameObject(ObjectGuid guid, bool open, GameObject *go=nullptr)
EncounterState GetBossState(uint32 id) const
GameObject * GetGameObject(uint32 type)
static ObjectGuid const Empty
Definition ObjectGuid.h:314
void AddSC_steam_vault()
MainChambersAccessPanelMisc
@ EMOTE_MAIN_DOOR_OPENS
@ EMOTE_PANEL_USED
@ DATA_MAIN_CHAMBERS_DOOR
Definition steam_vault.h:36
@ DATA_HYDROMANCER_THESPIA
Definition steam_vault.h:30
@ DATA_DOOR_CONTROLLER
Definition steam_vault.h:37
@ DATA_MEKGINEER_STEAMRIGGER
Definition steam_vault.h:31
#define RegisterSteamVaultGameObjectAI(ai_name)
Definition steam_vault.h:62
bool OnGossipHello(Player *) override
go_main_chambers_access_panel(GameObject *go)