From a413653361e218695fa6305d760c22458ac78657 Mon Sep 17 00:00:00 2001 From: mekolat Date: Fri, 24 Apr 2015 16:47:51 -0400 Subject: remove other instances of ClearVariables --- world/map/npc/functions/global_event_handler.txt | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'world/map/npc/functions/global_event_handler.txt') diff --git a/world/map/npc/functions/global_event_handler.txt b/world/map/npc/functions/global_event_handler.txt index 0b691e45..9ce44a38 100644 --- a/world/map/npc/functions/global_event_handler.txt +++ b/world/map/npc/functions/global_event_handler.txt @@ -3,12 +3,16 @@ // // Author: meko -017-9,0,0,0|script|#GlobalHandler|-1 +-|script|#GlobalHandler|-1 { end; OnPCLoginEvent: - callfunc "ClearVariables"; + set @login_event, 1; + callfunc "getHeadStyles"; // converts class, color and hair + callfunc "ClearVariables"; // removes / converts old variables + // add more here + set @login_event, 2; end; OnPCKillEvent: @@ -23,4 +27,8 @@ OnPCDieEvent: callfunc "fightclub_GoBack"; // this used by the battle master callfunc "fightclub_event_die"; // this is used by the 1v1 arena end; + +OnInit: //fixme: change to OnInterIfInit + callfunc "ClearGlobalVars"; + end; } -- cgit v1.2.3-60-g2f50