mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[11724] Sync some ahbot config option default values in config/code
Thanks to lakilak for find some from cases.
This commit is contained in:
parent
04581f36ce
commit
4ec136222a
3 changed files with 26 additions and 26 deletions
|
|
@ -295,9 +295,9 @@ void AuctionBotConfig::GetConfigFromFile()
|
|||
if (m_AhBotCfg.GetIntDefault("ConfVersion", 0) != AUCTIONHOUSEBOT_CONF_VERSION)
|
||||
sLog.outError("AHBot: Configuration file version doesn't match expected version. Some config variables may be wrong or missing.");
|
||||
|
||||
setConfigMax(CONFIG_UINT32_AHBOT_ALLIANCE_ITEM_AMOUNT_RATIO , "AuctionHouseBot.Alliance.Items.Amount.Ratio" , 0, 10000);
|
||||
setConfigMax(CONFIG_UINT32_AHBOT_HORDE_ITEM_AMOUNT_RATIO , "AuctionHouseBot.Horde.Items.Amount.Ratio" , 0, 10000);
|
||||
setConfigMax(CONFIG_UINT32_AHBOT_NEUTRAL_ITEM_AMOUNT_RATIO , "AuctionHouseBot.Neutral.Items.Amount.Ratio" , 0, 10000);
|
||||
setConfigMax(CONFIG_UINT32_AHBOT_ALLIANCE_ITEM_AMOUNT_RATIO , "AuctionHouseBot.Alliance.Items.Amount.Ratio" , 100, 10000);
|
||||
setConfigMax(CONFIG_UINT32_AHBOT_HORDE_ITEM_AMOUNT_RATIO , "AuctionHouseBot.Horde.Items.Amount.Ratio" , 100, 10000);
|
||||
setConfigMax(CONFIG_UINT32_AHBOT_NEUTRAL_ITEM_AMOUNT_RATIO , "AuctionHouseBot.Neutral.Items.Amount.Ratio" , 100, 10000);
|
||||
|
||||
SetAHBotIncludes(m_AhBotCfg.GetStringDefault("AuctionHouseBot.forceIncludeItems", ""));
|
||||
SetAHBotExcludes(m_AhBotCfg.GetStringDefault("AuctionHouseBot.forceExcludeItems", ""));
|
||||
|
|
@ -320,7 +320,7 @@ void AuctionBotConfig::GetConfigFromFile()
|
|||
setConfig(CONFIG_BOOL_AHBOT_BUYPRICE_SELLER , "AuctionHouseBot.BuyPrice.Seller" , true);
|
||||
|
||||
setConfig(CONFIG_UINT32_AHBOT_ITEMS_PER_CYCLE_BOOST , "AuctionHouseBot.ItemsPerCycle.Boost" , 1000);
|
||||
setConfig(CONFIG_UINT32_AHBOT_ITEMS_PER_CYCLE_NORMAL , "AuctionHouseBot.ItemsPerCycle.Normal" , 10);
|
||||
setConfig(CONFIG_UINT32_AHBOT_ITEMS_PER_CYCLE_NORMAL , "AuctionHouseBot.ItemsPerCycle.Normal" , 20);
|
||||
|
||||
setConfig(CONFIG_UINT32_AHBOT_ITEM_MIN_ITEM_LEVEL , "AuctionHouseBot.Items.ItemLevel.Min" , 0);
|
||||
setConfig(CONFIG_UINT32_AHBOT_ITEM_MAX_ITEM_LEVEL , "AuctionHouseBot.Items.ItemLevel.Max" , 0);
|
||||
|
|
@ -337,25 +337,25 @@ void AuctionBotConfig::GetConfigFromFile()
|
|||
setConfig(CONFIG_UINT32_AHBOT_ITEM_ORANGE_AMOUNT , "AuctionHouseBot.Items.Amount.Orange" , 0);
|
||||
setConfig(CONFIG_UINT32_AHBOT_ITEM_YELLOW_AMOUNT , "AuctionHouseBot.Items.Amount.Yellow" , 0);
|
||||
|
||||
setConfigMax(CONFIG_UINT32_AHBOT_CLASS_CONSUMABLE_AMOUNT , "AuctionHouseBot.Class.Consumable" , 10, 10);
|
||||
setConfigMax(CONFIG_UINT32_AHBOT_CLASS_CONTAINER_AMOUNT , "AuctionHouseBot.Class.Container" , 10, 10);
|
||||
setConfigMax(CONFIG_UINT32_AHBOT_CLASS_WEAPON_AMOUNT , "AuctionHouseBot.Class.Weapon" , 10, 10);
|
||||
setConfigMax(CONFIG_UINT32_AHBOT_CLASS_GEM_AMOUNT , "AuctionHouseBot.Class.Gem" , 10, 10);
|
||||
setConfigMax(CONFIG_UINT32_AHBOT_CLASS_ARMOR_AMOUNT , "AuctionHouseBot.Class.Armor" , 10, 10);
|
||||
setConfigMax(CONFIG_UINT32_AHBOT_CLASS_REAGENT_AMOUNT , "AuctionHouseBot.Class.Reagent" , 10, 10);
|
||||
setConfigMax(CONFIG_UINT32_AHBOT_CLASS_PROJECTILE_AMOUNT , "AuctionHouseBot.Class.Projectile" , 10, 10);
|
||||
setConfigMax(CONFIG_UINT32_AHBOT_CLASS_CONSUMABLE_AMOUNT , "AuctionHouseBot.Class.Consumable" , 6, 10);
|
||||
setConfigMax(CONFIG_UINT32_AHBOT_CLASS_CONTAINER_AMOUNT , "AuctionHouseBot.Class.Container" , 4, 10);
|
||||
setConfigMax(CONFIG_UINT32_AHBOT_CLASS_WEAPON_AMOUNT , "AuctionHouseBot.Class.Weapon" , 8, 10);
|
||||
setConfigMax(CONFIG_UINT32_AHBOT_CLASS_GEM_AMOUNT , "AuctionHouseBot.Class.Gem" , 3, 10);
|
||||
setConfigMax(CONFIG_UINT32_AHBOT_CLASS_ARMOR_AMOUNT , "AuctionHouseBot.Class.Armor" , 8, 10);
|
||||
setConfigMax(CONFIG_UINT32_AHBOT_CLASS_REAGENT_AMOUNT , "AuctionHouseBot.Class.Reagent" , 1, 10);
|
||||
setConfigMax(CONFIG_UINT32_AHBOT_CLASS_PROJECTILE_AMOUNT , "AuctionHouseBot.Class.Projectile" , 2, 10);
|
||||
setConfigMax(CONFIG_UINT32_AHBOT_CLASS_TRADEGOOD_AMOUNT , "AuctionHouseBot.Class.TradeGood" , 10, 10);
|
||||
setConfigMax(CONFIG_UINT32_AHBOT_CLASS_GENERIC_AMOUNT , "AuctionHouseBot.Class.Generic" , 10, 10);
|
||||
setConfigMax(CONFIG_UINT32_AHBOT_CLASS_RECIPE_AMOUNT , "AuctionHouseBot.Class.Recipe" , 10, 10);
|
||||
setConfigMax(CONFIG_UINT32_AHBOT_CLASS_QUIVER_AMOUNT , "AuctionHouseBot.Class.Quiver" , 10, 10);
|
||||
setConfigMax(CONFIG_UINT32_AHBOT_CLASS_QUEST_AMOUNT , "AuctionHouseBot.Class.Quest" , 10, 10);
|
||||
setConfigMax(CONFIG_UINT32_AHBOT_CLASS_KEY_AMOUNT , "AuctionHouseBot.Class.Key" , 10, 10);
|
||||
setConfigMax(CONFIG_UINT32_AHBOT_CLASS_MISC_AMOUNT , "AuctionHouseBot.Class.Misc" , 10, 10);
|
||||
setConfigMax(CONFIG_UINT32_AHBOT_CLASS_GLYPH_AMOUNT , "AuctionHouseBot.Class.Glyph" , 10, 10);
|
||||
setConfigMax(CONFIG_UINT32_AHBOT_CLASS_GENERIC_AMOUNT , "AuctionHouseBot.Class.Generic" , 1, 10);
|
||||
setConfigMax(CONFIG_UINT32_AHBOT_CLASS_RECIPE_AMOUNT , "AuctionHouseBot.Class.Recipe" , 6, 10);
|
||||
setConfigMax(CONFIG_UINT32_AHBOT_CLASS_QUIVER_AMOUNT , "AuctionHouseBot.Class.Quiver" , 1, 10);
|
||||
setConfigMax(CONFIG_UINT32_AHBOT_CLASS_QUEST_AMOUNT , "AuctionHouseBot.Class.Quest" , 1, 10);
|
||||
setConfigMax(CONFIG_UINT32_AHBOT_CLASS_KEY_AMOUNT , "AuctionHouseBot.Class.Key" , 1, 10);
|
||||
setConfigMax(CONFIG_UINT32_AHBOT_CLASS_MISC_AMOUNT , "AuctionHouseBot.Class.Misc" , 5, 10);
|
||||
setConfigMax(CONFIG_UINT32_AHBOT_CLASS_GLYPH_AMOUNT , "AuctionHouseBot.Class.Glyph" , 3, 10);
|
||||
|
||||
setConfig(CONFIG_UINT32_AHBOT_ALLIANCE_PRICE_RATIO , "AuctionHouseBot.Alliance.Price.Ratio" , 100);
|
||||
setConfig(CONFIG_UINT32_AHBOT_HORDE_PRICE_RATIO , "AuctionHouseBot.Horde.Price.Ratio" , 100);
|
||||
setConfig(CONFIG_UINT32_AHBOT_NEUTRAL_PRICE_RATIO , "AuctionHouseBot.Neutral.Price.Ratio" , 100);
|
||||
setConfig(CONFIG_UINT32_AHBOT_ALLIANCE_PRICE_RATIO , "AuctionHouseBot.Alliance.Price.Ratio" , 200);
|
||||
setConfig(CONFIG_UINT32_AHBOT_HORDE_PRICE_RATIO , "AuctionHouseBot.Horde.Price.Ratio" , 200);
|
||||
setConfig(CONFIG_UINT32_AHBOT_NEUTRAL_PRICE_RATIO , "AuctionHouseBot.Neutral.Price.Ratio" , 200);
|
||||
|
||||
setConfig(CONFIG_UINT32_AHBOT_MINTIME , "AuctionHouseBot.MinTime" , 1);
|
||||
setConfig(CONFIG_UINT32_AHBOT_MAXTIME , "AuctionHouseBot.MaxTime" , 72);
|
||||
|
|
|
|||
|
|
@ -76,15 +76,15 @@ ConfVersion=2010102201
|
|||
#
|
||||
# AuctionHouseBot.Alliance.Price.Ratio
|
||||
# Define the price of selled item here for the Alliance Auction House
|
||||
# Default 100
|
||||
# Default 200
|
||||
#
|
||||
# AuctionHouseBot.Horde.Price.Ratio
|
||||
# Define the price of selled item here for the Horde Auction House
|
||||
# Default 100
|
||||
# Default 200
|
||||
#
|
||||
# AuctionHouseBot.Alliance.Price.Ratio
|
||||
# Define the price of selled item here for the Neutral Auction House
|
||||
# Default 100
|
||||
# Default 200
|
||||
#
|
||||
# AuctionHouseBot.Items.ItemLevel.*
|
||||
# Prevent seller from listing items below/above this item level
|
||||
|
|
@ -104,7 +104,7 @@ ConfVersion=2010102201
|
|||
# items will be show on Auction House
|
||||
# Default 0, 2000, 2500, 1500, 1000, 0, 0 (grey, white, green, blue, purple, orange, yellow)
|
||||
#
|
||||
# AustionHouseBot.Class.*
|
||||
# AuctionHouseBot.Class.*
|
||||
# Here you can set the class of items you prefer to be show on AH
|
||||
# These value is preference value, it's not percentage. So the maximum is 10.
|
||||
# The minimum is 0 (disabled).
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "11723"
|
||||
#define REVISION_NR "11724"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue