summaryrefslogtreecommitdiff
path: root/npc/018-6-2/main.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-08-31 15:03:45 -0300
committerJesusaves <cpntb1@ymail.com>2019-08-31 15:03:45 -0300
commit63256388cb5b9ef7bc1a4afbd0270c135882d622 (patch)
tree7519f7aa64fd56f71038ad59ee747ba2c761082f /npc/018-6-2/main.txt
parent5dab87b522e5ff18b6a62e86c369ac3295c1817f (diff)
parent4de339bf2c92af5f74cdb28b0eb62e8ca66993c4 (diff)
downloadserverdata-63256388cb5b9ef7bc1a4afbd0270c135882d622.tar.gz
serverdata-63256388cb5b9ef7bc1a4afbd0270c135882d622.tar.bz2
serverdata-63256388cb5b9ef7bc1a4afbd0270c135882d622.tar.xz
serverdata-63256388cb5b9ef7bc1a4afbd0270c135882d622.zip
Merge branch 'master' into testservertestserver
Diffstat (limited to 'npc/018-6-2/main.txt')
-rw-r--r--npc/018-6-2/main.txt48
1 files changed, 48 insertions, 0 deletions
diff --git a/npc/018-6-2/main.txt b/npc/018-6-2/main.txt
new file mode 100644
index 000000000..a1ffd51fa
--- /dev/null
+++ b/npc/018-6-2/main.txt
@@ -0,0 +1,48 @@
+// TMW2 Scripts
+// Author:
+// Jesusalva
+// Description:
+// Controls Forgotten Chamber
+
+/////////////////////////////
+018-6-2,90,31,0 script #FromSouthHall NPC_SUMMONING_CIRC,0,0,{
+ dispbottom l("It looks dangerous.");
+ end;
+
+OnTouch:
+ .@q=getq(LoFQuest_Barbara);
+ .@q2=getq2(LoFQuest_Barbara);
+ .@q3=getq3(LoFQuest_Barbara);
+ if (.@q == 2) {
+ // 1 - West Puzzle
+ if (!(.@q3 & 1)) {
+ warp BarbaraInstCheck(0), 68, 90;
+ setq3 LoFQuest_Barbara, .@q3|1;
+ }
+ // 2 - East Puzzle
+ else if (!(.@q3 & 2)) {
+ warp BarbaraInstCheck(0), 112, 90;
+ setq3 LoFQuest_Barbara, .@q3|2;
+ }
+ // Wut
+ else {
+ Exception("ERROR, YOU SHOULD NOT BEEN SEEING THIS. 018-6-2.FSH", RB_DEFAULT|RB_ISFATAL);
+ }
+ // Active the quest
+ if (.@q3 == 3)
+ enablenpc instance_npcname("#ToSouthHall", .@q2);
+ } else {
+ Exception("ERROR, YOU SHOULD NOT BEEN SEEING THIS. 018-6-2.FSH.MQ");
+ }
+ end;
+
+OnInit:
+ disablenpc .name$;
+ end;
+OnInstanceInit:
+ disablenpc instance_npcname(.name$);
+ end;
+
+}
+
+