Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
karazhan.cpp File Reference
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "ScriptedGossip.h"
#include "karazhan.h"
#include "ScriptedEscortAI.h"
#include "Player.h"
Include dependency graph for karazhan.cpp:

Go to the source code of this file.

Classes

struct  Dialogue
class  npc_barnes
struct  npc_barnes::npc_barnesAI
class  npc_berthold
class  npc_image_of_medivh
struct  npc_image_of_medivh::npc_image_of_medivhAI

Macros

#define EMOTE_DIALOG_MEDIVH_7   "begins to cast a spell of great power, weaving his own essence into the magic."
#define GOSSIP_ITEM_TELEPORT   "Teleport me to the Guardian's Library"
#define GOSSIP_READY   "I'm not an actor."
#define OZ_GM_GOSSIP1   "[GM] Change event to EVENT_OZ"
#define OZ_GM_GOSSIP2   "[GM] Change event to EVENT_HOOD"
#define OZ_GM_GOSSIP3   "[GM] Change event to EVENT_RAJ"
#define OZ_GOSSIP1   "I'm not an actor."
#define OZ_GOSSIP2   "Ok, I'll give it a try, then."
#define RAJ_GOSSIP1   "I've never been more ready."
#define SAY_DIALOG_ARCANAGOS_2   "Your dabbling in the arcane has gone too far, Medivh. You've attracted the attention of powers beyond your understanding. You must leave Karazhan at once!"
#define SAY_DIALOG_ARCANAGOS_4   "A dark power seeks to use you, Medivh! If you stay, dire days will follow. You must hurry, we don't have much time!"
#define SAY_DIALOG_ARCANAGOS_6   "You leave me no alternative. I will stop you by force if you won't listen to reason!"
#define SAY_DIALOG_ARCANAGOS_8   "What have you done, wizard? This cannot be! I'm burning from... within!"
#define SAY_DIALOG_MEDIVH_1   "You've got my attention, dragon. You'll find I'm not as easily scared as the villagers below."
#define SAY_DIALOG_MEDIVH_3   "You dare challenge me at my own dwelling? Your arrogance is astounding, even for a dragon!"
#define SAY_DIALOG_MEDIVH_5   "I do not know what you speak of, dragon... but I will not be bullied by this display of insolence. I'll leave Karazhan when it suits me!"
#define SAY_DIALOG_MEDIVH_9   "He should not have angered me. I must go... recover my strength now..."
#define SAY_OZ_INTRO1   "Finally, everything is in place. Are you ready for your big stage debut?"
#define SAY_OZ_INTRO2   "Don't worry, you'll be fine. You look like a natural!"
#define SAY_RAJ_INTRO1   "The romantic plays are really tough, but you'll do better this time. You have TALENT. Ready?"
#define SAY_READY   "Splendid, I'm going to get the audience ready. Break a leg!"
#define SPAWN_O   4.738f
#define SPAWN_Y   -1758
#define SPAWN_Z   90.5f

Enumerations

enum  Creatures { NPC_ARCANAGOS = 17652 , NPC_SPOTLIGHT = 19525 }
enum  Spells {
  SPELL_SPOTLIGHT = 25824 , SPELL_TUXEDO = 32616 , SPELL_TELEPORT = 39567 , SPELL_FIRE_BALL = 30967 ,
  SPELL_UBER_FIREBALL = 30971 , SPELL_CONFLAGRATION_BLAST = 30977 , SPELL_MANA_SHIELD = 31635
}

Functions

void AddSC_karazhan ()

Variables

static float ArcanagosPos [4] = {-11169.75f, -1881.48f, 95.39f, 4.83f}
static Dialogue HoodDialogue []
static float MedivPos [4] = {-11161.49f, -1902.24f, 91.48f, 1.94f}
static Dialogue OzDialogue []
static Dialogue RAJDialogue []
float Spawns [6][2]

Macro Definition Documentation

◆ EMOTE_DIALOG_MEDIVH_7

#define EMOTE_DIALOG_MEDIVH_7   "begins to cast a spell of great power, weaving his own essence into the magic."

