mirror of
https://github.com/NathanHandley/mod-ah-bot-plus.git
synced 2026-01-13 01:08:37 +00:00
Remove unused properties
This commit is contained in:
@@ -50,217 +50,3 @@ AuctionHouseBot.UseBuyPriceForBuyer = 0
|
||||
AuctionHouseBot.Account = 0
|
||||
AuctionHouseBot.GUID = 0
|
||||
AuctionHouseBot.ItemsPerCycle = 200
|
||||
|
||||
###############################################################################
|
||||
# AUCTION HOUSE BOT FILTERS PART 1
|
||||
#
|
||||
# AuctionHouseBot.VendorItems
|
||||
# Include items that can be bought from vendors.
|
||||
# Default 0 (False)
|
||||
#
|
||||
# AuctionHouseBot.VendorTradeGoods
|
||||
# Include Trade Goods that can be bought from vendors.
|
||||
# Default 0 (False)
|
||||
#
|
||||
# AuctionHouseBot.LootItems
|
||||
# Include items that can be looted or fished for.
|
||||
# Default 1 (True)
|
||||
#
|
||||
# AuctionHouseBot.LootTradeGoods
|
||||
# Include Trade Goods that can be looted or fished for.
|
||||
# Default 1 (True)
|
||||
#
|
||||
# AuctionHouseBot.OtherItems
|
||||
# Include misc. items.
|
||||
# Default 0 (False)
|
||||
#
|
||||
# AuctionHouseBot.OtherTradeGoods
|
||||
# Include misc. Trade Goods.
|
||||
# Default 0 (False)
|
||||
#
|
||||
# AuctionHouseBot.Bonding_types
|
||||
# Indicates which bonding types to allow seller to put up for auction
|
||||
# No_Bind
|
||||
# Default 1 (True)
|
||||
# Bind_When_Picked_Up
|
||||
# Default 0 (False)
|
||||
# Bind_When_Equipped
|
||||
# Default 1 (True)
|
||||
# Bind_When_Use
|
||||
# Default 1 (True)
|
||||
# Bind_Quest_Item
|
||||
# Default 0 (False)
|
||||
#
|
||||
# AuctionHouseBot.DisablePermEnchant
|
||||
# Disable Items with a Permanent Enchantment
|
||||
# Default 0 (False)
|
||||
#
|
||||
# AuctionHouseBot.DisableConjured
|
||||
# Disable Conjured Items
|
||||
# Default 0 (False)
|
||||
#
|
||||
# AuctionHouseBot.DisableGems
|
||||
# Disable Gems
|
||||
# Default 0 (False)
|
||||
#
|
||||
# AuctionHouseBot.DisableMoney
|
||||
# Disable Items that are used as money
|
||||
# Default 0 (False)
|
||||
#
|
||||
# AuctionHouseBot.DisableMoneyLoot
|
||||
# Disable Items that have Money as a loot
|
||||
# Default 0 (False)
|
||||
#
|
||||
# AuctionHouseBot.DisableLootable
|
||||
# Disable Items that have other items as loot
|
||||
# Default 0 (False)
|
||||
#
|
||||
# AuctionHouseBot.DisableKeys
|
||||
# Disable Items that are keys
|
||||
# Default 0 (False)
|
||||
#
|
||||
# AuctionHouseBot.DisableDuration
|
||||
# Disable Items with a duration
|
||||
# Default 0 (False)
|
||||
#
|
||||
# AuctionHouseBot.DisableBOP_Or_Quest_NoReqLevel
|
||||
# Disable items that are BOP or Quest Item
|
||||
# with a Required level that is less than the Item Level
|
||||
# (This prevents a level 10 with a level 60 weapon or armor)
|
||||
# (May need further refinement)
|
||||
# Default 0 (False)
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
AuctionHouseBot.VendorItems = 0
|
||||
AuctionHouseBot.VendorTradeGoods = 0
|
||||
AuctionHouseBot.LootItems = 1
|
||||
AuctionHouseBot.LootTradeGoods = 1
|
||||
AuctionHouseBot.OtherItems = 0
|
||||
AuctionHouseBot.OtherTradeGoods = 0
|
||||
AuctionHouseBot.No_Bind = 1
|
||||
AuctionHouseBot.Bind_When_Picked_Up = 0
|
||||
AuctionHouseBot.Bind_When_Equipped = 1
|
||||
AuctionHouseBot.Bind_When_Use = 1
|
||||
AuctionHouseBot.Bind_Quest_Item = 0
|
||||
AuctionHouseBot.DisablePermEnchant = 0
|
||||
AuctionHouseBot.DisableConjured = 0
|
||||
AuctionHouseBot.DisableGems = 0
|
||||
AuctionHouseBot.DisableMoney = 0
|
||||
AuctionHouseBot.DisableMoneyLoot = 0
|
||||
AuctionHouseBot.DisableLootable = 0
|
||||
AuctionHouseBot.DisableKeys = 0
|
||||
AuctionHouseBot.DisableDuration = 0
|
||||
AuctionHouseBot.DisableBOP_Or_Quest_NoReqLevel = 0
|
||||
|
||||
###############################################################################
|
||||
# AUCTION HOUSE BOT FILTERS PART 2
|
||||
#
|
||||
# These Filters are boolean (0 or 1) and will disable items that are
|
||||
# specifically meant for the Class named.
|
||||
# (UnusedClass is Class 10, which was skipped for some reason)
|
||||
# Default 0 (allowed)
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
AuctionHouseBot.DisableWarriorItems = 0
|
||||
AuctionHouseBot.DisablePaladinItems = 0
|
||||
AuctionHouseBot.DisableHunterItems = 0
|
||||
AuctionHouseBot.DisableRogueItems = 0
|
||||
AuctionHouseBot.DisablePriestItems = 0
|
||||
AuctionHouseBot.DisableDKItems = 0
|
||||
AuctionHouseBot.DisableShamanItems = 0
|
||||
AuctionHouseBot.DisableMageItems = 0
|
||||
AuctionHouseBot.DisableWarlockItems = 0
|
||||
AuctionHouseBot.DisableUnusedClassItems = 0
|
||||
AuctionHouseBot.DisableDruidItems = 0
|
||||
|
||||
###############################################################################
|
||||
# AUCTION HOUSE BOT FILTERS PART 3
|
||||
#
|
||||
# AuctionHouseBot.DisabledItems
|
||||
# Prevent Seller from listing specific item(s)
|
||||
# (not used anymore, see table "mod_auctionhousebot_disabled_items")
|
||||
#
|
||||
# AuctionHouseBot.DisableItemsBelowLevel
|
||||
# Prevent Seller from listing Items below this Level
|
||||
# Default 0 (Off)
|
||||
#
|
||||
# AuctionHouseBot.DisableItemsAboveLevel
|
||||
# Prevent Seller from listing Items above this Level
|
||||
# Default 0 (Off)
|
||||
#
|
||||
# AuctionHouseBot.DisableTGsBelowLevel
|
||||
# Prevent Seller from listing Trade Goods below this Level
|
||||
# Default 0 (Off)
|
||||
#
|
||||
# AuctionHouseBot.DisableTGsAboveLevel
|
||||
# Prevent Seller from listing Trade Goods above this Level
|
||||
# Default 0 (Off)
|
||||
#
|
||||
# AuctionHouseBot.DisableItemsBelowGUID
|
||||
# Prevent Seller from listing Items below this GUID
|
||||
# Default 0 (Off)
|
||||
#
|
||||
# AuctionHouseBot.DisableItemsAboveGUID
|
||||
# Prevent Seller from listing Items above this GUID
|
||||
# Default 0 (Off)
|
||||
#
|
||||
# AuctionHouseBot.DisableTGsBelowGUID
|
||||
# Prevent Seller from listing Trade Goods below this GUID
|
||||
# Default 0 (Off)
|
||||
#
|
||||
# AuctionHouseBot.DisableTGsAboveGUID
|
||||
# Prevent Seller from listing Trade Goods above this GUID
|
||||
# Default 0 (Off)
|
||||
#
|
||||
# AuctionHouseBot.DisableItemsBelowReqLevel
|
||||
# Prevent Seller from listing Items below this Required Level
|
||||
# Default 0 (Off)
|
||||
#
|
||||
# AuctionHouseBot.DisableItemsAboveReqLevel
|
||||
# Prevent Seller from listing Items above this Required Level
|
||||
# Default 0 (Off)
|
||||
#
|
||||
# AuctionHouseBot.DisableTGsBelowReqLevel
|
||||
# Prevent Seller from listing Trade Goods below this Required Level
|
||||
# Default 0 (Off)
|
||||
#
|
||||
# AuctionHouseBot.DisableTGsAboveReqLevel
|
||||
# Prevent Seller from listing Trade Goods above this Required Level
|
||||
# Default 0 (Off)
|
||||
#
|
||||
# AuctionHouseBot.DisableItemsBelowReqSkillRank
|
||||
# Prevent Seller from listing Items below this Required Skill Rank
|
||||
# Default 0 (Off)
|
||||
#
|
||||
# AuctionHouseBot.DisableItemsAboveReqSkillRank
|
||||
# Prevent Seller from listing Items above this Required Skill Rank
|
||||
# Default 0 (Off)
|
||||
#
|
||||
# AuctionHouseBot.DisableTGsBelowReqSkillRank
|
||||
# Prevent Seller from listing Trade Goods below this Required Skill Rank
|
||||
# Default 0 (Off)
|
||||
#
|
||||
# AuctionHouseBot.DisableTGsAboveReqSkillRank
|
||||
# Prevent Seller from listing Trade Goods above this Required Skill Rank
|
||||
# Default 0 (Off)
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
AuctionHouseBot.DisableItemsBelowLevel = 0
|
||||
AuctionHouseBot.DisableItemsAboveLevel = 0
|
||||
AuctionHouseBot.DisableTGsBelowLevel = 0
|
||||
AuctionHouseBot.DisableTGsAboveLevel = 0
|
||||
AuctionHouseBot.DisableItemsBelowGUID = 0
|
||||
AuctionHouseBot.DisableItemsAboveGUID = 0
|
||||
AuctionHouseBot.DisableTGsBelowGUID = 0
|
||||
AuctionHouseBot.DisableTGsAboveGUID = 0
|
||||
AuctionHouseBot.DisableItemsBelowReqLevel = 0
|
||||
AuctionHouseBot.DisableItemsAboveReqLevel = 0
|
||||
AuctionHouseBot.DisableTGsBelowReqLevel = 0
|
||||
AuctionHouseBot.DisableTGsAboveReqLevel = 0
|
||||
AuctionHouseBot.DisableItemsBelowReqSkillRank = 0
|
||||
AuctionHouseBot.DisableItemsAboveReqSkillRank = 0
|
||||
AuctionHouseBot.DisableTGsBelowReqSkillRank = 0
|
||||
AuctionHouseBot.DisableTGsAboveReqSkillRank = 0
|
||||
|
||||
@@ -4,20 +4,6 @@ CREATE TABLE `mod_auctionhousebot` (
|
||||
`name` char(25) DEFAULT NULL COMMENT 'Text name of the auctionhouse.',
|
||||
`minitems` int(11) DEFAULT '0' COMMENT 'This is the minimum number of items you want to keep in the auction house. a 0 here will make it the same as the maximum.',
|
||||
`maxitems` int(11) DEFAULT '0' COMMENT 'This is the number of items you want to keep in the auction house.',
|
||||
`percentgreytradegoods` int(11) DEFAULT '0' COMMENT 'Sets the percentage of the Grey Trade Goods auction items',
|
||||
`percentwhitetradegoods` int(11) DEFAULT '27' COMMENT 'Sets the percentage of the White Trade Goods auction items',
|
||||
`percentgreentradegoods` int(11) DEFAULT '12' COMMENT 'Sets the percentage of the Green Trade Goods auction items',
|
||||
`percentbluetradegoods` int(11) DEFAULT '10' COMMENT 'Sets the percentage of the Blue Trade Goods auction items',
|
||||
`percentpurpletradegoods` int(11) DEFAULT '1' COMMENT 'Sets the percentage of the Purple Trade Goods auction items',
|
||||
`percentorangetradegoods` int(11) DEFAULT '0' COMMENT 'Sets the percentage of the Orange Trade Goods auction items',
|
||||
`percentyellowtradegoods` int(11) DEFAULT '0' COMMENT 'Sets the percentage of the Yellow Trade Goods auction items',
|
||||
`percentgreyitems` int(11) DEFAULT '0' COMMENT 'Sets the percentage of the non trade Grey auction items',
|
||||
`percentwhiteitems` int(11) DEFAULT '10' COMMENT 'Sets the percentage of the non trade White auction items',
|
||||
`percentgreenitems` int(11) DEFAULT '30' COMMENT 'Sets the percentage of the non trade Green auction items',
|
||||
`percentblueitems` int(11) DEFAULT '8' COMMENT 'Sets the percentage of the non trade Blue auction items',
|
||||
`percentpurpleitems` int(11) DEFAULT '2' COMMENT 'Sets the percentage of the non trade Purple auction items',
|
||||
`percentorangeitems` int(11) DEFAULT '0' COMMENT 'Sets the percentage of the non trade Orange auction items',
|
||||
`percentyellowitems` int(11) DEFAULT '0' COMMENT 'Sets the percentage of the non trade Yellow auction items',
|
||||
`minpricegrey` int(11) DEFAULT '100' COMMENT 'Minimum price of Grey items (percentage).',
|
||||
`maxpricegrey` int(11) DEFAULT '150' COMMENT 'Maximum price of Grey items (percentage).',
|
||||
`minpricewhite` int(11) DEFAULT '150' COMMENT 'Minimum price of White items (percentage).',
|
||||
@@ -72,11 +58,11 @@ CREATE TABLE `mod_auctionhousebot_disabled_items` (
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
-- AHBot auctionhouse configuration
|
||||
INSERT INTO `mod_auctionhousebot` (`auctionhouse`, `name`, `minitems`, `maxitems`, `percentgreytradegoods`, `percentwhitetradegoods`, `percentgreentradegoods`, `percentbluetradegoods`, `percentpurpletradegoods`, `percentorangetradegoods`, `percentyellowtradegoods`, `percentgreyitems`, `percentwhiteitems`, `percentgreenitems`, `percentblueitems`, `percentpurpleitems`, `percentorangeitems`, `percentyellowitems`, `minpricegrey`, `maxpricegrey`, `minpricewhite`, `maxpricewhite`, `minpricegreen`, `maxpricegreen`, `minpriceblue`, `maxpriceblue`, `minpricepurple`, `maxpricepurple`, `minpriceorange`, `maxpriceorange`, `minpriceyellow`, `maxpriceyellow`, `minbidpricegrey`, `maxbidpricegrey`, `minbidpricewhite`, `maxbidpricewhite`, `minbidpricegreen`, `maxbidpricegreen`, `minbidpriceblue`, `maxbidpriceblue`, `minbidpricepurple`, `maxbidpricepurple`, `minbidpriceorange`, `maxbidpriceorange`, `minbidpriceyellow`, `maxbidpriceyellow`, `maxstackgrey`, `maxstackwhite`, `maxstackgreen`, `maxstackblue`, `maxstackpurple`, `maxstackorange`, `maxstackyellow`, `buyerpricegrey`, `buyerpricewhite`, `buyerpricegreen`, `buyerpriceblue`, `buyerpricepurple`, `buyerpriceorange`, `buyerpriceyellow`, `buyerbiddinginterval`, `buyerbidsperinterval`)
|
||||
INSERT INTO `mod_auctionhousebot` (`auctionhouse`, `name`, `minitems`, `maxitems`, `minpricegrey`, `maxpricegrey`, `minpricewhite`, `maxpricewhite`, `minpricegreen`, `maxpricegreen`, `minpriceblue`, `maxpriceblue`, `minpricepurple`, `maxpricepurple`, `minpriceorange`, `maxpriceorange`, `minpriceyellow`, `maxpriceyellow`, `minbidpricegrey`, `maxbidpricegrey`, `minbidpricewhite`, `maxbidpricewhite`, `minbidpricegreen`, `maxbidpricegreen`, `minbidpriceblue`, `maxbidpriceblue`, `minbidpricepurple`, `maxbidpricepurple`, `minbidpriceorange`, `maxbidpriceorange`, `minbidpriceyellow`, `maxbidpriceyellow`, `maxstackgrey`, `maxstackwhite`, `maxstackgreen`, `maxstackblue`, `maxstackpurple`, `maxstackorange`, `maxstackyellow`, `buyerpricegrey`, `buyerpricewhite`, `buyerpricegreen`, `buyerpriceblue`, `buyerpricepurple`, `buyerpriceorange`, `buyerpriceyellow`, `buyerbiddinginterval`, `buyerbidsperinterval`)
|
||||
VALUES
|
||||
(2,'Alliance',250,250,0,27,12,10,1,0,0,0,10,30,8,2,0,0,100,150,150,250,800,1400,1250,1750,2250,4550,3250,5550,5250,6550,70,100,70,100,80,100,75,100,80,100,80,100,80,100,0,0,3,2,1,1,1,1,3,5,12,15,20,22,1,1),
|
||||
(6,'Horde',250,250,0,27,12,10,1,0,0,0,10,30,8,2,0,0,100,150,150,250,800,1400,1250,1750,2250,4550,3250,5550,5250,6550,70,100,70,100,80,100,75,100,80,100,80,100,80,100,0,0,3,2,1,1,1,1,3,5,12,15,20,22,1,1),
|
||||
(7,'Neutral',250,250,0,27,12,10,1,0,0,0,10,30,8,2,0,0,100,150,150,250,800,1400,1250,1750,2250,4550,3250,5550,5250,6550,70,100,70,100,80,100,75,100,80,100,80,100,80,100,0,0,3,2,1,1,1,1,3,5,12,15,20,22,1,1);
|
||||
(2,'Alliance',250,250,100,150,150,250,800,1400,1250,1750,2250,4550,3250,5550,5250,6550,70,100,70,100,80,100,75,100,80,100,80,100,80,100,0,0,3,2,1,1,1,1,3,5,12,15,20,22,1,1),
|
||||
(6,'Horde',250,250,100,150,150,250,800,1400,1250,1750,2250,4550,3250,5550,5250,6550,70,100,70,100,80,100,75,100,80,100,80,100,80,100,0,0,3,2,1,1,1,1,3,5,12,15,20,22,1,1),
|
||||
(7,'Neutral',250,250,100,150,150,250,800,1400,1250,1750,2250,4550,3250,5550,5250,6550,70,100,70,100,80,100,75,100,80,100,80,100,80,100,0,0,3,2,1,1,1,1,3,5,12,15,20,22,1,1);
|
||||
|
||||
-- Items unavailable to players
|
||||
INSERT INTO `mod_auctionhousebot_disabled_items`
|
||||
|
||||
@@ -971,21 +971,6 @@ void AuctionHouseBot::LoadValues(AHBConfig *config)
|
||||
//load min and max items
|
||||
config->SetMinItems(WorldDatabase.Query("SELECT minitems FROM mod_auctionhousebot WHERE auctionhouse = {}", config->GetAHID())->Fetch()->Get<uint32>());
|
||||
config->SetMaxItems(WorldDatabase.Query("SELECT maxitems FROM mod_auctionhousebot WHERE auctionhouse = {}", config->GetAHID())->Fetch()->Get<uint32>());
|
||||
//load percentages
|
||||
uint32 greytg = WorldDatabase.Query("SELECT percentgreytradegoods FROM mod_auctionhousebot WHERE auctionhouse = {}", config->GetAHID())->Fetch()->Get<uint32>();
|
||||
uint32 whitetg = WorldDatabase.Query("SELECT percentwhitetradegoods FROM mod_auctionhousebot WHERE auctionhouse = {}", config->GetAHID())->Fetch()->Get<uint32>();
|
||||
uint32 greentg = WorldDatabase.Query("SELECT percentgreentradegoods FROM mod_auctionhousebot WHERE auctionhouse = {}", config->GetAHID())->Fetch()->Get<uint32>();
|
||||
uint32 bluetg = WorldDatabase.Query("SELECT percentbluetradegoods FROM mod_auctionhousebot WHERE auctionhouse = {}", config->GetAHID())->Fetch()->Get<uint32>();
|
||||
uint32 purpletg = WorldDatabase.Query("SELECT percentpurpletradegoods FROM mod_auctionhousebot WHERE auctionhouse = {}", config->GetAHID())->Fetch()->Get<uint32>();
|
||||
uint32 orangetg = WorldDatabase.Query("SELECT percentorangetradegoods FROM mod_auctionhousebot WHERE auctionhouse = {}", config->GetAHID())->Fetch()->Get<uint32>();
|
||||
uint32 yellowtg = WorldDatabase.Query("SELECT percentyellowtradegoods FROM mod_auctionhousebot WHERE auctionhouse = {}", config->GetAHID())->Fetch()->Get<uint32>();
|
||||
uint32 greyi = WorldDatabase.Query("SELECT percentgreyitems FROM mod_auctionhousebot WHERE auctionhouse = {}", config->GetAHID())->Fetch()->Get<uint32>();
|
||||
uint32 whitei = WorldDatabase.Query("SELECT percentwhiteitems FROM mod_auctionhousebot WHERE auctionhouse = {}", config->GetAHID())->Fetch()->Get<uint32>();
|
||||
uint32 greeni = WorldDatabase.Query("SELECT percentgreenitems FROM mod_auctionhousebot WHERE auctionhouse = {}", config->GetAHID())->Fetch()->Get<uint32>();
|
||||
uint32 bluei = WorldDatabase.Query("SELECT percentblueitems FROM mod_auctionhousebot WHERE auctionhouse = {}", config->GetAHID())->Fetch()->Get<uint32>();
|
||||
uint32 purplei = WorldDatabase.Query("SELECT percentpurpleitems FROM mod_auctionhousebot WHERE auctionhouse = {}", config->GetAHID())->Fetch()->Get<uint32>();
|
||||
uint32 orangei = WorldDatabase.Query("SELECT percentorangeitems FROM mod_auctionhousebot WHERE auctionhouse = {}", config->GetAHID())->Fetch()->Get<uint32>();
|
||||
uint32 yellowi = WorldDatabase.Query("SELECT percentyellowitems FROM mod_auctionhousebot WHERE auctionhouse = {}", config->GetAHID())->Fetch()->Get<uint32>();
|
||||
//load min and max prices
|
||||
config->SetMinPrice(AHB_GREY, WorldDatabase.Query("SELECT minpricegrey FROM mod_auctionhousebot WHERE auctionhouse = {}", config->GetAHID())->Fetch()->Get<uint32>());
|
||||
config->SetMaxPrice(AHB_GREY, WorldDatabase.Query("SELECT maxpricegrey FROM mod_auctionhousebot WHERE auctionhouse = {}", config->GetAHID())->Fetch()->Get<uint32>());
|
||||
|
||||
Reference in New Issue
Block a user