Jump to content

[patch] fix for Auction House addons


Auntie Mangos

Recommended Posts

  • 40 years later...

Author of this patch : Me (XEQT)

Which revision : 10767

I found a problem with the checks in AuctionHouseMgr. Many AH Addons don't work because of this issue and the problem is that the checks isen't right.

Its a quick fix so that addons work propperly. And its so small that i can just put it here.

Tested and workes with addons.

diff --git a/src/game/AuctionHouseMgr.cpp b/src/game/AuctionHouseMgr.cpp
index b476b4f..eb7a52e 100644
--- a/src/game/AuctionHouseMgr.cpp
+++ b/src/game/AuctionHouseMgr.cpp
@@ -617,16 +617,16 @@ void AuctionHouseObject::BuildListAuctionItems(WorldPacket& data, Player* player

        ItemPrototype const *proto = item->GetProto();

-        if (itemClass != 0xffffffff && proto->Class != itemClass)
+        if (itemClass != 0xffffffff && proto->Class < itemClass)
            continue;

-        if (itemSubClass != 0xffffffff && proto->SubClass != itemSubClass)
+        if (itemSubClass != 0xffffffff && proto->SubClass < itemSubClass)
            continue;

-        if (inventoryType != 0xffffffff && proto->InventoryType != inventoryType)
+        if (inventoryType != 0xffffffff && proto->InventoryType < inventoryType)
            continue;

-        if (quality != 0xffffffff && proto->Quality != quality)
+        if (quality != 0xffffffff && proto->Quality < quality)
            continue;

        if (levelmin != 0x00 && (proto->RequiredLevel < levelmin || (levelmax != 0x00 && proto->RequiredLevel > levelmax)))

If someone needs a file just write in here and i will upload one.

// XEQT

Link to comment
Share on other sites

I will take a look to this fix before apply it, at first look i can uderstaind it but what i don't understaind (without check the wole code) is what's item concerned, when it appen, and how i can reproduce an error.

Anyway if this realy needed i suggest you to post it in "under review".

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use