summaryrefslogtreecommitdiff
path: root/world/map/npc/functions/clear_vars.txt
diff options
context:
space:
mode:
authorThe Kandiman <kandiman@kandiman.(none)>2011-09-10 20:15:17 -0400
committerThe Kandiman <kandiman@kandiman.(none)>2011-09-11 16:48:18 -0400
commit1cb0e75cbd356485ebe35bb3f5af10e1454e57a5 (patch)
tree594bbf4a1bb428ef527f6ce6ec79e4eb3e478607 /world/map/npc/functions/clear_vars.txt
parenta9868851cfe19c503cc72b0289889c564b41dd20 (diff)
downloadserverdata-1cb0e75cbd356485ebe35bb3f5af10e1454e57a5.tar.gz
serverdata-1cb0e75cbd356485ebe35bb3f5af10e1454e57a5.tar.bz2
serverdata-1cb0e75cbd356485ebe35bb3f5af10e1454e57a5.tar.xz
serverdata-1cb0e75cbd356485ebe35bb3f5af10e1454e57a5.zip
Tab conversion and formatting project.
npc/functions and npc/items complete.
Diffstat (limited to 'world/map/npc/functions/clear_vars.txt')
-rw-r--r--world/map/npc/functions/clear_vars.txt234
1 files changed, 118 insertions, 116 deletions
diff --git a/world/map/npc/functions/clear_vars.txt b/world/map/npc/functions/clear_vars.txt
index 62eada3d..04af3e40 100644
--- a/world/map/npc/functions/clear_vars.txt
+++ b/world/map/npc/functions/clear_vars.txt
@@ -1,126 +1,128 @@
// 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;
-
- set QUEST_Easter09, 0;
-
- set Candyman, 0; // Halloween 2009
-
- set QUEST_Christmas09_state, 0;
-
- set QUEST_Easter09_slots, 0;
-
- // easter 2010
- // This must not be cleared: since some people would like to go to the easter island!
- // set Easter_2010_QuestState, 0;
- set Easter_2010_EggState1, 0;
- set Easter_2010_EggState2, 0;
- set Easter_2010_EggState3, 0;
- set Easter_2010_EggState4, 0;
- set Easter_2010_EggState5, 0;
-
- // halloween 2010
- set hween10, 0;
- set hween10_collect_canpump, 0;
- set hween10_credits, 0;
- set hween10_collect, 0;
- set hween10_collect_mmallow, 0;
- set hween10_collect_jelskul, 0;
- set hween10_bonecount, 0;
- set hween10_collect_tondel, 0;
- set hween10_paid, 0;
-
- // Xmas 2010:
- set Count_Yellow, 0;
- set Count_White, 0;
- set Maze, 0;
- set Yellow, 0;
- set White, 0;
- set Xmas2010, 0;
- set Golbenez_Inn_Cost, 0;
-
-
- //These lines are needed to migrate stuff from variables to flags
- if (Open_Underground_Palace_Barrier) set FLAGS, FLAGS | FLAG_OPENED_UNDERGROUND;
- set Open_Underground_Palace_Barrier, 0;
-
- if (Naem_Quest_Done) set FLAGS, FLAGS | FLAG_GOT_NAEM_GLOVES;
- set Naem_Quest_Done, 0;
-
- if (#BankAccount < 0) goto FixBank;
-
- return;
+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;
+
+ set QUEST_Easter09, 0;
+
+ set Candyman, 0; // Halloween 2009
+
+ set QUEST_Christmas09_state, 0;
+
+ set QUEST_Easter09_slots, 0;
+
+ // easter 2010
+ // This must not be cleared: since some people would like to go to the easter island!
+ // set Easter_2010_QuestState, 0;
+ set Easter_2010_EggState1, 0;
+ set Easter_2010_EggState2, 0;
+ set Easter_2010_EggState3, 0;
+ set Easter_2010_EggState4, 0;
+ set Easter_2010_EggState5, 0;
+
+ // halloween 2010
+ set hween10, 0;
+ set hween10_collect_canpump, 0;
+ set hween10_credits, 0;
+ set hween10_collect, 0;
+ set hween10_collect_mmallow, 0;
+ set hween10_collect_jelskul, 0;
+ set hween10_bonecount, 0;
+ set hween10_collect_tondel, 0;
+ set hween10_paid, 0;
+
+ // Xmas 2010:
+ set Count_Yellow, 0;
+ set Count_White, 0;
+ set Maze, 0;
+ set Yellow, 0;
+ set White, 0;
+ set Xmas2010, 0;
+ set Golbenez_Inn_Cost, 0;
+
+
+ //These lines are needed to migrate stuff from variables to flags
+ if (Open_Underground_Palace_Barrier) set FLAGS, FLAGS | FLAG_OPENED_UNDERGROUND;
+ set Open_Underground_Palace_Barrier, 0;
+
+ if (Naem_Quest_Done) set FLAGS, FLAGS | FLAG_GOT_NAEM_GLOVES;
+ set Naem_Quest_Done, 0;
+
+ if (#BankAccount < 0)
+ goto FixBank;
+
+ return;
FixBank:
- if (zeny >= -#BankAccount) goto L_Fix_Full;
+ if (zeny >= -#BankAccount)
+ goto L_Fix_Full;
- // Partial fix
- set #BankAccount, #BankAccount + zeny;
- set zeny, 0;
- return;
+ // Partial fix
+ set #BankAccount, #BankAccount + zeny;
+ set zeny, 0;
+ return;
L_Fix_Full:
- set zeny, zeny + #BankAccount;
- set #BankAccount, 0;
- return;
+ set zeny, zeny + #BankAccount;
+ set #BankAccount, 0;
+ return;
//Tulimshar and Mine Variables
- set Scorp, 0;
- set Bugleg, 0;
- set ChestQuest, 0;
+ set Scorp, 0;
+ set Bugleg, 0;
+ set ChestQuest, 0;
}