mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 06:21:28 +00:00
* [Commands] Cleanup #reloadworld Command. - Cleanup messages and logic. * [Commands] Cleanup #reloadworld and #repop Command. - Cleanup messages and logic. - Add #reloadworld 2 option to forcefully repop all mobs globally as well as reset quest timers and reload quests. - Remove delay argument from #repop as it isn't used for anything. * Typos.
24 lines
496 B
C++
Executable File
24 lines
496 B
C++
Executable File
#include "../client.h"
|
|
|
|
void command_repop(Client *c, const Seperator *sep)
|
|
{
|
|
int arguments = sep->argnum;
|
|
if (!arguments) {
|
|
c->Message(Chat::White, "Zone depopped, repopping now.");
|
|
return;
|
|
}
|
|
|
|
bool is_force = !strcasecmp(sep->arg[1], "force");
|
|
|
|
if (is_force) {
|
|
zone->ClearSpawnTimers();
|
|
c->Message(Chat::White, "Zone depopped, forcefully repopping now.");
|
|
} else {
|
|
c->Message(Chat::White, "Zone depopped, repopping now.");
|
|
}
|
|
|
|
zone->Repop();
|
|
zone->spawn2_timer.Trigger();
|
|
}
|
|
|