From 2918fccc4872637ee76663f9d754a66f1c0cef78 Mon Sep 17 00:00:00 2001 From: HoraK-FDF Date: Sat, 11 Nov 2023 02:31:15 +0100 Subject: fluffy event global event handler --- world/map/npc/functions/global_event_handler.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/world/map/npc/functions/global_event_handler.txt b/world/map/npc/functions/global_event_handler.txt index 2743d9f3..eba97ab2 100644 --- a/world/map/npc/functions/global_event_handler.txt +++ b/world/map/npc/functions/global_event_handler.txt @@ -17,16 +17,21 @@ OnPCLoginEvent: callfunc "MaybeGiveBirthday"; callfunc "MiriamExpire"; // force the speed skill quest to expire callfunc "ConvertChristmas21"; // Christmas 2021 + callfunc "VaultLogin"; // Mirror Lake Protocol biddings + callfunc "VaultLogout"; // Clean some stuff, to be safe // add more here set @login_event, 2; end; OnPCKillEvent: callfunc "elanore_decrease_exp"; // decrease heal exp for doing bad things + callfunc "SweetTooth"; end; OnMobKillEvent: callfunc "MobPoints"; + callfunc "MobKillHandler"; + callfunc "SweetTooth"; end; OnPCDieEvent: @@ -35,6 +40,11 @@ OnPCDieEvent: callfunc "SpawnGhost"; callfunc "MiriamExpire"; // force the speed skill quest to expire set @killerrid, 0; // reset killer rid + set TowelLastUsed, gettimetick(2); // reset towel cooldown timer + end; + +OnPCLogoutEvent: + callfunc "VaultLogout"; end; OnInit: -- cgit v1.2.3-60-g2f50