summaryrefslogtreecommitdiff
path: root/npc/commands/motd.txt
diff options
context:
space:
mode:
authorjesusalva <cpntb1@ymail.com>2018-03-01 16:24:56 -0300
committerjesusalva <cpntb1@ymail.com>2018-03-01 16:24:56 -0300
commit4c9894a41939854a0d5e025704c4c2a785944212 (patch)
treec68a2e0dce5eea01e6eef08a2fe1517b6c273a35 /npc/commands/motd.txt
parent952d3a7d34cdc777cdba4973041fbde7d4428906 (diff)
downloadserverdata-4c9894a41939854a0d5e025704c4c2a785944212.tar.gz
serverdata-4c9894a41939854a0d5e025704c4c2a785944212.tar.bz2
serverdata-4c9894a41939854a0d5e025704c4c2a785944212.tar.xz
serverdata-4c9894a41939854a0d5e025704c4c2a785944212.zip
Make login streak non continous. Reward is given at login day 27.
All further days give 2 strange coins. May change later.
Diffstat (limited to 'npc/commands/motd.txt')
-rw-r--r--npc/commands/motd.txt13
1 files changed, 9 insertions, 4 deletions
diff --git a/npc/commands/motd.txt b/npc/commands/motd.txt
index 5913347ec..7bd84914f 100644
--- a/npc/commands/motd.txt
+++ b/npc/commands/motd.txt
@@ -186,17 +186,22 @@ OnPCLoginEvent:
// Handle daily login bonus
if (#LOGIN_DAY != .login_ref) {
- // Are we on a streak, or have we broke it? (or is it a new month)
- if (#LOGIN_DAY == .login_ref-1)
+ // Is it a new month?
+ if (#LOGIN_TABLE == gettime(6)) {
#LOGIN_STREAK=#LOGIN_STREAK+1;
- else
+ } else {
#LOGIN_STREAK=1;
+ #LOGIN_TABLE=gettime(6);
+ }
// Update last day you've claimed a reward
#LOGIN_DAY = .login_ref;
// Handle rewards: Streaks first, daily later. Streak reward overrides daily reward.
- if (#LOGIN_STREAK == 30) {
+ if (#LOGIN_STREAK > 27) {
+ getitem StrangeCoin, 2;
+ dispbottom l("##2 @@ Days login bonus: ##B2x @@##b", #LOGIN_STREAK, getitemlink(StrangeCoin));
+ } else if (#LOGIN_STREAK == 27) {
getitem PinkieHat, 1;
dispbottom l("##2 30 Days login bonus: ##B1x @@##b", getitemlink(PinkieHat)); // TODO placeholder
} else if (#LOGIN_STREAK == 21) {