AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
boss_ahune.cpp File Reference
#include "Containers.h"
#include "CreatureScript.h"
#include "CreatureTextMgr.h"
#include "GameObject.h"
#include "GameObjectAI.h"
#include "GameObjectScript.h"
#include "Group.h"
#include "InstanceScript.h"
#include "LFGMgr.h"
#include "Map.h"
#include "MotionMaster.h"
#include "ObjectAccessor.h"
#include "Player.h"
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "ScriptedGossip.h"
#include "SpellAuraEffects.h"
#include "SpellInfo.h"
#include "SpellScript.h"
#include "SpellScriptLoader.h"
#include "TemporarySummon.h"
#include "the_slave_pens.h"

Go to the source code of this file.

Classes

struct  boss_ahune
 
struct  npc_frozen_core
 
struct  npc_ahune_bunny
 
struct  npc_earthen_ring_flamecaller
 
struct  npc_ahune_ice_spear_bunny
 
struct  go_ahune_ice_spear
 
struct  go_ahune_ice_stone
 
class  spell_ahune_synch_health
 
class  spell_summoning_rhyme_aura
 
class  spell_summon_ice_spear_delayer
 
class  spell_ice_spear_control_aura
 
class  spell_ice_spear_target_picker
 
class  spell_slippery_floor_periodic
 
class  spell_ahune_spanky_hands
 
class  spell_ahune_minion_despawner
 
class  spell_ice_bombardment_dest_picker
 

Enumerations

enum  Spells {
  SPELL_SYNCH_HEALTH = 46430 ,
  SPELL_AHUNES_SHIELD = 45954 ,
  SPELL_STAY_SUBMERGED = 46981 ,
  SPELL_AHUNE_SELF_STUN = 46416 ,
  SPELL_AHUNE_ACHIEVEMENT = 62043 ,
  SPELL_AHUNE_SPANKY_HANDS = 46146 ,
  SPELL_COLD_SLAP = 46145 ,
  SPELL_RESURFACE = 46402 ,
  SPELL_SUBMERGED = 37751 ,
  SPELL_STAND = 37752 ,
  SPELL_BIRTH = 37745 ,
  SPELL_FIND_OPENING_VISUAL = 45964 ,
  SPELL_FIND_OPENING_BEAM_END = 46333 ,
  SPELL_FIND_OPENING_TRIGGER = 46341 ,
  SPELL_FIND_OPENING_CHANNEL = 46345 ,
  SPELL_BONFIRE_VISUAL = 46339 ,
  SPELL_FOUND_OPENING = 46421 ,
  SPELL_SUMMON_COLDWEAVE = 46143 ,
  SPELL_SUMMON_FROSTWIND = 46382 ,
  SPELL_SUMMON_HAILSTONE = 46176 ,
  SPELL_SUMMONING_VISUAL_1 = 45937 ,
  SPELL_SUMMONING_RHYME_AURA = 45926 ,
  SPELL_SUMMONING_RHYME_BONFIRE = 45930 ,
  SPELL_FORCE_WHISP_FLIGHT = 46603 ,
  SPELL_SHAMANS_LOOK_FOR_OPENING = 46422 ,
  SPELL_CLOSE_OPENING_VISUAL = 46236 ,
  SPELL_ICE_BOMBARD = 46397 ,
  SPELL_ICE_BOMBARDMENT_DEST_PICKER = 46398 ,
  SPELL_ICE_BOMBARDMENT = 46396 ,
  SPELL_ICE_SPEAR_KNOCKBACK = 46360 ,
  SPELL_SUMMON_ICE_SPEAR_GO = 46369 ,
  SPELL_ICE_SPEAR_DELAY = 46878 ,
  SPELL_ICE_SPEAR_VISUAL = 75498 ,
  SPELL_SLIPPERY_FLOOR_AMBIENT = 46314 ,
  SPELL_SLIPPERY_FLOOR_PERIODIC = 46320 ,
  SPELL_SLIPPERY_FLOOR_SLIP = 45947 ,
  SPELL_SLIPPERY_FLOOR_YOU_SLIPPED = 45946 ,
  SPELL_ICE_SPEAR_CONTROL_AURA = 46371 ,
  SPELL_FROZEN_CORE_GETS_HIT = 46810 ,
  SPELL_IS_DEAD_CHECK = 61976 ,
  SPELL_ICE_SPEAR_TARGET_PICKER = 46372 ,
  SPELL_SUMMON_ICE_SPEAR_BUNNY = 46359 ,
  SPELL_SUICIDE = 45254 ,
  SPELL_SUMMON_LOOT_MISSILE = 45941 ,
  SPELL_MINION_DESPAWNER = 46843 ,
  SPELL_GHOST_DISGUISE = 46786
}
 
