AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
instance_trial_of_the_crusader.cpp File Reference
#include "Containers.h"
#include "GameTime.h"
#include "InstanceMapScript.h"
#include "Player.h"
#include "ScriptedCreature.h"
#include "Vehicle.h"
#include "WorldStateDefines.h"
#include "trial_of_the_crusader.h"
#include <algorithm>
#include <array>
#include <list>
#include <utility>
#include <vector>

Go to the source code of this file.

Classes

struct  instance_trial_of_the_crusader
 

Enumerations

enum  InstanceMisc {
  VEHICLE_SNOBOLD_CARRIER = 497 ,
  GO_PORTAL_TO_DALARAN = 195682 ,
  ITEM_VALANYR = 46017 ,
  MAX_ATTEMPTS = 50 ,
  DEDICATED_INSANITY_ITEM_LEVEL = 245
}
 
enum  InstanceSpells {
  SPELL_BERSERK = 26662 ,
  SPELL_FEL_LIGHTNING = 67888 ,
  SPELL_ARTHAS_PORTAL = 51807 ,
  SPELL_DESTROY_FLOOR_KNOCKUP = 68193
}
 
enum  NorthrendBeastsMask {
  BEASTS_MASK_GORMOK_DEAD = 0x01 ,
  BEASTS_MASK_JORMUNGARS_DEAD = 0x02 ,
  BEASTS_MASK_ICEHOWL_DEAD = 0x04 ,
  BEASTS_MASK_ALL_DEAD = BEASTS_MASK_GORMOK_DEAD | BEASTS_MASK_JORMUNGARS_DEAD | BEASTS_MASK_ICEHOWL_DEAD ,
  BEASTS_MASK_JORMUNGARS_RELEASED = 0x10 ,
  BEASTS_MASK_ICEHOWL_RELEASED = 0x20
}
 

Functions

void AddSC_instance_trial_of_the_crusader ()
 

Variables

constexpr std::array< uint32, 405 > DedicatedInsanityItems
 
ObjectData const creatureData []
 
ObjectData const gameObjectData []
 

Enumeration Type Documentation

◆ InstanceMisc

Enumerator
VEHICLE_SNOBOLD_CARRIER 
GO_PORTAL_TO_DALARAN 
ITEM_VALANYR 
MAX_ATTEMPTS 
DEDICATED_INSANITY_ITEM_LEVEL 
33{
35 GO_PORTAL_TO_DALARAN = 195682,
36 ITEM_VALANYR = 46017,
37 MAX_ATTEMPTS = 50,
39};
@ MAX_ATTEMPTS
Definition instance_trial_of_the_crusader.cpp:37
@ GO_PORTAL_TO_DALARAN
Definition instance_trial_of_the_crusader.cpp:35
@ ITEM_VALANYR
Definition instance_trial_of_the_crusader.cpp:36
@ VEHICLE_SNOBOLD_CARRIER
Definition instance_trial_of_the_crusader.cpp:34
@ DEDICATED_INSANITY_ITEM_LEVEL
Definition instance_trial_of_the_crusader.cpp:38

◆ InstanceSpells

Enumerator
SPELL_BERSERK 
SPELL_FEL_LIGHTNING 
SPELL_ARTHAS_PORTAL 
SPELL_DESTROY_FLOOR_KNOCKUP 
42{
43 SPELL_BERSERK = 26662,
44 SPELL_FEL_LIGHTNING = 67888,
45 SPELL_ARTHAS_PORTAL = 51807,
47};
@ SPELL_ARTHAS_PORTAL
Definition instance_trial_of_the_crusader.cpp:45
@ SPELL_DESTROY_FLOOR_KNOCKUP
Definition instance_trial_of_the_crusader.cpp:46
@ SPELL_FEL_LIGHTNING
Definition instance_trial_of_the_crusader.cpp:44
@ SPELL_BERSERK
Definition instance_trial_of_the_crusader.cpp:43

◆ NorthrendBeastsMask

