2019-01-06 18:40:31 -06:00
|
|
|
function event_combat(e)
|
2023-08-15 11:39:43 -04:00
|
|
|
if e.joined then
|
2019-01-06 18:40:31 -06:00
|
|
|
eq.stop_timer('depop');
|
2019-05-21 10:48:31 -05:00
|
|
|
eq.get_entity_list():GetNPCByNPCTypeID(340389):AddToHateList(e.other, 1);
|
|
|
|
|
eq.get_entity_list():GetNPCByNPCTypeID(340386):AddToHateList(e.other, 1);
|
|
|
|
|
eq.get_entity_list():GetNPCByNPCTypeID(340388):AddToHateList(e.other, 1);
|
2019-01-06 18:40:31 -06:00
|
|
|
else
|
|
|
|
|
eq.set_timer('depop', 10 * 1000);
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
function event_timer(e)
|
2019-01-07 12:26:45 -06:00
|
|
|
if (e.timer == 'depop') then
|
2019-01-06 18:40:31 -06:00
|
|
|
eq.stop_timer('depop');
|
2020-04-14 22:20:53 -05:00
|
|
|
eq.signal(340390,1); -- NPC: Large_event_control
|
2019-01-06 18:40:31 -06:00
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
function event_death_complete(e)
|
2023-08-15 11:39:43 -04:00
|
|
|
if not eq.get_entity_list():IsMobSpawnedByNpcTypeID(340389) and not eq.get_entity_list():IsMobSpawnedByNpcTypeID(340388) and not eq.get_entity_list():IsMobSpawnedByNpcTypeID(340387) and not eq.get_entity_list():IsMobSpawnedByNpcTypeID(340386) and eq.get_entity_list():IsMobSpawnedByNpcTypeID(340390) then
|
2021-06-26 11:57:53 -05:00
|
|
|
eq.spawn2(340032, 0, 0, -2844, 3143, 307, 385); -- NPC: a_chest
|
2019-01-07 08:03:00 -06:00
|
|
|
eq.depop_with_timer(340390);
|
2019-01-06 18:40:31 -06:00
|
|
|
end
|
|
|
|
|
end
|