From 31bf1466cfeb3e4ea72c58c5ea715532f65dd28d Mon Sep 17 00:00:00 2001 From: Lupus Date: Wed, 31 May 2006 09:42:24 +0000 Subject: 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 --- npc/other/Global_Functions.txt | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'npc/other') 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; } -- cgit v1.2.3-70-g09d2