mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-17 01:23:51 +00:00
fix(auction): resolve item GUID with fallback and gate packet format
auctionSellItem now resolves the item GUID internally via backpackSlotGuids_ with resolveOnlineItemGuid fallback, matching the pattern used by vendor sell and item use. Previously the UI passed the GUID directly from getBackpackItemGuid() with no fallback, so items with unset slot GUIDs silently failed to list. Also gates CMSG_AUCTION_SELL_ITEM format by expansion: Classic/TBC omits the itemCount and stackCount fields that WotLK requires.
This commit is contained in:
parent
ac5c61203d
commit
345b41b810
7 changed files with 40 additions and 22 deletions
|
|
@ -1990,7 +1990,7 @@ public:
|
|||
void auctionSearch(const std::string& name, uint8_t levelMin, uint8_t levelMax,
|
||||
uint32_t quality, uint32_t itemClass, uint32_t itemSubClass,
|
||||
uint32_t invTypeMask, uint8_t usableOnly, uint32_t offset = 0);
|
||||
void auctionSellItem(uint64_t itemGuid, uint32_t stackCount, uint32_t bid,
|
||||
void auctionSellItem(int backpackIndex, uint32_t bid,
|
||||
uint32_t buyout, uint32_t duration);
|
||||
void auctionPlaceBid(uint32_t auctionId, uint32_t amount);
|
||||
void auctionBuyout(uint32_t auctionId, uint32_t buyoutPrice);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue