aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Server
diff options
context:
space:
mode:
authorQAston <none@none>2010-07-20 18:27:18 +0200
committerQAston <none@none>2010-07-20 18:27:18 +0200
commita7c52864b45a3142704f93aed85bfbbde4627670 (patch)
treef8d92a14385173403638648ce9483271d67de75d /src/server/game/Server
parentb59b21fa69bb3a667f49619d231b66f44fc66c6f (diff)
*Implement SPELL_EFFECT_DISCOVER_TAXI(154).
--HG-- branch : trunk
Diffstat (limited to 'src/server/game/Server')
-rw-r--r--src/server/game/Server/Protocol/Handlers/TaxiHandler.cpp9
-rw-r--r--src/server/game/Server/WorldSession.h1
2 files changed, 10 insertions, 0 deletions
diff --git a/src/server/game/Server/Protocol/Handlers/TaxiHandler.cpp b/src/server/game/Server/Protocol/Handlers/TaxiHandler.cpp
index 3402c99ce8b..ae74b714904 100644
--- a/src/server/game/Server/Protocol/Handlers/TaxiHandler.cpp
+++ b/src/server/game/Server/Protocol/Handlers/TaxiHandler.cpp
@@ -157,6 +157,15 @@ bool WorldSession::SendLearnNewTaxiNode(Creature* unit)
return false;
}
+void WorldSession::SendDiscoverNewTaxiNode(uint32 nodeid)
+{
+ if (GetPlayer()->m_taxi.SetTaximaskNode(nodeid))
+ {
+ WorldPacket msg(SMSG_NEW_TAXI_PATH, 0);
+ SendPacket(&msg);
+ }
+}
+
void WorldSession::HandleActivateTaxiExpressOpcode (WorldPacket & recv_data)
{
sLog.outDebug("WORLD: Received CMSG_ACTIVATETAXIEXPRESS");
diff --git a/src/server/game/Server/WorldSession.h b/src/server/game/Server/WorldSession.h
index dbcc94f071b..2da8c9440f7 100644
--- a/src/server/game/Server/WorldSession.h
+++ b/src/server/game/Server/WorldSession.h
@@ -256,6 +256,7 @@ class WorldSession
void SendTaxiMenu(Creature* unit);
void SendDoFlight(uint32 mountDisplayId, uint32 path, uint32 pathNode = 0);
bool SendLearnNewTaxiNode(Creature* unit);
+ void SendDiscoverNewTaxiNode(uint32 nodeid);
// Guild/Arena Team
void SendGuildCommandResult(uint32 typecmd, const std::string& str, uint32 cmdresult);