diff --git a/conf/recycleditems.conf.dist b/conf/recycleditems.conf.dist index 7343286..5a4922e 100644 --- a/conf/recycleditems.conf.dist +++ b/conf/recycleditems.conf.dist @@ -30,22 +30,21 @@ RecycledItems.Entry = 888999 # # RecycledItems.UpdateFrequency # Description: How often the server posts the pool of items on the auction house. -# Note: This is measured in milliseconds. -# Default: 30000 +# Default: 30 (seconds) # Type: uint32 # -RecycledItems.UpdateFrequency = 30000 +RecycledItems.UpdateFrequency = 30 # # RecycledItems.RefreshFrequency # Description: How often the server refreshes the duration of the items on the auction house. # Note: Only items that have been posted by the server and have no bid will be refreshed. -# Default: 60000 +# Default: 3600 (seconds) # Type: uint32 # -RecycledItems.RefreshFrequency = 60000 +RecycledItems.RefreshFrequency = 3600 # # RecycledItems.Filter.MinimumItemLevel diff --git a/src/RecycledItems.cpp b/src/RecycledItems.cpp index 753afff..ca66423 100644 --- a/src/RecycledItems.cpp +++ b/src/RecycledItems.cpp @@ -368,7 +368,7 @@ void RecycledItemsWorldScript::OnUpdate(uint32 diff) counter += diff; refreshCounter += diff; - uint32 updateFrequency = sConfigMgr->GetOption("RecycledItems.UpdateFrequency", 30000); + uint32 updateFrequency = sConfigMgr->GetOption("RecycledItems.UpdateFrequency", 30) * 1000; if (counter >= updateFrequency) { @@ -377,7 +377,7 @@ void RecycledItemsWorldScript::OnUpdate(uint32 diff) RecycleItems(); } - uint32 refreshFrequency = sConfigMgr->GetOption("RecycledItems.RefreshFrequency", 60000); + uint32 refreshFrequency = sConfigMgr->GetOption("RecycledItems.RefreshFrequency", 3600) * 1000; if (refreshCounter >= refreshFrequency) {