AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
chapter1.cpp File Reference
#include "CombatAI.h"
#include "CreatureScript.h"
#include "CreatureTextMgr.h"
#include "GameObjectScript.h"
#include "MoveSplineInit.h"
#include "ObjectMgr.h"
#include "PassiveAI.h"
#include "Player.h"
#include "ScriptedCreature.h"
#include "ScriptedEscortAI.h"
#include "ScriptedGossip.h"
#include "SpellInfo.h"
#include "SpellScript.h"
#include "SpellScriptLoader.h"

Go to the source code of this file.

Classes

struct  npc_eye_of_acherus
 
class  spell_q12641_death_comes_from_on_high_summon_ghouls
 
class  npc_death_knight_initiate
 
struct  npc_death_knight_initiate::npc_death_knight_initiateAI
 
class  spell_item_gift_of_the_harvester
 
class  spell_q12698_the_gift_that_keeps_on_giving
 
class  npc_scarlet_ghoul
 
struct  npc_scarlet_ghoul::npc_scarlet_ghoulAI
 
class  npc_dkc1_gothik
 
struct  npc_dkc1_gothik::npc_dkc1_gothikAI
 
class  npc_scarlet_cannon
 
struct  npc_scarlet_cannon::npc_scarlet_cannonAI
 
class  npc_unworthy_initiate
 
struct  npc_unworthy_initiate::npc_unworthy_initiateAI
 
class  npc_unworthy_initiate_anchor
 
struct  npc_unworthy_initiate_anchor::npc_unworthy_initiate_anchorAI
 
class  go_acherus_soul_prison
 
class  npc_scarlet_miner_cart
 
struct  npc_scarlet_miner_cart::npc_scarlet_miner_cartAI
 
class  npc_scarlet_miner
 
struct  npc_scarlet_miner::npc_scarlet_minerAI
 
class  go_inconspicuous_mine_car
 
class  spell_death_knight_initiate_visual
 
class  spell_lich_king_vo_blocker
 
class  spell_lich_king_whisper
 

Macros

#define GCD_CAST   1
 

Enumerations

enum  EyeOfAcherusMisc {
  SPELL_THE_EYE_OF_ACHERUS = 51852 ,
  SPELL_EYE_OF_ACHERUS_VISUAL = 51892 ,
  SPELL_EYE_OF_ACHERUS_FLIGHT_BOOST = 51923 ,
  SPELL_EYE_OF_ACHERUS_FLIGHT = 51890 ,
  SPELL_ROOT_SELF = 51860 ,
  EVENT_ANNOUNCE_LAUNCH_TO_DESTINATION = 1 ,
  EVENT_UNROOT = 2 ,
  EVENT_LAUNCH_TOWARDS_DESTINATION = 3 ,
  EVENT_GRANT_CONTROL = 4 ,
  SAY_LAUNCH_TOWARDS_DESTINATION = 0 ,
  SAY_EYE_UNDER_CONTROL = 1 ,
  POINT_NEW_AVALON = 1 ,
  EYE_POINT_DESTINATION_0 = 0 ,
  EYE_POINT_DESTINATION_1 = 1 ,
  EYE_POINT_DESTINATION_2 = 2 ,
  EYE_POINT_DESTINATION_3 = 3
}
 
enum  DeathComesFromOnHigh {
  SUMMON_GHOULS_ON_SCARLET_CRUSADE = 54522 ,
  SPELL_FORGE_CREDIT = 51974 ,
  SPELL_TOWN_HALL_CREDIT = 51977 ,
  SPELL_SCARLET_HOLD_CREDIT = 51980 ,
  SPELL_CHAPEL_CREDIT = 51982 ,
  NPC_NEW_AVALON_FORGE = 28525 ,
  NPC_NEW_AVALON_TOWN_HALL = 28543 ,
  NPC_SCARLET_HOLD = 28542 ,
  NPC_CHAPEL_OF_THE_CRIMSON_FLAME = 28544
}
 
enum  deathsChallenge {
  SPELL_DUEL = 52996 ,
  SPELL_DUEL_VICTORY = 52994 ,
  SPELL_DUEL_FLAG = 52991 ,
  SAY_DUEL = 0 ,
  QUEST_DEATH_CHALLENGE = 12733 ,
  DATA_IN_PROGRESS = 0 ,
  EVENT_SPEAK = 1 ,
  EVENT_DUEL_LOST = 7
}
 
