mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 05:21:29 +00:00
* [Feature] Add optional `is_force` parameter to Zone::Repop # Perl - Add `quest::repopzone(is_force)`. # Lua - Add `eq.repop_zone(is_force)`. # Commands - Cleanup `#repop` to use new parameter in `Zone::Repop`. # Notes - Allows operators to forcefully repop a zone without using a second method to clear the respawn timers. * is_forced * Update repop.cpp * Update repop.cpp
19 lines
351 B
C++
Executable File
19 lines
351 B
C++
Executable File
#include "../client.h"
|
|
|
|
void command_repop(Client *c, const Seperator *sep)
|
|
{
|
|
const bool is_forced = sep->argnum > 0 ? !strcasecmp(sep->arg[1], "force") : false;
|
|
|
|
c->Message(
|
|
Chat::White,
|
|
fmt::format(
|
|
"Zone depopped, {}repopping now.",
|
|
is_forced ? "forcefully " : ""
|
|
).c_str()
|
|
);
|
|
|
|
entity_list.ClearAreas();
|
|
zone->Repop(is_forced);
|
|
}
|
|
|