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
19
SDName: Uldaman
20
SD%Complete: 100
21
SDCategory: Uldaman
22
EndScriptData */
23
24
/* ContentData
25
go_keystone_chamber
26
EndContentData */
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
39
class
go_keystone_chamber
:
public
GameObjectScript
40
{
41
public
:
42
go_keystone_chamber
() :
GameObjectScript
(
"go_keystone_chamber"
) { }
43
44
struct
go_keystone_chamberAI
:
public
GameObjectAI
45
{
46
go_keystone_chamberAI
(
GameObject
* go) :
GameObjectAI
(go),
instance
(go->GetInstanceScript()) { }
47
48
InstanceScript
*
instance
;
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
63
void
AddSC_uldaman
()
64
{
65
new
go_keystone_chamber
();
66
}
GameObjectAI.h
GameObject.h
InstanceScript.h
IN_PROGRESS
@ IN_PROGRESS
Definition:
InstanceScript.h:70
Player.h
ScriptMgr.h
GameObjectAI
Definition:
GameObjectAI.h:44
GameObjectScript
Definition:
ScriptMgr.h:444
GameObject
Definition:
GameObject.h:166
InstanceScript
Definition:
InstanceScript.h:183
Player
Definition:
Player.h:1109
ZoneScript::SetData
virtual void SetData(uint32, uint32)
Definition:
ZoneScript.h:92
go_keystone_chamber
Definition:
uldaman.cpp:40
go_keystone_chamber::GetAI
GameObjectAI * GetAI(GameObject *go) const override
Definition:
uldaman.cpp:57
go_keystone_chamber::go_keystone_chamber
go_keystone_chamber()
Definition:
uldaman.cpp:42
go_keystone_chamber::go_keystone_chamberAI
Definition:
uldaman.cpp:45
go_keystone_chamber::go_keystone_chamberAI::instance
InstanceScript * instance
Definition:
uldaman.cpp:48
go_keystone_chamber::go_keystone_chamberAI::go_keystone_chamberAI
go_keystone_chamberAI(GameObject *go)
Definition:
uldaman.cpp:46
go_keystone_chamber::go_keystone_chamberAI::OnGossipHello
bool OnGossipHello(Player *) override
Definition:
uldaman.cpp:50
AddSC_uldaman
void AddSC_uldaman()
Definition:
uldaman.cpp:63
uldaman.h
DATA_IRONAYA_SEAL
@ DATA_IRONAYA_SEAL
Definition:
uldaman.h:46
server
scripts
EasternKingdoms
Uldaman
uldaman.cpp
Generated on Thu Mar 14 2024 23:39:27 for TrinityCore by
1.9.4