Core/PacketIO: Updated packet structures to 9.2.5
Port From (https://github.com/TrinityCore/TrinityCore/commit/d3c4216de8e1dcb9f62d2fcc1b9b72852e5409c9)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user