summaryrefslogtreecommitdiff
path: root/world/map/npc/002-1/mine_debug.txt
diff options
context:
space:
mode:
authorwushin <pasekei@gmail.com>2015-01-07 21:00:16 -0600
committerwushin <pasekei@gmail.com>2015-01-07 21:00:16 -0600
commit2901ba177dea5867cbd52eb2b02a0ef8e1816e15 (patch)
tree81cc70a70e7cc0b9e46cc3e055dea1c702db1309 /world/map/npc/002-1/mine_debug.txt
parentfb7caf2cb0e768cf4b9c7f83df644edc97250a78 (diff)
downloadserverdata-2901ba177dea5867cbd52eb2b02a0ef8e1816e15.tar.gz
serverdata-2901ba177dea5867cbd52eb2b02a0ef8e1816e15.tar.bz2
serverdata-2901ba177dea5867cbd52eb2b02a0ef8e1816e15.tar.xz
serverdata-2901ba177dea5867cbd52eb2b02a0ef8e1816e15.zip
Moving Tutorial from Tulimshar to Candor
Diffstat (limited to 'world/map/npc/002-1/mine_debug.txt')
-rw-r--r--world/map/npc/002-1/mine_debug.txt81
1 files changed, 81 insertions, 0 deletions
diff --git a/world/map/npc/002-1/mine_debug.txt b/world/map/npc/002-1/mine_debug.txt
new file mode 100644
index 00000000..d9ee55dc
--- /dev/null
+++ b/world/map/npc/002-1/mine_debug.txt
@@ -0,0 +1,81 @@
+// Mine Debug
+// Author: Wushin
+
+function|script|DesertMineDebug
+{
+ mes "[Mine Debug]";
+ mes "What would you like to do?";
+ menu
+ "Reset", L_Reset,
+ "Set", L_Set,
+ "Show", L_Show,
+ "nothing.", L_Close;
+
+L_Reset:
+ set @state, 0;
+ callsub S_Update_Var;
+ goto L_Close;
+
+L_Set:
+ mes "Values are between 0 and 28";
+ mes "8 is Mine Start";
+ mes "18 is Angry Scorpions Start";
+ mes "20 is Underground Palace Start";
+ mes "26 is Giant Cave Maggot Start";
+ input @state;
+ callsub S_Update_Var;
+ goto L_Close;
+
+L_Show:
+ set @state, ((QUEST_SouthTulimshar & BYTE_2_MASK) >> BYTE_2_SHIFT);
+ mes "Current State: " + @state;
+ goto L_Close;
+
+L_Close:
+ set @state, 0;
+ close;
+
+S_Update_Var:
+ set QUEST_SouthTulimshar, (QUEST_SouthTulimshar & ~(BYTE_2_MASK) | (@state << BYTE_2_SHIFT));
+ return;
+}
+002-1.gat,61,69,0|script|Mine Debug#1|122
+{
+ callfunc "DesertMineDebug";
+ end;
+
+OnInit:
+ if (!debug)
+ disablenpc "Mine Debug#1";
+ end;
+}
+002-3.gat,45,49,6|script|Mine Debug#2|109
+{
+ callfunc "DesertMineDebug";
+ end;
+
+OnInit:
+ if (!debug)
+ disablenpc "Mine Debug#2";
+ end;
+}
+002-4.gat,88,99,6|script|Mine Debug#3|109
+{
+ callfunc "DesertMineDebug";
+ end;
+
+OnInit:
+ if (!debug)
+ disablenpc "Mine Debug#3";
+ end;
+}
+002-5.gat,43,96,6|script|Mine Debug#4|340
+{
+ callfunc "DesertMineDebug";
+ end;
+
+OnInit:
+ if (!debug)
+ disablenpc "Mine Debug#4";
+ end;
+}