mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-10 15:00:25 +00:00
[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:
+5
-1
@@ -1888,7 +1888,7 @@ void Zone::ClearNPCTypeCache(int id) {
|
||||
}
|
||||
}
|
||||
|
||||
void Zone::Repop()
|
||||
void Zone::Repop(bool is_forced)
|
||||
{
|
||||
if (!Depop()) {
|
||||
return;
|
||||
@@ -1901,6 +1901,10 @@ void Zone::Repop()
|
||||
iterator.RemoveCurrent();
|
||||
}
|
||||
|
||||
if (is_forced) {
|
||||
ClearSpawnTimers();
|
||||
}
|
||||
|
||||
npc_scale_manager->LoadScaleData();
|
||||
|
||||
entity_list.ClearTrapPointers();
|
||||
|
||||
Reference in New Issue
Block a user