[DiscordArchive] there is a opcode transitioning between the client and the server for that?
[DiscordArchive] there is a opcode transitioning between the client and the server for that?
Archived author: Crow • Posted: 2023-04-24T20:33:40.071000+00:00
Original source
likewise that flightmaster in stromgarde has one to refuge point
Archived author: <o> • Posted: 2023-04-24T20:33:41.978000+00:00
Original source
oh nevermind those were path ids
Archived author: Crow • Posted: 2023-04-24T20:34:02.428000+00:00
Original source
yes
Archived author: <o> • Posted: 2023-04-24T20:35:15.770000+00:00
Original source
yeah aside from those i can't for the life of me remember any other complications, i just click the button and it works
Archived author: Titi • Posted: 2023-04-24T20:43:42.335000+00:00
Original source
thought taxis were as simple as adding a path id to a npc in some table
Archived author: Foe • Posted: 2023-04-24T20:48:14.753000+00:00
Original source
that was my impression as well, just adding the ID in the creature table
Archived author: Crow • Posted: 2023-04-24T20:48:52.870000+00:00
Original source
what table would that be? i dont see any
Archived author: <o> • Posted: 2023-04-24T20:50:41.665000+00:00
Original source
there's no path id to add, you just give them the flight master and gossip flags and it should work
Archived author: Foe • Posted: 2023-04-24T20:52:31.114000+00:00
Original source
I see, yeah
Archived author: Foe • Posted: 2023-04-24T20:52:42.254000+00:00
Original source
```C++
if (!creature->HasFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_FLIGHTMASTER))
continue;
uint32 nearestNode = sObjectMgr->GetNearestTaxiNode(creature->GetPositionX(), creature->GetPositionY(), creature->GetPositionZ(), creature->GetMapId(), GetTeam());
if (!nearestNode)
continue;
WorldPacket data(SMSG_TAXINODE_STATUS, 9);
data << *itr;
data << uint8(m_taxi.IsTaximaskNodeKnown(nearestNode) ? 1 : 0);
SendDirectMessage(&data);```