mirror of
https://github.com/NathanHandley/mod-ah-bot-plus.git
synced 2026-03-16 22:15:18 +00:00
Merge pull request #1 from NathanHandley/BotSellRework
Bot Sell Rework (Part 1)
This commit is contained in:
@@ -50,217 +50,3 @@ AuctionHouseBot.UseBuyPriceForBuyer = 0
|
|||||||
AuctionHouseBot.Account = 0
|
AuctionHouseBot.Account = 0
|
||||||
AuctionHouseBot.GUID = 0
|
AuctionHouseBot.GUID = 0
|
||||||
AuctionHouseBot.ItemsPerCycle = 200
|
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.',
|
`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.',
|
`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.',
|
`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).',
|
`minpricegrey` int(11) DEFAULT '100' COMMENT 'Minimum price of Grey items (percentage).',
|
||||||
`maxpricegrey` int(11) DEFAULT '150' COMMENT 'Maximum 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).',
|
`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;
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
-- AHBot auctionhouse configuration
|
-- 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
|
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),
|
(2,'Alliance',10000,10000,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),
|
(6,'Horde',10000,10000,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);
|
(7,'Neutral',10000,10000,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
|
-- Items unavailable to players
|
||||||
INSERT INTO `mod_auctionhousebot_disabled_items`
|
INSERT INTO `mod_auctionhousebot_disabled_items`
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
UPDATE mod_auctionhousebot SET minitems = 20000, maxitems = 20000 WHERE auctionhouse < 10;
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -59,20 +59,6 @@ private:
|
|||||||
uint32 AHFID;
|
uint32 AHFID;
|
||||||
uint32 minItems;
|
uint32 minItems;
|
||||||
uint32 maxItems;
|
uint32 maxItems;
|
||||||
uint32 percentGreyTradeGoods;
|
|
||||||
uint32 percentWhiteTradeGoods;
|
|
||||||
uint32 percentGreenTradeGoods;
|
|
||||||
uint32 percentBlueTradeGoods;
|
|
||||||
uint32 percentPurpleTradeGoods;
|
|
||||||
uint32 percentOrangeTradeGoods;
|
|
||||||
uint32 percentYellowTradeGoods;
|
|
||||||
uint32 percentGreyItems;
|
|
||||||
uint32 percentWhiteItems;
|
|
||||||
uint32 percentGreenItems;
|
|
||||||
uint32 percentBlueItems;
|
|
||||||
uint32 percentPurpleItems;
|
|
||||||
uint32 percentOrangeItems;
|
|
||||||
uint32 percentYellowItems;
|
|
||||||
uint32 minPriceGrey;
|
uint32 minPriceGrey;
|
||||||
uint32 maxPriceGrey;
|
uint32 maxPriceGrey;
|
||||||
uint32 minBidPriceGrey;
|
uint32 minBidPriceGrey;
|
||||||
@@ -119,37 +105,6 @@ private:
|
|||||||
uint32 buyerBiddingInterval;
|
uint32 buyerBiddingInterval;
|
||||||
uint32 buyerBidsPerInterval;
|
uint32 buyerBidsPerInterval;
|
||||||
|
|
||||||
uint32 greytgp;
|
|
||||||
uint32 whitetgp;
|
|
||||||
uint32 greentgp;
|
|
||||||
uint32 bluetgp;
|
|
||||||
uint32 purpletgp;
|
|
||||||
uint32 orangetgp;
|
|
||||||
uint32 yellowtgp;
|
|
||||||
uint32 greyip;
|
|
||||||
uint32 whiteip;
|
|
||||||
uint32 greenip;
|
|
||||||
uint32 blueip;
|
|
||||||
uint32 purpleip;
|
|
||||||
uint32 orangeip;
|
|
||||||
uint32 yellowip;
|
|
||||||
|
|
||||||
uint32 greyTGoods;
|
|
||||||
uint32 whiteTGoods;
|
|
||||||
uint32 greenTGoods;
|
|
||||||
uint32 blueTGoods;
|
|
||||||
uint32 purpleTGoods;
|
|
||||||
uint32 orangeTGoods;
|
|
||||||
uint32 yellowTGoods;
|
|
||||||
|
|
||||||
uint32 greyItems;
|
|
||||||
uint32 whiteItems;
|
|
||||||
uint32 greenItems;
|
|
||||||
uint32 blueItems;
|
|
||||||
uint32 purpleItems;
|
|
||||||
uint32 orangeItems;
|
|
||||||
uint32 yellowItems;
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
AHBConfig(uint32 ahid)
|
AHBConfig(uint32 ahid)
|
||||||
{
|
{
|
||||||
@@ -204,98 +159,7 @@ public:
|
|||||||
{
|
{
|
||||||
return maxItems;
|
return maxItems;
|
||||||
}
|
}
|
||||||
void SetPercentages(uint32 greytg, uint32 whitetg, uint32 greentg, uint32 bluetg, uint32 purpletg, uint32 orangetg, uint32 yellowtg, uint32 greyi, uint32 whitei, uint32 greeni, uint32 bluei, uint32 purplei, uint32 orangei, uint32 yellowi)
|
|
||||||
{
|
|
||||||
uint32 totalPercent = greytg + whitetg + greentg + bluetg + purpletg + orangetg + yellowtg + greyi + whitei + greeni + bluei + purplei + orangei + yellowi;
|
|
||||||
|
|
||||||
if (totalPercent == 0)
|
|
||||||
{
|
|
||||||
maxItems = 0;
|
|
||||||
}
|
|
||||||
else if (totalPercent != 100)
|
|
||||||
{
|
|
||||||
greytg = 0;
|
|
||||||
whitetg = 27;
|
|
||||||
greentg = 12;
|
|
||||||
bluetg = 10;
|
|
||||||
purpletg = 1;
|
|
||||||
orangetg = 0;
|
|
||||||
yellowtg = 0;
|
|
||||||
greyi = 0;
|
|
||||||
whitei = 10;
|
|
||||||
greeni = 30;
|
|
||||||
bluei = 8;
|
|
||||||
purplei = 2;
|
|
||||||
orangei = 0;
|
|
||||||
yellowi = 0;
|
|
||||||
}
|
|
||||||
percentGreyTradeGoods = greytg;
|
|
||||||
percentWhiteTradeGoods = whitetg;
|
|
||||||
percentGreenTradeGoods = greentg;
|
|
||||||
percentBlueTradeGoods = bluetg;
|
|
||||||
percentPurpleTradeGoods = purpletg;
|
|
||||||
percentOrangeTradeGoods = orangetg;
|
|
||||||
percentYellowTradeGoods = yellowtg;
|
|
||||||
percentGreyItems = greyi;
|
|
||||||
percentWhiteItems = whitei;
|
|
||||||
percentGreenItems = greeni;
|
|
||||||
percentBlueItems = bluei;
|
|
||||||
percentPurpleItems = purplei;
|
|
||||||
percentOrangeItems = orangei;
|
|
||||||
percentYellowItems = yellowi;
|
|
||||||
CalculatePercents();
|
|
||||||
}
|
|
||||||
uint32 GetPercentages(uint32 color)
|
|
||||||
{
|
|
||||||
switch(color)
|
|
||||||
{
|
|
||||||
case AHB_GREY_TG:
|
|
||||||
return percentGreyTradeGoods;
|
|
||||||
break;
|
|
||||||
case AHB_WHITE_TG:
|
|
||||||
return percentWhiteTradeGoods;
|
|
||||||
break;
|
|
||||||
case AHB_GREEN_TG:
|
|
||||||
return percentGreenTradeGoods;
|
|
||||||
break;
|
|
||||||
case AHB_BLUE_TG:
|
|
||||||
return percentBlueTradeGoods;
|
|
||||||
break;
|
|
||||||
case AHB_PURPLE_TG:
|
|
||||||
return percentPurpleTradeGoods;
|
|
||||||
break;
|
|
||||||
case AHB_ORANGE_TG:
|
|
||||||
return percentOrangeTradeGoods;
|
|
||||||
break;
|
|
||||||
case AHB_YELLOW_TG:
|
|
||||||
return percentYellowTradeGoods;
|
|
||||||
break;
|
|
||||||
case AHB_GREY_I:
|
|
||||||
return percentGreyItems;
|
|
||||||
break;
|
|
||||||
case AHB_WHITE_I:
|
|
||||||
return percentWhiteItems;
|
|
||||||
break;
|
|
||||||
case AHB_GREEN_I:
|
|
||||||
return percentGreenItems;
|
|
||||||
break;
|
|
||||||
case AHB_BLUE_I:
|
|
||||||
return percentBlueItems;
|
|
||||||
break;
|
|
||||||
case AHB_PURPLE_I:
|
|
||||||
return percentPurpleItems;
|
|
||||||
break;
|
|
||||||
case AHB_ORANGE_I:
|
|
||||||
return percentOrangeItems;
|
|
||||||
break;
|
|
||||||
case AHB_YELLOW_I:
|
|
||||||
return percentYellowItems;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
return 0;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
void SetMinPrice(uint32 color, uint32 value)
|
void SetMinPrice(uint32 color, uint32 value)
|
||||||
{
|
{
|
||||||
switch(color)
|
switch(color)
|
||||||
@@ -325,6 +189,7 @@ public:
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32 GetMinPrice(uint32 color)
|
uint32 GetMinPrice(uint32 color)
|
||||||
{
|
{
|
||||||
switch(color)
|
switch(color)
|
||||||
@@ -836,306 +701,7 @@ public:
|
|||||||
{
|
{
|
||||||
return buyerBiddingInterval;
|
return buyerBiddingInterval;
|
||||||
}
|
}
|
||||||
void CalculatePercents()
|
|
||||||
{
|
|
||||||
greytgp = (uint32) (((double)percentGreyTradeGoods / 100.0) * maxItems);
|
|
||||||
whitetgp = (uint32) (((double)percentWhiteTradeGoods / 100.0) * maxItems);
|
|
||||||
greentgp = (uint32) (((double)percentGreenTradeGoods / 100.0) * maxItems);
|
|
||||||
bluetgp = (uint32) (((double)percentBlueTradeGoods / 100.0) * maxItems);
|
|
||||||
purpletgp = (uint32) (((double)percentPurpleTradeGoods / 100.0) * maxItems);
|
|
||||||
orangetgp = (uint32) (((double)percentOrangeTradeGoods / 100.0) * maxItems);
|
|
||||||
yellowtgp = (uint32) (((double)percentYellowTradeGoods / 100.0) * maxItems);
|
|
||||||
greyip = (uint32) (((double)percentGreyItems / 100.0) * maxItems);
|
|
||||||
whiteip = (uint32) (((double)percentWhiteItems / 100.0) * maxItems);
|
|
||||||
greenip = (uint32) (((double)percentGreenItems / 100.0) * maxItems);
|
|
||||||
blueip = (uint32) (((double)percentBlueItems / 100.0) * maxItems);
|
|
||||||
purpleip = (uint32) (((double)percentPurpleItems / 100.0) * maxItems);
|
|
||||||
orangeip = (uint32) (((double)percentOrangeItems / 100.0) * maxItems);
|
|
||||||
yellowip = (uint32) (((double)percentYellowItems / 100.0) * maxItems);
|
|
||||||
uint32 total = greytgp + whitetgp + greentgp + bluetgp + purpletgp + orangetgp + yellowtgp + greyip + whiteip + greenip + blueip + purpleip + orangeip + yellowip;
|
|
||||||
int32 diff = (maxItems - total);
|
|
||||||
if (diff < 0)
|
|
||||||
{
|
|
||||||
if ((whiteip - diff) > 0)
|
|
||||||
whiteip -= diff;
|
|
||||||
else if ((greenip - diff) > 0)
|
|
||||||
greenip -= diff;
|
|
||||||
}
|
|
||||||
else if (diff < 0)
|
|
||||||
{
|
|
||||||
whiteip += diff;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
uint32 GetPercents(uint32 color)
|
|
||||||
{
|
|
||||||
switch(color)
|
|
||||||
{
|
|
||||||
case AHB_GREY_TG:
|
|
||||||
return greytgp;
|
|
||||||
break;
|
|
||||||
case AHB_WHITE_TG:
|
|
||||||
return whitetgp;
|
|
||||||
break;
|
|
||||||
case AHB_GREEN_TG:
|
|
||||||
return greentgp;
|
|
||||||
break;
|
|
||||||
case AHB_BLUE_TG:
|
|
||||||
return bluetgp;
|
|
||||||
break;
|
|
||||||
case AHB_PURPLE_TG:
|
|
||||||
return purpletgp;
|
|
||||||
break;
|
|
||||||
case AHB_ORANGE_TG:
|
|
||||||
return orangetgp;
|
|
||||||
break;
|
|
||||||
case AHB_YELLOW_TG:
|
|
||||||
return yellowtgp;
|
|
||||||
break;
|
|
||||||
case AHB_GREY_I:
|
|
||||||
return greyip;
|
|
||||||
break;
|
|
||||||
case AHB_WHITE_I:
|
|
||||||
return whiteip;
|
|
||||||
break;
|
|
||||||
case AHB_GREEN_I:
|
|
||||||
return greenip;
|
|
||||||
break;
|
|
||||||
case AHB_BLUE_I:
|
|
||||||
return blueip;
|
|
||||||
break;
|
|
||||||
case AHB_PURPLE_I:
|
|
||||||
return purpleip;
|
|
||||||
break;
|
|
||||||
case AHB_ORANGE_I:
|
|
||||||
return orangeip;
|
|
||||||
break;
|
|
||||||
case AHB_YELLOW_I:
|
|
||||||
return yellowip;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
return 0;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void DecItemCounts(uint32 Class, uint32 Quality)
|
|
||||||
{
|
|
||||||
switch(Class)
|
|
||||||
{
|
|
||||||
case ITEM_CLASS_TRADE_GOODS:
|
|
||||||
DecItemCounts(Quality);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
DecItemCounts(Quality + 7);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void DecItemCounts(uint32 color)
|
|
||||||
{
|
|
||||||
switch(color)
|
|
||||||
{
|
|
||||||
case AHB_GREY_TG:
|
|
||||||
--greyTGoods;
|
|
||||||
break;
|
|
||||||
case AHB_WHITE_TG:
|
|
||||||
--whiteTGoods;
|
|
||||||
break;
|
|
||||||
case AHB_GREEN_TG:
|
|
||||||
--greenTGoods;
|
|
||||||
break;
|
|
||||||
case AHB_BLUE_TG:
|
|
||||||
--blueTGoods;
|
|
||||||
break;
|
|
||||||
case AHB_PURPLE_TG:
|
|
||||||
--purpleTGoods;
|
|
||||||
break;
|
|
||||||
case AHB_ORANGE_TG:
|
|
||||||
--orangeTGoods;
|
|
||||||
break;
|
|
||||||
case AHB_YELLOW_TG:
|
|
||||||
--yellowTGoods;
|
|
||||||
break;
|
|
||||||
case AHB_GREY_I:
|
|
||||||
--greyItems;
|
|
||||||
break;
|
|
||||||
case AHB_WHITE_I:
|
|
||||||
--whiteItems;
|
|
||||||
break;
|
|
||||||
case AHB_GREEN_I:
|
|
||||||
--greenItems;
|
|
||||||
break;
|
|
||||||
case AHB_BLUE_I:
|
|
||||||
--blueItems;
|
|
||||||
break;
|
|
||||||
case AHB_PURPLE_I:
|
|
||||||
--purpleItems;
|
|
||||||
break;
|
|
||||||
case AHB_ORANGE_I:
|
|
||||||
--orangeItems;
|
|
||||||
break;
|
|
||||||
case AHB_YELLOW_I:
|
|
||||||
--yellowItems;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void IncItemCounts(uint32 Class, uint32 Quality)
|
|
||||||
{
|
|
||||||
switch(Class)
|
|
||||||
{
|
|
||||||
case ITEM_CLASS_TRADE_GOODS:
|
|
||||||
IncItemCounts(Quality);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
IncItemCounts(Quality + 7);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void IncItemCounts(uint32 color)
|
|
||||||
{
|
|
||||||
switch(color)
|
|
||||||
{
|
|
||||||
case AHB_GREY_TG:
|
|
||||||
++greyTGoods;
|
|
||||||
break;
|
|
||||||
case AHB_WHITE_TG:
|
|
||||||
++whiteTGoods;
|
|
||||||
break;
|
|
||||||
case AHB_GREEN_TG:
|
|
||||||
++greenTGoods;
|
|
||||||
break;
|
|
||||||
case AHB_BLUE_TG:
|
|
||||||
++blueTGoods;
|
|
||||||
break;
|
|
||||||
case AHB_PURPLE_TG:
|
|
||||||
++purpleTGoods;
|
|
||||||
break;
|
|
||||||
case AHB_ORANGE_TG:
|
|
||||||
++orangeTGoods;
|
|
||||||
break;
|
|
||||||
case AHB_YELLOW_TG:
|
|
||||||
++yellowTGoods;
|
|
||||||
break;
|
|
||||||
case AHB_GREY_I:
|
|
||||||
++greyItems;
|
|
||||||
break;
|
|
||||||
case AHB_WHITE_I:
|
|
||||||
++whiteItems;
|
|
||||||
break;
|
|
||||||
case AHB_GREEN_I:
|
|
||||||
++greenItems;
|
|
||||||
break;
|
|
||||||
case AHB_BLUE_I:
|
|
||||||
++blueItems;
|
|
||||||
break;
|
|
||||||
case AHB_PURPLE_I:
|
|
||||||
++purpleItems;
|
|
||||||
break;
|
|
||||||
case AHB_ORANGE_I:
|
|
||||||
++orangeItems;
|
|
||||||
break;
|
|
||||||
case AHB_YELLOW_I:
|
|
||||||
++yellowItems;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void ResetItemCounts()
|
|
||||||
{
|
|
||||||
greyTGoods = 0;
|
|
||||||
whiteTGoods = 0;
|
|
||||||
greenTGoods = 0;
|
|
||||||
blueTGoods = 0;
|
|
||||||
purpleTGoods = 0;
|
|
||||||
orangeTGoods = 0;
|
|
||||||
yellowTGoods = 0;
|
|
||||||
|
|
||||||
greyItems = 0;
|
|
||||||
whiteItems = 0;
|
|
||||||
greenItems = 0;
|
|
||||||
blueItems = 0;
|
|
||||||
purpleItems = 0;
|
|
||||||
orangeItems = 0;
|
|
||||||
yellowItems = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
uint32 TotalItemCounts()
|
|
||||||
{
|
|
||||||
return(
|
|
||||||
greyTGoods +
|
|
||||||
whiteTGoods +
|
|
||||||
greenTGoods +
|
|
||||||
blueTGoods +
|
|
||||||
purpleTGoods +
|
|
||||||
orangeTGoods +
|
|
||||||
yellowTGoods +
|
|
||||||
|
|
||||||
greyItems +
|
|
||||||
whiteItems +
|
|
||||||
greenItems +
|
|
||||||
blueItems +
|
|
||||||
purpleItems +
|
|
||||||
orangeItems +
|
|
||||||
yellowItems);
|
|
||||||
}
|
|
||||||
|
|
||||||
uint32 GetItemCounts(uint32 color)
|
|
||||||
{
|
|
||||||
switch(color)
|
|
||||||
{
|
|
||||||
case AHB_GREY_TG:
|
|
||||||
return greyTGoods;
|
|
||||||
break;
|
|
||||||
case AHB_WHITE_TG:
|
|
||||||
return whiteTGoods;
|
|
||||||
break;
|
|
||||||
case AHB_GREEN_TG:
|
|
||||||
return greenTGoods;
|
|
||||||
break;
|
|
||||||
case AHB_BLUE_TG:
|
|
||||||
return blueTGoods;
|
|
||||||
break;
|
|
||||||
case AHB_PURPLE_TG:
|
|
||||||
return purpleTGoods;
|
|
||||||
break;
|
|
||||||
case AHB_ORANGE_TG:
|
|
||||||
return orangeTGoods;
|
|
||||||
break;
|
|
||||||
case AHB_YELLOW_TG:
|
|
||||||
return yellowTGoods;
|
|
||||||
break;
|
|
||||||
case AHB_GREY_I:
|
|
||||||
return greyItems;
|
|
||||||
break;
|
|
||||||
case AHB_WHITE_I:
|
|
||||||
return whiteItems;
|
|
||||||
break;
|
|
||||||
case AHB_GREEN_I:
|
|
||||||
return greenItems;
|
|
||||||
break;
|
|
||||||
case AHB_BLUE_I:
|
|
||||||
return blueItems;
|
|
||||||
break;
|
|
||||||
case AHB_PURPLE_I:
|
|
||||||
return purpleItems;
|
|
||||||
break;
|
|
||||||
case AHB_ORANGE_I:
|
|
||||||
return orangeItems;
|
|
||||||
break;
|
|
||||||
case AHB_YELLOW_I:
|
|
||||||
return yellowItems;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
return 0;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
void SetBidsPerInterval(uint32 value)
|
void SetBidsPerInterval(uint32 value)
|
||||||
{
|
{
|
||||||
buyerBidsPerInterval = value;
|
buyerBidsPerInterval = value;
|
||||||
@@ -1164,60 +730,6 @@ private:
|
|||||||
ObjectGuid::LowType AHBplayerGUID;
|
ObjectGuid::LowType AHBplayerGUID;
|
||||||
uint32 ItemsPerCycle;
|
uint32 ItemsPerCycle;
|
||||||
|
|
||||||
//Begin Filters
|
|
||||||
|
|
||||||
bool Vendor_Items;
|
|
||||||
bool Loot_Items;
|
|
||||||
bool Other_Items;
|
|
||||||
bool Vendor_TGs;
|
|
||||||
bool Loot_TGs;
|
|
||||||
bool Other_TGs;
|
|
||||||
|
|
||||||
bool No_Bind;
|
|
||||||
bool Bind_When_Picked_Up;
|
|
||||||
bool Bind_When_Equipped;
|
|
||||||
bool Bind_When_Use;
|
|
||||||
bool Bind_Quest_Item;
|
|
||||||
|
|
||||||
bool DisablePermEnchant;
|
|
||||||
bool DisableConjured;
|
|
||||||
bool DisableGems;
|
|
||||||
bool DisableMoney;
|
|
||||||
bool DisableMoneyLoot;
|
|
||||||
bool DisableLootable;
|
|
||||||
bool DisableKeys;
|
|
||||||
bool DisableDuration;
|
|
||||||
bool DisableBOP_Or_Quest_NoReqLevel;
|
|
||||||
|
|
||||||
bool DisableWarriorItems;
|
|
||||||
bool DisablePaladinItems;
|
|
||||||
bool DisableHunterItems;
|
|
||||||
bool DisableRogueItems;
|
|
||||||
bool DisablePriestItems;
|
|
||||||
bool DisableDKItems;
|
|
||||||
bool DisableShamanItems;
|
|
||||||
bool DisableMageItems;
|
|
||||||
bool DisableWarlockItems;
|
|
||||||
bool DisableUnusedClassItems;
|
|
||||||
bool DisableDruidItems;
|
|
||||||
|
|
||||||
uint32 DisableItemsBelowLevel;
|
|
||||||
uint32 DisableItemsAboveLevel;
|
|
||||||
uint32 DisableTGsBelowLevel;
|
|
||||||
uint32 DisableTGsAboveLevel;
|
|
||||||
uint32 DisableItemsBelowGUID;
|
|
||||||
uint32 DisableItemsAboveGUID;
|
|
||||||
uint32 DisableTGsBelowGUID;
|
|
||||||
uint32 DisableTGsAboveGUID;
|
|
||||||
uint32 DisableItemsBelowReqLevel;
|
|
||||||
uint32 DisableItemsAboveReqLevel;
|
|
||||||
uint32 DisableTGsBelowReqLevel;
|
|
||||||
uint32 DisableTGsAboveReqLevel;
|
|
||||||
uint32 DisableItemsBelowReqSkillRank;
|
|
||||||
uint32 DisableItemsAboveReqSkillRank;
|
|
||||||
uint32 DisableTGsBelowReqSkillRank;
|
|
||||||
uint32 DisableTGsAboveReqSkillRank;
|
|
||||||
|
|
||||||
std::set<uint32> DisableItemStore;
|
std::set<uint32> DisableItemStore;
|
||||||
|
|
||||||
//End Filters
|
//End Filters
|
||||||
@@ -1231,6 +743,7 @@ private:
|
|||||||
time_t _lastrun_n;
|
time_t _lastrun_n;
|
||||||
|
|
||||||
inline uint32 minValue(uint32 a, uint32 b) { return a <= b ? a : b; };
|
inline uint32 minValue(uint32 a, uint32 b) { return a <= b ? a : b; };
|
||||||
|
uint32 GetStackSizeForItem(ItemTemplate const* itemProto) const;
|
||||||
void addNewAuctions(Player *AHBplayer, AHBConfig *config);
|
void addNewAuctions(Player *AHBplayer, AHBConfig *config);
|
||||||
void addNewAuctionBuyerBotBid(Player *AHBplayer, AHBConfig *config, WorldSession *session);
|
void addNewAuctionBuyerBotBid(Player *AHBplayer, AHBConfig *config, WorldSession *session);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user