Auction house changes:

- Stop storing guid for auctioneer.
 - Store instead house ID
 - No separate ID for various houses. Only Horde, Alliance and Neutral.
 - Removed non-needed faction checks.
 - Use enum for auction house IDs

NOTE: This will expire all current auctions and return item to player (or
award to high bidder) in order to prepare database for the changes.
This commit is contained in:
pete318 authored and r00ty committed 2015-09-28 22:26:23 +02:00
1 parent fcc6ef6b18
commit 01ae5c4bf6
7 files changed
+83 -68

No files matched your search

@@ -906,15 +906,17 @@ void AuctionBotSeller::AddNewAuctions(SellerConfiguration& config)
items = sAuctionBotConfig->GetItemPerCycleNormal();
uint32 houseid = 0;
uint32 auctioneer = 0;
switch (config.GetHouseType())
{
case AUCTION_HOUSE_ALLIANCE:
houseid = 1; auctioneer = 79707; break;
houseid = AUCTIONHOUSE_ALLIANCE;
break;
case AUCTION_HOUSE_HORDE:
houseid = 6; auctioneer = 4656; break;
houseid = AUCTIONHOUSE_HORDE;
break;
default:
houseid = 7; auctioneer = 23442; break;
houseid = AUCTIONHOUSE_NEUTRAL;
break;
}
AuctionHouseEntry const* ahEntry = sAuctionHouseStore.LookupEntry(houseid);
@@ -995,7 +997,7 @@ void AuctionBotSeller::AddNewAuctions(SellerConfiguration& config)
auctionEntry->itemEntry = item->GetEntry();
auctionEntry->startbid = bidPrice;
auctionEntry->buyout = buyoutPrice;
auctionEntry->auctioneer = auctioneer;
auctionEntry->houseId = houseid;
auctionEntry->bidder = 0;
auctionEntry->bid = 0;
auctionEntry->deposit = sAuctionMgr->GetAuctionDeposit(ahEntry, etime, item, stackCount);