Core/AuctionHouse: Add separate auction house throttle period for requests from auction house addons tainting default ui
Port From (https://github.com/TrinityCore/TrinityCore/commit/fb0a29131d30e15d8d323271490069860580817d)
This commit is contained in:
@@ -209,13 +209,19 @@ namespace Game
|
||||
Values[WorldCfg.AddonChannel] = GetDefaultValue("AddonChannel", true);
|
||||
Values[WorldCfg.CleanCharacterDb] = GetDefaultValue("CleanCharacterDB", false);
|
||||
Values[WorldCfg.PersistentCharacterCleanFlags] = GetDefaultValue("PersistentCharacterCleanFlags", 0);
|
||||
Values[WorldCfg.AuctionGetallDelay] = GetDefaultValue("Auction.GetAllScanDelay", 900);
|
||||
Values[WorldCfg.AuctionReplicateDelay] = GetDefaultValue("Auction.ReplicateItemsCooldown", 900);
|
||||
Values[WorldCfg.AuctionSearchDelay] = GetDefaultValue("Auction.SearchDelay", 300);
|
||||
if ((int)Values[WorldCfg.AuctionSearchDelay] < 100 || (int)Values[WorldCfg.AuctionSearchDelay] > 10000)
|
||||
{
|
||||
Log.outError(LogFilter.ServerLoading, "Auction.SearchDelay ({0}) must be between 100 and 10000. Using default of 300ms", Values[WorldCfg.AuctionSearchDelay]);
|
||||
Values[WorldCfg.AuctionSearchDelay] = 300;
|
||||
}
|
||||
Values[WorldCfg.AuctionTaintedSearchDelay] = GetDefaultValue("Auction.TaintedSearchDelay", 3000);
|
||||
if ((int)Values[WorldCfg.AuctionTaintedSearchDelay] < 100 || (int)Values[WorldCfg.AuctionTaintedSearchDelay] > 10000)
|
||||
{
|
||||
Log.outError(LogFilter.ServerLoading, $"Auction.TaintedSearchDelay ({Values[WorldCfg.AuctionTaintedSearchDelay]}) must be between 100 and 10000. Using default of 3s");
|
||||
Values[WorldCfg.AuctionTaintedSearchDelay] = 3000;
|
||||
}
|
||||
Values[WorldCfg.ChatChannelLevelReq] = GetDefaultValue("ChatLevelReq.Channel", 1);
|
||||
Values[WorldCfg.ChatWhisperLevelReq] = GetDefaultValue("ChatLevelReq.Whisper", 1);
|
||||
Values[WorldCfg.ChatEmoteLevelReq] = GetDefaultValue("ChatLevelReq.Emote", 1);
|
||||
|
||||
@@ -1188,7 +1188,7 @@ namespace Game
|
||||
{
|
||||
m_timers[WorldTimers.AuctionsPending].Reset();
|
||||
|
||||
//Global.AuctionMgr.UpdatePendingAuctions();
|
||||
Global.AuctionHouseMgr.UpdatePendingAuctions();
|
||||
}
|
||||
|
||||
if (m_timers[WorldTimers.Blackmarket].Passed())
|
||||
|
||||
Reference in New Issue
Block a user