Cosmetic: Multiple cosmetic changes
- Added missing space to 'if', 'for', 'while' and 'switch' when it's followed by '('
- Added missing space after a comma and remove space before comma (with some exceptions)
- Remove trailing spaces
- Convert tab to spaces
Note: Only affects files with extension "cpp" and "h" under /src/server
This commit is contained in:
@@ -92,7 +92,7 @@ class mob_av_marshal_or_warmaster : public CreatureScript
|
||||
{
|
||||
if (!bHasAura)
|
||||
{
|
||||
switch(me->GetEntry())
|
||||
switch (me->GetEntry())
|
||||
{
|
||||
case NPC_NORTH_MARSHAL:
|
||||
DoCast(me, SPELL_NORTH_MARSHAL);
|
||||
|
||||
@@ -211,7 +211,7 @@ public:
|
||||
|
||||
void WaypointReached(uint32 i)
|
||||
{
|
||||
switch(i)
|
||||
switch (i)
|
||||
{
|
||||
case 0:
|
||||
DoScriptText(SCRIPT_TEXT1, me);//2
|
||||
@@ -297,7 +297,7 @@ public:
|
||||
{
|
||||
if (Event_Timer <= diff)
|
||||
{
|
||||
switch(EventPhase)
|
||||
switch (EventPhase)
|
||||
{
|
||||
case 0:
|
||||
DoScriptText(SCRIPT_TEXT5, me);//1
|
||||
@@ -662,7 +662,7 @@ public:
|
||||
|
||||
void WaypointReached(uint32 i)
|
||||
{
|
||||
switch(i)
|
||||
switch (i)
|
||||
{
|
||||
case 0:me->Say(SAY_DUGHAL_FREE, LANG_UNIVERSAL, PlayerGUID); break;
|
||||
case 1:pInstance->SetData(DATA_DUGHAL, ENCOUNTER_STATE_OBJECTIVE_COMPLETED);break;
|
||||
@@ -785,7 +785,7 @@ public:
|
||||
|
||||
void WaypointReached(uint32 i)
|
||||
{
|
||||
switch(i)
|
||||
switch (i)
|
||||
{
|
||||
case 1:
|
||||
me->Say(SAY_WINDSOR_1, LANG_UNIVERSAL, PlayerGUID);
|
||||
@@ -822,7 +822,7 @@ public:
|
||||
me->SetVisibility(VISIBILITY_OFF);
|
||||
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
|
||||
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
|
||||
me->SummonCreature(MOB_ENTRY_REGINALD_WINDSOR, 403.61f, -51.71f, -63.92f, 3.600434f, TEMPSUMMON_DEAD_DESPAWN , 0);
|
||||
me->SummonCreature(MOB_ENTRY_REGINALD_WINDSOR, 403.61f, -51.71f, -63.92f, 3.600434f, TEMPSUMMON_DEAD_DESPAWN, 0);
|
||||
pInstance->SetData(DATA_SUPPLY_ROOM, ENCOUNTER_STATE_ENDED);
|
||||
break;
|
||||
}
|
||||
@@ -959,7 +959,7 @@ public:
|
||||
void WaypointReached(uint32 i)
|
||||
{
|
||||
wp=i;
|
||||
switch(i)
|
||||
switch (i)
|
||||
{
|
||||
case 0:
|
||||
me->setFaction(11);
|
||||
@@ -1166,7 +1166,7 @@ public:
|
||||
|
||||
void WaypointReached(uint32 i)
|
||||
{
|
||||
switch(i)
|
||||
switch (i)
|
||||
{
|
||||
case 0:me->Say(SAY_TOBIAS_FREE, LANG_UNIVERSAL, PlayerGUID); break;
|
||||
case 2:
|
||||
@@ -1293,7 +1293,7 @@ public:
|
||||
if (!pInstance)
|
||||
return;
|
||||
|
||||
switch(i)
|
||||
switch (i)
|
||||
{
|
||||
case 1:
|
||||
me->HandleEmoteCommand(EMOTE_ONESHOT_KICK);
|
||||
|
||||
@@ -162,7 +162,7 @@ public:
|
||||
|
||||
void OnCreatureCreate(Creature* creature)
|
||||
{
|
||||
switch(creature->GetEntry())
|
||||
switch (creature->GetEntry())
|
||||
{
|
||||
case NPC_EMPEROR: EmperorGUID = creature->GetGUID(); break;
|
||||
case NPC_PHALANX: PhalanxGUID = creature->GetGUID(); break;
|
||||
@@ -184,7 +184,7 @@ public:
|
||||
|
||||
void OnGameObjectCreate(GameObject* go)
|
||||
{
|
||||
switch(go->GetEntry())
|
||||
switch (go->GetEntry())
|
||||
{
|
||||
case GO_ARENA1: GoArena1GUID = go->GetGUID(); break;
|
||||
case GO_ARENA2: GoArena2GUID = go->GetGUID(); break;
|
||||
@@ -220,7 +220,7 @@ public:
|
||||
{
|
||||
sLog->outDebug(LOG_FILTER_TSCR, "TSCR: Instance Blackrock Depths: SetData64 update (Type: %u Data " UI64FMTD ")", type, data);
|
||||
|
||||
switch(type)
|
||||
switch (type)
|
||||
{
|
||||
case DATA_EVENSTARTER:
|
||||
TombEventStarterGUID = data;
|
||||
@@ -236,7 +236,7 @@ public:
|
||||
{
|
||||
sLog->outDebug(LOG_FILTER_TSCR, "TSCR: Instance Blackrock Depths: SetData update (Type: %u Data %u)", type, data);
|
||||
|
||||
switch(type)
|
||||
switch (type)
|
||||
{
|
||||
case TYPE_RING_OF_LAW:
|
||||
m_auiEncounter[0] = data;
|
||||
@@ -281,7 +281,7 @@ public:
|
||||
|
||||
uint32 GetData(uint32 type)
|
||||
{
|
||||
switch(type)
|
||||
switch (type)
|
||||
{
|
||||
case TYPE_RING_OF_LAW:
|
||||
return m_auiEncounter[0];
|
||||
@@ -306,7 +306,7 @@ public:
|
||||
|
||||
uint64 GetData64(uint32 data)
|
||||
{
|
||||
switch(data)
|
||||
switch (data)
|
||||
{
|
||||
case DATA_EMPEROR:
|
||||
return EmperorGUID;
|
||||
|
||||
@@ -27,7 +27,7 @@ enum Data
|
||||
DATA_UROK_DOOMHOWL, // not scripted
|
||||
DATA_QUARTERMASTER_ZIGRIS,
|
||||
DATA_GIZRUL_THE_SLAVENER, // not scripted
|
||||
DATA_HALYCON ,
|
||||
DATA_HALYCON,
|
||||
DATA_OVERLORD_WYRMTHALAK,
|
||||
DATA_PYROGAURD_EMBERSEER,
|
||||
DATA_WARCHIEF_REND_BLACKHAND,
|
||||
|
||||
@@ -81,7 +81,7 @@ public:
|
||||
|
||||
void OnCreatureCreate(Creature* creature)
|
||||
{
|
||||
switch(creature->GetEntry())
|
||||
switch (creature->GetEntry())
|
||||
{
|
||||
case NPC_OMOKK:
|
||||
HighlordOmokk = creature->GetGUID();
|
||||
@@ -130,7 +130,7 @@ public:
|
||||
|
||||
void OnGameObjectCreate(GameObject* go)
|
||||
{
|
||||
switch(go->GetEntry())
|
||||
switch (go->GetEntry())
|
||||
{
|
||||
case GO_WHELP_SPAWNER:
|
||||
go->CastSpell(NULL, SPELL_SUMMON_ROOKERY_WHELP);
|
||||
@@ -169,7 +169,7 @@ public:
|
||||
|
||||
uint64 GetData64(uint32 type)
|
||||
{
|
||||
switch(type)
|
||||
switch (type)
|
||||
{
|
||||
case DATA_OMOKK:
|
||||
return HighlordOmokk;
|
||||
|
||||
@@ -98,7 +98,7 @@ public:
|
||||
|
||||
bool OnGossipHello(Player* player, Creature* creature)
|
||||
{
|
||||
player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_1 , GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1);
|
||||
player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_1, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1);
|
||||
player->SEND_GOSSIP_MENU(7134, creature->GetGUID());
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -138,7 +138,7 @@ public:
|
||||
{
|
||||
if (uiTimer <= uiDiff)
|
||||
{
|
||||
switch(uiPhase)
|
||||
switch (uiPhase)
|
||||
{
|
||||
case 1:
|
||||
me->HandleEmoteCommand(EMOTE_STATE_KNEEL); //dosen't work?
|
||||
|
||||
@@ -186,7 +186,7 @@ class instance_deadmines : public InstanceMapScript
|
||||
|
||||
void OnGameObjectCreate(GameObject* go)
|
||||
{
|
||||
switch(go->GetEntry())
|
||||
switch (go->GetEntry())
|
||||
{
|
||||
case GO_FACTORY_DOOR: FactoryDoorGUID = go->GetGUID(); break;
|
||||
case GO_IRONCLAD_DOOR: IronCladDoorGUID = go->GetGUID(); break;
|
||||
|
||||
@@ -273,7 +273,7 @@ public:
|
||||
if (me->getFaction() != GetPlayerForEscort()->getFaction())
|
||||
me->setFaction(GetPlayerForEscort()->getFaction());
|
||||
|
||||
switch(uiPoint)
|
||||
switch (uiPoint)
|
||||
{
|
||||
case 3:
|
||||
SetEscortPaused(true);
|
||||
@@ -312,7 +312,7 @@ public:
|
||||
|
||||
void SetData(uint32 uiI, uint32 uiValue)
|
||||
{
|
||||
switch(uiI)
|
||||
switch (uiI)
|
||||
{
|
||||
case 1:
|
||||
SetEscortPaused(true);
|
||||
@@ -323,7 +323,7 @@ public:
|
||||
if (!pInstance)
|
||||
return;
|
||||
|
||||
switch(uiValue)
|
||||
switch (uiValue)
|
||||
{
|
||||
case 1:
|
||||
pInstance->SetData(TYPE_EVENT, IN_PROGRESS);
|
||||
@@ -339,7 +339,7 @@ public:
|
||||
|
||||
void Summon(uint8 uiCase)
|
||||
{
|
||||
switch(uiCase)
|
||||
switch (uiCase)
|
||||
{
|
||||
case 1:
|
||||
me->SummonCreature(NPC_CAVERNDEEP_AMBUSHER, SpawnPosition[0], TEMPSUMMON_CORPSE_TIMED_DESPAWN, 1800000);
|
||||
@@ -417,7 +417,7 @@ public:
|
||||
{
|
||||
if (uiTimer <= uiDiff)
|
||||
{
|
||||
switch(uiPhase)
|
||||
switch (uiPhase)
|
||||
{
|
||||
case 1:
|
||||
DoScriptText(SAY_BLASTMASTER_1, me);
|
||||
|
||||
@@ -77,7 +77,7 @@ public:
|
||||
|
||||
void OnCreatureCreate(Creature* creature)
|
||||
{
|
||||
switch(creature->GetEntry())
|
||||
switch (creature->GetEntry())
|
||||
{
|
||||
case NPC_BLASTMASTER_EMI_SHORTFUSE: uiBastmasterEmiShortfuseGUID = creature->GetGUID(); break;
|
||||
}
|
||||
@@ -85,7 +85,7 @@ public:
|
||||
|
||||
void OnGameObjectCreate(GameObject* go)
|
||||
{
|
||||
switch(go->GetEntry())
|
||||
switch (go->GetEntry())
|
||||
{
|
||||
case GO_CAVE_IN_LEFT:
|
||||
uiCaveInLeftGUID = go->GetGUID();
|
||||
@@ -102,7 +102,7 @@ public:
|
||||
|
||||
void SetData(uint32 uiType, uint32 uiData)
|
||||
{
|
||||
switch(uiType)
|
||||
switch (uiType)
|
||||
{
|
||||
case TYPE_EVENT:
|
||||
m_auiEncounter[0] = uiData;
|
||||
@@ -114,7 +114,7 @@ public:
|
||||
|
||||
uint32 GetData(uint32 uiType)
|
||||
{
|
||||
switch(uiType)
|
||||
switch (uiType)
|
||||
{
|
||||
case TYPE_EVENT: return m_auiEncounter[0];
|
||||
}
|
||||
@@ -123,7 +123,7 @@ public:
|
||||
|
||||
uint64 GetData64(uint32 uiType)
|
||||
{
|
||||
switch(uiType)
|
||||
switch (uiType)
|
||||
{
|
||||
case DATA_GO_CAVE_IN_LEFT: return uiCaveInLeftGUID;
|
||||
case DATA_GO_CAVE_IN_RIGHT: return uiCaveInRightGUID;
|
||||
|
||||
@@ -43,7 +43,7 @@ EndScriptData */
|
||||
|
||||
#define MOUNTED_DISPLAYID 16040
|
||||
|
||||
//Attumen (TODO: Use the summoning spell instead of Creature id. It works , but is not convenient for us)
|
||||
//Attumen (TODO: Use the summoning spell instead of Creature id. It works, but is not convenient for us)
|
||||
#define SUMMON_ATTUMEN 15550
|
||||
|
||||
class boss_attumen : public CreatureScript
|
||||
|
||||
@@ -108,7 +108,7 @@ public:
|
||||
|
||||
struct netherspite_infernalAI : public ScriptedAI
|
||||
{
|
||||
netherspite_infernalAI(Creature* c) : ScriptedAI(c) ,
|
||||
netherspite_infernalAI(Creature* c) : ScriptedAI(c),
|
||||
HellfireTimer(0), CleanupTimer(0), malchezaar(0), point(NULL) {}
|
||||
|
||||
uint32 HellfireTimer;
|
||||
|
||||
@@ -183,7 +183,7 @@ public:
|
||||
|
||||
void SetData64(uint32 identifier, uint64 data)
|
||||
{
|
||||
switch(identifier)
|
||||
switch (identifier)
|
||||
{
|
||||
case DATA_IMAGE_OF_MEDIVH: ImageGUID = data;
|
||||
}
|
||||
@@ -191,7 +191,7 @@ public:
|
||||
|
||||
void OnGameObjectCreate(GameObject* go)
|
||||
{
|
||||
switch(go->GetEntry())
|
||||
switch (go->GetEntry())
|
||||
{
|
||||
case 183932: m_uiCurtainGUID = go->GetGUID(); break;
|
||||
case 184278:
|
||||
@@ -221,7 +221,7 @@ public:
|
||||
case 185119: DustCoveredChest = go->GetGUID(); break;
|
||||
}
|
||||
|
||||
switch(m_uiOperaEvent)
|
||||
switch (m_uiOperaEvent)
|
||||
{
|
||||
//TODO: Set Object visibilities for Opera based on performance
|
||||
case EVENT_OZ:
|
||||
|
||||
@@ -163,7 +163,7 @@ public:
|
||||
if (!pInstance)
|
||||
return;
|
||||
|
||||
switch(i)
|
||||
switch (i)
|
||||
{
|
||||
case 0:
|
||||
DoCast(me, SPELL_TUXEDO, false);
|
||||
@@ -197,7 +197,7 @@ public:
|
||||
{
|
||||
int32 text = 0;
|
||||
|
||||
switch(m_uiEventId)
|
||||
switch (m_uiEventId)
|
||||
{
|
||||
case EVENT_OZ:
|
||||
if (OzDialogue[count].textid)
|
||||
@@ -231,7 +231,7 @@ public:
|
||||
uint8 index = 0;
|
||||
uint8 count = 0;
|
||||
|
||||
switch(m_uiEventId)
|
||||
switch (m_uiEventId)
|
||||
{
|
||||
case EVENT_OZ:
|
||||
index = 0;
|
||||
@@ -329,7 +329,7 @@ public:
|
||||
player->PlayerTalkClass->ClearMenus();
|
||||
npc_barnesAI* pBarnesAI = CAST_AI(npc_barnes::npc_barnesAI, creature->AI());
|
||||
|
||||
switch(uiAction)
|
||||
switch (uiAction)
|
||||
{
|
||||
case GOSSIP_ACTION_INFO_DEF+1:
|
||||
player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, OZ_GOSSIP2, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+2);
|
||||
@@ -538,7 +538,7 @@ public:
|
||||
{
|
||||
Unit* arca = Unit::GetUnit((*me), ArcanagosGUID);
|
||||
Map* pMap = me->GetMap();
|
||||
switch(Step)
|
||||
switch (Step)
|
||||
{
|
||||
case 0: return 9999999;
|
||||
case 1:
|
||||
|
||||
@@ -276,7 +276,7 @@ public:
|
||||
if (!UpdateVictim())
|
||||
return;
|
||||
|
||||
switch(Phase)
|
||||
switch (Phase)
|
||||
{
|
||||
case 0:
|
||||
{
|
||||
@@ -353,7 +353,7 @@ public:
|
||||
{
|
||||
if (GravityLapseTimer <= diff)
|
||||
{
|
||||
switch(GravityLapsePhase)
|
||||
switch (GravityLapsePhase)
|
||||
{
|
||||
case 0:
|
||||
if (FirstGravityLapse) // Different yells at 50%, and at every following Gravity Lapse
|
||||
|
||||
@@ -97,7 +97,7 @@ public:
|
||||
|
||||
uint32 GetData(uint32 identifier)
|
||||
{
|
||||
switch(identifier)
|
||||
switch (identifier)
|
||||
{
|
||||
case DATA_SELIN_EVENT: return m_auiEncounter[0];
|
||||
case DATA_VEXALLUS_EVENT: return m_auiEncounter[1];
|
||||
@@ -111,7 +111,7 @@ public:
|
||||
|
||||
void SetData(uint32 identifier, uint32 data)
|
||||
{
|
||||
switch(identifier)
|
||||
switch (identifier)
|
||||
{
|
||||
case DATA_SELIN_EVENT: m_auiEncounter[0] = data; break;
|
||||
case DATA_VEXALLUS_EVENT:
|
||||
@@ -139,7 +139,7 @@ public:
|
||||
|
||||
void OnCreatureCreate(Creature* creature)
|
||||
{
|
||||
switch(creature->GetEntry())
|
||||
switch (creature->GetEntry())
|
||||
{
|
||||
case 24723: SelinGUID = creature->GetGUID(); break;
|
||||
case 24560: DelrissaGUID = creature->GetGUID(); break;
|
||||
@@ -149,7 +149,7 @@ public:
|
||||
|
||||
void OnGameObjectCreate(GameObject* go)
|
||||
{
|
||||
switch(go->GetEntry())
|
||||
switch (go->GetEntry())
|
||||
{
|
||||
case 187896: VexallusDoorGUID = go->GetGUID(); break;
|
||||
//SunwellRaid Gate 02
|
||||
@@ -165,7 +165,7 @@ public:
|
||||
|
||||
uint64 GetData64(uint32 identifier)
|
||||
{
|
||||
switch(identifier)
|
||||
switch (identifier)
|
||||
{
|
||||
case DATA_SELIN: return SelinGUID;
|
||||
case DATA_DELRISSA: return DelrissaGUID;
|
||||
|
||||
@@ -59,7 +59,7 @@ public:
|
||||
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
player->PlayerTalkClass->ClearMenus();
|
||||
switch(uiAction)
|
||||
switch (uiAction)
|
||||
{
|
||||
case GOSSIP_ACTION_INFO_DEF:
|
||||
player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_KAEL_2, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1);
|
||||
|
||||
@@ -173,7 +173,7 @@ public:
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
switch(phase)
|
||||
switch (phase)
|
||||
{
|
||||
case PHASE_CHAINED:
|
||||
if (!anchorGUID)
|
||||
@@ -247,7 +247,7 @@ public:
|
||||
|
||||
while (uint32 eventId = events.ExecuteEvent())
|
||||
{
|
||||
switch(eventId)
|
||||
switch (eventId)
|
||||
{
|
||||
case EVENT_ICY_TOUCH:
|
||||
DoCast(me->getVictim(), SPELL_ICY_TOUCH);
|
||||
@@ -553,7 +553,7 @@ public:
|
||||
|
||||
if (PhaseTimer <= diff)
|
||||
{
|
||||
switch(Phase)
|
||||
switch (Phase)
|
||||
{
|
||||
case 0:
|
||||
me->MonsterSay(SAY_DARK_RIDER, LANG_UNIVERSAL, 0);
|
||||
|
||||
@@ -109,7 +109,7 @@ public:
|
||||
return;
|
||||
}
|
||||
|
||||
switch(uiSpeech_counter)
|
||||
switch (uiSpeech_counter)
|
||||
{
|
||||
case 1: DoScriptText(SAY_PERSUADED1, me); uiSpeech_timer = 8000; break;
|
||||
case 2: DoScriptText(SAY_PERSUADED2, me); uiSpeech_timer = 8000; break;
|
||||
@@ -220,7 +220,7 @@ public:
|
||||
|
||||
void WaypointReached(uint32 uiPointId)
|
||||
{
|
||||
switch(uiPointId)
|
||||
switch (uiPointId)
|
||||
{
|
||||
case 0:
|
||||
DoScriptText(SAY_BREAKOUT1, me);
|
||||
@@ -281,7 +281,7 @@ public:
|
||||
{
|
||||
if (m_uiWave_Timer <= uiDiff)
|
||||
{
|
||||
switch(m_uiWave)
|
||||
switch (m_uiWave)
|
||||
{
|
||||
case 0:
|
||||
DoScriptText(SAY_BREAKOUT3, me);
|
||||
@@ -397,7 +397,7 @@ public:
|
||||
{
|
||||
if (uiStage_timer <= diff)
|
||||
{
|
||||
switch(uiStage)
|
||||
switch (uiStage)
|
||||
{
|
||||
case 1:
|
||||
me->AddUnitMovementFlag(MOVEMENTFLAG_WALKING);
|
||||
@@ -610,7 +610,7 @@ public:
|
||||
|
||||
bool MeetQuestCondition(Unit* player)
|
||||
{
|
||||
switch(me->GetEntry())
|
||||
switch (me->GetEntry())
|
||||
{
|
||||
case 29061: // Ellen Stanbridge
|
||||
if (CAST_PLR(player)->GetQuestStatus(12742) == QUEST_STATUS_INCOMPLETE)
|
||||
@@ -682,10 +682,10 @@ public:
|
||||
|
||||
//TODO: simplify text's selection
|
||||
|
||||
switch(player->getRace())
|
||||
switch (player->getRace())
|
||||
{
|
||||
case RACE_HUMAN:
|
||||
switch(ExecuteSpeech_Counter)
|
||||
switch (ExecuteSpeech_Counter)
|
||||
{
|
||||
case 0: DoScriptText(SAY_EXEC_START_1, me, player); break;
|
||||
case 1: me->SetStandState(UNIT_STAND_STATE_STAND); break;
|
||||
@@ -713,7 +713,7 @@ public:
|
||||
}
|
||||
break;
|
||||
case RACE_ORC:
|
||||
switch(ExecuteSpeech_Counter)
|
||||
switch (ExecuteSpeech_Counter)
|
||||
{
|
||||
case 0: DoScriptText(SAY_EXEC_START_1, me, player); break;
|
||||
case 1: me->SetStandState(UNIT_STAND_STATE_STAND); break;
|
||||
@@ -741,7 +741,7 @@ public:
|
||||
}
|
||||
break;
|
||||
case RACE_DWARF:
|
||||
switch(ExecuteSpeech_Counter)
|
||||
switch (ExecuteSpeech_Counter)
|
||||
{
|
||||
case 0: DoScriptText(SAY_EXEC_START_2, me, player); break;
|
||||
case 1: me->SetStandState(UNIT_STAND_STATE_STAND); break;
|
||||
@@ -769,7 +769,7 @@ public:
|
||||
}
|
||||
break;
|
||||
case RACE_NIGHTELF:
|
||||
switch(ExecuteSpeech_Counter)
|
||||
switch (ExecuteSpeech_Counter)
|
||||
{
|
||||
case 0: DoScriptText(SAY_EXEC_START_1, me, player); break;
|
||||
case 1: me->SetStandState(UNIT_STAND_STATE_STAND); break;
|
||||
@@ -797,7 +797,7 @@ public:
|
||||
}
|
||||
break;
|
||||
case RACE_UNDEAD_PLAYER:
|
||||
switch(ExecuteSpeech_Counter)
|
||||
switch (ExecuteSpeech_Counter)
|
||||
{
|
||||
case 0: DoScriptText(SAY_EXEC_START_1, me, player); break;
|
||||
case 1: me->SetStandState(UNIT_STAND_STATE_STAND); break;
|
||||
@@ -825,7 +825,7 @@ public:
|
||||
}
|
||||
break;
|
||||
case RACE_TAUREN:
|
||||
switch(ExecuteSpeech_Counter)
|
||||
switch (ExecuteSpeech_Counter)
|
||||
{
|
||||
case 0: DoScriptText(SAY_EXEC_START_1, me, player); break;
|
||||
case 1: me->SetStandState(UNIT_STAND_STATE_STAND); break;
|
||||
@@ -853,7 +853,7 @@ public:
|
||||
}
|
||||
break;
|
||||
case RACE_GNOME:
|
||||
switch(ExecuteSpeech_Counter)
|
||||
switch (ExecuteSpeech_Counter)
|
||||
{
|
||||
case 0: DoScriptText(SAY_EXEC_START_1, me, player); break;
|
||||
case 1: me->SetStandState(UNIT_STAND_STATE_STAND); break;
|
||||
@@ -881,7 +881,7 @@ public:
|
||||
}
|
||||
break;
|
||||
case RACE_TROLL:
|
||||
switch(ExecuteSpeech_Counter)
|
||||
switch (ExecuteSpeech_Counter)
|
||||
{
|
||||
case 0: DoScriptText(SAY_EXEC_START_3, me, player); break;
|
||||
case 1: me->SetStandState(UNIT_STAND_STATE_STAND); break;
|
||||
@@ -909,7 +909,7 @@ public:
|
||||
}
|
||||
break;
|
||||
case RACE_BLOODELF:
|
||||
switch(ExecuteSpeech_Counter)
|
||||
switch (ExecuteSpeech_Counter)
|
||||
{
|
||||
case 0: DoScriptText(SAY_EXEC_START_1, me, player); break;
|
||||
case 1: me->SetStandState(UNIT_STAND_STATE_STAND); break;
|
||||
@@ -937,7 +937,7 @@ public:
|
||||
}
|
||||
break;
|
||||
case RACE_DRAENEI:
|
||||
switch(ExecuteSpeech_Counter)
|
||||
switch (ExecuteSpeech_Counter)
|
||||
{
|
||||
case 0: DoScriptText(SAY_EXEC_START_1, me, player); break;
|
||||
case 1: me->SetStandState(UNIT_STAND_STATE_STAND); break;
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
enum mograine
|
||||
{
|
||||
#ifdef LESS_MOB
|
||||
ENCOUNTER_DK_NUMBER = 5, // how many player queue to start the quest , or -
|
||||
ENCOUNTER_DK_NUMBER = 5, // how many player queue to start the quest, or -
|
||||
ENCOUNTER_DK_TIMER = 10, // *every 5 minutes. These have to be done in instance data
|
||||
ENCOUNTER_DEFENDER_NUMBER = 10, // how many of defender
|
||||
ENCOUNTER_EARTHSHATTER_NUMBER = 1, // how many of earthshatter
|
||||
@@ -32,7 +32,7 @@ enum mograine
|
||||
ENCOUNTER_GHOUL_NUMBER = 5, // how many of ghoul
|
||||
ENCOUNTER_WARRIOR_NUMBER = 1, // how many of warrior
|
||||
#else
|
||||
ENCOUNTER_DK_NUMBER = 5, // how many player queue to start the quest , or -
|
||||
ENCOUNTER_DK_NUMBER = 5, // how many player queue to start the quest, or -
|
||||
ENCOUNTER_DK_TIMER = 10, // *every 5 minutes. These have to be done in instance data
|
||||
ENCOUNTER_DEFENDER_NUMBER = 20, // how many of defender
|
||||
ENCOUNTER_EARTHSHATTER_NUMBER = 20, // how many of earthshatter
|
||||
|
||||
@@ -69,7 +69,7 @@ public:
|
||||
if (!player)
|
||||
phase = 3;
|
||||
|
||||
switch(phase)
|
||||
switch (phase)
|
||||
{
|
||||
case 0:
|
||||
me->RemoveUnitMovementFlag(MOVEMENTFLAG_WALKING);
|
||||
|
||||
@@ -153,7 +153,7 @@ public:
|
||||
void EnterCombat(Unit* /*who*/){}
|
||||
void SetType(uint32 _type)
|
||||
{
|
||||
switch(Creaturetype = _type)
|
||||
switch (Creaturetype = _type)
|
||||
{
|
||||
case 1:
|
||||
spell = SPELL_PUMPKIN_AURA_GREEN;
|
||||
@@ -257,7 +257,7 @@ public:
|
||||
if (withbody)
|
||||
return;
|
||||
|
||||
switch(Phase)
|
||||
switch (Phase)
|
||||
{
|
||||
case 1:
|
||||
if (me->HealthBelowPctDamaged(67, damage))
|
||||
@@ -608,7 +608,7 @@ public:
|
||||
{
|
||||
if (withhead)
|
||||
{
|
||||
switch(Phase)
|
||||
switch (Phase)
|
||||
{
|
||||
case 0:
|
||||
{
|
||||
|
||||
@@ -76,7 +76,7 @@ public:
|
||||
|
||||
void OnGameObjectCreate(GameObject* go)
|
||||
{
|
||||
switch(go->GetEntry())
|
||||
switch (go->GetEntry())
|
||||
{
|
||||
case ENTRY_PUMPKIN_SHRINE: PumpkinShrineGUID = go->GetGUID();break;
|
||||
case 104600: DoorHighInquisitorGUID = go->GetGUID(); break;
|
||||
@@ -85,7 +85,7 @@ public:
|
||||
|
||||
void OnCreatureCreate(Creature* creature)
|
||||
{
|
||||
switch(creature->GetEntry())
|
||||
switch (creature->GetEntry())
|
||||
{
|
||||
case ENTRY_HORSEMAN: HorsemanGUID = creature->GetGUID(); break;
|
||||
case ENTRY_HEAD: HeadGUID = creature->GetGUID(); break;
|
||||
@@ -98,7 +98,7 @@ public:
|
||||
|
||||
void SetData(uint32 type, uint32 data)
|
||||
{
|
||||
switch(type)
|
||||
switch (type)
|
||||
{
|
||||
case TYPE_MOGRAINE_AND_WHITE_EVENT:
|
||||
if (data == IN_PROGRESS)
|
||||
@@ -130,7 +130,7 @@ public:
|
||||
|
||||
uint64 GetData64(uint32 type)
|
||||
{
|
||||
switch(type)
|
||||
switch (type)
|
||||
{
|
||||
//case GAMEOBJECT_PUMPKIN_SHRINE: return PumpkinShrineGUID;
|
||||
//case DATA_HORSEMAN: return HorsemanGUID;
|
||||
|
||||
@@ -132,7 +132,7 @@ public:
|
||||
DoModifyThreatPercent(target, -100);
|
||||
|
||||
Creature* Summoned = NULL;
|
||||
switch(rand()%6)
|
||||
switch (rand()%6)
|
||||
{
|
||||
case 0:
|
||||
DoTeleportPlayer(target, 250.0696f, 0.3921f, 84.8408f, 3.149f);
|
||||
|
||||
@@ -83,7 +83,7 @@ public:
|
||||
|
||||
void OnGameObjectCreate(GameObject* go)
|
||||
{
|
||||
switch(go->GetEntry())
|
||||
switch (go->GetEntry())
|
||||
{
|
||||
case GO_GATE_KIRTONOS: GateKirtonosGUID = go->GetGUID(); break;
|
||||
case GO_GATE_GANDLING: GateGandlingGUID = go->GetGUID(); break;
|
||||
@@ -98,7 +98,7 @@ public:
|
||||
|
||||
void SetData(uint32 type, uint32 data)
|
||||
{
|
||||
switch(type)
|
||||
switch (type)
|
||||
{
|
||||
case DATA_LORDALEXEIBAROV_DEATH:
|
||||
IsBossDied[0] = true;
|
||||
|
||||
@@ -100,7 +100,7 @@ public:
|
||||
|
||||
void OnCreatureCreate(Creature* creature)
|
||||
{
|
||||
switch(creature->GetEntry())
|
||||
switch (creature->GetEntry())
|
||||
{
|
||||
case NPC_ASH: uiAshGUID = creature->GetGUID(); break;
|
||||
case NPC_ADA: uiAdaGUID = creature->GetGUID(); break;
|
||||
@@ -110,7 +110,7 @@ public:
|
||||
|
||||
void OnGameObjectCreate(GameObject* go)
|
||||
{
|
||||
switch(go->GetEntry())
|
||||
switch (go->GetEntry())
|
||||
{
|
||||
case GO_COURTYARD_DOOR:
|
||||
DoorCourtyardGUID = go->GetGUID();
|
||||
@@ -144,7 +144,7 @@ public:
|
||||
|
||||
void SetData(uint32 type, uint32 data)
|
||||
{
|
||||
switch(type)
|
||||
switch (type)
|
||||
{
|
||||
case TYPE_FREE_NPC:
|
||||
if (data == DONE)
|
||||
@@ -157,7 +157,7 @@ public:
|
||||
m_auiEncounter[1] = data;
|
||||
break;
|
||||
case TYPE_FENRUS:
|
||||
switch(data)
|
||||
switch (data)
|
||||
{
|
||||
case DONE:
|
||||
uiTimer = 1000;
|
||||
@@ -192,7 +192,7 @@ public:
|
||||
|
||||
uint32 GetData(uint32 type)
|
||||
{
|
||||
switch(type)
|
||||
switch (type)
|
||||
{
|
||||
case TYPE_FREE_NPC:
|
||||
return m_auiEncounter[0];
|
||||
@@ -248,7 +248,7 @@ public:
|
||||
{
|
||||
if (uiTimer <= uiDiff)
|
||||
{
|
||||
switch(uiPhase)
|
||||
switch (uiPhase)
|
||||
{
|
||||
case 1:
|
||||
summon = pArchmage->SummonCreature(pArchmage->GetEntry(), SpawnLocation[4], TEMPSUMMON_TIMED_DESPAWN, 10000);
|
||||
|
||||
@@ -101,7 +101,7 @@ public:
|
||||
|
||||
void WaypointReached(uint32 uiPoint)
|
||||
{
|
||||
switch(uiPoint)
|
||||
switch (uiPoint)
|
||||
{
|
||||
case 0:
|
||||
if (uiNpcEntry == NPC_ASH)
|
||||
|
||||
@@ -71,7 +71,7 @@ public:
|
||||
|
||||
if (pInstance)
|
||||
{
|
||||
switch(me->GetEntry())
|
||||
switch (me->GetEntry())
|
||||
{
|
||||
case SH_AELMAR:
|
||||
pInstance->SetData(TYPE_SH_AELMAR, 0);
|
||||
@@ -100,7 +100,7 @@ public:
|
||||
{
|
||||
if (pInstance)
|
||||
{
|
||||
switch(me->GetEntry())
|
||||
switch (me->GetEntry())
|
||||
{
|
||||
case SH_AELMAR:
|
||||
pInstance->SetData(TYPE_SH_AELMAR, 2);
|
||||
|
||||
@@ -260,7 +260,7 @@ public:
|
||||
|
||||
void ReceiveEmote(Player* player, uint32 emote)
|
||||
{
|
||||
switch(emote)
|
||||
switch (emote)
|
||||
{
|
||||
case TEXT_EMOTE_DANCE:
|
||||
EnterEvadeMode();
|
||||
|
||||
@@ -94,7 +94,7 @@ public:
|
||||
|
||||
void OnGameObjectCreate(GameObject* go)
|
||||
{
|
||||
switch(go->GetEntry())
|
||||
switch (go->GetEntry())
|
||||
{
|
||||
case GO_ATALAI_STATUE1: GOAtalaiStatue1 = go->GetGUID(); break;
|
||||
case GO_ATALAI_STATUE2: GOAtalaiStatue2 = go->GetGUID(); break;
|
||||
@@ -108,7 +108,7 @@ public:
|
||||
|
||||
virtual void Update(uint32 /*diff*/) // correct order goes form 1-6
|
||||
{
|
||||
switch(State)
|
||||
switch (State)
|
||||
{
|
||||
case GO_ATALAI_STATUE1:
|
||||
if (!s1 && !s2 && !s3 && !s4 && !s5 && !s6)
|
||||
|
||||
@@ -183,7 +183,7 @@ public:
|
||||
|
||||
void SpellHitTarget(Unit* target, const SpellInfo* spell)
|
||||
{
|
||||
switch(spell->Id)
|
||||
switch (spell->Id)
|
||||
{
|
||||
case SPELL_SHADOW_BLADES:
|
||||
case SPELL_SHADOW_NOVA:
|
||||
@@ -199,7 +199,7 @@ public:
|
||||
|
||||
void HandleTouchedSpells(Unit* target, uint32 TouchedType)
|
||||
{
|
||||
switch(TouchedType)
|
||||
switch (TouchedType)
|
||||
{
|
||||
case SPELL_FLAME_TOUCHED:
|
||||
if (!target->HasAura(SPELL_DARK_FLAME))
|
||||
@@ -477,7 +477,7 @@ public:
|
||||
|
||||
void SpellHitTarget(Unit* target, const SpellInfo* spell)
|
||||
{
|
||||
switch(spell->Id)
|
||||
switch (spell->Id)
|
||||
{
|
||||
|
||||
case SPELL_BLAZE:
|
||||
@@ -494,7 +494,7 @@ public:
|
||||
|
||||
void HandleTouchedSpells(Unit* target, uint32 TouchedType)
|
||||
{
|
||||
switch(TouchedType)
|
||||
switch (TouchedType)
|
||||
{
|
||||
case SPELL_FLAME_TOUCHED:
|
||||
if (!target->HasAura(SPELL_DARK_FLAME))
|
||||
@@ -702,7 +702,7 @@ public:
|
||||
|
||||
void SpellHitTarget(Unit* target, const SpellInfo* spell)
|
||||
{
|
||||
switch(spell->Id)
|
||||
switch (spell->Id)
|
||||
{
|
||||
|
||||
case SPELL_SHADOW_FURY:
|
||||
|
||||
@@ -239,7 +239,7 @@ public:
|
||||
|
||||
void EnterPhase(PhaseFelmyst NextPhase)
|
||||
{
|
||||
switch(NextPhase)
|
||||
switch (NextPhase)
|
||||
{
|
||||
case PHASE_GROUND:
|
||||
me->CastStop(SPELL_FOG_BREATH);
|
||||
@@ -267,7 +267,7 @@ public:
|
||||
|
||||
void HandleFlightSequence()
|
||||
{
|
||||
switch(uiFlightCount)
|
||||
switch (uiFlightCount)
|
||||
{
|
||||
case 0:
|
||||
//me->AttackStop();
|
||||
@@ -416,7 +416,7 @@ public:
|
||||
|
||||
if (phase == PHASE_GROUND)
|
||||
{
|
||||
switch(events.ExecuteEvent())
|
||||
switch (events.ExecuteEvent())
|
||||
{
|
||||
case EVENT_BERSERK:
|
||||
DoScriptText(YELL_BERSERK, me);
|
||||
@@ -451,7 +451,7 @@ public:
|
||||
|
||||
if (phase == PHASE_FLIGHT)
|
||||
{
|
||||
switch(events.ExecuteEvent())
|
||||
switch (events.ExecuteEvent())
|
||||
{
|
||||
case EVENT_BERSERK:
|
||||
DoScriptText(YELL_BERSERK, me);
|
||||
|
||||
@@ -389,7 +389,7 @@ public:
|
||||
|
||||
void GoodEnding()
|
||||
{
|
||||
switch(TalkSequence)
|
||||
switch (TalkSequence)
|
||||
{
|
||||
case 1:
|
||||
me->setFaction(35);
|
||||
@@ -411,7 +411,7 @@ public:
|
||||
|
||||
void BadEnding()
|
||||
{
|
||||
switch(TalkSequence)
|
||||
switch (TalkSequence)
|
||||
{
|
||||
case 1:
|
||||
DoScriptText(SAY_EVIL_ENRAGE, me);
|
||||
@@ -491,7 +491,7 @@ public:
|
||||
|
||||
if (YellTimer <= diff)
|
||||
{
|
||||
switch(YellSequence)
|
||||
switch (YellSequence)
|
||||
{
|
||||
case 0:
|
||||
DoScriptText(SAY_GOOD_AGGRO, me);
|
||||
|
||||
@@ -278,7 +278,7 @@ public:
|
||||
if (!pInstance)
|
||||
return NULL;
|
||||
|
||||
switch(index)
|
||||
switch (index)
|
||||
{
|
||||
case 0:
|
||||
return pInstance->instance->GetGameObject(pInstance->GetData64(DATA_ORB_OF_THE_BLUE_DRAGONFLIGHT_1));
|
||||
@@ -334,7 +334,7 @@ public:
|
||||
OrbsEmpowered = (OrbsEmpowered+1)%4;
|
||||
|
||||
++EmpowerCount;
|
||||
switch(EmpowerCount)
|
||||
switch (EmpowerCount)
|
||||
{
|
||||
case 1: DoScriptText(SAY_KALEC_ORB_READY1, me); break;
|
||||
case 2: DoScriptText(SAY_KALEC_ORB_READY2, me); break;
|
||||
@@ -445,7 +445,7 @@ public:
|
||||
|
||||
void JustSummoned(Creature* summoned)
|
||||
{
|
||||
switch(summoned->GetEntry())
|
||||
switch (summoned->GetEntry())
|
||||
{
|
||||
case CREATURE_HAND_OF_THE_DECEIVER:
|
||||
summoned->CastSpell(summoned, SPELL_SHADOW_CHANNELING, false);
|
||||
@@ -697,13 +697,13 @@ public:
|
||||
{
|
||||
if (Timer[t] < diff && !TimerIsDeactivated[t])
|
||||
{
|
||||
switch(t)
|
||||
switch (t)
|
||||
{
|
||||
case TIMER_SPEECH:
|
||||
if (SpeechBegins)
|
||||
{
|
||||
SpeechBegins=false;
|
||||
switch(Phase)
|
||||
switch (Phase)
|
||||
{
|
||||
case PHASE_NORMAL:
|
||||
speechPhaseEnd=1;
|
||||
@@ -1139,7 +1139,7 @@ public:
|
||||
{
|
||||
if (uiTimer <= diff)
|
||||
{
|
||||
switch(spell)
|
||||
switch (spell)
|
||||
{
|
||||
case 0:
|
||||
DoCast(me, SPELL_ARMAGEDDON_VISUAL, true);
|
||||
@@ -1314,7 +1314,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
switch(victimClass) {
|
||||
switch (victimClass) {
|
||||
case CLASS_DRUID:
|
||||
if (uiTimer[1] <= diff)
|
||||
{
|
||||
|
||||
@@ -85,8 +85,8 @@ float DarkFiends[8][4] =
|
||||
{1801.98f, 633.62f, 69.74f, 5.71f},
|
||||
{1830.88f, 629.99f, 69.73f, 3.52f},
|
||||
{1800.38f, 621.41f, 69.74f, 0.22f},
|
||||
{1808.3f , 612.45f, 69.73f, 1.02f},
|
||||
{1823.9f , 639.69f, 69.74f, 4.12f},
|
||||
{1808.3f, 612.45f, 69.73f, 1.02f},
|
||||
{1823.9f, 639.69f, 69.74f, 4.12f},
|
||||
{1811.85f, 640.46f, 69.73f, 4.97f}
|
||||
};
|
||||
|
||||
@@ -95,7 +95,7 @@ float Humanoides[6][5] =
|
||||
{CREATURE_FURY_MAGE, 1780.16f, 666.83f, 71.19f, 5.21f},
|
||||
{CREATURE_FURY_MAGE, 1847.93f, 600.30f, 71.30f, 2.57f},
|
||||
{CREATURE_BERSERKER, 1779.97f, 660.64f, 71.19f, 5.28f},
|
||||
{CREATURE_BERSERKER, 1786.2f , 661.01f, 71.19f, 4.51f},
|
||||
{CREATURE_BERSERKER, 1786.2f, 661.01f, 71.19f, 4.51f},
|
||||
{CREATURE_BERSERKER, 1845.17f, 602.63f, 71.28f, 2.43f},
|
||||
{CREATURE_BERSERKER, 1842.91f, 599.93f, 71.23f, 2.44f}
|
||||
};
|
||||
@@ -145,7 +145,7 @@ public:
|
||||
|
||||
void JustSummoned(Creature* summoned)
|
||||
{
|
||||
switch(summoned->GetEntry())
|
||||
switch (summoned->GetEntry())
|
||||
{
|
||||
case CREATURE_DARK_FIENDS:
|
||||
summoned->CastSpell(summoned, SPELL_DARKFIEND_VISUAL, false);
|
||||
@@ -270,7 +270,7 @@ public:
|
||||
|
||||
void JustSummoned(Creature* summoned)
|
||||
{
|
||||
switch(summoned->GetEntry())
|
||||
switch (summoned->GetEntry())
|
||||
{
|
||||
case BOSS_ENTROPIUS:
|
||||
me->SetVisible(false);
|
||||
@@ -294,7 +294,7 @@ public:
|
||||
{
|
||||
if (!pInstance)
|
||||
return;
|
||||
switch(pInstance->GetData(DATA_MURU_EVENT))
|
||||
switch (pInstance->GetData(DATA_MURU_EVENT))
|
||||
{
|
||||
case NOT_STARTED:
|
||||
Reset();
|
||||
@@ -318,7 +318,7 @@ public:
|
||||
{
|
||||
if (Timer[i] <= diff)
|
||||
{
|
||||
switch(i)
|
||||
switch (i)
|
||||
{
|
||||
case TIMER_DARKNESS:
|
||||
if (!DarkFiend)
|
||||
@@ -419,7 +419,7 @@ public:
|
||||
me->GetHomePosition(x, y, z, o);
|
||||
DoTeleportTo(x, y, z);
|
||||
InAction = true;
|
||||
switch(Spell->Id)
|
||||
switch (Spell->Id)
|
||||
{
|
||||
case SPELL_OPEN_ALL_PORTALS:
|
||||
DoCastAOE(SPELL_OPEN_PORTAL, false);
|
||||
|
||||
@@ -140,7 +140,7 @@ public:
|
||||
|
||||
void OnCreatureCreate(Creature* creature)
|
||||
{
|
||||
switch(creature->GetEntry())
|
||||
switch (creature->GetEntry())
|
||||
{
|
||||
case 24850: Kalecgos_Dragon = creature->GetGUID(); break;
|
||||
case 24891: Kalecgos_Human = creature->GetGUID(); break;
|
||||
@@ -160,7 +160,7 @@ public:
|
||||
|
||||
void OnGameObjectCreate(GameObject* go)
|
||||
{
|
||||
switch(go->GetEntry())
|
||||
switch (go->GetEntry())
|
||||
{
|
||||
case 188421: ForceField = go->GetGUID(); break;
|
||||
case 188523: KalecgosWall[0] = go->GetGUID(); break;
|
||||
@@ -181,7 +181,7 @@ public:
|
||||
|
||||
uint32 GetData(uint32 id)
|
||||
{
|
||||
switch(id)
|
||||
switch (id)
|
||||
{
|
||||
case DATA_KALECGOS_EVENT: return m_auiEncounter[0];
|
||||
case DATA_BRUTALLUS_EVENT: return m_auiEncounter[1];
|
||||
@@ -195,7 +195,7 @@ public:
|
||||
|
||||
uint64 GetData64(uint32 id)
|
||||
{
|
||||
switch(id)
|
||||
switch (id)
|
||||
{
|
||||
case DATA_KALECGOS_DRAGON: return Kalecgos_Dragon;
|
||||
case DATA_KALECGOS_HUMAN: return Kalecgos_Human;
|
||||
@@ -220,7 +220,7 @@ public:
|
||||
|
||||
void SetData(uint32 id, uint32 data)
|
||||
{
|
||||
switch(id)
|
||||
switch (id)
|
||||
{
|
||||
case DATA_KALECGOS_EVENT:
|
||||
{
|
||||
@@ -246,7 +246,7 @@ public:
|
||||
m_auiEncounter[2] = data; break;
|
||||
case DATA_EREDAR_TWINS_EVENT: m_auiEncounter[3] = data; break;
|
||||
case DATA_MURU_EVENT:
|
||||
switch(data)
|
||||
switch (data)
|
||||
{
|
||||
case DONE:
|
||||
HandleGameObject(MurusGate[0], true);
|
||||
|
||||
@@ -105,14 +105,14 @@ class instance_uldaman : public InstanceMapScript
|
||||
case GO_ALTAR_OF_THE_KEEPER_TEMPLE_DOOR: // lock the door
|
||||
uiAltarOfTheKeeperTempleDoor = go->GetGUID();
|
||||
|
||||
if(m_auiEncounter[0] == DONE)
|
||||
if (m_auiEncounter[0] == DONE)
|
||||
HandleGameObject(0, true, go);
|
||||
break;
|
||||
|
||||
case GO_ARCHAEDAS_TEMPLE_DOOR:
|
||||
uiArchaedasTempleDoor = go->GetGUID();
|
||||
|
||||
if(m_auiEncounter[0] == DONE)
|
||||
if (m_auiEncounter[0] == DONE)
|
||||
HandleGameObject(0, true, go);
|
||||
break;
|
||||
|
||||
@@ -121,7 +121,7 @@ class instance_uldaman : public InstanceMapScript
|
||||
go->SetUInt32Value(GAMEOBJECT_FLAGS, 33);
|
||||
uiAncientVaultDoor = go->GetGUID();
|
||||
|
||||
if(m_auiEncounter[1] == DONE)
|
||||
if (m_auiEncounter[1] == DONE)
|
||||
HandleGameObject(0, true, go);
|
||||
break;
|
||||
|
||||
@@ -165,7 +165,7 @@ class instance_uldaman : public InstanceMapScript
|
||||
void BlockGO(uint64 guid)
|
||||
{
|
||||
GameObject* go = instance->GetGameObject(guid);
|
||||
if(!go)
|
||||
if (!go)
|
||||
return;
|
||||
|
||||
go->SetUInt32Value(GAMEOBJECT_FLAGS, GO_FLAG_INTERACT_COND);
|
||||
@@ -255,7 +255,7 @@ class instance_uldaman : public InstanceMapScript
|
||||
void ActivateIronaya()
|
||||
{
|
||||
Creature* ironaya = instance->GetCreature(uiIronayaGUID);
|
||||
if(!ironaya)
|
||||
if (!ironaya)
|
||||
return;
|
||||
|
||||
ironaya->setFaction(415);
|
||||
@@ -306,7 +306,7 @@ class instance_uldaman : public InstanceMapScript
|
||||
if (!bKeystoneCheck)
|
||||
return;
|
||||
|
||||
if(uiIronayaSealDoorTimer <= diff)
|
||||
if (uiIronayaSealDoorTimer <= diff)
|
||||
{
|
||||
ActivateIronaya();
|
||||
|
||||
@@ -322,17 +322,17 @@ class instance_uldaman : public InstanceMapScript
|
||||
|
||||
void SetData (uint32 type, uint32 data)
|
||||
{
|
||||
switch(type)
|
||||
switch (type)
|
||||
{
|
||||
case DATA_ALTAR_DOORS:
|
||||
m_auiEncounter[0] = data;
|
||||
if(data == DONE)
|
||||
if (data == DONE)
|
||||
SetDoor(uiAltarOfTheKeeperTempleDoor, true);
|
||||
break;
|
||||
|
||||
case DATA_ANCIENT_DOOR:
|
||||
m_auiEncounter[1] = data;
|
||||
if(data == DONE) //archeadas defeat
|
||||
if (data == DONE) //archeadas defeat
|
||||
{
|
||||
SetDoor(uiArchaedasTempleDoor, true); //re open enter door
|
||||
SetDoor(uiAncientVaultDoor, true);
|
||||
@@ -348,7 +348,7 @@ class instance_uldaman : public InstanceMapScript
|
||||
break;
|
||||
|
||||
case DATA_MINIONS:
|
||||
switch(data)
|
||||
switch (data)
|
||||
{
|
||||
case NOT_STARTED:
|
||||
if (m_auiEncounter[0] == DONE) //if players opened the doors
|
||||
@@ -446,7 +446,7 @@ class instance_uldaman : public InstanceMapScript
|
||||
case 7228: // Ironaya
|
||||
uiIronayaGUID = creature->GetGUID();
|
||||
|
||||
if(m_auiEncounter[2] != DONE)
|
||||
if (m_auiEncounter[2] != DONE)
|
||||
SetFrozenState (creature);
|
||||
break;
|
||||
|
||||
|
||||
@@ -155,7 +155,7 @@ class boss_halazzi : public CreatureScript
|
||||
|
||||
void EnterPhase(PhaseHalazzi NextPhase)
|
||||
{
|
||||
switch(NextPhase)
|
||||
switch (NextPhase)
|
||||
{
|
||||
case PHASE_LYNX:
|
||||
case PHASE_ENRAGE:
|
||||
|
||||
@@ -439,7 +439,7 @@ class boss_hexlord_malacrass : public CreatureScript
|
||||
{
|
||||
uint8 random = urand(0, 2);
|
||||
Unit* target = NULL;
|
||||
switch(PlayerAbility[PlayerClass][random].target)
|
||||
switch (PlayerAbility[PlayerClass][random].target)
|
||||
{
|
||||
case ABILITY_TARGET_SELF:
|
||||
target = me;
|
||||
|
||||
@@ -206,7 +206,7 @@ class boss_nalorakk : public CreatureScript
|
||||
{
|
||||
if (!inMove)
|
||||
{
|
||||
switch(MovePhase)
|
||||
switch (MovePhase)
|
||||
{
|
||||
case 0:
|
||||
if (me->IsWithinDistInMap(who, 50))
|
||||
@@ -314,7 +314,7 @@ class boss_nalorakk : public CreatureScript
|
||||
if (MovePhase != id)
|
||||
return;
|
||||
|
||||
switch(MovePhase)
|
||||
switch (MovePhase)
|
||||
{
|
||||
case 2:
|
||||
me->SetOrientation(3.1415f*2);
|
||||
|
||||
@@ -340,7 +340,7 @@ class boss_zuljin : public CreatureScript
|
||||
|
||||
void EnterPhase(uint32 NextPhase)
|
||||
{
|
||||
switch(NextPhase)
|
||||
switch (NextPhase)
|
||||
{
|
||||
case 0:
|
||||
break;
|
||||
|
||||
@@ -116,7 +116,7 @@ class instance_zulaman : public InstanceMapScript
|
||||
|
||||
void OnCreatureCreate(Creature* creature)
|
||||
{
|
||||
switch(creature->GetEntry())
|
||||
switch (creature->GetEntry())
|
||||
{
|
||||
case 23578://janalai
|
||||
case 23863://zuljin
|
||||
@@ -129,7 +129,7 @@ class instance_zulaman : public InstanceMapScript
|
||||
|
||||
void OnGameObjectCreate(GameObject* go)
|
||||
{
|
||||
switch(go->GetEntry())
|
||||
switch (go->GetEntry())
|
||||
{
|
||||
case 186303: HalazziDoorGUID = go->GetGUID(); break;
|
||||
case 186304: ZulJinGateGUID = go->GetGUID(); break;
|
||||
@@ -205,7 +205,7 @@ class instance_zulaman : public InstanceMapScript
|
||||
|
||||
void SetData(uint32 type, uint32 data)
|
||||
{
|
||||
switch(type)
|
||||
switch (type)
|
||||
{
|
||||
case DATA_NALORAKKEVENT:
|
||||
m_auiEncounter[0] = data;
|
||||
@@ -279,7 +279,7 @@ class instance_zulaman : public InstanceMapScript
|
||||
|
||||
uint32 GetData(uint32 type)
|
||||
{
|
||||
switch(type)
|
||||
switch (type)
|
||||
{
|
||||
case DATA_NALORAKKEVENT: return m_auiEncounter[0];
|
||||
case DATA_AKILZONEVENT: return m_auiEncounter[1];
|
||||
|
||||
@@ -65,7 +65,7 @@ class npc_forest_frog : public CreatureScript
|
||||
if (pInstance)
|
||||
{
|
||||
uint32 cEntry = 0;
|
||||
switch(rand()%10)
|
||||
switch (rand()%10)
|
||||
{
|
||||
case 0: cEntry = 24397; break; //Mannuth
|
||||
case 1: cEntry = 24403; break; //Deez
|
||||
|
||||
@@ -178,22 +178,22 @@ class boss_venoxis : public CreatureScript
|
||||
|
||||
while (uint32 eventId = events.ExecuteEvent())
|
||||
{
|
||||
switch(eventId)
|
||||
switch (eventId)
|
||||
{
|
||||
// thrash is available in all phases
|
||||
case EVENT_THRASH:
|
||||
DoCast(me, SPELL_THRASH, true);
|
||||
events.ScheduleEvent(EVENT_THRASH, urand(10000,20000));
|
||||
events.ScheduleEvent(EVENT_THRASH, urand(10000, 20000));
|
||||
break;
|
||||
|
||||
// troll form spells and actions (first part)
|
||||
case EVENT_DISPEL_MAGIC:
|
||||
DoCast(me, SPELL_DISPEL_MAGIC);
|
||||
events.ScheduleEvent(EVENT_DISPEL_MAGIC, urand(15000,20000), 0, PHASE_ONE);
|
||||
events.ScheduleEvent(EVENT_DISPEL_MAGIC, urand(15000, 20000), 0, PHASE_ONE);
|
||||
break;
|
||||
case EVENT_RENEW:
|
||||
DoCast(me, SPELL_RENEW);
|
||||
events.ScheduleEvent(EVENT_RENEW, urand(25000,30000), 0, PHASE_ONE);
|
||||
events.ScheduleEvent(EVENT_RENEW, urand(25000, 30000), 0, PHASE_ONE);
|
||||
break;
|
||||
case EVENT_HOLY_NOVA:
|
||||
_inMeleeRange = 0;
|
||||
@@ -210,17 +210,17 @@ class boss_venoxis : public CreatureScript
|
||||
if (_inMeleeRange >= 3)
|
||||
DoCast(me->getVictim(), SPELL_HOLY_NOVA);
|
||||
|
||||
events.ScheduleEvent(EVENT_HOLY_NOVA, urand(45000,75000), 0, PHASE_ONE);
|
||||
events.ScheduleEvent(EVENT_HOLY_NOVA, urand(45000, 75000), 0, PHASE_ONE);
|
||||
break;
|
||||
case EVENT_HOLY_FIRE:
|
||||
if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM))
|
||||
DoCast(target, SPELL_HOLY_FIRE);
|
||||
events.ScheduleEvent(EVENT_HOLY_FIRE, urand(45000,60000), 0, PHASE_ONE);
|
||||
events.ScheduleEvent(EVENT_HOLY_FIRE, urand(45000, 60000), 0, PHASE_ONE);
|
||||
break;
|
||||
case EVENT_HOLY_WRATH:
|
||||
if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM))
|
||||
DoCast(target, SPELL_HOLY_WRATH);
|
||||
events.ScheduleEvent(EVENT_HOLY_WRATH, urand(45000,60000), 0, PHASE_ONE);
|
||||
events.ScheduleEvent(EVENT_HOLY_WRATH, urand(45000, 60000), 0, PHASE_ONE);
|
||||
break;
|
||||
|
||||
//
|
||||
@@ -230,12 +230,12 @@ class boss_venoxis : public CreatureScript
|
||||
case EVENT_VENOM_SPIT:
|
||||
if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM))
|
||||
DoCast(target, SPELL_VENOM_SPIT);
|
||||
events.ScheduleEvent(EVENT_VENOM_SPIT, urand(5000,15000), 0, PHASE_TWO);
|
||||
events.ScheduleEvent(EVENT_VENOM_SPIT, urand(5000, 15000), 0, PHASE_TWO);
|
||||
break;
|
||||
case EVENT_POISON_CLOUD:
|
||||
if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM))
|
||||
DoCast(target, SPELL_POISON_CLOUD);
|
||||
events.ScheduleEvent(EVENT_POISON_CLOUD, urand(15000,20000), 0, PHASE_TWO);
|
||||
events.ScheduleEvent(EVENT_POISON_CLOUD, urand(15000, 20000), 0, PHASE_TWO);
|
||||
break;
|
||||
case EVENT_PARASITIC_SERPENT:
|
||||
if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM))
|
||||
|
||||
@@ -65,7 +65,7 @@ class instance_zulgurub : public InstanceMapScript
|
||||
|
||||
void OnCreatureCreate(Creature* creature)
|
||||
{
|
||||
switch(creature->GetEntry())
|
||||
switch (creature->GetEntry())
|
||||
{
|
||||
case 11347: m_uiLorKhanGUID = creature->GetGUID(); break;
|
||||
case 11348: m_uiZathGUID = creature->GetGUID(); break;
|
||||
@@ -76,7 +76,7 @@ class instance_zulgurub : public InstanceMapScript
|
||||
|
||||
void SetData(uint32 uiType, uint32 uiData)
|
||||
{
|
||||
switch(uiType)
|
||||
switch (uiType)
|
||||
{
|
||||
case DATA_ARLOKK:
|
||||
m_auiEncounter[0] = uiData;
|
||||
@@ -114,7 +114,7 @@ class instance_zulgurub : public InstanceMapScript
|
||||
|
||||
uint32 GetData(uint32 uiType)
|
||||
{
|
||||
switch(uiType)
|
||||
switch (uiType)
|
||||
{
|
||||
case DATA_ARLOKK:
|
||||
return m_auiEncounter[0];
|
||||
@@ -138,7 +138,7 @@ class instance_zulgurub : public InstanceMapScript
|
||||
|
||||
uint64 GetData64(uint32 uiData)
|
||||
{
|
||||
switch(uiData)
|
||||
switch (uiData)
|
||||
{
|
||||
case DATA_LORKHAN:
|
||||
return m_uiLorKhanGUID;
|
||||
|
||||
@@ -71,7 +71,7 @@ class npc_professor_phizzlethorpe : public CreatureScript
|
||||
if (!player)
|
||||
return;
|
||||
|
||||
switch(uiPointId)
|
||||
switch (uiPointId)
|
||||
{
|
||||
case 4:DoScriptText(SAY_PROGRESS_2, me, player);break;
|
||||
case 5:DoScriptText(SAY_PROGRESS_3, me, player);break;
|
||||
|
||||
@@ -56,7 +56,7 @@ public:
|
||||
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
player->PlayerTalkClass->ClearMenus();
|
||||
switch(uiAction)
|
||||
switch (uiAction)
|
||||
{
|
||||
case GOSSIP_ACTION_INFO_DEF+1:
|
||||
player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_SELECT, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+2);
|
||||
@@ -222,7 +222,7 @@ public:
|
||||
spellJudLight = false;
|
||||
spellCommand = false;
|
||||
|
||||
switch(me->GetEntry())
|
||||
switch (me->GetEntry())
|
||||
{
|
||||
case CHAMPION_BLOODWRATH:
|
||||
spellFlashLight = true;
|
||||
@@ -417,7 +417,7 @@ public:
|
||||
{
|
||||
CAST_AI(npc_second_trial_paladin::npc_secondTrialAI, paladinSpawn->AI())->Activate(me->GetGUID());
|
||||
|
||||
switch(paladinPhase)
|
||||
switch (paladinPhase)
|
||||
{
|
||||
case 0:
|
||||
DoScriptText(TEXT_SECOND_TRIAL_1, me);
|
||||
|
||||
@@ -178,7 +178,7 @@ public:
|
||||
if (!player)
|
||||
return;
|
||||
|
||||
switch(i)
|
||||
switch (i)
|
||||
{
|
||||
case 0:
|
||||
{
|
||||
|
||||
@@ -89,7 +89,7 @@ public:
|
||||
|
||||
void WaypointReached(uint32 uiPointId)
|
||||
{
|
||||
switch(uiPointId)
|
||||
switch (uiPointId)
|
||||
{
|
||||
case 26:
|
||||
DoScriptText(SAY_OOX_AMBUSH, me);
|
||||
@@ -107,7 +107,7 @@ public:
|
||||
|
||||
void WaypointStart(uint32 uiPointId)
|
||||
{
|
||||
switch(uiPointId)
|
||||
switch (uiPointId)
|
||||
{
|
||||
case 27:
|
||||
for (uint8 i = 0; i < 3; ++i)
|
||||
@@ -284,7 +284,7 @@ public:
|
||||
if (!player)
|
||||
return;
|
||||
|
||||
switch(uiPointId)
|
||||
switch (uiPointId)
|
||||
{
|
||||
case 1:
|
||||
DoScriptText(SAY_RIN_FREE, me, player);
|
||||
@@ -317,7 +317,7 @@ public:
|
||||
|
||||
if (Unit* player = GetPlayerForEscort())
|
||||
{
|
||||
switch(m_uiPostEventCount)
|
||||
switch (m_uiPostEventCount)
|
||||
{
|
||||
case 1:
|
||||
DoScriptText(SAY_RIN_PROGRESS_1, me, player);
|
||||
|
||||
@@ -86,7 +86,7 @@ public:
|
||||
if (uiI >= 65 && me->GetUnitMovementFlags() == MOVEMENTFLAG_WALKING)
|
||||
me->RemoveUnitMovementFlag(MOVEMENTFLAG_WALKING);
|
||||
|
||||
switch(uiI)
|
||||
switch (uiI)
|
||||
{
|
||||
case 39:
|
||||
SetEscortPaused(true);
|
||||
@@ -115,7 +115,7 @@ public:
|
||||
{
|
||||
if (uiTimer <= uiDiff)
|
||||
{
|
||||
switch(uiPhase)
|
||||
switch (uiPhase)
|
||||
{
|
||||
case 1:
|
||||
me->SetStandState(UNIT_STAND_STATE_SIT);
|
||||
|
||||
@@ -141,7 +141,7 @@ public:
|
||||
if (!player)
|
||||
return;
|
||||
|
||||
switch(i)
|
||||
switch (i)
|
||||
{
|
||||
case 1: DoScriptText(SAY_START, me, player);break;
|
||||
case 13:
|
||||
|
||||
@@ -346,7 +346,7 @@ public:
|
||||
|
||||
void WaypointReached(uint32 uiPointId)
|
||||
{
|
||||
switch(uiPointId)
|
||||
switch (uiPointId)
|
||||
{
|
||||
case 14:
|
||||
SetEscortPaused(true);
|
||||
@@ -387,7 +387,7 @@ public:
|
||||
{
|
||||
if (uiTimer <= uiDiff)
|
||||
{
|
||||
switch(uiPhase)
|
||||
switch (uiPhase)
|
||||
{
|
||||
case 1:
|
||||
if (Creature* pGuard = me->FindNearestCreature(NPC_STORMWIND_ROYAL, 8.0f, true))
|
||||
@@ -577,7 +577,7 @@ public:
|
||||
|
||||
void WaypointReached(uint32 uiPointId)
|
||||
{
|
||||
switch(uiPointId)
|
||||
switch (uiPointId)
|
||||
{
|
||||
case 1:
|
||||
SetEscortPaused(true);
|
||||
@@ -605,7 +605,7 @@ public:
|
||||
{
|
||||
if (uiTimer <= uiDiff)
|
||||
{
|
||||
switch(uiPhase)
|
||||
switch (uiPhase)
|
||||
{
|
||||
case 1:
|
||||
DoScriptText(SAY_QUEST_ACCEPT_ATTACK, me);
|
||||
|
||||
@@ -123,7 +123,7 @@ public:
|
||||
return;
|
||||
}
|
||||
|
||||
switch(m_uiPhase)
|
||||
switch (m_uiPhase)
|
||||
{
|
||||
case 1:
|
||||
DoScriptText(SAY_COMPLETE, me);
|
||||
|
||||
@@ -52,7 +52,7 @@ public:
|
||||
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
player->PlayerTalkClass->ClearMenus();
|
||||
switch(uiAction)
|
||||
switch (uiAction)
|
||||
{
|
||||
case GOSSIP_ACTION_TRADE:
|
||||
player->GetSession()->SendListInventory(creature->GetGUID());
|
||||
@@ -191,7 +191,7 @@ public:
|
||||
|
||||
if (who->GetTypeId() == TYPEID_PLAYER)
|
||||
{
|
||||
switch(me->GetAreaId())
|
||||
switch (me->GetAreaId())
|
||||
{
|
||||
case 199: //felstone
|
||||
if (CAST_PLR(who)->GetQuestStatus(5216) == QUEST_STATUS_INCOMPLETE ||
|
||||
@@ -358,7 +358,7 @@ public:
|
||||
case 22:
|
||||
break;
|
||||
case 23:
|
||||
Ughost = me->SummonCreature(NPC_GHOST_UTHER, 971.86f, -1825.42f , 81.99f , 0.0f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 30000);
|
||||
Ughost = me->SummonCreature(NPC_GHOST_UTHER, 971.86f, -1825.42f, 81.99f, 0.0f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 30000);
|
||||
Ughost->AddUnitMovementFlag(MOVEMENTFLAG_LEVITATING);
|
||||
DoScriptText(SAY_WP_4, Ughost, me);
|
||||
m_uiChatTimer = 4000;
|
||||
|
||||
@@ -83,7 +83,7 @@ public:
|
||||
{
|
||||
if (HasEscortState(STATE_ESCORT_ESCORTING))
|
||||
{
|
||||
switch(uiWPHolder)
|
||||
switch (uiWPHolder)
|
||||
{
|
||||
case 7: DoScriptText(SAY_DS_DOWN_1, me); break;
|
||||
case 8: DoScriptText(SAY_DS_DOWN_2, me); break;
|
||||
@@ -105,7 +105,7 @@ public:
|
||||
|
||||
uiWPHolder = uiPoint;
|
||||
|
||||
switch(uiPoint)
|
||||
switch (uiPoint)
|
||||
{
|
||||
case 4:
|
||||
SetEquipmentSlots(false, EQUIP_NO_CHANGE, EQUIP_NO_CHANGE, EQUIP_ID_RIFLE);
|
||||
|
||||
@@ -69,7 +69,7 @@ public:
|
||||
|
||||
void WaypointReached(uint32 uiPointId)
|
||||
{
|
||||
switch(uiPointId)
|
||||
switch (uiPointId)
|
||||
{
|
||||
case 2:
|
||||
if (me->HasStealthAura())
|
||||
|
||||
Reference in New Issue
Block a user