enum  Emotes {
  EMOTE_EARTHEN_ASSAULT = 0 ,
  EMOTE_RETREAT = 0 ,
  EMOTE_RESURFACE = 1
}
 
enum  Says {
  SAY_PLAYER_TEXT_1 = 0 ,
  SAY_PLAYER_TEXT_2 = 1 ,
  SAY_PLAYER_TEXT_3 = 2
}
 
enum  Events {
  EVENT_EMERGE = 1 ,
  EVENT_INITIAL_EMERGE ,
  EVENT_SYNCH_HEALTH ,
  EVENT_LOOKFOROPENING_0 ,
  EVENT_LOOKFOROPENING_1 ,
  EVENT_LOOKFOROPENING_2 ,
  EVENT_SUMMON_HAILSTONE ,
  EVENT_SUMMON_COLDWEAVE ,
  EVENT_SUMMON_FROSTWIND ,
  EVENT_SUMMON_AHUNE ,
  EVENT_CLOSE_OPENING ,
  EVENT_AHUNE_PHASE_ONE ,
  EVENT_AHUNE_PHASE_TWO ,
  EVENT_START_LOOKING_FOR_OPENING ,
  EVENT_STOP_LOOKING_FOR_OPENING
}
 
enum  Actions {
  ACTION_START_EVENT = -2574500 ,
  ACTION_STOP_EVENT = -2574501 ,
  ACTION_AHUNE_RETREAT = -2586500 ,
  ACTION_AHUNE_RESURFACE = -2586501 ,
  ACTION_EMOTE_RESURFACE = -2575400
}
 
enum  Phases {
  PHASE_ONE = 0 ,
  PHASE_TWO = 1
}
 
enum  Points {
  POINT_FLAMECALLER_000 ,
  POINT_FLAMECALLER_001 ,
  POINT_FLAMECALLER_002
}
 
enum  Misc {
  MAX_FLAMECALLERS = 3 ,
  QUEST_SUMMON_AHUNE = 11691 ,
  ITEM_MAGMA_TOTEM = 34953
}
 

Functions

void AddSC_boss_ahune ()
 

Variables

Position const SummonPositions []
 
Position const FlameCallerSpots []
 

Enumeration Type Documentation

◆ Actions

enum Actions
Enumerator
ACTION_START_EVENT 
ACTION_STOP_EVENT 
ACTION_AHUNE_RETREAT 
ACTION_AHUNE_RESURFACE 
ACTION_EMOTE_RESURFACE 
136{
137 ACTION_START_EVENT = -2574500,
138 ACTION_STOP_EVENT = -2574501,
139 ACTION_AHUNE_RETREAT = -2586500,
140 ACTION_AHUNE_RESURFACE = -2586501,
141 ACTION_EMOTE_RESURFACE = -2575400
142};
@ ACTION_START_EVENT
Definition boss_ahune.cpp:137
@ ACTION_STOP_EVENT
Definition boss_ahune.cpp:138
@ ACTION_AHUNE_RESURFACE
Definition boss_ahune.cpp:140
@ ACTION_AHUNE_RETREAT
Definition boss_ahune.cpp:139
@ ACTION_EMOTE_RESURFACE
Definition boss_ahune.cpp:141

◆ Emotes

enum Emotes
Enumerator
EMOTE_EARTHEN_ASSAULT 
EMOTE_RETREAT 
EMOTE_RESURFACE 
103{
105 EMOTE_RETREAT = 0,
107};
@ EMOTE_EARTHEN_ASSAULT
Definition boss_ahune.cpp:104
@ EMOTE_RETREAT
Definition boss_ahune.cpp:105
@ EMOTE_RESURFACE
Definition boss_ahune.cpp:106

◆ Events