Definition at line 451 of file karazhan.cpp.

Referenced by npc_image_of_medivh::npc_image_of_medivhAI::NextStep().

◆ GOSSIP_ITEM_TELEPORT

#define GOSSIP_ITEM_TELEPORT   "Teleport me to the Guardian's Library"

Definition at line 410 of file karazhan.cpp.

Referenced by npc_berthold::OnGossipHello().

◆ GOSSIP_READY

#define GOSSIP_READY   "I'm not an actor."

Definition at line 52 of file karazhan.cpp.

◆ OZ_GM_GOSSIP1

#define OZ_GM_GOSSIP1   "[GM] Change event to EVENT_OZ"

Definition at line 63 of file karazhan.cpp.

Referenced by npc_barnes::OnGossipHello().

◆ OZ_GM_GOSSIP2

#define OZ_GM_GOSSIP2   "[GM] Change event to EVENT_HOOD"

Definition at line 64 of file karazhan.cpp.

Referenced by npc_barnes::OnGossipHello().

◆ OZ_GM_GOSSIP3

#define OZ_GM_GOSSIP3   "[GM] Change event to EVENT_RAJ"

Definition at line 65 of file karazhan.cpp.

Referenced by npc_barnes::OnGossipHello().

◆ OZ_GOSSIP1

#define OZ_GOSSIP1   "I'm not an actor."

Definition at line 56 of file karazhan.cpp.

Referenced by npc_barnes::OnGossipHello().

◆ OZ_GOSSIP2

#define OZ_GOSSIP2   "Ok, I'll give it a try, then."

Definition at line 58 of file karazhan.cpp.

Referenced by npc_barnes::OnGossipSelect().

◆ RAJ_GOSSIP1

#define RAJ_GOSSIP1   "I've never been more ready."

Definition at line 61 of file karazhan.cpp.

◆ SAY_DIALOG_ARCANAGOS_2

#define SAY_DIALOG_ARCANAGOS_2   "Your dabbling in the arcane has gone too far, Medivh. You've attracted the attention of powers beyond your understanding. You must leave Karazhan at once!"

Definition at line 446 of file karazhan.cpp.

Referenced by npc_image_of_medivh::npc_image_of_medivhAI::NextStep().

◆ SAY_DIALOG_ARCANAGOS_4

#define SAY_DIALOG_ARCANAGOS_4   "A dark power seeks to use you, Medivh! If you stay, dire days will follow. You must hurry, we don't have much time!"

Definition at line 448 of file karazhan.cpp.

Referenced by npc_image_of_medivh::npc_image_of_medivhAI::NextStep().

◆ SAY_DIALOG_ARCANAGOS_6

#define SAY_DIALOG_ARCANAGOS_6   "You leave me no alternative. I will stop you by force if you won't listen to reason!"

Definition at line 450 of file karazhan.cpp.

Referenced by npc_image_of_medivh::npc_image_of_medivhAI::NextStep().

◆ SAY_DIALOG_ARCANAGOS_8

#define SAY_DIALOG_ARCANAGOS_8   "What have you done, wizard? This cannot be! I'm burning from... within!"

Definition at line 452 of file karazhan.cpp.

Referenced by npc_image_of_medivh::npc_image_of_medivhAI::NextStep().

◆ SAY_DIALOG_MEDIVH_1

#define SAY_DIALOG_MEDIVH_1   "You've got my attention, dragon. You'll find I'm not as easily scared as the villagers below."

Definition at line 445 of file karazhan.cpp.

Referenced by npc_image_of_medivh::npc_image_of_medivhAI::NextStep().

◆ SAY_DIALOG_MEDIVH_3

#define SAY_DIALOG_MEDIVH_3   "You dare challenge me at my own dwelling? Your arrogance is astounding, even for a dragon!"

Definition at line 447 of file karazhan.cpp.

Referenced by npc_image_of_medivh::npc_image_of_medivhAI::NextStep().

◆ SAY_DIALOG_MEDIVH_5

#define SAY_DIALOG_MEDIVH_5   "I do not know what you speak of, dragon... but I will not be bullied by this display of insolence. I'll leave Karazhan when it suits me!"

