summaryrefslogtreecommitdiff
path: root/world/map/npc/functions/global_event_handler.txt
diff options
context:
space:
mode:
Diffstat (limited to 'world/map/npc/functions/global_event_handler.txt')
-rw-r--r--world/map/npc/functions/global_event_handler.txt10
1 files changed, 10 insertions, 0 deletions
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: