From 6d7ddc999c61bd52e9f5596a154f41ae0fc7e899 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 16 Jun 2019 23:56:01 -0300 Subject: Prepare the Miniboss fight chamber. Uhm, floor traps can come later, I guess. I mean, random monsters aren't there yet, so... --- npc/023-3/logic.txt | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) (limited to 'npc/023-3') diff --git a/npc/023-3/logic.txt b/npc/023-3/logic.txt index bb89dfa3b..58621aaa2 100644 --- a/npc/023-3/logic.txt +++ b/npc/023-3/logic.txt @@ -81,4 +81,46 @@ OnInit: } +// Miniboss fight must be enabled on right npc. No passing before that. +023-3,120,103,0 script #MiniBossTrap0233 NPC_HIDDEN,0,2,{ + end; + +OnTouch: + .@q=getq(FrostiaQuest_Homunculus); + if (!.@q) { + dispbottom l("A powerful magic barrier repels you!"); + getmapxy(.@m$, .@x, .@y, 0); + slide .@x-2, .@y; + sit(); + } + end; +} + + +// The scout which went ahead of you +023-3,86,88,0 script Elite Scout#MB0233 NPC_DARKSABER,{ + mesn; + mesq l("Uhm, I'm looking for a way out..."); + close; + +OnInit: + .distance = 5; + end; +} + + +// Cannot flee from Miniboss Fight +023-3,80,84,0 script #MiniBossTrapB0233 NPC_HIDDEN,5,0,{ + end; + +OnTouch: + .@q=getq(FrostiaQuest_Homunculus); + .@q2=getq(FrostiaQuest_Homunculus); + if (!.@q && .@q2) { + dispbottom l("A powerful magic barrier repels you!"); + slide 81, 86; + sit(); + } + end; +} -- cgit v1.2.3-60-g2f50