Enumerator
BEASTS_MASK_GORMOK_DEAD 
BEASTS_MASK_JORMUNGARS_DEAD 
BEASTS_MASK_ICEHOWL_DEAD 
BEASTS_MASK_ALL_DEAD 
BEASTS_MASK_JORMUNGARS_RELEASED 
BEASTS_MASK_ICEHOWL_RELEASED 
50{
55 // Set once the next stage is let in, by the heroic timer or by the previous stage dying
58};
@ BEASTS_MASK_JORMUNGARS_DEAD
Definition instance_trial_of_the_crusader.cpp:52
@ BEASTS_MASK_ICEHOWL_DEAD
Definition instance_trial_of_the_crusader.cpp:53
@ BEASTS_MASK_JORMUNGARS_RELEASED
Definition instance_trial_of_the_crusader.cpp:56
@ BEASTS_MASK_GORMOK_DEAD
Definition instance_trial_of_the_crusader.cpp:51
@ BEASTS_MASK_ICEHOWL_RELEASED
Definition instance_trial_of_the_crusader.cpp:57
@ BEASTS_MASK_ALL_DEAD
Definition instance_trial_of_the_crusader.cpp:54

Function Documentation

◆ AddSC_instance_trial_of_the_crusader()

void AddSC_instance_trial_of_the_crusader ( )
1420{
1422}
@ MAP_TRIAL_OF_THE_CRUSADER
Definition AreaDefines.h:271
#define RegisterInstanceScript(script_name, mapId)
Definition InstanceMapScript.h:45
Definition instance_trial_of_the_crusader.cpp:114

References MAP_TRIAL_OF_THE_CRUSADER, and RegisterInstanceScript.

Referenced by AddNorthrendScripts().

Variable Documentation

◆ creatureData

ObjectData const creatureData[]
Initial value:
=
{
{ 0, 0 }
}
@ NPC_ANUBARAK
Definition azjol_nerub.h:51
@ DATA_ANUBARAK
Definition azjol_nerub.h:31
@ NPC_TIRION
Definition trial_of_the_champion.h:147
@ DATA_DREADSCALE
Definition trial_of_the_crusader.h:64
@ DATA_LIGHTBANE
Definition trial_of_the_crusader.h:69
@ DATA_JARAXXUS
Definition trial_of_the_crusader.h:68
@ DATA_ACIDMAW
Definition trial_of_the_crusader.h:65
@ DATA_LICH_KING
Definition trial_of_the_crusader.h:71
@ DATA_VARIAN
Definition trial_of_the_crusader.h:62
@ DATA_ICEHOWL
Definition trial_of_the_crusader.h:66
@ DATA_TIRION
Definition trial_of_the_crusader.h:59
@ DATA_GARROSH
Definition trial_of_the_crusader.h:61
@ DATA_GORMOK
Definition trial_of_the_crusader.h:63
@ DATA_FIZZLEBANG
Definition trial_of_the_crusader.h:60
@ DATA_DARKBANE
Definition trial_of_the_crusader.h:70
@ DATA_BARRETT
Definition trial_of_the_crusader.h:58
@ DATA_BEASTS_COMBAT_STALKER
Definition trial_of_the_crusader.h:67
@ NPC_LIGHTBANE
Definition trial_of_the_crusader.h:230
@ NPC_DREADSCALE
Definition trial_of_the_crusader.h:186
@ NPC_VARIAN
Definition trial_of_the_crusader.h:177
@ NPC_ICEHOWL
Definition trial_of_the_crusader.h:188
@ NPC_BARRETT_FACTION_CHAMPIONS
Definition trial_of_the_crusader.h:171
@ NPC_BEASTS_COMBAT_STALKER
Definition trial_of_the_crusader.h:189
@ NPC_ACIDMAW
Definition trial_of_the_crusader.h:187
@ NPC_DARKBANE
Definition trial_of_the_crusader.h:231
@ NPC_GARROSH
Definition trial_of_the_crusader.h:175
@ NPC_BARRETT_JARAXXUS
Definition trial_of_the_crusader.h:170
@ NPC_JARAXXUS
Definition trial_of_the_crusader.h:190
@ NPC_BARRETT_VALKYR
Definition trial_of_the_crusader.h:172
@ NPC_LICH_KING
Definition trial_of_the_crusader.h:182
@ NPC_FIZZLEBANG
Definition trial_of_the_crusader.h:181
@ NPC_BARRETT_BEASTS
Definition trial_of_the_crusader.h:168
@ NPC_GORMOK
Definition trial_of_the_crusader.h:184
@ NPC_BARRETT_LICH_KING
Definition trial_of_the_crusader.h:173
@ NPC_BARRETT_BEASTS_HC
Definition trial_of_the_crusader.h:169

Referenced by instance_trial_of_the_crusader::instance_trial_of_the_crusader().

◆ DedicatedInsanityItems

