Core/PacketIO: Updated packet structures to 9.2.5
Port From (https://github.com/TrinityCore/TrinityCore/commit/d3c4216de8e1dcb9f62d2fcc1b9b72852e5409c9)
This commit is contained in:
@@ -541,6 +541,33 @@ namespace Game
|
||||
SendPacket(response);
|
||||
}
|
||||
|
||||
[WorldPacketHandler(ClientOpcodes.AuctionRequestFavoriteList)]
|
||||
void HandleAuctionRequestFavoriteList(AuctionRequestFavoriteList requestFavoriteList)
|
||||
{
|
||||
PreparedStatement stmt = DB.Characters.GetPreparedStatement(CharStatements.SEL_CHARACTER_FAVORITE_AUCTIONS);
|
||||
stmt.AddValue(0, _player.GetGUID().GetCounter());
|
||||
GetQueryProcessor().AddCallback(DB.Characters.AsyncQuery(stmt)).WithCallback(favoriteAuctionResult =>
|
||||
{
|
||||
AuctionFavoriteList favoriteItems = new();
|
||||
if (!favoriteAuctionResult.IsEmpty())
|
||||
{
|
||||
do
|
||||
{
|
||||
AuctionFavoriteInfo item = new();
|
||||
item.Order = favoriteAuctionResult.Read<uint>(0);
|
||||
item.ItemID = favoriteAuctionResult.Read<uint>(1);
|
||||
item.ItemLevel = favoriteAuctionResult.Read<uint>(2);
|
||||
item.BattlePetSpeciesID = favoriteAuctionResult.Read<uint>(3);
|
||||
item.SuffixItemNameDescriptionID = favoriteAuctionResult.Read<uint>(4);
|
||||
favoriteItems.Items.Add(item);
|
||||
|
||||
} while (favoriteAuctionResult.NextRow());
|
||||
|
||||
}
|
||||
SendPacket(favoriteItems);
|
||||
});
|
||||
}
|
||||
|
||||
[WorldPacketHandler(ClientOpcodes.AuctionSellCommodity)]
|
||||
void HandleAuctionSellCommodity(AuctionSellCommodity sellCommodity)
|
||||
{
|
||||
|
||||
@@ -880,29 +880,6 @@ namespace Game
|
||||
// Place character in world (and load zone) before some object loading
|
||||
pCurrChar.LoadCorpse(holder.GetResult(PlayerLoginQueryLoad.CorpseLocation));
|
||||
|
||||
stmt = DB.Characters.GetPreparedStatement(CharStatements.SEL_CHARACTER_FAVORITE_AUCTIONS);
|
||||
stmt.AddValue(0, pCurrChar.GetGUID().GetCounter());
|
||||
GetQueryProcessor().AddCallback(DB.Characters.AsyncQuery(stmt)).WithCallback(favoriteAuctionResult =>
|
||||
{
|
||||
AuctionFavoriteList favoriteItems = new();
|
||||
if (!favoriteAuctionResult.IsEmpty())
|
||||
{
|
||||
do
|
||||
{
|
||||
AuctionFavoriteInfo item = new();
|
||||
item.Order = favoriteAuctionResult.Read<uint>(0);
|
||||
item.ItemID = favoriteAuctionResult.Read<uint>(1);
|
||||
item.ItemLevel = favoriteAuctionResult.Read<uint>(2);
|
||||
item.BattlePetSpeciesID = favoriteAuctionResult.Read<uint>(3);
|
||||
item.SuffixItemNameDescriptionID = favoriteAuctionResult.Read<uint>(4);
|
||||
favoriteItems.Items.Add(item);
|
||||
|
||||
} while (favoriteAuctionResult.NextRow());
|
||||
|
||||
}
|
||||
SendPacket(favoriteItems);
|
||||
});
|
||||
|
||||
// setting Ghost+speed if dead
|
||||
if (pCurrChar.GetDeathState() == DeathState.Dead)
|
||||
{
|
||||
|
||||
@@ -364,5 +364,13 @@ namespace Game
|
||||
Log.outDebug(LogFilter.Network, "WorldSession.HandleSetContactNotesOpcode: Contact: {0}, Notes: {1}", packet.Player.Guid.ToString(), packet.Notes);
|
||||
GetPlayer().GetSocial().SetFriendNote(packet.Player.Guid, packet.Notes);
|
||||
}
|
||||
|
||||
[WorldPacketHandler(ClientOpcodes.SocialContractRequest)]
|
||||
void HandleSocialContractRequest(SocialContractRequest socialContractRequest)
|
||||
{
|
||||
SocialContractRequestResponse response = new();
|
||||
response.ShowSocialContract = false;
|
||||
SendPacket(response);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -83,7 +83,9 @@ namespace Game
|
||||
comp.SetFacing(packet.Header.Facing);
|
||||
comp.SetChatLog(packet.ChatLog);
|
||||
comp.SetTargetCharacterGuid(packet.TargetCharacterGUID);
|
||||
comp.SetComplaintType((GMSupportComplaintType)packet.ComplaintType);
|
||||
comp.SetReportType((ReportType)packet.ReportType);
|
||||
comp.SetMajorCategory((ReportMajorCategory)packet.MajorCategory);
|
||||
comp.SetMinorCategoryFlags((ReportMinorCategory)packet.MinorCategoryFlags);
|
||||
comp.SetNote(packet.Note);
|
||||
|
||||
Global.SupportMgr.AddTicket(comp);
|
||||
|
||||
Reference in New Issue
Block a user