summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-06-01 19:48:12 -0300
committerJesusaves <cpntb1@ymail.com>2019-06-01 19:48:12 -0300
commit5b37c844c5df61b090a3d2dfb4e792795057303c (patch)
tree37bc21760f12bf24f6ed8923aad563fc30feaec8
parent23c0c38a0c3cf58ee08215e010db9e59ae97808e (diff)
downloadserverdata-5b37c844c5df61b090a3d2dfb4e792795057303c.tar.gz
serverdata-5b37c844c5df61b090a3d2dfb4e792795057303c.tar.bz2
serverdata-5b37c844c5df61b090a3d2dfb4e792795057303c.tar.xz
serverdata-5b37c844c5df61b090a3d2dfb4e792795057303c.zip
Add configuration to 015-8
-rw-r--r--npc/015-8/_import.txt1
-rw-r--r--npc/015-8/config.txt34
2 files changed, 35 insertions, 0 deletions
diff --git a/npc/015-8/_import.txt b/npc/015-8/_import.txt
index 0318c3fd1..b2d06836b 100644
--- a/npc/015-8/_import.txt
+++ b/npc/015-8/_import.txt
@@ -1,4 +1,5 @@
// Map 015-8: Ancient Hideout
// This file is generated automatically. All manually added changes will be removed when running the Converter.
"npc/015-8/_mobs.txt",
+"npc/015-8/config.txt",
"npc/015-8/sealedshrine.txt",
diff --git a/npc/015-8/config.txt b/npc/015-8/config.txt
new file mode 100644
index 000000000..c8f19a7f0
--- /dev/null
+++ b/npc/015-8/config.txt
@@ -0,0 +1,34 @@
+// TMW2 scripts.
+// Author:
+// Jesusalva
+// Description:
+// 015-8 Sagratha Cave Configuration File
+
+015-8 mapflag zone MMO
+
+018-5,99,179,0 script #Exit0158 NPC_HIDDEN,0,0,{
+ end;
+
+OnTouch:
+ .@q=getq(HurnscaldQuest_Sagratha);
+ .@q2=getq2(HurnscaldQuest_Sagratha);
+ // Cheater Detected
+ if (!MAGIC_LVL || .@q < 3) {
+ 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;
+ return false;
+ }
+
+ mesc l("Return to Sagratha's House?");
+ if (askyesno() == ASK_YES) {
+ .@mapn$="sgt1@"+getcharid(0);
+ warp .@mapn$, 33, 44;
+ changemusic .@mapn$, "eric_matyas_ghouls.ogg";
+ }
+ closeclientdialog;
+ close;
+}
+