34 TC_LOG_DEBUG(
"network",
"WORLD: Received CMSG_TAXINODE_STATUS_QUERY");
48 TC_LOG_DEBUG(
"network",
"WorldSession::SendTaxiStatus - {} not found or you can't interact with him.", guid.
ToString());
65 TC_LOG_DEBUG(
"network",
"WORLD: Received CMSG_TAXIQUERYAVAILABLENODES");
74 TC_LOG_DEBUG(
"network",
"WORLD: HandleTaxiQueryAvailableNodes - {} not found or you can't interact with him.", guid.
ToString());
101 TC_LOG_DEBUG(
"network",
"WORLD: CMSG_TAXINODE_STATUS_QUERY {} ", curloc);
110 TC_LOG_DEBUG(
"network",
"WORLD: Sent SMSG_SHOWTAXINODES");
135 if (
GetPlayer()->m_taxi.SetTaximaskNode(curloc))
153 if (
GetPlayer()->m_taxi.SetTaximaskNode(nodeid))
162 TC_LOG_DEBUG(
"network",
"WORLD: Received CMSG_ACTIVATETAXIEXPRESS");
167 recvData >> guid >> node_count;
172 TC_LOG_DEBUG(
"network",
"WORLD: HandleActivateTaxiExpressOpcode - {} not found or you can't interact with it.", guid.
ToString());
176 std::vector<uint32> nodes;
178 for (
uint32 i = 0; i < node_count; ++i)
190 nodes.push_back(node);
196 TC_LOG_DEBUG(
"network",
"WORLD: Received CMSG_ACTIVATETAXIEXPRESS from {} to {}", nodes.front(), nodes.back());
203 TC_LOG_DEBUG(
"network",
"WORLD: Received CMSG_MOVE_SPLINE_DONE");
215 movementInfo.
guid = guid;
236 flight->SetCurrentNodeAfterTeleport();
238 flight->SkipCurrentNode();
248 if (
GetPlayer()->m_taxi.GetPath().size() != 1)
259 TC_LOG_DEBUG(
"network",
"WORLD: Received CMSG_ACTIVATETAXI");
262 std::vector<uint32> nodes;
265 recvData >> guid >> nodes[0] >> nodes[1];
266 TC_LOG_DEBUG(
"network",
"WORLD: Received CMSG_ACTIVATETAXI from {} to {}", nodes[0], nodes[1]);
270 TC_LOG_DEBUG(
"network",
"WORLD: HandleActivateTaxiOpcode - {} not found or you can't interact with it.", guid.
ToString());
277 if (!
GetPlayer()->m_taxi.IsTaximaskNodeKnown(nodes[0]) || !
GetPlayer()->m_taxi.IsTaximaskNodeKnown(nodes[1]))
DBCStorage< TaxiNodesEntry > sTaxiNodesStore(TaxiNodesEntryfmt)
#define TC_LOG_DEBUG(filterType__,...)
@ UNIT_NPC_FLAG_FLIGHTMASTER
void MoveTaxiFlight(uint32 path, uint32 pathnode)
std::string ToString() const
PackedGuidReader ReadAsPacked()
static ObjectGuid GetGUID(Object const *o)
bool IsTaximaskNodeKnown(uint32 nodeidx) const
uint32 GetTaxiDestination() const
void AppendTaximaskTo(ByteBuffer &data, bool all)
void SetFallInformation(uint32 time, float z)
Creature * GetNPCIfCanInteractWith(ObjectGuid const &guid, NPCFlags npcFlags) const
bool ActivateTaxiPathTo(std::vector< uint32 > const &nodes, Creature *npc=nullptr, uint32 spellid=0)
bool TeleportTo(uint32 mapid, float x, float y, float z, float orientation, uint32 options=0)
void SetTaxiCheater(bool on)
void CleanupAfterTaxiFlight()
bool isTaxiCheater() const
void RemoveAurasByType(AuraType auraType, std::function< bool(AuraApplication const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
MotionMaster * GetMotionMaster()
void Mount(uint32 mount, uint32 vehicleId=0, uint32 creatureEntry=0)
bool HasNpcFlag(NPCFlags flags) const
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
bool IsHostileTo(WorldObject const *target) const
void HandleMoveSplineDoneOpcode(WorldPacket &recvPacket)
void HandleActivateTaxiOpcode(WorldPacket &recvPacket)
Unit * ValidateAndGetUnitBeingMoved(ObjectGuid guid, bool forStatusAck) const
void SendPacket(WorldPacket const *packet)
Send a packet to the client.
bool SendLearnNewTaxiNode(Creature *unit)
void SendTaxiMenu(Creature *unit)
void SendTaxiStatus(ObjectGuid guid)
Player * GetPlayer() const
void HandleTaxiNodeStatusQueryOpcode(WorldPacket &recvPacket)
void SendActivateTaxiReply(ActivateTaxiReply reply)
void HandleTaxiQueryAvailableNodes(WorldPacket &recvPacket)
void ReadMovementInfo(WorldPacket &data, MovementInfo *mi)
void SendDiscoverNewTaxiNode(uint32 nodeid)
void HandleActivateTaxiExpressOpcode(WorldPacket &recvPacket)
void SendDoFlight(uint32 mountDisplayId, uint32 path, uint32 pathNode=0)
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
float GetPositionZ() const
float GetPositionX() const
float GetPositionY() const