AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
boss_janalai.cpp File Reference
#include "CellImpl.h"
#include "CreatureScript.h"
#include "GridNotifiers.h"
#include "GridNotifiersImpl.h"
#include "PassiveAI.h"
#include "ScriptedCreature.h"
#include "SpellScript.h"
#include "SpellScriptLoader.h"
#include "zulaman.h"

Go to the source code of this file.

Classes

struct  boss_janalai
 
struct  npc_janalai_hatcher
 
class  spell_summon_all_players_dummy
 

Enumerations

enum  Yells {
  SAY_AGGRO = 0 ,
  SAY_FIRE_BOMBS = 1 ,
  SAY_SUMMON_HATCHER = 2 ,
  SAY_ALL_EGGS = 3 ,
  SAY_BERSERK = 4 ,
  SAY_SLAY = 5 ,
  SAY_DEATH = 6 ,
  SAY_EVENT_STRANGERS = 7 ,
  SAY_EVENT_FRIENDS = 8
}
 
enum  Spells {
  SPELL_FLAME_BREATH = 43140 ,
  SPELL_FIRE_WALL = 43113 ,
  SPELL_ENRAGE = 44779 ,
  SPELL_SUMMON_PLAYERS_DUMMY = 43096 ,
  SPELL_SUMMON_PLAYERS = 43097 ,
  SPELL_TELE_TO_CENTER = 43098 ,
  SPELL_HATCH_ALL = 43144 ,
  SPELL_BERSERK = 45078 ,
  SPELL_FIRE_BOMB_CHANNEL = 42621 ,
  SPELL_FIRE_BOMB_THROW = 42628 ,
  SPELL_FIRE_BOMB_DUMMY = 42629 ,
  SPELL_FIRE_BOMB_DAMAGE = 42630 ,
  SPELL_HATCH_EGG_ALL = 42471 ,
  SPELL_HATCH_EGG_SINGULAR = 43734 ,
  SPELL_SUMMON_HATCHLING = 42493 ,
  SPELL_FLAMEBUFFET = 43299
}
 
enum  Creatures {
  NPC_AMANI_HATCHER = 23818 ,
  NPC_EGG = 23817 ,
  NPC_FIRE_BOMB = 23920
}
 
enum  HatchActions {
  HATCH_RESET = 0 ,
  HATCH_ALL = 1
}
 
enum  Misc {
  MAX_BOMB_COUNT = 40 ,
  GROUP_ENRAGE = 1 ,
  GROUP_HATCHING = 2 ,
  DATA_ALL_EGGS_HATCHED = 0
}
 

Functions

void AddSC_boss_janalai ()
 

Variables

const int area_dx = 44
 
const int area_dy = 51
 
const Position janalainPos = {-33.93f, 1149.27f, 19.0f, 0.0f}
 
const Position fireWallCoords [4]
 
const Position hatcherway [2][5]
 

Enumeration Type Documentation

◆ Creatures

enum Creatures
Enumerator
NPC_AMANI_HATCHER 
NPC_EGG 
NPC_FIRE_BOMB 
69{
70 NPC_AMANI_HATCHER = 23818,
71 NPC_EGG = 23817,
72 NPC_FIRE_BOMB = 23920
73};
@ NPC_EGG
Definition boss_janalai.cpp:71
@ NPC_AMANI_HATCHER
Definition boss_janalai.cpp:70
@ NPC_FIRE_BOMB
Definition boss_janalai.cpp:72

◆ HatchActions

Enumerator
HATCH_RESET 
HATCH_ALL 
107{
108 HATCH_RESET = 0,
109 HATCH_ALL = 1
110};
@ HATCH_ALL
Definition boss_janalai.cpp:109
@ HATCH_RESET
Definition boss_janalai.cpp:108

◆ Misc

