21 SF_LOG_DEBUG(
"network",
"WORLD: Received CMSG_TAXI_NODE_STATUS_QUERY");
47 SF_LOG_DEBUG(
"network",
"WORLD: current location %u ", curloc);
74 SF_LOG_DEBUG(
"network",
"WORLD: Sent SMSG_TAXI_NODE_STATUS");
79 SF_LOG_DEBUG(
"network",
"WORLD: Received CMSG_TAXI_QUERY_AVAILABLE_NODES");
90 SF_LOG_DEBUG(
"network",
"WORLD: HandleTaxiQueryAvailableNodes - Unit (GUID: %u) not found or you can't interact with him.",
uint32(
GUID_LOPART(guid)));
117 SF_LOG_DEBUG(
"network",
"WORLD: CMSG_TAXI_NODE_STATUS_QUERY %u ", curloc);
133 SF_LOG_DEBUG(
"network",
"WORLD: Sent SMSG_SHOW_TAXI_NODES");
162 if (
GetPlayer()->m_taxi.SetTaximaskNode(curloc))
184 if (
GetPlayer()->m_taxi.SetTaximaskNode(nodeid))
193 SF_LOG_DEBUG(
"network",
"WORLD: Received CMSG_ACTIVATE_TAXI_EXPRESS");
203 std::vector<uint32> nodes;
205 for (
uint32 i = 0; i < node_count; ++i)
209 nodes.push_back(node);
217 SF_LOG_DEBUG(
"network",
"WORLD: HandleActivateTaxiExpressOpcode - Unit (GUID: %u) not found or you can't interact with it.",
uint32(
GUID_LOPART(guid)));
221 SF_LOG_DEBUG(
"network",
"WORLD: Received CMSG_ACTIVATE_TAXI_EXPRESS from %d to %d", nodes.front(), nodes.back());
228 SF_LOG_DEBUG(
"network",
"WORLD: Received CMSG_MOVE_SPLINE_DONE");
231 recvData >> SplineID;
233 _player->ReadMovementInfo(recvData, &movementInfo);
264 if (destinationnode > 0)
272 if (
GetPlayer()->m_taxi.SetTaximaskNode(sourcenode))
275 _player->GetSession()->SendPacket(&data);
279 SF_LOG_DEBUG(
"network",
"WORLD: Taxi has to go from %u to %u", sourcenode, destinationnode);
284 sObjectMgr->GetTaxiPath(sourcenode, destinationnode, path, cost);
286 if (path && mountDisplayId)
303 SF_LOG_DEBUG(
"network",
"WORLD: Received CMSG_ACTIVATE_TAXI");
306 std::vector<uint32> nodes;
309 recvData >> nodes[1] >> nodes[0];
313 SF_LOG_DEBUG(
"network",
"WORLD: Received CMSG_ACTIVATE_TAXI from %d to %d", nodes[0], nodes[1]);
317 SF_LOG_DEBUG(
"network",
"WORLD: HandleActivateTaxiOpcode - Unit (GUID: %u) not found or you can't interact with it.",
uint32(
GUID_LOPART(guid)));
DBCStorage< TaxiNodesEntry > sTaxiNodesStore(TaxiNodesEntryfmt)
#define SF_LOG_DEBUG(filterType__,...)
uint32 GUID_LOPART(uint64 x)
ActivateTaxiReply
5.4.8 18414
@ UNIT_NPC_FLAG_FLIGHTMASTER
void WriteGuidBytes(const ObjectGuid &guid, Offsets... offsets)
bool WriteBit(uint32 bit)
void WriteGuidMask(const ObjectGuid &guid, Offsets... offsets)
uint32 ReadBits(size_t bits)
void ReadGuidBytes(ObjectGuid &guid, Offsets... offsets)
void ReadGuidMask(ObjectGuid &guid, Offsets... offsets)
void WriteBits(T value, size_t bits)
void WriteByteSeq(uint8 b)
void SetCurrentNodeAfterTeleport()
TaxiPathNodeList const & GetPath()
Creature * GetCreature(uint64 guid)
void MoveTaxiFlight(uint32 path, uint32 pathnode)
void MovementExpired(bool reset=true)
uint32 GetCurrentNode() const
void SetFallInformation(uint32 time, float z)
Creature * GetNPCIfCanInteractWith(uint64 guid, uint32 npcflagmask)
bool TeleportTo(uint32 mapid, float x, float y, float z, float orientation, uint32 options=0)
bool ActivateTaxiPathTo(std::vector< uint32 > const &nodes, Creature *npc=NULL, uint32 spellid=0)
void SetTaxiCheater(bool on)
void CleanupAfterTaxiFlight()
bool isTaxiCheater() const
uint32 GetTaxiSource() const
uint32 NextTaxiDestination()
uint32 GetTaxiDestination() const
void AppendTaximaskTo(ByteBuffer &data, bool all)
void ClearTaxiDestinations()
void CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0)
MotionMaster * GetMotionMaster()
void Mount(uint32 mount, uint32 vehicleId=0, uint32 creatureEntry=0)
void RemoveAurasByType(AuraType auraType, uint64 casterGUID=0, Aura *except=NULL, bool negative=true, bool positive=true)
void HandleMoveSplineDoneOpcode(WorldPacket &recvPacket)
void HandleActivateTaxiOpcode(WorldPacket &recvPacket)
bool SendLearnNewTaxiNode(Creature *unit)
void SendTaxiMenu(Creature *unit)
Player * GetPlayer() const
void HandleTaxiNodeStatusQueryOpcode(WorldPacket &recvPacket)
void SendActivateTaxiReply(ActivateTaxiReply reply)
void SendPacket(WorldPacket const *packet, bool forced=false)
Send a packet to the client.
void HandleTaxiQueryAvailableNodes(WorldPacket &recvPacket)
void SendDiscoverNewTaxiNode(uint32 nodeid)
void HandleActivateTaxiExpressOpcode(WorldPacket &recvPacket)
void SendTaxiStatus(uint64 guid)
void SendDoFlight(uint32 mountDisplayId, uint32 path, uint32 pathNode=0)
@ SMSG_ACTIVATE_TAXI_REPLY
float GetPositionZ() const
float GetPositionX() const
float GetPositionY() const