summaryrefslogtreecommitdiff
path: root/world/map/npc/033-1/debug.txt
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2011-08-26 00:21:12 -0700
committerBen Longbons <b.r.longbons@gmail.com>2011-08-26 00:23:31 -0700
commit25a859ad47937f730fac15f82d1eeafe28fedb23 (patch)
tree86db7eb50f1774662e93946193a92393d0cbb6e9 /world/map/npc/033-1/debug.txt
parent8d2fe139a61ed2ad3cc89fdc569ce22daf41ba96 (diff)
downloadserverdata-25a859ad47937f730fac15f82d1eeafe28fedb23.tar.gz
serverdata-25a859ad47937f730fac15f82d1eeafe28fedb23.tar.bz2
serverdata-25a859ad47937f730fac15f82d1eeafe28fedb23.tar.xz
serverdata-25a859ad47937f730fac15f82d1eeafe28fedb23.zip
Refactor and format the fluffy hunt code
Diffstat (limited to 'world/map/npc/033-1/debug.txt')
-rw-r--r--world/map/npc/033-1/debug.txt29
1 files changed, 29 insertions, 0 deletions
diff --git a/world/map/npc/033-1/debug.txt b/world/map/npc/033-1/debug.txt
new file mode 100644
index 00000000..7db90195
--- /dev/null
+++ b/world/map/npc/033-1/debug.txt
@@ -0,0 +1,29 @@
+// A debug NPC for barbarian quest
+
+033-1.gat,70,32,0|script|Kimarr Debug|218,{
+
+ menu
+ "Reset all records", -,
+ "Reset quest",L_Reset,
+ "Close", L_Close;
+
+ cleararray $Record_Fluffy_Kills, 0, MAX_HIGH_SCORES;
+ cleararray $Record_Fluffy_Name$, "", MAX_HIGH_SCORES;
+ cleararray $Record_Fluffy_Date$, "", MAX_HIGH_SCORES;
+
+L_Reset:
+ set @Q_Barbarians_MASK, NIBBLE_0_MASK;
+ set @Q_Barbarians_SHIFT, NIBBLE_0_SHIFT;
+ set @state, 0;
+ callsub S_Update_Mask;
+ close;
+
+S_Update_Mask:
+ set QUEST_Barbarians,
+ (QUEST_Barbarians & ~(@Q_Barbarians_MASK))
+ | (@state << @Q_Barbarians_SHIFT);
+ return;
+
+L_Close:
+ close;
+}