enum  GiftOfTheHarvester {
  NPC_GHOUL = 28845 ,
  MAX_GHOULS = 5 ,
  SPELL_GHOUL_EMERGE = 50142 ,
  SPELL_SUMMON_SCARLET_GHOST = 52505 ,
  SPELL_GHOUL_SUBMERGE = 26234 ,
  EVENT_GHOUL_RESTORE_STATE = 1 ,
  EVENT_GHOUL_CHECK_COMBAT = 2 ,
  EVENT_GHOUL_EMOTE = 3 ,
  EVENT_GHOUL_MOVE_TO_PIT = 4 ,
  SAY_GOTHIK_PIT = 0
}
 
enum  UnworthyInitiate {
  SPELL_SOUL_PRISON_CHAIN = 54612 ,
  SPELL_DK_INITIATE_VISUAL = 51519 ,
  SPELL_ICY_TOUCH = 52372 ,
  SPELL_PLAGUE_STRIKE = 52373 ,
  SPELL_BLOOD_STRIKE = 52374 ,
  SPELL_DEATH_COIL = 52375 ,
  SAY_EVENT_START = 0 ,
  SAY_EVENT_ATTACK = 1 ,
  EVENT_ICY_TOUCH = 1 ,
  EVENT_PLAGUE_STRIKE = 2 ,
  EVENT_BLOOD_STRIKE = 3 ,
  EVENT_DEATH_COIL = 4
}
 
enum  UnworthyInitiatePhase {
  PHASE_CHAINED ,
  PHASE_TO_EQUIP ,
  PHASE_EQUIPING ,
  PHASE_TO_ATTACK ,
  PHASE_ATTACKING
}
 
enum  Spells_SM {
  SPELL_CART_CHECK = 54173 ,
  SPELL_CART_DRAG = 52465
}
 
enum  Says_SM {
  SAY_SCARLET_MINER_0 = 0 ,
  SAY_SCARLET_MINER_1 = 1
}
 
enum  Spells_Cart { SPELL_CART_SUMM = 52463 }
 
enum  spells_lich_king_whisper {
  SPELL_LICH_KING_VO_BLOCKER = 58207 ,
  SPELL_LICHKINGDK001 = 58208 ,
  SPELL_LICHKINGDK002 = 58209 ,
  SPELL_LICHKINGDK003 = 58210 ,
  SPELL_LICHKINGDK004 = 58211 ,
  SPELL_LICHKINGDK005 = 58212 ,
  SPELL_LICHKINGDK006 = 58213 ,
  SPELL_LICHKINGDK007 = 58214 ,
  SPELL_LICHKINGDK008 = 58215 ,
  SPELL_LICHKINGDK009 = 58216 ,
  SPELL_LICHKINGDK010 = 58217 ,
  SPELL_LICHKINGDK011 = 58218 ,
  SPELL_LICHKINGDK012 = 58219 ,
  SPELL_LICHKINGDK013 = 58220 ,
  SPELL_LICHKINGDK014 = 58221 ,
  SPELL_LICHKINGDK015 = 58222 ,
  SPELL_LICHKINGDK016 = 58223
}
 

Functions

void AddSC_the_scarlet_enclave_c1 ()
 

Variables

uint32 acherus_soul_prison [12]
 

Macro Definition Documentation

◆ GCD_CAST

#define GCD_CAST   1

Enumeration Type Documentation

◆ DeathComesFromOnHigh

Enumerator
SUMMON_GHOULS_ON_SCARLET_CRUSADE 
SPELL_FORGE_CREDIT 
SPELL_TOWN_HALL_CREDIT 
SPELL_SCARLET_HOLD_CREDIT 
SPELL_CHAPEL_CREDIT 
NPC_NEW_AVALON_FORGE 
NPC_NEW_AVALON_TOWN_HALL 
NPC_SCARLET_HOLD 
NPC_CHAPEL_OF_THE_CRIMSON_FLAME 
161{
163};
@ SUMMON_GHOULS_ON_SCARLET_CRUSADE
Definition: chapter1.cpp:162

◆ deathsChallenge

