mirror of
https://github.com/NathanHandley/mod-ah-bot-plus.git
synced 2026-01-13 01:08:37 +00:00
All disabling of bots bidding against players
This commit is contained in:
@@ -52,6 +52,7 @@ AuctionHouseBot::AuctionHouseBot() :
|
||||
ListingExpireTimeInSecondsMax(86400),
|
||||
BuyingBotBuyCandidatesPerBuyCycle(1),
|
||||
BuyingBotAcceptablePriceModifier(1),
|
||||
BuyingBotWillBidAgainstPlayers(true),
|
||||
AHCharactersGUIDsForQuery(""),
|
||||
ItemsPerCycle(75),
|
||||
DisabledItemTextFilter(true),
|
||||
@@ -982,7 +983,11 @@ void AuctionHouseBot::addNewAuctionBuyerBotBid(Player* AHBplayer, AHBConfig *con
|
||||
return;
|
||||
}
|
||||
|
||||
QueryResult result = CharacterDatabase.Query("SELECT id FROM auctionhouse WHERE itemowner NOT IN ({}) AND buyguid NOT IN ({})", AHCharactersGUIDsForQuery, AHCharactersGUIDsForQuery);
|
||||
// Pull auctions.
|
||||
string queryString = "SELECT id FROM auctionhouse WHERE itemowner NOT IN ({}) AND buyguid NOT IN ({})";
|
||||
if (BuyingBotWillBidAgainstPlayers == false)
|
||||
queryString = "SELECT id FROM auctionhouse WHERE itemowner NOT IN ({}) AND buyguid NOT IN ({}) AND lastbid = 0";
|
||||
QueryResult result = CharacterDatabase.Query(queryString, AHCharactersGUIDsForQuery, AHCharactersGUIDsForQuery);
|
||||
|
||||
if (!result)
|
||||
return;
|
||||
@@ -1257,6 +1262,7 @@ void AuctionHouseBot::InitializeConfiguration()
|
||||
PreventOverpayingForVendorItems = sConfigMgr->GetOption<bool>("AuctionHouseBot.Buyer.PreventOverpayingForVendorItems", true);
|
||||
if (PreventOverpayingForVendorItems)
|
||||
populateVendorItemsPrices();
|
||||
BuyingBotWillBidAgainstPlayers = sConfigMgr->GetOption<bool>("AuctionHouseBot.Buyer.BidAgainstPlayers", true);
|
||||
|
||||
// Stack Ratios
|
||||
RandomStackRatioConsumable = GetRandomStackValue("AuctionHouseBot.ListingStack.RandomRatio.Consumable", 50);
|
||||
|
||||
@@ -132,6 +132,7 @@ private:
|
||||
uint32 ListingExpireTimeInSecondsMin;
|
||||
uint32 ListingExpireTimeInSecondsMax;
|
||||
float BuyingBotAcceptablePriceModifier;
|
||||
bool BuyingBotWillBidAgainstPlayers;
|
||||
std::vector<uint32> vendorItemsPrices;
|
||||
std::string AHCharactersGUIDsForQuery;
|
||||
uint32 ItemsPerCycle;
|
||||
|
||||
Reference in New Issue
Block a user