[Quest API] Add DisableRespawnTimers to Perl and Lua (#4691)

* [Quest API] Add DisableRespawnTimers to Perl and Lua

* Update lua_zone.h

* Update lua_zone.cpp

* Change up how we're doing this

---------

Co-authored-by: Akkadius <akkadius1@gmail.com>
This commit is contained in:
Alex King
2025-02-20 01:26:46 -05:00
committed by GitHub
parent 753d83c499
commit f8837d0926
5 changed files with 27 additions and 0 deletions
+12
View File
@@ -3190,4 +3190,16 @@ std::string Zone::GetBucketRemaining(const std::string& bucket_name)
return DataBucket::GetDataRemaining(k);
}
void Zone::DisableRespawnTimers()
{
LinkedListIterator<Spawn2*> e(spawn2_list);
e.Reset();
while (e.MoreElements()) {
e.GetData()->SetRespawnTimer(std::numeric_limits<uint32_t>::max());
e.Advance();
}
}
#include "zone_loot.cpp"