aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/EasternKingdoms/ScarletMonastery/scarlet_monastery.h
blob: 27e3fb9b51a50aa3c5b95970751bbebb49cd6874 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
/*
 * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the
 * Free Software Foundation; either version 2 of the License, or (at your
 * option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
 * more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef SCARLET_M_
#define SCARLET_M_

#include "CreatureAIImpl.h"
#include "Position.h"

#define SMScriptName "instance_scarlet_monastery"
#define DataHeader "SM"

uint32 const EncounterCount = 9;

extern Position const BunnySpawnPosition;
extern Position const EarthBunnySpawnPosition;
extern Position const HeadlessHorsemanSpawnPosition;
extern Position const HeadlessHorsemanHeadSpawnPosition;

enum SMDataTypes
{
    DATA_INTERROGATOR_VISHAS = 0,
    DATA_BLOODMAGE_THALNOS,
    DATA_HOUNDMASTER_LOKSEY,
    DATA_ARCANIST_DOAN,
    DATA_HEROD,
    DATA_HIGH_INQUISITOR_FAIRBANKS,
    DATA_MOGRAINE_AND_WHITE_EVENT, // Last DungeonEncounter.dbc entry

    DATA_AZSHIR,
    DATA_SCORN,
    DATA_MOGRAINE,
    DATA_VORREL,
    DATA_WHITEMANE,

    // Headless Horseman
    DATA_HORSEMAN_HEAD,
    DATA_HEADLESS_HORSEMAN,
    DATA_PUMPKIN_SHRINE,
    DATA_HIGH_INQUISITORS_DOOR,
    DATA_LOOSELY_TURNED_SOIL,
    DATA_START_HORSEMAN_EVENT,
    DATA_FLAME_BUNNY,
    DATA_EARTH_BUNNY,
    DATA_HORSEMAN_EVENT_STATE,
    DATA_PREPARE_RESET,
    DATA_THOMAS
};

enum SMCreatureIds
{
    NPC_MOGRAINE               = 3976,
    NPC_WHITEMANE              = 3977,
    NPC_VORREL                 = 3981,
    NPC_HEADLESS_HORSEMAN      = 23682,
    NPC_HEADLESS_HORSEMAN_HEAD = 23775,
    NPC_PULSING_PUMPKIN        = 23694,
    NPC_PUMPKIN_FIEND          = 23545,
    NPC_FLAME_BUNNY            = 23686,
    NPC_EARTH_BUNNY            = 23758,
    NPC_SIR_THOMAS             = 23904
};

enum SMCreatureMisc
{
    SPELL_EARTH_EXPLOSION         = 42373,
    EVENT_ACTIVE_EARTH_EXPLOSION  = 1,
    EVENT_SPAWN_HEADLESS_HORSEMAN = 2,
    EVENT_DESPAWN_OBJECTS         = 3,
    ACTION_HORSEMAN_EVENT_START   = 101
};

enum SMGameObjectIds
{
    GO_HIGH_INQUISITORS_DOOR = 104600,
    GO_PUMPKIN_SHRINE        = 186267,
    GO_LOOSELY_TURNED_SOIL   = 186314
};

template <class AI, class T>
inline AI* GetScarletMonasteryAI(T* obj)
{
    return GetInstanceAI<AI>(obj, SMScriptName);
}

#define RegisterScarletMonasteryCreatureAI(ai) RegisterCreatureAIWithFactory(ai, GetScarletMonasteryAI)
#define RegisterScarletMonasteryGameObjectAI(ai) RegisterGameObjectAIWithFactory(ai, GetScarletMonasteryAI)

#endif // SCARLET_M_