diff options
Diffstat (limited to 'npc/023-3-1/logic.txt')
-rw-r--r-- | npc/023-3-1/logic.txt | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/npc/023-3-1/logic.txt b/npc/023-3-1/logic.txt index d7b62acea..092e5ac02 100644 --- a/npc/023-3-1/logic.txt +++ b/npc/023-3-1/logic.txt @@ -19,12 +19,12 @@ OnTouch: percentheal -100, -100; return false; } - if (.@q < 3) { // TODO: mobcount()? + if (.@q < 3) { dispbottom l("The magic power outflowing in the room prevents you from leaving."); end; } if (mobcount(.@m$, "#Core02331::OnMobDie")) { - dispbottom l("These assassins will catch to me if I do that now!"); + dispbottom l("These assassins will catch me if I do that now!"); end; } @@ -79,11 +79,13 @@ OnTouch: // Main event core 023-3-1,45,52,0 script #Core02331 NPC_HIDDEN,10,0,{ OnTouch: + if (instance_id() < 0) + end; .@n$=instance_npcname(.name$); .@q=getq3(FrostiaQuest_Homunculus); - if (.@q == 1) { + if (!('c02331init)) { // Begin the event core - setq3 FrostiaQuest_Homunculus, 2; + 'c02331init=true; addtimer(1100, .@n$+"::OnEvent01"); initnpctimer; } @@ -266,9 +268,12 @@ OnMobDie: end; OnTimer1000: - if (getmapusers(instance_mapname("023-3-1"))) + .@m$=instance_mapname("023-3-1"); + if (getmapusers(.@m$)) initnpctimer; - // TODO: Cleanup + // Cleanup - you fail. + 'c02331init=false; + killmonsterall(.@m$); end; } |