[Feature] Add optional is_forced parameter to Zone::Repop (#4046)

* [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
This commit is contained in:
Alex King
2024-02-05 17:10:56 -05:00
committed by GitHub
parent c654c1d674
commit b6b779723e
7 changed files with 35 additions and 26 deletions
+6 -1
View File
@@ -403,6 +403,10 @@ void lua_repop_zone() {
quest_manager.repopzone();
}
void lua_repop_zone(bool is_forced) {
quest_manager.repopzone(is_forced);
}
void lua_process_mobs_while_zone_empty(bool on) {
quest_manager.processmobswhilezoneempty(on);
}
@@ -5634,7 +5638,8 @@ luabind::scope lua_register_general() {
luabind::def("depop_all", (void(*)(void))&lua_depop_all),
luabind::def("depop_all", (void(*)(int))&lua_depop_all),
luabind::def("depop_zone", &lua_depop_zone),
luabind::def("repop_zone", &lua_repop_zone),
luabind::def("repop_zone", (void(*)(void))&lua_repop_zone),
luabind::def("repop_zone", (void(*)(bool))&lua_repop_zone),
luabind::def("process_mobs_while_zone_empty", &lua_process_mobs_while_zone_empty),
luabind::def("is_disc_tome", &lua_is_disc_tome),
luabind::def("get_race_name", (std::string(*)(uint16))&lua_get_race_name),