mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 22:01:30 +00:00
* Troubleshooting * Debugging * Debugging * Debugging * Debugging * Remove debug line * Revert back to GetRawNPCTypeName
25 lines
508 B
C++
Executable File
25 lines
508 B
C++
Executable File
#include "../client.h"
|
|
|
|
void command_repop(Client *c, const Seperator *sep)
|
|
{
|
|
int arguments = sep->argnum;
|
|
if (!arguments) {
|
|
entity_list.ClearAreas();
|
|
c->Message(Chat::White, "Zone depopped, repopping now.");
|
|
zone->Repop();
|
|
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();
|
|
}
|
|
|