summaryrefslogtreecommitdiff
path: root/npc/003-3/malindou.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-03-26 19:31:30 -0300
committerJesusaves <cpntb1@ymail.com>2019-03-26 19:31:30 -0300
commitcd1a604bc8c501811b568b04a5bf531407e629f5 (patch)
tree3c5905f346ec38077c1cc873b0a5cb34041e74a9 /npc/003-3/malindou.txt
parent03ab3408392dbc43ea75111f5312f345c4538605 (diff)
downloadserverdata-cd1a604bc8c501811b568b04a5bf531407e629f5.tar.gz
serverdata-cd1a604bc8c501811b568b04a5bf531407e629f5.tar.bz2
serverdata-cd1a604bc8c501811b568b04a5bf531407e629f5.tar.xz
serverdata-cd1a604bc8c501811b568b04a5bf531407e629f5.zip
Refactor how PC Login events will be handled.
Malindou is now responsible for those. Daily login fancy GUI - can be disabled with @ucp
Diffstat (limited to 'npc/003-3/malindou.txt')
-rw-r--r--npc/003-3/malindou.txt18
1 files changed, 17 insertions, 1 deletions
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;
}