mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
[Feature] Zone Scripting (#4908)
* [Feature] Add Zone Scripting Capabilities * Push * Update zone.cpp * Fix crashes * Lua * Add other events, finish Lua * Add EVENT_ENTER_ZONE * Final * Push * Push * [Feature] Add Zone Scripting Capabilities * Push * Update zone.cpp * Fix crashes * Add EVENT_ENTER_ZONE * Remove duplicates * Update embparser.cpp
This commit is contained in:
@@ -864,6 +864,11 @@ void NPC::Depop(bool start_spawn_timer) {
|
||||
DispatchZoneControllerEvent(EVENT_DESPAWN_ZONE, this, "", 0, nullptr);
|
||||
}
|
||||
|
||||
if (parse->ZoneHasQuestSub(EVENT_DESPAWN_ZONE)) {
|
||||
std::vector<std::any> args = { this };
|
||||
parse->EventZone(EVENT_DESPAWN_ZONE, zone, "", 0, &args);
|
||||
}
|
||||
|
||||
p_depop = true;
|
||||
if (respawn2) {
|
||||
if (start_spawn_timer) {
|
||||
|
||||
Reference in New Issue
Block a user