diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-06-16 23:56:01 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-06-16 23:56:01 -0300 |
commit | 6d7ddc999c61bd52e9f5596a154f41ae0fc7e899 (patch) | |
tree | cf3df26e55c9fc3b45a5ca1a9171628345e368d9 | |
parent | 437e9654494e95aa1c9268aa6e60e03b79273786 (diff) | |
download | serverdata-6d7ddc999c61bd52e9f5596a154f41ae0fc7e899.tar.gz serverdata-6d7ddc999c61bd52e9f5596a154f41ae0fc7e899.tar.bz2 serverdata-6d7ddc999c61bd52e9f5596a154f41ae0fc7e899.tar.xz serverdata-6d7ddc999c61bd52e9f5596a154f41ae0fc7e899.zip |
Prepare the Miniboss fight chamber. Uhm, floor traps can come later, I guess.
I mean, random monsters aren't there yet, so...
-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; +} |