mirror of
https://github.com/NathanHandley/mod-ah-bot-plus.git
synced 2026-01-26 07:06:25 +00:00
Removed Min/max stack and price from database and config
This commit is contained in:
@@ -62,49 +62,7 @@ private:
|
||||
uint32 AHFID;
|
||||
uint32 minItems;
|
||||
uint32 maxItems;
|
||||
uint32 minPriceGrey;
|
||||
uint32 maxPriceGrey;
|
||||
uint32 minBidPriceGrey;
|
||||
uint32 maxBidPriceGrey;
|
||||
uint32 maxStackGrey;
|
||||
uint32 minPriceWhite;
|
||||
uint32 maxPriceWhite;
|
||||
uint32 minBidPriceWhite;
|
||||
uint32 maxBidPriceWhite;
|
||||
uint32 maxStackWhite;
|
||||
uint32 minPriceGreen;
|
||||
uint32 maxPriceGreen;
|
||||
uint32 minBidPriceGreen;
|
||||
uint32 maxBidPriceGreen;
|
||||
uint32 maxStackGreen;
|
||||
uint32 minPriceBlue;
|
||||
uint32 maxPriceBlue;
|
||||
uint32 minBidPriceBlue;
|
||||
uint32 maxBidPriceBlue;
|
||||
uint32 maxStackBlue;
|
||||
uint32 minPricePurple;
|
||||
uint32 maxPricePurple;
|
||||
uint32 minBidPricePurple;
|
||||
uint32 maxBidPricePurple;
|
||||
uint32 maxStackPurple;
|
||||
uint32 minPriceOrange;
|
||||
uint32 maxPriceOrange;
|
||||
uint32 minBidPriceOrange;
|
||||
uint32 maxBidPriceOrange;
|
||||
uint32 maxStackOrange;
|
||||
uint32 minPriceYellow;
|
||||
uint32 maxPriceYellow;
|
||||
uint32 minBidPriceYellow;
|
||||
uint32 maxBidPriceYellow;
|
||||
uint32 maxStackYellow;
|
||||
|
||||
uint32 buyerPriceGrey;
|
||||
uint32 buyerPriceWhite;
|
||||
uint32 buyerPriceGreen;
|
||||
uint32 buyerPriceBlue;
|
||||
uint32 buyerPricePurple;
|
||||
uint32 buyerPriceOrange;
|
||||
uint32 buyerPriceYellow;
|
||||
uint32 buyerBiddingInterval;
|
||||
uint32 buyerBidsPerInterval;
|
||||
|
||||
@@ -163,539 +121,6 @@ public:
|
||||
return maxItems;
|
||||
}
|
||||
|
||||
void SetMinPrice(uint32 color, uint32 value)
|
||||
{
|
||||
switch(color)
|
||||
{
|
||||
case AHB_GREY:
|
||||
minPriceGrey = value;
|
||||
break;
|
||||
case AHB_WHITE:
|
||||
minPriceWhite = value;
|
||||
break;
|
||||
case AHB_GREEN:
|
||||
minPriceGreen = value;
|
||||
break;
|
||||
case AHB_BLUE:
|
||||
minPriceBlue = value;
|
||||
break;
|
||||
case AHB_PURPLE:
|
||||
minPricePurple = value;
|
||||
break;
|
||||
case AHB_ORANGE:
|
||||
minPriceOrange = value;
|
||||
break;
|
||||
case AHB_YELLOW:
|
||||
minPriceYellow = value;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
uint32 GetMinPrice(uint32 color)
|
||||
{
|
||||
switch(color)
|
||||
{
|
||||
case AHB_GREY:
|
||||
{
|
||||
if (minPriceGrey == 0)
|
||||
return 100;
|
||||
else if (minPriceGrey > maxPriceGrey)
|
||||
return maxPriceGrey;
|
||||
else
|
||||
return minPriceGrey;
|
||||
break;
|
||||
}
|
||||
case AHB_WHITE:
|
||||
{
|
||||
if (minPriceWhite == 0)
|
||||
return 150;
|
||||
else if (minPriceWhite > maxPriceWhite)
|
||||
return maxPriceWhite;
|
||||
else
|
||||
return minPriceWhite;
|
||||
break;
|
||||
}
|
||||
case AHB_GREEN:
|
||||
{
|
||||
if (minPriceGreen == 0)
|
||||
return 200;
|
||||
else if (minPriceGreen > maxPriceGreen)
|
||||
return maxPriceGreen;
|
||||
else
|
||||
return minPriceGreen;
|
||||
break;
|
||||
}
|
||||
case AHB_BLUE:
|
||||
{
|
||||
if (minPriceBlue == 0)
|
||||
return 250;
|
||||
else if (minPriceBlue > maxPriceBlue)
|
||||
return maxPriceBlue;
|
||||
else
|
||||
return minPriceBlue;
|
||||
break;
|
||||
}
|
||||
case AHB_PURPLE:
|
||||
{
|
||||
if (minPricePurple == 0)
|
||||
return 300;
|
||||
else if (minPricePurple > maxPricePurple)
|
||||
return maxPricePurple;
|
||||
else
|
||||
return minPricePurple;
|
||||
break;
|
||||
}
|
||||
case AHB_ORANGE:
|
||||
{
|
||||
if (minPriceOrange == 0)
|
||||
return 400;
|
||||
else if (minPriceOrange > maxPriceOrange)
|
||||
return maxPriceOrange;
|
||||
else
|
||||
return minPriceOrange;
|
||||
break;
|
||||
}
|
||||
case AHB_YELLOW:
|
||||
{
|
||||
if (minPriceYellow == 0)
|
||||
return 500;
|
||||
else if (minPriceYellow > maxPriceYellow)
|
||||
return maxPriceYellow;
|
||||
else
|
||||
return minPriceYellow;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
{
|
||||
return 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
void SetMaxPrice(uint32 color, uint32 value)
|
||||
{
|
||||
switch(color)
|
||||
{
|
||||
case AHB_GREY:
|
||||
maxPriceGrey = value;
|
||||
break;
|
||||
case AHB_WHITE:
|
||||
maxPriceWhite = value;
|
||||
break;
|
||||
case AHB_GREEN:
|
||||
maxPriceGreen = value;
|
||||
break;
|
||||
case AHB_BLUE:
|
||||
maxPriceBlue = value;
|
||||
break;
|
||||
case AHB_PURPLE:
|
||||
maxPricePurple = value;
|
||||
break;
|
||||
case AHB_ORANGE:
|
||||
maxPriceOrange = value;
|
||||
break;
|
||||
case AHB_YELLOW:
|
||||
maxPriceYellow = value;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
uint32 GetMaxPrice(uint32 color)
|
||||
{
|
||||
switch(color)
|
||||
{
|
||||
case AHB_GREY:
|
||||
{
|
||||
if (maxPriceGrey == 0)
|
||||
return 150;
|
||||
else
|
||||
return maxPriceGrey;
|
||||
break;
|
||||
}
|
||||
case AHB_WHITE:
|
||||
{
|
||||
if (maxPriceWhite == 0)
|
||||
return 250;
|
||||
else
|
||||
return maxPriceWhite;
|
||||
break;
|
||||
}
|
||||
case AHB_GREEN:
|
||||
{
|
||||
if (maxPriceGreen == 0)
|
||||
return 300;
|
||||
else
|
||||
return maxPriceGreen;
|
||||
break;
|
||||
}
|
||||
case AHB_BLUE:
|
||||
{
|
||||
if (maxPriceBlue == 0)
|
||||
return 350;
|
||||
else
|
||||
return maxPriceBlue;
|
||||
break;
|
||||
}
|
||||
case AHB_PURPLE:
|
||||
{
|
||||
if (maxPricePurple == 0)
|
||||
return 450;
|
||||
else
|
||||
return maxPricePurple;
|
||||
break;
|
||||
}
|
||||
case AHB_ORANGE:
|
||||
{
|
||||
if (maxPriceOrange == 0)
|
||||
return 550;
|
||||
else
|
||||
return maxPriceOrange;
|
||||
break;
|
||||
}
|
||||
case AHB_YELLOW:
|
||||
{
|
||||
if (maxPriceYellow == 0)
|
||||
return 650;
|
||||
else
|
||||
return maxPriceYellow;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
{
|
||||
return 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
void SetMinBidPrice(uint32 color, uint32 value)
|
||||
{
|
||||
switch(color)
|
||||
{
|
||||
case AHB_GREY:
|
||||
minBidPriceGrey = value;
|
||||
break;
|
||||
case AHB_WHITE:
|
||||
minBidPriceWhite = value;
|
||||
break;
|
||||
case AHB_GREEN:
|
||||
minBidPriceGreen = value;
|
||||
break;
|
||||
case AHB_BLUE:
|
||||
minBidPriceBlue = value;
|
||||
break;
|
||||
case AHB_PURPLE:
|
||||
minBidPricePurple = value;
|
||||
break;
|
||||
case AHB_ORANGE:
|
||||
minBidPriceOrange = value;
|
||||
break;
|
||||
case AHB_YELLOW:
|
||||
minBidPriceYellow = value;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
uint32 GetMinBidPrice(uint32 color)
|
||||
{
|
||||
switch(color)
|
||||
{
|
||||
case AHB_GREY:
|
||||
{
|
||||
if (minBidPriceGrey > 100)
|
||||
return 100;
|
||||
else
|
||||
return minBidPriceGrey;
|
||||
break;
|
||||
}
|
||||
case AHB_WHITE:
|
||||
{
|
||||
if (minBidPriceWhite > 100)
|
||||
return 100;
|
||||
else
|
||||
return minBidPriceWhite;
|
||||
break;
|
||||
}
|
||||
case AHB_GREEN:
|
||||
{
|
||||
if (minBidPriceGreen > 100)
|
||||
return 100;
|
||||
else
|
||||
return minBidPriceGreen;
|
||||
break;
|
||||
}
|
||||
case AHB_BLUE:
|
||||
{
|
||||
if (minBidPriceBlue > 100)
|
||||
return 100;
|
||||
else
|
||||
return minBidPriceBlue;
|
||||
break;
|
||||
}
|
||||
case AHB_PURPLE:
|
||||
{
|
||||
if (minBidPricePurple > 100)
|
||||
return 100;
|
||||
else
|
||||
return minBidPricePurple;
|
||||
break;
|
||||
}
|
||||
case AHB_ORANGE:
|
||||
{
|
||||
if (minBidPriceOrange > 100)
|
||||
return 100;
|
||||
else
|
||||
return minBidPriceOrange;
|
||||
break;
|
||||
}
|
||||
case AHB_YELLOW:
|
||||
{
|
||||
if (minBidPriceYellow > 100)
|
||||
return 100;
|
||||
else
|
||||
return minBidPriceYellow;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
{
|
||||
return 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
void SetMaxBidPrice(uint32 color, uint32 value)
|
||||
{
|
||||
switch(color)
|
||||
{
|
||||
case AHB_GREY:
|
||||
maxBidPriceGrey = value;
|
||||
break;
|
||||
case AHB_WHITE:
|
||||
maxBidPriceWhite = value;
|
||||
break;
|
||||
case AHB_GREEN:
|
||||
maxBidPriceGreen = value;
|
||||
break;
|
||||
case AHB_BLUE:
|
||||
maxBidPriceBlue = value;
|
||||
break;
|
||||
case AHB_PURPLE:
|
||||
maxBidPricePurple = value;
|
||||
break;
|
||||
case AHB_ORANGE:
|
||||
maxBidPriceOrange = value;
|
||||
break;
|
||||
case AHB_YELLOW:
|
||||
maxBidPriceYellow = value;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
uint32 GetMaxBidPrice(uint32 color)
|
||||
{
|
||||
switch(color)
|
||||
{
|
||||
case AHB_GREY:
|
||||
{
|
||||
if (maxBidPriceGrey > 100)
|
||||
return 100;
|
||||
else
|
||||
return maxBidPriceGrey;
|
||||
break;
|
||||
}
|
||||
case AHB_WHITE:
|
||||
{
|
||||
if (maxBidPriceWhite > 100)
|
||||
return 100;
|
||||
else
|
||||
return maxBidPriceWhite;
|
||||
break;
|
||||
}
|
||||
case AHB_GREEN:
|
||||
{
|
||||
if (maxBidPriceGreen > 100)
|
||||
return 100;
|
||||
else
|
||||
return maxBidPriceGreen;
|
||||
break;
|
||||
}
|
||||
case AHB_BLUE:
|
||||
{
|
||||
if (maxBidPriceBlue > 100)
|
||||
return 100;
|
||||
else
|
||||
return maxBidPriceBlue;
|
||||
break;
|
||||
}
|
||||
case AHB_PURPLE:
|
||||
{
|
||||
if (maxBidPricePurple > 100)
|
||||
return 100;
|
||||
else
|
||||
return maxBidPricePurple;
|
||||
break;
|
||||
}
|
||||
case AHB_ORANGE:
|
||||
{
|
||||
if (maxBidPriceOrange > 100)
|
||||
return 100;
|
||||
else
|
||||
return maxBidPriceOrange;
|
||||
break;
|
||||
}
|
||||
case AHB_YELLOW:
|
||||
{
|
||||
if (maxBidPriceYellow > 100)
|
||||
return 100;
|
||||
else
|
||||
return maxBidPriceYellow;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
{
|
||||
return 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
void SetMaxStack(uint32 color, uint32 value)
|
||||
{
|
||||
switch(color)
|
||||
{
|
||||
case AHB_GREY:
|
||||
maxStackGrey = value;
|
||||
break;
|
||||
case AHB_WHITE:
|
||||
maxStackWhite = value;
|
||||
break;
|
||||
case AHB_GREEN:
|
||||
maxStackGreen = value;
|
||||
break;
|
||||
case AHB_BLUE:
|
||||
maxStackBlue = value;
|
||||
break;
|
||||
case AHB_PURPLE:
|
||||
maxStackPurple = value;
|
||||
break;
|
||||
case AHB_ORANGE:
|
||||
maxStackOrange = value;
|
||||
break;
|
||||
case AHB_YELLOW:
|
||||
maxStackYellow = value;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
uint32 GetMaxStack(uint32 color)
|
||||
{
|
||||
switch(color)
|
||||
{
|
||||
case AHB_GREY:
|
||||
{
|
||||
return maxStackGrey;
|
||||
break;
|
||||
}
|
||||
case AHB_WHITE:
|
||||
{
|
||||
return maxStackWhite;
|
||||
break;
|
||||
}
|
||||
case AHB_GREEN:
|
||||
{
|
||||
return maxStackGreen;
|
||||
break;
|
||||
}
|
||||
case AHB_BLUE:
|
||||
{
|
||||
return maxStackBlue;
|
||||
break;
|
||||
}
|
||||
case AHB_PURPLE:
|
||||
{
|
||||
return maxStackPurple;
|
||||
break;
|
||||
}
|
||||
case AHB_ORANGE:
|
||||
{
|
||||
return maxStackOrange;
|
||||
break;
|
||||
}
|
||||
case AHB_YELLOW:
|
||||
{
|
||||
return maxStackYellow;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
{
|
||||
return 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
void SetBuyerPrice(uint32 color, uint32 value)
|
||||
{
|
||||
switch(color)
|
||||
{
|
||||
case AHB_GREY:
|
||||
buyerPriceGrey = value;
|
||||
break;
|
||||
case AHB_WHITE:
|
||||
buyerPriceWhite = value;
|
||||
break;
|
||||
case AHB_GREEN:
|
||||
buyerPriceGreen = value;
|
||||
break;
|
||||
case AHB_BLUE:
|
||||
buyerPriceBlue = value;
|
||||
break;
|
||||
case AHB_PURPLE:
|
||||
buyerPricePurple = value;
|
||||
break;
|
||||
case AHB_ORANGE:
|
||||
buyerPriceOrange = value;
|
||||
break;
|
||||
case AHB_YELLOW:
|
||||
buyerPriceYellow = value;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
uint32 GetBuyerPrice(uint32 color)
|
||||
{
|
||||
switch(color)
|
||||
{
|
||||
case AHB_GREY:
|
||||
return buyerPriceGrey;
|
||||
break;
|
||||
case AHB_WHITE:
|
||||
return buyerPriceWhite;
|
||||
break;
|
||||
case AHB_GREEN:
|
||||
return buyerPriceGreen;
|
||||
break;
|
||||
case AHB_BLUE:
|
||||
return buyerPriceBlue;
|
||||
break;
|
||||
case AHB_PURPLE:
|
||||
return buyerPricePurple;
|
||||
break;
|
||||
case AHB_ORANGE:
|
||||
return buyerPriceOrange;
|
||||
break;
|
||||
case AHB_YELLOW:
|
||||
return buyerPriceYellow;
|
||||
break;
|
||||
default:
|
||||
return 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
void SetBiddingInterval(uint32 value)
|
||||
{
|
||||
buyerBiddingInterval = value;
|
||||
|
||||
Reference in New Issue
Block a user