From 8e3430a55dccf18f8c7a9b019712ea75ab10d9ac Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 3 Apr 2019 09:07:07 -0300 Subject: After instances are set (or reset), run again HH Init. Wait 3 seconds instead of 7 seconds, as now I'm sure instance exists. --- npc/018-2-2/main.txt | 6 +++--- npc/functions/instances.txt | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'npc') diff --git a/npc/018-2-2/main.txt b/npc/018-2-2/main.txt index 18689ca54..5fe6ff1f0 100644 --- a/npc/018-2-2/main.txt +++ b/npc/018-2-2/main.txt @@ -126,14 +126,14 @@ OnInit: end; -OnInterIfInit: +OnHHInit: initnpctimer; end; // Controls logic for each instance (TODO) -// Initialize each instance (Currently waits 7 seconds, could work with just 4, but better safe than sorry) -OnTimer7000: +// Initialize each instance (Currently waits 3 seconds, could work with just 4, but better safe than sorry) +OnTimer3000: stopnpctimer; debugmes "Heroes Hold Monsters: Initializing"; diff --git a/npc/functions/instances.txt b/npc/functions/instances.txt index ab875e58a..ee9c3081e 100644 --- a/npc/functions/instances.txt +++ b/npc/functions/instances.txt @@ -85,6 +85,7 @@ OnInstRestart: instance_init($@HHMD_INSTID16); debugmes("The HHMD level IDs are: %d-%d-%d-%d-%d", $@HHMD_INSTID1, $@HHMD_INSTID2, $@HHMD_INSTID4, $@HHMD_INSTID8, $@HHMD_INSTID16); + donpcevent "#HH_CONTROLLER01::OnHHInit"; end; OnMinute18: -- cgit v1.2.3-70-g09d2