[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 KingandAkkadius authored and GitHub committed 2025-02-20 00:26:46 -06:00
1 parent 753d83c499
commit f8837d0926
5 files changed
+27

No files matched your search

+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"