constexpr std::array<uint32, 405> DedicatedInsanityItems
constexpr
Initial value:
=
{
47658, 47659, 47660, 47661, 47662, 47664, 47665, 47666, 47667, 47668, 47670, 47671, 47672, 47673, 47674, 47675, 47677, 47678, 47681, 47682, 47684, 47685, 47686, 47687, 47688, 47689, 47690, 47691, 47692, 47693,
47694, 47695, 47696, 47697, 47698, 47699, 47701, 47702, 47704, 47705, 47706, 47707, 47708, 47709, 47710, 47712, 47713, 47714, 47715, 47716, 47729, 47730, 47731, 47732, 47733, 47734, 47735, 47753, 47754, 47755,
47756, 47757, 47768, 47769, 47770, 47771, 47772, 47778, 47779, 47780, 47781, 47782, 47803, 47804, 47805, 47806, 47807, 47915, 47916, 47917, 47918, 47919, 47920, 47921, 47922, 47923, 47924, 47925, 47926, 47927,
47928, 47929, 47930, 47931, 47932, 47933, 47934, 47935, 47937, 47938, 47939, 47940, 47941, 47942, 47943, 47944, 47945, 47946, 47947, 47948, 47949, 47950, 47951, 47952, 47953, 47954, 47955, 47956, 47957, 47958,
47959, 47960, 47961, 47962, 47963, 47964, 47965, 47966, 47967, 47968, 47969, 47970, 47971, 47972, 47973, 47974, 47975, 47976, 47977, 47978, 47979, 47983, 47984, 47985, 47986, 47987, 47988, 47989, 47990, 47991,
47992, 47993, 47994, 47995, 47996, 47997, 47998, 47999, 48000, 48001, 48002, 48003, 48004, 48005, 48006, 48007, 48008, 48009, 48010, 48011, 48012, 48013, 48014, 48015, 48016, 48017, 48018, 48019, 48020, 48021,
48022, 48023, 48024, 48025, 48026, 48027, 48028, 48030, 48032, 48034, 48036, 48038, 48039, 48040, 48041, 48042, 48043, 48044, 48045, 48046, 48047, 48048, 48049, 48050, 48051, 48052, 48053, 48054, 48055, 48056,
48062, 48063, 48064, 48065, 48066, 48077, 48078, 48079, 48080, 48081, 48092, 48093, 48094, 48095, 48096, 48133, 48134, 48135, 48136, 48137, 48148, 48149, 48150, 48151, 48152, 48163, 48164, 48165, 48166, 48167,
48178, 48179, 48180, 48181, 48182, 48193, 48194, 48195, 48196, 48197, 48208, 48209, 48210, 48211, 48212, 48223, 48224, 48225, 48226, 48227, 48238, 48239, 48240, 48241, 48242, 48255, 48256, 48257, 48258, 48259,
48270, 48271, 48272, 48273, 48274, 48285, 48286, 48287, 48288, 48289, 48300, 48301, 48302, 48303, 48304, 48316, 48317, 48318, 48319, 48320, 48331, 48332, 48333, 48334, 48335, 48346, 48347, 48348, 48349, 48350,
48361, 48362, 48363, 48364, 48365, 48376, 48377, 48378, 48379, 48380, 48391, 48392, 48393, 48394, 48395, 48430, 48446, 48450, 48452, 48454, 48461, 48462, 48463, 48464, 48465, 48481, 48482, 48483, 48484, 48485,
48496, 48497, 48498, 48499, 48500, 48538, 48539, 48540, 48541, 48542, 48553, 48554, 48555, 48556, 48557, 48575, 48576, 48577, 48578, 48579, 48590, 48591, 48592, 48593, 48594, 48607, 48608, 48609, 48610, 48611,
48622, 48623, 48624, 48625, 48626, 48637, 48638, 48639, 48640, 48641, 48657, 48658, 48659, 48660, 48661, 48666, 48667, 48668, 48669, 48670, 48671, 48672, 48673, 48674, 48675, 48693, 48695, 48697, 48699, 48701,
48703, 48705, 48708, 48709, 48710, 48711, 48712, 48713, 48714, 48722, 48724, 49233, 49234, 49237, 49238
}
62{
63 47658, 47659, 47660, 47661, 47662, 47664, 47665, 47666, 47667, 47668, 47670, 47671, 47672, 47673, 47674, 47675, 47677, 47678, 47681, 47682, 47684, 47685, 47686, 47687, 47688, 47689, 47690, 47691, 47692, 47693,
64 47694, 47695, 47696, 47697, 47698, 47699, 47701, 47702, 47704, 47705, 47706, 47707, 47708, 47709, 47710, 47712, 47713, 47714, 47715, 47716, 47729, 47730, 47731, 47732, 47733, 47734, 47735, 47753, 47754, 47755,
65 47756, 47757, 47768, 47769, 47770, 47771, 47772, 47778, 47779, 47780, 47781, 47782, 47803, 47804, 47805, 47806, 47807, 47915, 47916, 47917, 47918, 47919, 47920, 47921, 47922, 47923, 47924, 47925, 47926, 47927,
66 47928, 47929, 47930, 47931, 47932, 47933, 47934, 47935, 47937, 47938, 47939, 47940, 47941, 47942, 47943, 47944, 47945, 47946, 47947, 47948, 47949, 47950, 47951, 47952, 47953, 47954, 47955, 47956, 47957, 47958,
67 47959, 47960, 47961, 47962, 47963, 47964, 47965, 47966, 47967, 47968, 47969, 47970, 47971, 47972, 47973, 47974, 47975, 47976, 47977, 47978, 47979, 47983, 47984, 47985, 47986, 47987, 47988, 47989, 47990, 47991,
68 47992, 47993, 47994, 47995, 47996, 47997, 47998, 47999, 48000, 48001, 48002, 48003, 48004, 48005, 48006, 48007, 48008, 48009, 48010, 48011, 48012, 48013, 48014, 48015, 48016, 48017, 48018, 48019, 48020, 48021,
69 48022, 48023, 48024, 48025, 48026, 48027, 48028, 48030, 48032, 48034, 48036, 48038, 48039, 48040, 48041, 48042, 48043, 48044, 48045, 48046, 48047, 48048, 48049, 48050, 48051, 48052, 48053, 48054, 48055, 48056,
70 48062, 48063, 48064, 48065, 48066, 48077, 48078, 48079, 48080, 48081, 48092, 48093, 48094, 48095, 48096, 48133, 48134, 48135, 48136, 48137, 48148, 48149, 48150, 48151, 48152, 48163, 48164, 48165, 48166, 48167,
71 48178, 48179, 48180, 48181, 48182, 48193, 48194, 48195, 48196, 48197, 48208, 48209, 48210, 48211, 48212, 48223, 48224, 48225, 48226, 48227, 48238, 48239, 48240, 48241, 48242, 48255, 48256, 48257, 48258, 48259,
72 48270, 48271, 48272, 48273, 48274, 48285, 48286, 48287, 48288, 48289, 48300, 48301, 48302, 48303, 48304, 48316, 48317, 48318, 48319, 48320, 48331, 48332, 48333, 48334, 48335, 48346, 48347, 48348, 48349, 48350,
73 48361, 48362, 48363, 48364, 48365, 48376, 48377, 48378, 48379, 48380, 48391, 48392, 48393, 48394, 48395, 48430, 48446, 48450, 48452, 48454, 48461, 48462, 48463, 48464, 48465, 48481, 48482, 48483, 48484, 48485,
74 48496, 48497, 48498, 48499, 48500, 48538, 48539, 48540, 48541, 48542, 48553, 48554, 48555, 48556, 48557, 48575, 48576, 48577, 48578, 48579, 48590, 48591, 48592, 48593, 48594, 48607, 48608, 48609, 48610, 48611,
75 48622, 48623, 48624, 48625, 48626, 48637, 48638, 48639, 48640, 48641, 48657, 48658, 48659, 48660, 48661, 48666, 48667, 48668, 48669, 48670, 48671, 48672, 48673, 48674, 48675, 48693, 48695, 48697, 48699, 48701,
76 48703, 48705, 48708, 48709, 48710, 48711, 48712, 48713, 48714, 48722, 48724, 49233, 49234, 49237, 49238
77};

Referenced by instance_trial_of_the_crusader::IsValidDedicatedInsanityItem().

◆ gameObjectData

ObjectData const gameObjectData[]
Initial value:
=
{
{ 0, 0 }
}
@ GO_EAST_PORTCULLIS
Definition trial_of_the_champion.h:171
@ DATA_WEB_DOOR
Definition trial_of_the_crusader.h:77
@ DATA_MAIN_GATE
Definition trial_of_the_crusader.h:75
@ DATA_FLOOR
Definition trial_of_the_crusader.h:78
@ DATA_ENTER_GATE
Definition trial_of_the_crusader.h:76
@ GO_ARGENT_COLISEUM_FLOOR
Definition trial_of_the_crusader.h:238
@ GO_MAIN_GATE_DOOR
Definition trial_of_the_crusader.h:239
@ GO_WEB_DOOR
Definition trial_of_the_crusader.h:240

Referenced by instance_trial_of_the_crusader::instance_trial_of_the_crusader().