diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-06-01 20:37:32 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-06-01 20:37:32 -0300 |
commit | 25765c78caa010323f566de88a80480397894b77 (patch) | |
tree | def252e9ded4e56a2f5ed5f77813e95553d91cb3 /npc | |
parent | fb0075e4827b394b7361f2bebf9e7a4ac10bd19d (diff) | |
download | serverdata-25765c78caa010323f566de88a80480397894b77.tar.gz serverdata-25765c78caa010323f566de88a80480397894b77.tar.bz2 serverdata-25765c78caa010323f566de88a80480397894b77.tar.xz serverdata-25765c78caa010323f566de88a80480397894b77.zip |
Sealed Shrine - Main Barrier
Diffstat (limited to 'npc')
-rw-r--r-- | npc/015-8/sealedshrine.txt | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/npc/015-8/sealedshrine.txt b/npc/015-8/sealedshrine.txt index 19e63b127..eb0eb0c75 100644 --- a/npc/015-8/sealedshrine.txt +++ b/npc/015-8/sealedshrine.txt @@ -4,6 +4,7 @@ // Description: // SEALED SHRINE submodule - Sagratha's Cave - 015-8 // Uses setq3 - setq1 stage 3 +// NPC_FAKIR + NPC_STATUE_FAFA // Check for validity function script SaggySealCheck { @@ -16,6 +17,8 @@ function script SaggySealCheck { sc_end SC_OVERLAPEXPUP; sc_start SC_OVERLAPEXPUP, 300000, -20; warp "Save", 0, 0; + closeclientdialog; + end; return false; } @@ -442,3 +445,55 @@ OnTouch: end; } + + + + +// Magic Barrier +015-8,94,104,0 script Dog Statue#Saggy NPC_STATUE_FAFA,{ +OnDialog: + mesn; + mesq l("This is a magical barrier, powered by three seals in your part."); + next; + mesn; + mesq l("You must break all three seals to cross this barrier! For that, walk on them!"); + next; + mesn; + mesq l("Breaking a seal is easy, just flow mana on it for enough time to it shatter."); + next; + mesn; + mesq l("I, Fafa, the Magical Statue, grant you this power! Prove your worth! And never run from the seal, or die for your cowardice!"); + close; + +OnInit: + .distance=5; + end; +} + +015-8,91,100,0 script #SaggyBarrier NPC_HIDDEN,5,0,{ + end; + +OnTouch: + if (!SaggySealCheck()) { + slide 93, 106; + end; + } + .@q=getq(HurnscaldQuest_Sagratha); + .@q3=getq3(HurnscaldQuest_Sagratha); + + // Magic Number + if (.@q3 == 7) { + npctalk3 l("The seals having been broken, the barrier was weakened! You did it! The path is now open!"); + setq1 HurnscaldQuest_Sagratha, 4; + setq3 HurnscaldQuest_Sagratha, 0; + slide 93, 106; + } else { + getmapxy(.@m$, .@x, .@y, 0); + slide .@x, .@y-3; + dispbottom l("A powerful magic barrier repels you!"); + addtimer(200, "Dog Statue#Saggy::OnDialog"); + } + end; + +} + |