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 <[email protected]>
This commit is contained in:
Gyx
2012-03-29 15:44:24 +08:00
parent 5b7493fc66
commit 391d68be20
67 changed files with 660 additions and 603 deletions
+65 -24
View File
@@ -319,36 +319,77 @@ public:
public:
npc_kservantAI(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: DoScriptText(SAY1, me, player); break;
case 4: DoScriptText(WHISP1, me, player); break;
case 6: DoScriptText(WHISP2, me, player); break;
case 7: DoScriptText(WHISP3, me, player); break;
case 8: DoScriptText(WHISP4, me, player); break;
case 17: DoScriptText(WHISP5, me, player); break;
case 18: DoScriptText(WHISP6, me, player); break;
case 19: DoScriptText(WHISP7, me, player); break;
case 33: DoScriptText(WHISP8, me, player); break;
case 34: DoScriptText(WHISP9, me, player); break;
case 35: DoScriptText(WHISP10, me, player); break;
case 36: DoScriptText(WHISP11, me, player); break;
case 43: DoScriptText(WHISP12, me, player); break;
case 44: DoScriptText(WHISP13, me, player); break;
case 49: DoScriptText(WHISP14, me, player); break;
case 50: DoScriptText(WHISP15, me, player); break;
case 51: DoScriptText(WHISP16, me, player); break;
case 52: DoScriptText(WHISP17, me, player); break;
case 53: DoScriptText(WHISP18, me, player); break;
case 54: DoScriptText(WHISP19, me, player); break;
case 55: DoScriptText(WHISP20, me, player); break;
case 0:
DoScriptText(SAY1, me, player);
break;
case 4:
DoScriptText(WHISP1, me, player);
break;
case 6:
DoScriptText(WHISP2, me, player);
break;
case 7:
DoScriptText(WHISP3, me, player);
break;
case 8:
DoScriptText(WHISP4, me, player);
break;
case 17:
DoScriptText(WHISP5, me, player);
break;
case 18:
DoScriptText(WHISP6, me, player);
break;
case 19:
DoScriptText(WHISP7, me, player);
break;
case 33:
DoScriptText(WHISP8, me, player);
break;
case 34:
DoScriptText(WHISP9, me, player);
break;
case 35:
DoScriptText(WHISP10, me, player);
break;
case 36:
DoScriptText(WHISP11, me, player);
break;
case 43:
DoScriptText(WHISP12, me, player);
break;
case 44:
DoScriptText(WHISP13, me, player);
break;
case 49:
DoScriptText(WHISP14, me, player);
break;
case 50:
DoScriptText(WHISP15, me, player);
break;
case 51:
DoScriptText(WHISP16, me, player);
break;
case 52:
DoScriptText(WHISP17, me, player);
break;
case 53:
DoScriptText(WHISP18, me, player);
break;
case 54:
DoScriptText(WHISP19, me, player);
break;
case 55:
DoScriptText(WHISP20, me, player);
break;
case 56:
DoScriptText(WHISP21, me, player);
player->GroupEventHappens(10211, me);