enum Misc
Enumerator
MAX_BOMB_COUNT 
GROUP_ENRAGE 
GROUP_HATCHING 
DATA_ALL_EGGS_HATCHED 
113{
114 MAX_BOMB_COUNT = 40,
115 GROUP_ENRAGE = 1,
116 GROUP_HATCHING = 2,
118};
@ DATA_ALL_EGGS_HATCHED
Definition boss_janalai.cpp:117
@ MAX_BOMB_COUNT
Definition boss_janalai.cpp:114
@ GROUP_ENRAGE
Definition boss_janalai.cpp:115
@ GROUP_HATCHING
Definition boss_janalai.cpp:116

◆ Spells

enum Spells
Enumerator
SPELL_FLAME_BREATH 
SPELL_FIRE_WALL 
SPELL_ENRAGE 
SPELL_SUMMON_PLAYERS_DUMMY 
SPELL_SUMMON_PLAYERS 
SPELL_TELE_TO_CENTER 
SPELL_HATCH_ALL 
SPELL_BERSERK 
SPELL_FIRE_BOMB_CHANNEL 
SPELL_FIRE_BOMB_THROW 
SPELL_FIRE_BOMB_DUMMY 
SPELL_FIRE_BOMB_DAMAGE 
SPELL_HATCH_EGG_ALL 
SPELL_HATCH_EGG_SINGULAR 
SPELL_SUMMON_HATCHLING 
SPELL_FLAMEBUFFET 
42{
43 // Jan'alai
44 SPELL_FLAME_BREATH = 43140,
45 SPELL_FIRE_WALL = 43113,
46 SPELL_ENRAGE = 44779,
49 SPELL_TELE_TO_CENTER = 43098, // coord
50 SPELL_HATCH_ALL = 43144,
51 SPELL_BERSERK = 45078,
52
53 // Fire Bob Spells
54 SPELL_FIRE_BOMB_CHANNEL = 42621, // last forever
55 SPELL_FIRE_BOMB_THROW = 42628, // throw visual
56 SPELL_FIRE_BOMB_DUMMY = 42629, // bomb visual
58
59 // Hatcher Spells
60 SPELL_HATCH_EGG_ALL = 42471,
63
64 // Hatchling Spells
65 SPELL_FLAMEBUFFET = 43299
66};
@ SPELL_SUMMON_HATCHLING
Definition boss_janalai.cpp:62
@ SPELL_HATCH_EGG_ALL
Definition boss_janalai.cpp:60
@ SPELL_ENRAGE
Definition boss_janalai.cpp:46
@ SPELL_FIRE_WALL
Definition boss_janalai.cpp:45
@ SPELL_HATCH_ALL
Definition boss_janalai.cpp:50
@ SPELL_FLAME_BREATH
Definition boss_janalai.cpp:44
@ SPELL_HATCH_EGG_SINGULAR
Definition boss_janalai.cpp:61
@ SPELL_FIRE_BOMB_CHANNEL
Definition boss_janalai.cpp:54
@ SPELL_FIRE_BOMB_DUMMY
Definition boss_janalai.cpp:56
@ SPELL_FLAMEBUFFET
Definition boss_janalai.cpp:65
@ SPELL_TELE_TO_CENTER
Definition boss_janalai.cpp:49
@ SPELL_SUMMON_PLAYERS
Definition boss_janalai.cpp:48
@ SPELL_SUMMON_PLAYERS_DUMMY
Definition boss_janalai.cpp:47
@ SPELL_BERSERK
Definition boss_janalai.cpp:51
@ SPELL_FIRE_BOMB_THROW
Definition boss_janalai.cpp:55
@ SPELL_FIRE_BOMB_DAMAGE
Definition boss_janalai.cpp:57

◆ Yells

