From 8f15ef24a574284482ea76311237c39e136aa18b Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 10 Apr 2021 17:39:36 -0300 Subject: Remove ClearGlobalVars() - no longer needed --- npc/functions/clear_vars.txt | 60 ---------------------------------- npc/functions/global_event_handler.txt | 5 --- 2 files changed, 65 deletions(-) (limited to 'npc') diff --git a/npc/functions/clear_vars.txt b/npc/functions/clear_vars.txt index 35c05a4c..61268afd 100644 --- a/npc/functions/clear_vars.txt +++ b/npc/functions/clear_vars.txt @@ -15,63 +15,3 @@ function script ClearVariables { } -function script ClearGlobalVars { - $@loop = 5; - goto L_FluffyClear; - -L_FluffyClear: - if ($@loop == 12) - goto L_IlliaClear; - - $Record_Fluffy_Name$[$@loop] = ""; - $Record_Fluffy_Date$[$@loop] = ""; - $Record_Fluffy_Kills[$@loop] = 0; - - $@loop = $@loop + 1; - goto L_FluffyClear; - - -L_IlliaClear: - $@loop = 0; - goto L_IlliaLoop; - -L_IlliaLoop: - if ($Illia_Win_Records$[$@loop] == "") - goto L_EventClear; - - $Illia_Win_Records$[$@loop] = ""; - - $@loop = $@loop + 1; - goto L_IlliaLoop; - -L_EventClear: - $@loop = 0; - - $CandyOpsComplete = 0; - - $Easter_2010_Npc_State1 = 0; - $Easter_2010_Npc_State2 = 0; - $Easter_2010_Egg_Loc_State1 = 0; - $Easter_2010_Egg_Loc_State2 = 0; - $Easter_2010_Egg_Loc_State3 = 0; - $Easter_2010_Egg_Loc_State4 = 0; - $Easter_2010_Egg_Loc_State5 = 0; - - $hween10 = 0; - $hween10_tondel = 0; - $hween10_mmallow = 0; - $hween10_jelskul = 0; - $hween10_canpump = 0; - - $Golbenez_Inn_Cost = 0; - - $hween16 = 0; - $hween16_tondel = 0; - $hween16_mmallow = 0; - $hween16_jelskul = 0; - $hween16_canpump = 0; - - $state = 0; - return; -} - diff --git a/npc/functions/global_event_handler.txt b/npc/functions/global_event_handler.txt index 80a0643c..75a2fabc 100644 --- a/npc/functions/global_event_handler.txt +++ b/npc/functions/global_event_handler.txt @@ -7,7 +7,6 @@ OnPCLoginEvent: //callfunc "fixHeadStyles"; // convert headstyles //callfunc "ClearVariables"; // removes / converts old variables callfunc "DisplayMOTD"; // send the motd to the client, if enabled - //addtimer 0, "Magic Timer::OnLogin"; // prevent cast rate abuse // add more here @login_event = 2; end; @@ -21,15 +20,11 @@ OnMobKillEvent: end; OnPCDieEvent: - callfunc "fightclub_GoBack"; // this used by the battle master - //callfunc "fightclub_event_die"; // this is used by the 1v1 arena @necromancer = 0; - //addtimer 0, "Magic Timer::OnClear"; // reset magic block on death set @killerrid, 0; // reset killer rid end; OnInit: - callfunc "ClearGlobalVars"; callfunc "MOTD"; // set the MOTD array end; } -- cgit v1.2.3-70-g09d2