diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-04-03 09:07:07 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-04-03 09:07:07 -0300 |
commit | 8e3430a55dccf18f8c7a9b019712ea75ab10d9ac (patch) | |
tree | dc5264fa4088e6255ac6987ec0ceefe6ad92f861 /npc | |
parent | 7b52151ea476b6ca0a35e0010efb44a061d24100 (diff) | |
download | serverdata-8e3430a55dccf18f8c7a9b019712ea75ab10d9ac.tar.gz serverdata-8e3430a55dccf18f8c7a9b019712ea75ab10d9ac.tar.bz2 serverdata-8e3430a55dccf18f8c7a9b019712ea75ab10d9ac.tar.xz serverdata-8e3430a55dccf18f8c7a9b019712ea75ab10d9ac.zip |
After instances are set (or reset), run again HH Init.
Wait 3 seconds instead of 7 seconds, as now I'm sure instance exists.
Diffstat (limited to 'npc')
-rw-r--r-- | npc/018-2-2/main.txt | 6 | ||||
-rw-r--r-- | npc/functions/instances.txt | 1 |
2 files changed, 4 insertions, 3 deletions
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: |