mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-10 15:00:25 +00:00
[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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user