summaryrefslogtreecommitdiff
path: root/npc/015-8-1/puzzle.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-06-03 10:32:39 -0300
committerJesusaves <cpntb1@ymail.com>2019-06-03 10:32:39 -0300
commit46ab229818db5c5e00fc56b0f3bf0e0c2f0a720f (patch)
treed79fef1f0890a2a5b269ccbf2966e6b95ec47e97 /npc/015-8-1/puzzle.txt
parent412d02f14c6ca1f903f75ba14b04422114a02fad (diff)
downloadserverdata-46ab229818db5c5e00fc56b0f3bf0e0c2f0a720f.tar.gz
serverdata-46ab229818db5c5e00fc56b0f3bf0e0c2f0a720f.tar.bz2
serverdata-46ab229818db5c5e00fc56b0f3bf0e0c2f0a720f.tar.xz
serverdata-46ab229818db5c5e00fc56b0f3bf0e0c2f0a720f.zip
Regenerate maps, change boos room to MMO, instance only, allow to leave only
after quest state 6.
Diffstat (limited to 'npc/015-8-1/puzzle.txt')
-rw-r--r--npc/015-8-1/puzzle.txt30
1 files changed, 30 insertions, 0 deletions
diff --git a/npc/015-8-1/puzzle.txt b/npc/015-8-1/puzzle.txt
new file mode 100644
index 000000000..6c91c6bf0
--- /dev/null
+++ b/npc/015-8-1/puzzle.txt
@@ -0,0 +1,30 @@
+// TMW2 scripts.
+// Author:
+// Jesusalva
+// Description:
+// PUZZLES and TRAPS submodule - Sagratha's Cave Boss Room - 015-8-1
+
+// Exit area
+015-8-1,50,79,0 script #Exit01581 NPC_HIDDEN,1,0,{
+ end;
+OnTouch:
+ .@q=getq(HurnscaldQuest_Sagratha);
+ // Cheater Detected
+ if (!MAGIC_LVL || .@q < 5) {
+ setq HurnscaldQuest_Sagratha, 0, 0, 0;
+ sc_end SC_CASH_PLUSEXP;
+ sc_end SC_OVERLAPEXPUP;
+ sc_start SC_OVERLAPEXPUP, 300000, -20;
+ warp "Save", 0, 0;
+ end;
+ }
+ if (.@q == 5) {
+ npctalkonce l("You are NOT allowed to leave here!");
+ } else {
+ warp "015-8", 94, 21;
+ }
+ end;
+}
+
+
+