aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Commands
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/scripts/Commands')
-rw-r--r--src/server/scripts/Commands/cs_debug.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/server/scripts/Commands/cs_debug.cpp b/src/server/scripts/Commands/cs_debug.cpp
index 956400e1814..952f5a316c9 100644
--- a/src/server/scripts/Commands/cs_debug.cpp
+++ b/src/server/scripts/Commands/cs_debug.cpp
@@ -44,6 +44,8 @@ EndScriptData */
#include "ObjectAccessor.h"
#include "ObjectMgr.h"
#include "PhasingHandler.h"
+#include "PoolMgr.h"
+#include "QuestPools.h"
#include "RBAC.h"
#include "SpellMgr.h"
#include "SpellPackets.h"
@@ -1482,21 +1484,20 @@ public:
else
return false;
- time_t const now = GameTime::GetGameTime();
if (daily)
{
- sWorld->m_NextDailyQuestReset = now;
- handler->SendSysMessage("Daily quest reset scheduled for next tick.");
+ sWorld->DailyReset();
+ handler->PSendSysMessage("Daily quests have been reset. Next scheduled reset: %s", TimeToHumanReadable(sWorld->getWorldState(WS_DAILY_QUEST_RESET_TIME)).c_str());
}
if (weekly)
{
- sWorld->m_NextWeeklyQuestReset = now;
- handler->SendSysMessage("Weekly quest reset scheduled for next tick.");
+ sWorld->ResetWeeklyQuests();
+ handler->PSendSysMessage("Weekly quests have been reset. Next scheduled reset: %s", TimeToHumanReadable(sWorld->getWorldState(WS_WEEKLY_QUEST_RESET_TIME)).c_str());
}
if (monthly)
{
- sWorld->m_NextMonthlyQuestReset = now;
- handler->SendSysMessage("Monthly quest reset scheduled for next tick.");
+ sWorld->ResetMonthlyQuests();
+ handler->PSendSysMessage("Monthly quests have been reset. Next scheduled reset: %s", TimeToHumanReadable(sWorld->getWorldState(WS_MONTHLY_QUEST_RESET_TIME)).c_str());
}
return true;