Definition at line 449 of file karazhan.cpp.

Referenced by npc_image_of_medivh::npc_image_of_medivhAI::NextStep().

◆ SAY_DIALOG_MEDIVH_9

#define SAY_DIALOG_MEDIVH_9   "He should not have angered me. I must go... recover my strength now..."

Definition at line 453 of file karazhan.cpp.

Referenced by npc_image_of_medivh::npc_image_of_medivhAI::NextStep().

◆ SAY_OZ_INTRO1

#define SAY_OZ_INTRO1   "Finally, everything is in place. Are you ready for your big stage debut?"

Definition at line 55 of file karazhan.cpp.

◆ SAY_OZ_INTRO2

#define SAY_OZ_INTRO2   "Don't worry, you'll be fine. You look like a natural!"

Definition at line 57 of file karazhan.cpp.

◆ SAY_RAJ_INTRO1

#define SAY_RAJ_INTRO1   "The romantic plays are really tough, but you'll do better this time. You have TALENT. Ready?"

Definition at line 60 of file karazhan.cpp.

◆ SAY_READY

#define SAY_READY   "Splendid, I'm going to get the audience ready. Break a leg!"

Definition at line 54 of file karazhan.cpp.

◆ SPAWN_O

#define SPAWN_O   4.738f

Definition at line 110 of file karazhan.cpp.

Referenced by npc_barnes::npc_barnesAI::PrepareEncounter().

◆ SPAWN_Y

#define SPAWN_Y   -1758

Definition at line 109 of file karazhan.cpp.

Referenced by npc_barnes::npc_barnesAI::PrepareEncounter().

◆ SPAWN_Z

#define SPAWN_Z   90.5f

Definition at line 108 of file karazhan.cpp.

Referenced by npc_barnes::npc_barnesAI::PrepareEncounter().

Enumeration Type Documentation

◆ Creatures

enum Creatures
Enumerator
NPC_ARCANAGOS 
NPC_SPOTLIGHT 

Definition at line 42 of file karazhan.cpp.

◆ Spells

enum Spells
Enumerator
SPELL_SPOTLIGHT 
SPELL_TUXEDO 
SPELL_TELEPORT 
SPELL_FIRE_BALL 
SPELL_UBER_FIREBALL 
SPELL_CONFLAGRATION_BLAST 
SPELL_MANA_SHIELD 

Definition at line 26 of file karazhan.cpp.

Function Documentation

◆ AddSC_karazhan()

void AddSC_karazhan ( )

Definition at line 640 of file karazhan.cpp.

Referenced by AddEasternKingdomsScripts().

Variable Documentation

◆ ArcanagosPos

float ArcanagosPos[4] = {-11169.75f, -1881.48f, 95.39f, 4.83f}
static

◆ HoodDialogue

Dialogue HoodDialogue[]
static
Initial value:
=
{
{4, 6000},
{5, 10000},
{6, 14000},
{7, 15000}
}

Definition at line 81 of file karazhan.cpp.

Referenced by npc_barnes::npc_barnesAI::Talk().

◆ MedivPos

◆ OzDialogue

Dialogue OzDialogue[]
static
Initial value:
=
{
{0, 6000},
{1, 18000},
{2, 9000},
{3, 15000}
}

Definition at line 73 of file karazhan.cpp.

Referenced by npc_barnes::npc_barnesAI::Talk().

◆ RAJDialogue

Dialogue RAJDialogue[]
static
Initial value:
=
{
{8, 5000},
{9, 7000},
{10, 14000},
{11, 14000}
}

Definition at line 89 of file karazhan.cpp.

Referenced by npc_barnes::npc_barnesAI::Talk().

◆ Spawns

float Spawns[6][2]
Initial value:
=
{
{17535, -10896},
{17546, -10891},
{17547, -10884},
{17543, -10902},
{17603, -10892},
{17534, -10900},
}

Definition at line 98 of file karazhan.cpp.

Referenced by npc_barnes::npc_barnesAI::PrepareEncounter().