diff options
| author | ForesterDev <11771800+ForesterDev@users.noreply.github.com> | 2019-07-25 14:54:49 +0400 |
|---|---|---|
| committer | Giacomo Pozzoni <giacomopoz@gmail.com> | 2019-07-25 12:54:49 +0200 |
| commit | 0c317498a57b3983de61d381d684a77176b281e4 (patch) | |
| tree | ea5ce29a5470e89df1e16a2957502def728ba0a0 /src/server/scripts/Kalimdor | |
| parent | b9756de7e5b8147569faebb31caad91d3d0cd7dd (diff) | |
Scripts/Defines: cleanup some magic numbers in factions (#23631)
Diffstat (limited to 'src/server/scripts/Kalimdor')
6 files changed, 10 insertions, 18 deletions
diff --git a/src/server/scripts/Kalimdor/ZulFarrak/zulfarrak.cpp b/src/server/scripts/Kalimdor/ZulFarrak/zulfarrak.cpp index 249b53c9fa5..d8c19922c37 100644 --- a/src/server/scripts/Kalimdor/ZulFarrak/zulfarrak.cpp +++ b/src/server/scripts/Kalimdor/ZulFarrak/zulfarrak.cpp @@ -439,8 +439,7 @@ public: enum zumrahConsts { - ZUMRAH_ID = 7271, - ZUMRAH_HOSTILE_FACTION = 37 + ZUMRAH_ID = 7271 }; class at_zumrah : public AreaTriggerScript @@ -455,7 +454,7 @@ public: if (!pZumrah) return false; - pZumrah->SetFaction(ZUMRAH_HOSTILE_FACTION); + pZumrah->SetFaction(FACTION_TROLL_FROSTMANE); return true; } diff --git a/src/server/scripts/Kalimdor/zone_darkshore.cpp b/src/server/scripts/Kalimdor/zone_darkshore.cpp index 00e071cbf4f..9ff9a03b3e1 100644 --- a/src/server/scripts/Kalimdor/zone_darkshore.cpp +++ b/src/server/scripts/Kalimdor/zone_darkshore.cpp @@ -53,8 +53,7 @@ enum Kerlonian SPELL_SLEEP_VISUAL = 25148, SPELL_AWAKEN = 17536, QUEST_SLEEPER_AWAKENED = 5321, - NPC_LILADRIS = 11219, //attackers entries unknown - FACTION_KER_ESCORTEE = 113 + NPC_LILADRIS = 11219 //attackers entries unknown }; /// @todo make concept similar as "ringo" -escort. Find a way to run the scripted attacks, _if_ player are choosing road. @@ -162,7 +161,7 @@ public: { me->SetStandState(UNIT_STAND_STATE_STAND); Talk(SAY_KER_START, player); - StartFollow(player, FACTION_KER_ESCORTEE, quest); + StartFollow(player, FACTION_ESCORTEE_N_NEUTRAL_PASSIVE, quest); } } }; diff --git a/src/server/scripts/Kalimdor/zone_stonetalon_mountains.cpp b/src/server/scripts/Kalimdor/zone_stonetalon_mountains.cpp index ea08b807389..e1bbd291c02 100644 --- a/src/server/scripts/Kalimdor/zone_stonetalon_mountains.cpp +++ b/src/server/scripts/Kalimdor/zone_stonetalon_mountains.cpp @@ -28,8 +28,6 @@ enum Kaya { - FACTION_ESCORTEE_H = 775, - NPC_GRIMTOTEM_RUFFIAN = 11910, NPC_GRIMTOTEM_BRUTE = 11912, NPC_GRIMTOTEM_SORCERER = 11913, diff --git a/src/server/scripts/Kalimdor/zone_tanaris.cpp b/src/server/scripts/Kalimdor/zone_tanaris.cpp index 4dfab9d4653..728aef81fef 100644 --- a/src/server/scripts/Kalimdor/zone_tanaris.cpp +++ b/src/server/scripts/Kalimdor/zone_tanaris.cpp @@ -279,8 +279,7 @@ enum Tooga QUEST_TOOGA = 1560, NPC_TORTA = 6015, - POINT_ID_TO_WATER = 1, - FACTION_TOOG_ESCORTEE = 113 + POINT_ID_TO_WATER = 1 }; Position const ToWaterLoc = {-7032.664551f, -4906.199219f, -1.606446f, 0.0f}; @@ -417,7 +416,7 @@ public: void QuestAccept(Player* player, Quest const* quest) override { if (quest->GetQuestId() == QUEST_TOOGA) - StartFollow(player, FACTION_TOOG_ESCORTEE, quest); + StartFollow(player, FACTION_ESCORTEE_N_NEUTRAL_PASSIVE, quest); } }; diff --git a/src/server/scripts/Kalimdor/zone_the_barrens.cpp b/src/server/scripts/Kalimdor/zone_the_barrens.cpp index 3bf0afe1c7d..ccd97e5cd0d 100644 --- a/src/server/scripts/Kalimdor/zone_the_barrens.cpp +++ b/src/server/scripts/Kalimdor/zone_the_barrens.cpp @@ -176,7 +176,6 @@ public: enum TaskmasterFizzule { - FACTION_FRIENDLY_F = 35, SPELL_FLARE = 10113, SPELL_FOLLY = 10137, }; @@ -226,7 +225,7 @@ public: EngagementOver(); me->GetMotionMaster()->MoveIdle(); - me->SetFaction(FACTION_FRIENDLY_F); + me->SetFaction(FACTION_FRIENDLY); me->HandleEmoteCommand(EMOTE_ONESHOT_SALUTE); } @@ -266,7 +265,7 @@ public: { if (FlareCount >= 2) { - if (me->GetFaction() == FACTION_FRIENDLY_F) + if (me->GetFaction() == FACTION_FRIENDLY) return; DoFriend(); @@ -520,7 +519,6 @@ enum Wizzlecrank SAY_END = 6, QUEST_ESCAPE = 863, - FACTION_RATCHET = 637, NPC_PILOT_WIZZ = 3451, NPC_MERCENARY = 3282, }; diff --git a/src/server/scripts/Kalimdor/zone_ungoro_crater.cpp b/src/server/scripts/Kalimdor/zone_ungoro_crater.cpp index 4f4701caa77..41401fb8c7c 100644 --- a/src/server/scripts/Kalimdor/zone_ungoro_crater.cpp +++ b/src/server/scripts/Kalimdor/zone_ungoro_crater.cpp @@ -171,8 +171,7 @@ enum Ringo SPELL_REVIVE_RINGO = 15591, QUEST_A_LITTLE_HELP = 4491, - NPC_SPRAGGLE = 9997, - FACTION_ESCORTEE = 113 + NPC_SPRAGGLE = 9997 }; class npc_ringo : public CreatureScript @@ -341,7 +340,7 @@ public: if (quest->GetQuestId() == QUEST_A_LITTLE_HELP) { me->SetStandState(UNIT_STAND_STATE_STAND); - StartFollow(player, FACTION_ESCORTEE, quest); + StartFollow(player, FACTION_ESCORTEE_N_NEUTRAL_PASSIVE, quest); } } }; |