Enumerator
SPELL_DUEL 
SPELL_DUEL_VICTORY 
SPELL_DUEL_FLAG 
SAY_DUEL 
QUEST_DEATH_CHALLENGE 
DATA_IN_PROGRESS 
EVENT_SPEAK 
EVENT_DUEL_LOST 
188{
189 SPELL_DUEL = 52996,
190 //SPELL_DUEL_TRIGGERED = 52990,
191 SPELL_DUEL_VICTORY = 52994,
192 SPELL_DUEL_FLAG = 52991,
193
194 SAY_DUEL = 0,
195
196 QUEST_DEATH_CHALLENGE = 12733,
197
199
200 EVENT_SPEAK = 1, // 1 - 6
201 EVENT_DUEL_LOST = 7, // 7 - 8
202};
@ QUEST_DEATH_CHALLENGE
Definition: chapter1.cpp:196
@ SPELL_DUEL_FLAG
Definition: chapter1.cpp:192
@ EVENT_SPEAK
Definition: chapter1.cpp:200
@ SAY_DUEL
Definition: chapter1.cpp:194
@ DATA_IN_PROGRESS
Definition: chapter1.cpp:198
@ SPELL_DUEL
Definition: chapter1.cpp:189
@ EVENT_DUEL_LOST
Definition: chapter1.cpp:201
@ SPELL_DUEL_VICTORY
Definition: chapter1.cpp:191

◆ EyeOfAcherusMisc

Enumerator
SPELL_THE_EYE_OF_ACHERUS 
SPELL_EYE_OF_ACHERUS_VISUAL 
SPELL_EYE_OF_ACHERUS_FLIGHT_BOOST 
SPELL_EYE_OF_ACHERUS_FLIGHT 
SPELL_ROOT_SELF 
EVENT_ANNOUNCE_LAUNCH_TO_DESTINATION 
EVENT_UNROOT 
EVENT_LAUNCH_TOWARDS_DESTINATION 
EVENT_GRANT_CONTROL 
SAY_LAUNCH_TOWARDS_DESTINATION 
SAY_EYE_UNDER_CONTROL 
POINT_NEW_AVALON 
EYE_POINT_DESTINATION_0 
EYE_POINT_DESTINATION_1 
EYE_POINT_DESTINATION_2 
EYE_POINT_DESTINATION_3 
38{
43 SPELL_ROOT_SELF = 51860,
44
46 EVENT_UNROOT = 2,
49
52
54
59};
@ EYE_POINT_DESTINATION_2
Definition: chapter1.cpp:57
@ SPELL_EYE_OF_ACHERUS_VISUAL
Definition: chapter1.cpp:40
@ EYE_POINT_DESTINATION_3
Definition: chapter1.cpp:58
@ EYE_POINT_DESTINATION_0
Definition: chapter1.cpp:55
@ SAY_LAUNCH_TOWARDS_DESTINATION
Definition: chapter1.cpp:50
@ EVENT_GRANT_CONTROL
Definition: chapter1.cpp:48
@ SPELL_THE_EYE_OF_ACHERUS
Definition: chapter1.cpp:39
@ EVENT_LAUNCH_TOWARDS_DESTINATION
Definition: chapter1.cpp:47
@ EYE_POINT_DESTINATION_1
Definition: chapter1.cpp:56
@ SPELL_ROOT_SELF
Definition: chapter1.cpp:43
@ EVENT_ANNOUNCE_LAUNCH_TO_DESTINATION
Definition: chapter1.cpp:45
@ SAY_EYE_UNDER_CONTROL
Definition: chapter1.cpp:51
@ SPELL_EYE_OF_ACHERUS_FLIGHT_BOOST
Definition: chapter1.cpp:41
@ SPELL_EYE_OF_ACHERUS_FLIGHT
Definition: chapter1.cpp:42
@ POINT_NEW_AVALON
Definition: chapter1.cpp:53
@ EVENT_UNROOT
Definition: chapter1.cpp:46

◆ GiftOfTheHarvester

Enumerator
NPC_GHOUL 
MAX_GHOULS 
SPELL_GHOUL_EMERGE 
SPELL_SUMMON_SCARLET_GHOST 
SPELL_GHOUL_SUBMERGE 
EVENT_GHOUL_RESTORE_STATE 
EVENT_GHOUL_CHECK_COMBAT 
EVENT_GHOUL_EMOTE 
EVENT_GHOUL_MOVE_TO_PIT 
SAY_GOTHIK_PIT 
392{
393 NPC_GHOUL = 28845,
394 MAX_GHOULS = 5,
395
396 SPELL_GHOUL_EMERGE = 50142,
398 SPELL_GHOUL_SUBMERGE = 26234,
399
404
406};
@ SAY_GOTHIK_PIT
Definition: chapter1.cpp:405
@ EVENT_GHOUL_MOVE_TO_PIT
Definition: chapter1.cpp:403
@ EVENT_GHOUL_CHECK_COMBAT
Definition: chapter1.cpp:401
@ NPC_GHOUL
Definition: chapter1.cpp:393
@ EVENT_GHOUL_EMOTE
Definition: chapter1.cpp:402
@ MAX_GHOULS
Definition: chapter1.cpp:394
@ SPELL_GHOUL_EMERGE
Definition: chapter1.cpp:396
@ SPELL_GHOUL_SUBMERGE
Definition: chapter1.cpp:398
@ EVENT_GHOUL_RESTORE_STATE
Definition: chapter1.cpp:400
@ SPELL_SUMMON_SCARLET_GHOST
Definition: chapter1.cpp:397