enum Yells
Enumerator
SAY_AGGRO 
SAY_FIRE_BOMBS 
SAY_SUMMON_HATCHER 
SAY_ALL_EGGS 
SAY_BERSERK 
SAY_SLAY 
SAY_DEATH 
SAY_EVENT_STRANGERS 
SAY_EVENT_FRIENDS 
29{
30 SAY_AGGRO = 0,
33 SAY_ALL_EGGS = 3,
34 SAY_BERSERK = 4,
35 SAY_SLAY = 5,
36 SAY_DEATH = 6,
39};
@ SAY_DEATH
Definition boss_janalai.cpp:36
@ SAY_EVENT_STRANGERS
Definition boss_janalai.cpp:37
@ SAY_AGGRO
Definition boss_janalai.cpp:30
@ SAY_EVENT_FRIENDS
Definition boss_janalai.cpp:38
@ SAY_FIRE_BOMBS
Definition boss_janalai.cpp:31
@ SAY_SLAY
Definition boss_janalai.cpp:35
@ SAY_SUMMON_HATCHER
Definition boss_janalai.cpp:32
@ SAY_ALL_EGGS
Definition boss_janalai.cpp:33
@ SAY_BERSERK
Definition boss_janalai.cpp:34

Function Documentation

◆ AddSC_boss_janalai()

void AddSC_boss_janalai ( )
484{
488}
#define RegisterSpellScript(spell_script)
Definition SpellScriptLoader.h:88
Definition boss_janalai.cpp:454
Definition boss_janalai.cpp:121
Definition boss_janalai.cpp:376
#define RegisterZulAmanCreatureAI(ai_name)
Definition zulaman.h:112

References RegisterSpellScript, and RegisterZulAmanCreatureAI.

Referenced by AddEasternKingdomsScripts().

Variable Documentation

◆ area_dx

const int area_dx = 44

◆ area_dy

const int area_dy = 51

◆ fireWallCoords

const Position fireWallCoords[4]
Initial value:
=
{
{-10.13f, 1149.27f, 19, 3.1415f},
{-33.93f, 1123.90f, 19, 0.5f * 3.1415f},
{-54.80f, 1150.08f, 19, 0.0f},
{-33.93f, 1175.68f, 19, 1.5f * 3.1415f}
}
81{
82 {-10.13f, 1149.27f, 19, 3.1415f},
83 {-33.93f, 1123.90f, 19, 0.5f * 3.1415f},
84 {-54.80f, 1150.08f, 19, 0.0f},
85 {-33.93f, 1175.68f, 19, 1.5f * 3.1415f}
86};

Referenced by boss_janalai::FireWall().

◆ hatcherway

const Position hatcherway[2][5]
Initial value:
=
{
{
{-87.46f, 1170.09f, 6.0f, 0.0f},
{-74.41f, 1154.75f, 6.0f, 0.0f},
{-52.74f, 1153.32f, 19.0f, 0.0f},
{-33.37f, 1172.46f, 19.0f, 0.0f},
{-33.09f, 1203.87f, 19.0f, 0.0f}
},
{
{-86.57f, 1132.85f, 6.0f, 0.0f},
{-73.94f, 1146.00f, 6.0f, 0.0f},
{-52.29f, 1146.51f, 19.0f, 0.0f},
{-33.57f, 1125.72f, 19.0f, 0.0f},
{-34.29f, 1095.22f, 19.0f, 0.0f}
}
}
89{
90 {
91 {-87.46f, 1170.09f, 6.0f, 0.0f},
92 {-74.41f, 1154.75f, 6.0f, 0.0f},
93 {-52.74f, 1153.32f, 19.0f, 0.0f},
94 {-33.37f, 1172.46f, 19.0f, 0.0f},
95 {-33.09f, 1203.87f, 19.0f, 0.0f}
96 },
97 {
98 {-86.57f, 1132.85f, 6.0f, 0.0f},
99 {-73.94f, 1146.00f, 6.0f, 0.0f},
100 {-52.29f, 1146.51f, 19.0f, 0.0f},
101 {-33.57f, 1125.72f, 19.0f, 0.0f},
102 {-34.29f, 1095.22f, 19.0f, 0.0f}
103 }
104};

Referenced by boss_janalai::JustEngagedWith(), boss_janalai::JustSummoned(), npc_janalai_hatcher::MoveToNewWaypoint(), and npc_janalai_hatcher::Reset().

◆ janalainPos

const Position janalainPos = {-33.93f, 1149.27f, 19.0f, 0.0f}
78{-33.93f, 1149.27f, 19.0f, 0.0f};

Referenced by boss_janalai::Reset(), and boss_janalai::StartBombing().