Skip to content

Commit

Permalink
Added parser for SMSG_AUCTION_LIST_BUCKETS_RESULT
Browse files Browse the repository at this point in the history
  • Loading branch information
Shauren committed Nov 7, 2024
1 parent c8031de commit 5a74191
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions WowPacketParserModule.V8_0_1_27101/Parsers/AuctionHouseHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -236,5 +236,51 @@ public static void HandleAuctionListOwnedItems(Packet packet)
ReadAuctionSortDef(packet, i);
}
}

public static void ReadBucketInfo(Packet packet, int index)
{
ReadAuctionBucketKey(packet, index, "Key");

packet.ReadInt32("TotalQuantity", index);
packet.ReadInt32("RequiredLevel", index);
packet.ReadUInt64("MinPrice", index);
var itemModifiedAppearanceIDsCount = packet.ReadUInt32();
for (var i = 0u; i < itemModifiedAppearanceIDsCount; ++i)
packet.ReadInt32("ItemModifiedAppearanceID", index, i);

packet.ResetBitReader();
var hasMaxBattlePetQuality = packet.ReadBit();
var hasMaxBattlePetLevel = packet.ReadBit();
var hasBattlePetBreedID = packet.ReadBit();
var hasBattlePetLevelMask = packet.ReadBit();
packet.ReadBit("ContainsOwnerItem", index);
packet.ReadBit("ContainsOnlyCollectedAppearances", index);

if (hasMaxBattlePetQuality)
packet.ReadByte("MaxBattlePetQuality", index);

if (hasMaxBattlePetLevel)
packet.ReadByte("MaxBattlePetLevel", index);

if (hasBattlePetBreedID)
packet.ReadByte("BattlePetBreedID", index);

if (hasBattlePetLevelMask)
packet.ReadUInt32("BattlePetLevelMask", index);
}

[Parser(Opcode.SMSG_AUCTION_LIST_BUCKETS_RESULT)]
public static void HandleAuctionListBucketsResult(Packet packet)
{
var bucketCount = packet.ReadUInt32();
packet.ReadUInt32("DesiredDelay");
packet.ReadInt32("Unknown830_0");

This comment has been minimized.

Copy link
@Selenium

Selenium Nov 12, 2024

Contributor

it's Filters

packet.ReadInt32("Unknown830_1");
packet.ReadBits("BrowseMode", 2);
packet.ReadBit("HasMoreResults");

for (var i = 0; i < bucketCount; ++i)
ReadBucketInfo(packet, i);
}
}
}

0 comments on commit 5a74191

Please sign in to comment.