◆ Says_SM

enum Says_SM
Enumerator
SAY_SCARLET_MINER_0 
SAY_SCARLET_MINER_1 
994{
997};
@ SAY_SCARLET_MINER_1
Definition: chapter1.cpp:996
@ SAY_SCARLET_MINER_0
Definition: chapter1.cpp:995

◆ Spells_Cart

Enumerator
SPELL_CART_SUMM 
1140{
1141 SPELL_CART_SUMM = 52463
1142};
@ SPELL_CART_SUMM
Definition: chapter1.cpp:1141

◆ spells_lich_king_whisper

Enumerator
SPELL_LICH_KING_VO_BLOCKER 
SPELL_LICHKINGDK001 
SPELL_LICHKINGDK002 
SPELL_LICHKINGDK003 
SPELL_LICHKINGDK004 
SPELL_LICHKINGDK005 
SPELL_LICHKINGDK006 
SPELL_LICHKINGDK007 
SPELL_LICHKINGDK008 
SPELL_LICHKINGDK009 
SPELL_LICHKINGDK010 
SPELL_LICHKINGDK011 
SPELL_LICHKINGDK012 
SPELL_LICHKINGDK013 
SPELL_LICHKINGDK014 
SPELL_LICHKINGDK015 
SPELL_LICHKINGDK016 
1219{
1221 SPELL_LICHKINGDK001 = 58208,
1222 SPELL_LICHKINGDK002 = 58209,
1223 SPELL_LICHKINGDK003 = 58210,
1224 SPELL_LICHKINGDK004 = 58211,
1225 SPELL_LICHKINGDK005 = 58212,
1226 SPELL_LICHKINGDK006 = 58213,
1227 SPELL_LICHKINGDK007 = 58214,
1228 SPELL_LICHKINGDK008 = 58215,
1229 SPELL_LICHKINGDK009 = 58216,
1230 SPELL_LICHKINGDK010 = 58217,
1231 SPELL_LICHKINGDK011 = 58218,
1232 SPELL_LICHKINGDK012 = 58219,
1233 SPELL_LICHKINGDK013 = 58220,
1234 SPELL_LICHKINGDK014 = 58221,
1235 SPELL_LICHKINGDK015 = 58222,
1236 SPELL_LICHKINGDK016 = 58223
1237};
@ SPELL_LICHKINGDK013
Definition: chapter1.cpp:1233
@ SPELL_LICHKINGDK005
Definition: chapter1.cpp:1225
@ SPELL_LICHKINGDK010
Definition: chapter1.cpp:1230
@ SPELL_LICHKINGDK003
Definition: chapter1.cpp:1223
@ SPELL_LICHKINGDK002
Definition: chapter1.cpp:1222
@ SPELL_LICHKINGDK012
Definition: chapter1.cpp:1232
@ SPELL_LICHKINGDK006
Definition: chapter1.cpp:1226
@ SPELL_LICHKINGDK001
Definition: chapter1.cpp:1221
@ SPELL_LICHKINGDK004
Definition: chapter1.cpp:1224
@ SPELL_LICH_KING_VO_BLOCKER
Definition: chapter1.cpp:1220
@ SPELL_LICHKINGDK011
Definition: chapter1.cpp:1231
@ SPELL_LICHKINGDK016
Definition: chapter1.cpp:1236
@ SPELL_LICHKINGDK009
Definition: chapter1.cpp:1229
@ SPELL_LICHKINGDK008
Definition: chapter1.cpp:1228
@ SPELL_LICHKINGDK015
Definition: chapter1.cpp:1235
@ SPELL_LICHKINGDK007
Definition: chapter1.cpp:1227
@ SPELL_LICHKINGDK014
Definition: chapter1.cpp:1234

◆ Spells_SM

