Better implement the buying bot

With description!
This commit is contained in:
NathanHandley
2025-09-08 20:04:15 -05:00
parent 5f5eb9f4c1
commit a7d216b1f0
3 changed files with 192 additions and 147 deletions

View File

@@ -41,9 +41,6 @@ private:
uint32 minItems;
uint32 maxItems;
uint32 buyerBiddingInterval;
uint32 buyerBidsPerInterval;
public:
AHBConfig(uint32 ahid)
{
@@ -98,24 +95,6 @@ public:
{
return maxItems;
}
void SetBiddingInterval(uint32 value)
{
buyerBiddingInterval = value;
}
uint32 GetBiddingInterval()
{
return buyerBiddingInterval;
}
void SetBidsPerInterval(uint32 value)
{
buyerBidsPerInterval = value;
}
uint32 GetBidsPerInterval()
{
return buyerBidsPerInterval;
}
~AHBConfig()
{
}
@@ -141,8 +120,12 @@ private:
bool debug_Out;
bool debug_Out_Filters;
bool AHBSeller;
bool AHBBuyer;
bool SellingBotEnabled;
bool BuyingBotEnabled;
int CyclesBetweenBuyOrSell;
int BuyingBotBuyCanditatesPerBuyoutCycle;
float BuyingBotAcceptablePriceModifier;
std::string AHCharactersGUIDsForQuery;
uint32 ItemsPerCycle;
@@ -225,14 +208,11 @@ private:
std::unordered_map<uint32, uint64> PriceMinimumCenterBaseOverridesByItemID;
float ItemLevelPriceMultiplier;
AHBConfig AllianceConfig;
AHBConfig HordeConfig;
AHBConfig NeutralConfig;
time_t _lastrun_a;
time_t _lastrun_h;
time_t _lastrun_n;
int LastCycleCount;
inline uint32 minValue(uint32 a, uint32 b) { return a <= b ? a : b; };
uint32 getStackSizeForItem(ItemTemplate const* itemProto) const;