enum Events
Enumerator
EVENT_EMERGE 
EVENT_INITIAL_EMERGE 
EVENT_SYNCH_HEALTH 
EVENT_LOOKFOROPENING_0 
EVENT_LOOKFOROPENING_1 
EVENT_LOOKFOROPENING_2 
EVENT_SUMMON_HAILSTONE 
EVENT_SUMMON_COLDWEAVE 
EVENT_SUMMON_FROSTWIND 
EVENT_SUMMON_AHUNE 
EVENT_CLOSE_OPENING 
EVENT_AHUNE_PHASE_ONE 
EVENT_AHUNE_PHASE_TWO 
EVENT_START_LOOKING_FOR_OPENING 
EVENT_STOP_LOOKING_FOR_OPENING 
117{
118 EVENT_EMERGE = 1,
133};
@ EVENT_EMERGE
Definition boss_ahune.cpp:118
@ EVENT_SUMMON_FROSTWIND
Definition boss_ahune.cpp:126
@ EVENT_SUMMON_AHUNE
Definition boss_ahune.cpp:127
@ EVENT_SUMMON_COLDWEAVE
Definition boss_ahune.cpp:125
@ EVENT_AHUNE_PHASE_ONE
Definition boss_ahune.cpp:129
@ EVENT_SUMMON_HAILSTONE
Definition boss_ahune.cpp:124
@ EVENT_CLOSE_OPENING
Definition boss_ahune.cpp:128
@ EVENT_INITIAL_EMERGE
Definition boss_ahune.cpp:119
@ EVENT_STOP_LOOKING_FOR_OPENING
Definition boss_ahune.cpp:132
@ EVENT_LOOKFOROPENING_0
Definition boss_ahune.cpp:121
@ EVENT_LOOKFOROPENING_2
Definition boss_ahune.cpp:123
@ EVENT_LOOKFOROPENING_1
Definition boss_ahune.cpp:122
@ EVENT_AHUNE_PHASE_TWO
Definition boss_ahune.cpp:130
@ EVENT_SYNCH_HEALTH
Definition boss_ahune.cpp:120
@ EVENT_START_LOOKING_FOR_OPENING
Definition boss_ahune.cpp:131

◆ Misc

enum Misc
Enumerator
MAX_FLAMECALLERS 
QUEST_SUMMON_AHUNE 
ITEM_MAGMA_TOTEM 
158{
160 QUEST_SUMMON_AHUNE = 11691,
161 ITEM_MAGMA_TOTEM = 34953
162};
@ MAX_FLAMECALLERS
Definition boss_ahune.cpp:159
@ ITEM_MAGMA_TOTEM
Definition boss_ahune.cpp:161
@ QUEST_SUMMON_AHUNE
Definition boss_ahune.cpp:160

◆ Phases

enum Phases
Enumerator
PHASE_ONE 
PHASE_TWO 
145{
146 PHASE_ONE = 0,
147 PHASE_TWO = 1
148};
@ PHASE_ONE
Definition boss_ahune.cpp:146
@ PHASE_TWO
Definition boss_ahune.cpp:147

◆ Points

enum Points
Enumerator
POINT_FLAMECALLER_000 
POINT_FLAMECALLER_001 
POINT_FLAMECALLER_002 
151{
155};
@ POINT_FLAMECALLER_000
Definition boss_ahune.cpp:152
@ POINT_FLAMECALLER_002
Definition boss_ahune.cpp:154
@ POINT_FLAMECALLER_001
Definition boss_ahune.cpp:153

◆ Says

enum Says
Enumerator
SAY_PLAYER_TEXT_1 
SAY_PLAYER_TEXT_2 
SAY_PLAYER_TEXT_3 
110{
114};
@ SAY_PLAYER_TEXT_1
Definition boss_ahune.cpp:111
@ SAY_PLAYER_TEXT_3
Definition boss_ahune.cpp:113
@ SAY_PLAYER_TEXT_2
Definition boss_ahune.cpp:112

◆ Spells

