Skip to content

Commit e0a8822

Browse files
authored
Auction House Limited-Vendor-Item Availability (#212)
The Problem: The Auction House Bot is intended to mimic real player auction behavior, which includes selling items commonly farmed and sold by players. However, the AH Bot was designed to not sell any item that an NPC Vendor sells in any quantity. While this makes sense, it prevents items that any Vendor sells in even very limited quantities (such as all sorts of Leather) from every being listed. The Fix: Better mimic desired player auction behavior by allowing the AH Bot to sell limited-quantity vendor items by narrowing the general vendor item restriction to ONLY those items that vendors sell in unlimited quantities. The Details: The AH Bot queries the npc_vendor table to compile a list of items it will Not list on the AH. These query results are narrowed by adding 'WHERE maxcount = 0', which will only capture items that vendors sell in Unlimited quantities, thus allowing Leather to appear on the AH.
1 parent f4f8ed2 commit e0a8822

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/game/AuctionHouseBot/AuctionHouseBot.cpp

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1380,7 +1380,7 @@ bool AuctionBotSeller::Initialize()
13801380

13811381
// Load NPC vendor items for filtering
13821382
sLog.outString("Loading npc vendor items for filter..");
1383-
if (QueryResult* result = WorldDatabase.Query("SELECT DISTINCT `item` FROM `npc_vendor`"))
1383+
if (QueryResult* result = WorldDatabase.Query("SELECT DISTINCT `item` FROM `npc_vendor` WHERE `maxcount` = 0"))
13841384
{
13851385
BarGoLink bar(result->GetRowCount());
13861386
do

0 commit comments

Comments
 (0)