diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-06-01 20:08:22 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-06-01 20:08:22 -0300 |
commit | 83fdeb9dfa06c3b13b19c00844f08cb41dc514ac (patch) | |
tree | 381cb6b66bab2f0a6857a90110d5d38406f89df5 /npc/015-8/sealedshrine.txt | |
parent | 39370b6ab9aeeed448265620e508275d512c1e27 (diff) | |
download | serverdata-83fdeb9dfa06c3b13b19c00844f08cb41dc514ac.tar.gz serverdata-83fdeb9dfa06c3b13b19c00844f08cb41dc514ac.tar.bz2 serverdata-83fdeb9dfa06c3b13b19c00844f08cb41dc514ac.tar.xz serverdata-83fdeb9dfa06c3b13b19c00844f08cb41dc514ac.zip |
Fix an equivocation
Diffstat (limited to 'npc/015-8/sealedshrine.txt')
-rw-r--r-- | npc/015-8/sealedshrine.txt | 36 |
1 files changed, 21 insertions, 15 deletions
diff --git a/npc/015-8/sealedshrine.txt b/npc/015-8/sealedshrine.txt index 571030dd1..97a494f15 100644 --- a/npc/015-8/sealedshrine.txt +++ b/npc/015-8/sealedshrine.txt @@ -25,18 +25,6 @@ function script SaggySealCheck { return true; } -// Main menu -// ( .name$ ) -function script SaggySealInit { - mesc l("Attempt to break the seal?"); - mesc l("Warning: This will drain mana and spawn monsters. You shall not leave this cave section!"); - if (askyesno() == ASK_YES) { - npctalk3 l("You started the seal break sequence. Please stand by."); - addtimer(1000, getarg(0)+"::OnBreakSeal01"); - } - return; -} - // Seal Spawn // (name, seal x, seal y, stageId, {seal map}) function script SaggySealInit { @@ -106,6 +94,24 @@ function script SaggySealInit { return; } +// Main menu - SaggySealTrueInit +// ( .name$, x, y ) +function script SaggySealTrueInit { + // Do nothing if @SaggySeal$ is busy - we will NOT begin another unsealing. + if (@SaggySeal$ != "") + end; + + // Okay, we can begin! (variable will be filled on SaggySealInit) + mesc l("Attempt to break the seal?"); + mesc l("Warning: This will drain mana and spawn monsters. You shall not leave this cave section!"); + if (askyesno() == ASK_YES) { + npctalk3 l("You started the seal break sequence. Please stand by."); + SaggySealInit(getarg(0), getarg(1), getarg(2), 0); + } + closeclientdialog; + return; +} + @@ -168,7 +174,7 @@ OnTouch: } // It is stage 3, so we will write to setq3 that the seal is open... Soon. - SaggySealInit(.name$, .x, .y, 0); + SaggySealTrueInit(.name$, .x, .y); end; OnBreakSeal01: @@ -254,7 +260,7 @@ OnTouch: } // It is stage 3, so we will write to setq3 that the seal is open... Soon. - SaggySealInit(.name$, .x, .y, 0); + SaggySealTrueInit(.name$, .x, .y); end; OnBreakSeal01: @@ -340,7 +346,7 @@ OnTouch: } // It is stage 3, so we will write to setq3 that the seal is open... Soon. - SaggySealInit(.name$, .x, .y, 0); + SaggySealTrueInit(.name$, .x, .y); end; OnBreakSeal01: |