aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/EasternKingdoms/ghostlands.cpp
diff options
context:
space:
mode:
authorGyx <2359980687@qq.com>2012-03-29 15:44:24 +0800
committerGyx <2359980687@qq.com>2012-03-29 15:44:24 +0800
commit391d68be20d883a976c75a0b0833d616b178e025 (patch)
treed9fae98700a2bd5d32f74cdb36a4890359d4599e /src/server/scripts/EasternKingdoms/ghostlands.cpp
parent5b7493fc6676aa1f5ae762b9b0d5d12a01a30e14 (diff)
Core/Script: Code style.
WaypointReached(uint32 i) -> WaypointReached(uint32 waypointId) WaypointReached(uint32 uiPointId) -> WaypointReached(uint32 waypointId) WaypointReached(uint32 /*point*/) -> WaypointReached(uint32 /*waypointId*/) WaypointReached(uint32 uiI) -> WaypointReached(uint32 waypointId) WaypointReached(uint32 /*i*/) -> WaypointReached(uint32 waypointId) WaypointReached(uint32 uiWPointId) -> WaypointReached(uint32 waypointId) WaypointReached(uint32 /*wp*/) -> WaypointReached(uint32 waypointId) WaypointReached(uint32 /*point*/) -> WaypointReached(uint32 waypointId) Signed-off-by: Gyx <2359980687@qq.com>
Diffstat (limited to 'src/server/scripts/EasternKingdoms/ghostlands.cpp')
-rw-r--r--src/server/scripts/EasternKingdoms/ghostlands.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/server/scripts/EasternKingdoms/ghostlands.cpp b/src/server/scripts/EasternKingdoms/ghostlands.cpp
index 8859dff1c77..e40a2f785e6 100644
--- a/src/server/scripts/EasternKingdoms/ghostlands.cpp
+++ b/src/server/scripts/EasternKingdoms/ghostlands.cpp
@@ -130,14 +130,13 @@ public:
{
npc_ranger_lilathaAI(Creature* creature) : npc_escortAI(creature) {}
- void WaypointReached(uint32 i)
+ void WaypointReached(uint32 waypointId)
{
Player* player = GetPlayerForEscort();
-
if (!player)
return;
- switch (i)
+ switch (waypointId)
{
case 0:
me->SetUInt32Value(UNIT_FIELD_BYTES_1, 0);
@@ -145,16 +144,13 @@ public:
Cage->SetGoState(GO_STATE_ACTIVE);
DoScriptText(SAY_START, me, player);
break;
-
case 5:
DoScriptText(SAY_PROGRESS1, me, player);
break;
-
case 11:
DoScriptText(SAY_PROGRESS2, me, player);
me->SetOrientation(4.762841f);
break;
-
case 18:
{
DoScriptText(SAY_PROGRESS3, me, player);
@@ -168,25 +164,20 @@ public:
me->AI()->AttackStart(Summ1);
}
break;
-
case 19:
me->SetWalk(false);
break;
-
case 25:
me->SetWalk(true);
break;
-
case 30:
if (player->GetTypeId() == TYPEID_PLAYER)
CAST_PLR(player)->GroupEventHappens(QUEST_ESCAPE_FROM_THE_CATACOMBS, me);
break;
-
case 32:
me->SetOrientation(2.978281f);
DoScriptText(SAY_END1, me, player);
break;
-
case 33:
me->SetOrientation(5.858011f);
DoScriptText(SAY_END2, me, player);