mirror of
https://github.com/NathanHandley/mod-ah-bot-plus.git
synced 2026-01-13 01:08:37 +00:00
Prevent auction buyouts from being > 100k
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
## Description
|
||||
|
||||
A fork of the auction house bot for AzerothCore. This fork gives a much more blizzlike experience in the offerings on the auction house. Most notable differences:
|
||||
- Things like Glyphs show up
|
||||
- Auction item stack sizes are customizable and more 'realistic'
|
||||
- The buyer bot's buying amounts and behavior was changed substantially
|
||||
- A separate set of exclusion item IDs was added to have crafted items listed, to encourage gathing professions.
|
||||
@@ -27,7 +26,8 @@ Notes:
|
||||
- The characters used by the ahbot are not meant to be used ingame. If you use it to browse the auction house, you might have issues like "Searching for items..." displaying forever.
|
||||
- Important! By default, most player crafted items (except glyphs, bolts, maybe a few other things) are disabled from showing up in the auction house in order to encourage player crafting on lower pop servers. If you want different behavior, alter the config variable "AuctionHouseBot.DisabledCraftedItemIDs" by deleting IDs you wish to show up. Note that fish are also disabled to encourage fishing, and that's also managed by disabled lists.
|
||||
- It takes a few hours for the auction house to fully populate, as only 75 items gets added by default every 'tick'. You can change this in the config with the AuctionHouseBot.ItemsPerCycle variable.
|
||||
|
||||
- All price multpliers (along with the advanced pricing, see config) are applied multiplicative. Example: A Category of 1.5x, Quality of 2x, and CategoryQuality of 1.4x would make the multiplier 4.2 (1.5 x 2 x 1.4). The advanced pricing would then multiply that value further. Using item level price multpliers, which create a multiplier of itemlevel x value, is also multiplicitive along with the others. You cannot use item level price multipliers and advanced pricing, as advanced pricing will take priority between the two.
|
||||
- Bot-listed prices will not exceed 100k gold buyout
|
||||
|
||||
## Buying Bot Behavior
|
||||
|
||||
|
||||
@@ -462,6 +462,10 @@ void AuctionHouseBot::calculateItemValue(ItemTemplate const* itemProto, uint64&
|
||||
if (itemProto->SellPrice > outBuyoutPrice)
|
||||
outBuyoutPrice = itemProto->SellPrice;
|
||||
|
||||
// Avoid price overflows
|
||||
if (outBuyoutPrice > 1000000000)
|
||||
outBuyoutPrice = 1000000000;
|
||||
|
||||
// Calculate a bid price based on a variance against buyout price
|
||||
float sellVarianceBidPriceTopPercent = 1;
|
||||
float sellVarianceBidPriceBottomPercent = .75;
|
||||
|
||||
Reference in New Issue
Block a user