Core/PacketIO: Fixed some 11.0.2 structures
Port From (https://github.com/TrinityCore/TrinityCore/commit/1f952893fc82bc677058737f77de710c426c60ee)
This commit is contained in:
@@ -122,7 +122,7 @@ namespace Game
|
||||
|
||||
if (GetPlayer().m_taxi.SetTaximaskNode(curloc))
|
||||
{
|
||||
SendPacket(new NewTaxiPath());
|
||||
SendPacket(new NewTaxiPath(curloc));
|
||||
|
||||
TaxiNodeStatusPkt data = new();
|
||||
data.Unit = unit.GetGUID();
|
||||
@@ -139,7 +139,7 @@ namespace Game
|
||||
public void SendDiscoverNewTaxiNode(uint nodeid)
|
||||
{
|
||||
if (GetPlayer().m_taxi.SetTaximaskNode(nodeid))
|
||||
SendPacket(new NewTaxiPath());
|
||||
SendPacket(new NewTaxiPath(nodeid));
|
||||
}
|
||||
|
||||
[WorldPacketHandler(ClientOpcodes.ActivateTaxi, Processing = PacketProcessing.ThreadSafe)]
|
||||
|
||||
@@ -1258,11 +1258,11 @@ namespace Game.Networking.Packets
|
||||
Rewards.Write(data); // QuestRewards
|
||||
data.WriteInt32(Emotes.Count);
|
||||
data.WritePackedGuid(QuestGiverGUID);
|
||||
data.WriteUInt32(QuestGiverCreatureID);
|
||||
data.WriteUInt32(QuestID);
|
||||
data.WriteUInt32(QuestFlags[0]); // Flags
|
||||
data.WriteUInt32(QuestFlags[1]); // FlagsEx
|
||||
data.WriteUInt32(QuestFlags[2]); // FlagsEx2
|
||||
data.WriteUInt32(QuestGiverCreatureID);
|
||||
data.WriteUInt32(QuestID);
|
||||
data.WriteUInt32(SuggestedPartyMembers);
|
||||
data.WriteInt32(QuestInfoID);
|
||||
|
||||
|
||||
@@ -108,9 +108,17 @@ namespace Game.Networking.Packets
|
||||
|
||||
class NewTaxiPath : ServerPacket
|
||||
{
|
||||
public NewTaxiPath() : base(ServerOpcodes.NewTaxiPath) { }
|
||||
uint TaxiNodesID;
|
||||
|
||||
public override void Write() { }
|
||||
public NewTaxiPath(uint taxiNodesId) : base(ServerOpcodes.NewTaxiPath)
|
||||
{
|
||||
TaxiNodesID = taxiNodesId;
|
||||
}
|
||||
|
||||
public override void Write()
|
||||
{
|
||||
_worldPacket.WriteUInt32(TaxiNodesID);
|
||||
}
|
||||
}
|
||||
|
||||
class ActivateTaxiReplyPkt : ServerPacket
|
||||
|
||||
Reference in New Issue
Block a user