enum Spells
Enumerator
SPELL_SYNCH_HEALTH 
SPELL_AHUNES_SHIELD 
SPELL_STAY_SUBMERGED 
SPELL_AHUNE_SELF_STUN 
SPELL_AHUNE_ACHIEVEMENT 
SPELL_AHUNE_SPANKY_HANDS 
SPELL_COLD_SLAP 
SPELL_RESURFACE 
SPELL_SUBMERGED 
SPELL_STAND 
SPELL_BIRTH 
SPELL_FIND_OPENING_VISUAL 
SPELL_FIND_OPENING_BEAM_END 
SPELL_FIND_OPENING_TRIGGER 
SPELL_FIND_OPENING_CHANNEL 
SPELL_BONFIRE_VISUAL 
SPELL_FOUND_OPENING 
SPELL_SUMMON_COLDWEAVE 
SPELL_SUMMON_FROSTWIND 
SPELL_SUMMON_HAILSTONE 
SPELL_SUMMONING_VISUAL_1 
SPELL_SUMMONING_RHYME_AURA 
SPELL_SUMMONING_RHYME_BONFIRE 
SPELL_FORCE_WHISP_FLIGHT 
SPELL_SHAMANS_LOOK_FOR_OPENING 
SPELL_CLOSE_OPENING_VISUAL 
SPELL_ICE_BOMBARD 
SPELL_ICE_BOMBARDMENT_DEST_PICKER 
SPELL_ICE_BOMBARDMENT 
SPELL_ICE_SPEAR_KNOCKBACK 
SPELL_SUMMON_ICE_SPEAR_GO 
SPELL_ICE_SPEAR_DELAY 
SPELL_ICE_SPEAR_VISUAL 
SPELL_SLIPPERY_FLOOR_AMBIENT 
SPELL_SLIPPERY_FLOOR_PERIODIC 
SPELL_SLIPPERY_FLOOR_SLIP 
SPELL_SLIPPERY_FLOOR_YOU_SLIPPED 
SPELL_ICE_SPEAR_CONTROL_AURA 
SPELL_FROZEN_CORE_GETS_HIT 
SPELL_IS_DEAD_CHECK 
SPELL_ICE_SPEAR_TARGET_PICKER 
SPELL_SUMMON_ICE_SPEAR_BUNNY 
SPELL_SUICIDE 
SPELL_SUMMON_LOOT_MISSILE 
SPELL_MINION_DESPAWNER 
SPELL_GHOST_DISGUISE 
42{
43 // Ahune
44 SPELL_SYNCH_HEALTH = 46430,
45 SPELL_AHUNES_SHIELD = 45954,
50 SPELL_COLD_SLAP = 46145,
51 SPELL_RESURFACE = 46402,
52 SPELL_SUBMERGED = 37751,
53 SPELL_STAND = 37752,
54 SPELL_BIRTH = 37745,
55
56 //Earther Ring Flamecaller
62 SPELL_FOUND_OPENING = 46421,
63
64 //Ahune Bunny
74 SPELL_ICE_BOMBARD = 46397,
77
78 // Ice Spear
83
84 // Slippery Floor
89
90 // Frozen Core
93 SPELL_IS_DEAD_CHECK = 61976, // NYI
96 SPELL_SUICIDE = 45254,
100};
@ SPELL_SUMMONING_RHYME_AURA
Definition boss_ahune.cpp:69
@ SPELL_BIRTH
Definition boss_ahune.cpp:54
@ SPELL_SUMMON_LOOT_MISSILE
Definition boss_ahune.cpp:97
@ SPELL_FIND_OPENING_BEAM_END
Definition boss_ahune.cpp:58
@ SPELL_ICE_SPEAR_CONTROL_AURA
Definition boss_ahune.cpp:91
@ SPELL_FROZEN_CORE_GETS_HIT
Definition boss_ahune.cpp:92
@ SPELL_AHUNES_SHIELD
Definition boss_ahune.cpp:45
@ SPELL_AHUNE_SELF_STUN
Definition boss_ahune.cpp:47
@ SPELL_SUBMERGED
Definition boss_ahune.cpp:52
@ SPELL_COLD_SLAP
Definition boss_ahune.cpp:50
@ SPELL_SLIPPERY_FLOOR_YOU_SLIPPED
Definition boss_ahune.cpp:88
@ SPELL_IS_DEAD_CHECK
Definition boss_ahune.cpp:93
@ SPELL_MINION_DESPAWNER
Definition boss_ahune.cpp:98
@ SPELL_ICE_SPEAR_VISUAL
Definition boss_ahune.cpp:82
@ SPELL_FIND_OPENING_VISUAL
Definition boss_ahune.cpp:57
@ SPELL_SUMMONING_VISUAL_1
Definition boss_ahune.cpp:68
@ SPELL_RESURFACE
Definition boss_ahune.cpp:51
@ SPELL_ICE_SPEAR_TARGET_PICKER
Definition boss_ahune.cpp:94
@ SPELL_SUMMON_ICE_SPEAR_GO
Definition boss_ahune.cpp:80
@ SPELL_SUMMON_ICE_SPEAR_BUNNY
Definition boss_ahune.cpp:95
@ SPELL_ICE_BOMBARD
Definition boss_ahune.cpp:74
@ SPELL_STAY_SUBMERGED
Definition boss_ahune.cpp:46
@ SPELL_FIND_OPENING_CHANNEL
Definition boss_ahune.cpp:60
@ SPELL_ICE_SPEAR_KNOCKBACK
Definition boss_ahune.cpp:79
@ SPELL_SLIPPERY_FLOOR_SLIP
Definition boss_ahune.cpp:87
@ SPELL_STAND
Definition boss_ahune.cpp:53
@ SPELL_ICE_BOMBARDMENT
Definition boss_ahune.cpp:76
@ SPELL_FOUND_OPENING
Definition boss_ahune.cpp:62
@ SPELL_FORCE_WHISP_FLIGHT
Definition boss_ahune.cpp:71
@ SPELL_SUMMONING_RHYME_BONFIRE
Definition boss_ahune.cpp:70
@ SPELL_SLIPPERY_FLOOR_PERIODIC
Definition boss_ahune.cpp:86
@ SPELL_SUICIDE
Definition boss_ahune.cpp:96
@ SPELL_SYNCH_HEALTH
Definition boss_ahune.cpp:44
@ SPELL_SHAMANS_LOOK_FOR_OPENING
Definition boss_ahune.cpp:72
@ SPELL_SLIPPERY_FLOOR_AMBIENT
Definition boss_ahune.cpp:85
@ SPELL_BONFIRE_VISUAL
Definition boss_ahune.cpp:61
@ SPELL_AHUNE_ACHIEVEMENT
Definition boss_ahune.cpp:48
@ SPELL_SUMMON_FROSTWIND
Definition boss_ahune.cpp:66
@ SPELL_ICE_SPEAR_DELAY
Definition boss_ahune.cpp:81
@ SPELL_GHOST_DISGUISE
Definition boss_ahune.cpp:99
@ SPELL_AHUNE_SPANKY_HANDS
Definition boss_ahune.cpp:49
@ SPELL_SUMMON_COLDWEAVE
Definition boss_ahune.cpp:65
@ SPELL_FIND_OPENING_TRIGGER
Definition boss_ahune.cpp:59
@ SPELL_ICE_BOMBARDMENT_DEST_PICKER
Definition boss_ahune.cpp:75
@ SPELL_SUMMON_HAILSTONE
Definition boss_ahune.cpp:67
@ SPELL_CLOSE_OPENING_VISUAL
Definition boss_ahune.cpp:73