enum Spells_SM
Enumerator
SPELL_CART_CHECK 
SPELL_CART_DRAG 
931{
932 SPELL_CART_CHECK = 54173,
933 SPELL_CART_DRAG = 52465
934};
@ SPELL_CART_DRAG
Definition: chapter1.cpp:933
@ SPELL_CART_CHECK
Definition: chapter1.cpp:932

◆ UnworthyInitiate

Enumerator
SPELL_SOUL_PRISON_CHAIN 
SPELL_DK_INITIATE_VISUAL 
SPELL_ICY_TOUCH 
SPELL_PLAGUE_STRIKE 
SPELL_BLOOD_STRIKE 
SPELL_DEATH_COIL 
SAY_EVENT_START 
SAY_EVENT_ATTACK 
EVENT_ICY_TOUCH 
EVENT_PLAGUE_STRIKE 
EVENT_BLOOD_STRIKE 
EVENT_DEATH_COIL 
644{
647
648 SPELL_ICY_TOUCH = 52372,
649 SPELL_PLAGUE_STRIKE = 52373,
650 SPELL_BLOOD_STRIKE = 52374,
651 SPELL_DEATH_COIL = 52375,
652
653 SAY_EVENT_START = 0,
655
656 EVENT_ICY_TOUCH = 1,
660};
@ SPELL_DEATH_COIL
Definition: chapter1.cpp:651
@ SPELL_PLAGUE_STRIKE
Definition: chapter1.cpp:649
@ EVENT_PLAGUE_STRIKE
Definition: chapter1.cpp:657
@ SPELL_BLOOD_STRIKE
Definition: chapter1.cpp:650
@ SAY_EVENT_START
Definition: chapter1.cpp:653
@ SAY_EVENT_ATTACK
Definition: chapter1.cpp:654
@ SPELL_DK_INITIATE_VISUAL
Definition: chapter1.cpp:646
@ EVENT_ICY_TOUCH
Definition: chapter1.cpp:656
@ EVENT_BLOOD_STRIKE
Definition: chapter1.cpp:658
@ SPELL_ICY_TOUCH
Definition: chapter1.cpp:648
@ SPELL_SOUL_PRISON_CHAIN
Definition: chapter1.cpp:645
@ EVENT_DEATH_COIL
Definition: chapter1.cpp:659

◆ UnworthyInitiatePhase

Enumerator
PHASE_CHAINED 
PHASE_TO_EQUIP 
PHASE_EQUIPING 
PHASE_TO_ATTACK 
PHASE_ATTACKING 
663{
669};
@ PHASE_TO_ATTACK
Definition: chapter1.cpp:667
@ PHASE_EQUIPING
Definition: chapter1.cpp:666
@ PHASE_TO_EQUIP
Definition: chapter1.cpp:665
@ PHASE_CHAINED
Definition: chapter1.cpp:664
@ PHASE_ATTACKING
Definition: chapter1.cpp:668

Function Documentation

◆ AddSC_the_scarlet_enclave_c1()

void AddSC_the_scarlet_enclave_c1 ( )
1301{
1302 // Ours
1308 new npc_scarlet_ghoul();
1309 new npc_dkc1_gothik();
1310 new npc_scarlet_cannon();
1311
1312 // Theirs
1316
1317 new npc_scarlet_miner();
1320
1324}
#define RegisterCreatureAI(ai_name)
Definition: CreatureScript.h:71
#define RegisterSpellScript(spell_script)
Definition: SpellScriptLoader.h:88
Definition: chapter1.cpp:62
Definition: chapter1.cpp:205
Definition: chapter1.cpp:409
Definition: chapter1.cpp:432
Definition: chapter1.cpp:453
Definition: chapter1.cpp:542
Definition: chapter1.cpp:594
Definition: chapter1.cpp:697
Definition: chapter1.cpp:882
Definition: chapter1.cpp:911
Definition: chapter1.cpp:937
Definition: chapter1.cpp:1000
Definition: chapter1.cpp:1145
Definition: chapter1.cpp:1173
Definition: chapter1.cpp:1241
Definition: chapter1.cpp:1272

References RegisterCreatureAI, and RegisterSpellScript.

Referenced by AddEasternKingdomsScripts().

Variable Documentation

◆ acherus_soul_prison

uint32 acherus_soul_prison[12]
Initial value:
=
{
191577,
191580,
191581,
191582,
191583,
191584,
191585,
191586,
191587,
191588,
191589,
191590
}

Referenced by npc_unworthy_initiate::npc_unworthy_initiateAI::UpdateAI().