From cd1a604bc8c501811b568b04a5bf531407e629f5 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 26 Mar 2019 19:31:30 -0300 Subject: Refactor how PC Login events will be handled. Malindou is now responsible for those. Daily login fancy GUI - can be disabled with @ucp --- npc/003-3/malindou.txt | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'npc/003-3') diff --git a/npc/003-3/malindou.txt b/npc/003-3/malindou.txt index 20d38d5f1..697bf85ea 100644 --- a/npc/003-3/malindou.txt +++ b/npc/003-3/malindou.txt @@ -337,12 +337,28 @@ OnInit: //htput($@CONTRIBUTORS, "", 1); end; +// This control all PC Login events +// Position matters! OnPCLoginEvent: - checkclientversion; + // Vault override if (#MerchantBank) { BankVault += max(0, #MerchantBank); #MerchantBank = 0; } + + // Message of the Day have priority + MOTDHandler(); + + // Scheduled Announces + StoneBoardRead(); + + // TODO: npc/commands/rate-management.txt + + // Main update handler + checkclientversion(); + + // Daily rewards (always the last) + daily_login_bonus_handler(); end; } -- cgit v1.2.3-60-g2f50