Function Documentation

◆ AddSC_boss_ahune()

void AddSC_boss_ahune ( )
909{
926}
#define RegisterGameObjectAI(ai_name)
Definition GameObjectScript.h:77
#define RegisterSpellScript(spell_script)
Definition SpellScriptLoader.h:88
Definition boss_ahune.cpp:871
Definition boss_ahune.cpp:849
Definition boss_ahune.cpp:684
Definition boss_ahune.cpp:888
Definition boss_ahune.cpp:769
Definition boss_ahune.cpp:791
Definition boss_ahune.cpp:823
Definition boss_ahune.cpp:745
Definition boss_ahune.cpp:700
Definition boss_ahune.cpp:181
Definition boss_ahune.cpp:636
Definition boss_ahune.cpp:658
Definition boss_ahune.cpp:359
Definition boss_ahune.cpp:611
Definition boss_ahune.cpp:494
Definition boss_ahune.cpp:289
#define RegisterTheSlavePensCreatureAI(ai_name)
Definition the_slave_pens.h:86

References RegisterGameObjectAI, RegisterSpellScript, and RegisterTheSlavePensCreatureAI.

Referenced by AddOutlandScripts().

Variable Documentation

◆ FlameCallerSpots

Position const FlameCallerSpots[]
Initial value:
=
{
{ -145.2233f, -137.5543f, -1.59056f, 5.427049f },
{ -137.4383f, -136.4050f, -1.72384f, 5.336747f },
{ -129.0413f, -132.1494f, -2.09285f, 5.460842f }
}
174{
175 { -145.2233f, -137.5543f, -1.59056f, 5.427049f },
176 { -137.4383f, -136.4050f, -1.72384f, 5.336747f },
177 { -129.0413f, -132.1494f, -2.09285f, 5.460842f }
178};

Referenced by npc_ahune_bunny::DoAction(), and npc_earthen_ring_flamecaller::MovementInform().

◆ SummonPositions

Position const SummonPositions[]
Initial value:
=
{
{ -99.1021f, -233.7526f, -1.22307f, 1.588250f },
{ -98.0151f, -230.4555f, -1.21089f, 1.797689f },
{ -143.172f, -147.6801f, -3.16113f, 4.852015f },
{ -134.304f, -145.7803f, -1.70332f, 4.677482f },
{ -125.036f, -144.2065f, -1.91660f, 4.991642f }
}
165{
166 { -99.1021f, -233.7526f, -1.22307f, 1.588250f }, // Ahune
167 { -98.0151f, -230.4555f, -1.21089f, 1.797689f }, // Frozen Core
168 { -143.172f, -147.6801f, -3.16113f, 4.852015f }, // Bonfire Bunny 000
169 { -134.304f, -145.7803f, -1.70332f, 4.677482f }, // Bonfire Bunny 001
170 { -125.036f, -144.2065f, -1.91660f, 4.991642f } // Bonfire Bunny 002
171};

Referenced by npc_ahune_bunny::DoAction(), and npc_ahune_bunny::UpdateAI().