diff options
Diffstat (limited to 'npc/023-3/logic.txt')
-rw-r--r-- | npc/023-3/logic.txt | 42 |
1 files changed, 42 insertions, 0 deletions
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; +} |