summaryrefslogtreecommitdiff
path: root/npc/other/Global_Functions.txt
diff options
context:
space:
mode:
authorLupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-31 09:42:24 +0000
committerLupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-31 09:42:24 +0000
commit31bf1466cfeb3e4ea72c58c5ea715532f65dd28d (patch)
tree608aef61663e4879f14808d0ee04a1e8a324fc93 /npc/other/Global_Functions.txt
parentf2fd4a251da74bb8311c321e800f8fce9f5e5fef (diff)
downloadhercules-31bf1466cfeb3e4ea72c58c5ea715532f65dd28d.tar.gz
hercules-31bf1466cfeb3e4ea72c58c5ea715532f65dd28d.tar.bz2
hercules-31bf1466cfeb3e4ea72c58c5ea715532f65dd28d.tar.xz
hercules-31bf1466cfeb3e4ea72c58c5ea715532f65dd28d.zip
many quests variables are shrinked in 1 variable bits. UPDATE ALL YOUR OLD scripts!
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6884 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc/other/Global_Functions.txt')
-rw-r--r--npc/other/Global_Functions.txt14
1 files changed, 13 insertions, 1 deletions
diff --git a/npc/other/Global_Functions.txt b/npc/other/Global_Functions.txt
index b064d538b..548da4eb9 100644
--- a/npc/other/Global_Functions.txt
+++ b/npc/other/Global_Functions.txt
@@ -3,7 +3,7 @@
//===== By: ==================================================
//= Lupus, kobra_k88
//===== Current Version: =====================================
-//= 1.8
+//= 1.9
//===== Compatible With: =====================================
//= eAthena 1.0
//===== Description: =========================================
@@ -19,6 +19,7 @@
//= Moved here useful function 'getJobName'
//= 1.7 Added "F_ItemName" function, added a great sample for "F_ItemName"
//= 1.8 Added Job Vars clear for Extended classes: TK,SL,SG [Lupus]
+//= 1.9 Added "F_ClearGarbage" func that clears outdated, wasted variables [Lupus]
//============================================================
@@ -57,6 +58,17 @@ function script F_ClearJobVar {
set TAEK_Q,0;
set STGL_Q,0;
set SOUL_Q,0;
+}
+
+function script F_ClearGarbage {
+ // Clear outdated global VARS
+ if(MARIANNE) {set MISC_QUEST,MISC_QUEST | 1;}
+ set MEAT,0; set MORRISON,0; set MARIANNE,0;
+ set BUNYBND,0; set TEMPESTRA,0;
+ set sewer_prt,0; set iz_move_alberta,0;
+ if(nif_q_done) {set nif_q_done,0; set MISC_QUEST,MISC_QUEST | 64;}
+ if(MORGEN >= 2) {set MISC_QUEST,MISC_QUEST | 4;}
+ set MORGEN,0; set nif_t,0;
return;
}