diff options
author | mekolat <mekolat@users.noreply.github.com> | 2015-04-24 16:47:51 -0400 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2015-04-26 01:57:40 -0400 |
commit | a413653361e218695fa6305d760c22458ac78657 (patch) | |
tree | 93a2c4c2223e7400d1e56697a867ec0f5a710b85 /world/map/npc/functions/global_event_handler.txt | |
parent | 024b3be4951424cd5a1169020083c331b0cfb445 (diff) | |
download | serverdata-a413653361e218695fa6305d760c22458ac78657.tar.gz serverdata-a413653361e218695fa6305d760c22458ac78657.tar.bz2 serverdata-a413653361e218695fa6305d760c22458ac78657.tar.xz serverdata-a413653361e218695fa6305d760c22458ac78657.zip |
remove other instances of ClearVariables
Diffstat (limited to 'world/map/npc/functions/global_event_handler.txt')
-rw-r--r-- | world/map/npc/functions/global_event_handler.txt | 12 |
1 files changed, 10 insertions, 2 deletions
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; } |