summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-04-10 09:19:29 -0600
committerJared Adams <jaxad0127@gmail.com>2009-04-10 09:19:29 -0600
commit10e53234668cdef50e8e28372741c947c05716b1 (patch)
tree82f7d1c22f52a33f29e233356d73ee14ac6e045b /npc
parent665e0ea53edaf2d7501b00510ac93701e3c84c0d (diff)
downloadserverdata-10e53234668cdef50e8e28372741c947c05716b1.tar.gz
serverdata-10e53234668cdef50e8e28372741c947c05716b1.tar.bz2
serverdata-10e53234668cdef50e8e28372741c947c05716b1.tar.xz
serverdata-10e53234668cdef50e8e28372741c947c05716b1.zip
Prepare a function to clear out old variables
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/clear_vars.txt60
-rw-r--r--npc/scripts.conf5
2 files changed, 63 insertions, 2 deletions
diff --git a/npc/functions/clear_vars.txt b/npc/functions/clear_vars.txt
new file mode 100644
index 00000000..32016c70
--- /dev/null
+++ b/npc/functions/clear_vars.txt
@@ -0,0 +1,60 @@
+// Clears old variables
+
+function script ClearVariables {
+ // Halloween 2006
+ set HWQUEST1, 0;
+ set HWQUEST2, 0;
+ set HWQUEST3, 0;
+ set HWQUEST4, 0;
+ set HWQUEST5, 0;
+ set HWQUEST6, 0;
+ set HWQUEST7, 0;
+ set HWQUEST8, 0;
+ set HWQUEST9, 0;
+ set HWQUEST10, 0;
+ set HWQUEST11, 0;
+ set HWQUEST12, 0;
+ set HWQUEST13, 0;
+ set HWQUEST14, 0;
+ set HWQUEST15, 0;
+ set HWQUEST16, 0;
+ set HWQUEST17, 0;
+ set HWQUEST18, 0;
+ set HWQUEST18, 0;
+ set HWQUEST19, 0;
+ set HWQUEST20, 0;
+
+ // Christmas 2006
+ set XMASQUEST1, 0;
+ set XMASQUEST2, 0;
+ set XMASQUEST3, 0;
+ set XMASQUEST4, 0;
+ set XMASQUEST5, 0;
+ set XMASQUEST6, 0;
+ set XMASQUEST7, 0;
+ set XMASQUEST8, 0;
+ set XMASQUEST9, 0;
+ set XMASQUEST10, 0;
+ set XMASQUEST11, 0;
+ set XMASQUEST12, 0;
+ set XMASQUEST13, 0;
+ set XMASQUEST14, 0;
+ set XMASQUEST15, 0;
+ set XMASQUEST16, 0;
+ set XMASQUEST17, 0;
+ set XMASQUEST18, 0;
+ set XMASQUEST19, 0;
+ set XMASQUEST20, 0;
+
+ set QUEST_xmas07_state, 0;
+ set QUEST_xmas07_milk, 0;
+ set QUEST_xmas07_cookies, 0;
+ set QUEST_xmas07_presents, 0;
+
+ set QUEST_Easter08_state, 0;
+
+ set Halloween08, 0;
+
+ set QUEST_xmas08_state, 0;
+
+}
diff --git a/npc/scripts.conf b/npc/scripts.conf
index 01cc93eb..3f8967b9 100644
--- a/npc/scripts.conf
+++ b/npc/scripts.conf
@@ -3,6 +3,7 @@
// NPC Functions
npc: npc/functions/banker.txt
npc: npc/functions/barber.txt
+npc: npc/functions/clear_vars.txt
npc: npc/functions/game_rules.txt
npc: npc/functions/inn.txt
npc: npc/functions/mob_points.txt
@@ -43,8 +44,8 @@ import: npc/_import.txt
// npc: npc/xmas/2007/after-xmas.txt
// Easter 2008
-// npc: npc/easter2008/monsters.txt
-// npc: npc/easter2008/npc.txt
+// npc: npc/easter/2008/monsters.txt
+// npc: npc/easter/2008/npc.txt
// Halloween 2008
// npc: npc/halloween/2008/monsters.txt