TrinityCore
Loading...
Searching...
No Matches
instance_the_stockade.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
/*
19
This placeholder for the instance is needed for dungeon finding to be able
20
to give credit after the boss defined in lastEncounterDungeon is killed.
21
Without it, the party doing random dungeon won't get satchel of spoils and
22
gets instead the deserter debuff.
23
*/
24
25
#include "
ScriptMgr.h
"
26
#include "
InstanceScript.h
"
27
28
class
instance_the_stockade
:
public
InstanceMapScript
29
{
30
public
:
31
instance_the_stockade
() :
InstanceMapScript
(
"instance_the_stockade"
, 34) { }
32
33
InstanceScript
*
GetInstanceScript
(
InstanceMap
* map)
const override
34
{
35
return
new
instance_the_stockade_InstanceMapScript
(map);
36
}
37
38
struct
instance_the_stockade_InstanceMapScript
:
public
InstanceScript
39
{
40
instance_the_stockade_InstanceMapScript
(
InstanceMap
* map) :
InstanceScript
(map) { }
41
};
42
};
43
44
void
AddSC_instance_the_stockade
()
45
{
46
new
instance_the_stockade
();
47
}
InstanceScript.h
ScriptMgr.h
InstanceMapScript
Definition
ScriptMgr.h:338
InstanceMap
Definition
Map.h:876
InstanceScript
Definition
InstanceScript.h:159
instance_the_stockade
Definition
instance_the_stockade.cpp:29
instance_the_stockade::instance_the_stockade
instance_the_stockade()
Definition
instance_the_stockade.cpp:31
instance_the_stockade::GetInstanceScript
InstanceScript * GetInstanceScript(InstanceMap *map) const override
Definition
instance_the_stockade.cpp:33
AddSC_instance_the_stockade
void AddSC_instance_the_stockade()
Definition
instance_the_stockade.cpp:44
instance_the_stockade::instance_the_stockade_InstanceMapScript
Definition
instance_the_stockade.cpp:39
instance_the_stockade::instance_the_stockade_InstanceMapScript::instance_the_stockade_InstanceMapScript
instance_the_stockade_InstanceMapScript(InstanceMap *map)
Definition
instance_the_stockade.cpp:40
server
scripts
EasternKingdoms
TheStockade
instance_the_stockade.cpp
Generated on Sun May 10 2026 02:30:20 for TrinityCore by
1.9.8