diff options
Diffstat (limited to 'npc/functions/daily.txt')
-rw-r--r-- | npc/functions/daily.txt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/npc/functions/daily.txt b/npc/functions/daily.txt index cc289e4ca..9c1dc1665 100644 --- a/npc/functions/daily.txt +++ b/npc/functions/daily.txt @@ -16,13 +16,15 @@ function script daily_login_bonus_handler { // Number of monthly connections // #LOGIN_ALLTIME // Number of times you claimed the top prize (27 days streak) + debugmes "DLBH"; - if (#LOGIN_DAY != .login_ref) { + if (#LOGIN_DAY != gettime(5)) { // demure check: Are you on a start area? getmapxy(.@m$,.@x,.@y,0); if (.@m$ ~= "000") return; + debugmes "[DLBH] Mapcheck ok"; // Is it a new month? if (#LOGIN_TABLE == gettime(6)) { #LOGIN_STREAK=#LOGIN_STREAK+1; @@ -32,7 +34,8 @@ function script daily_login_bonus_handler { } // Update last day you've claimed a reward - #LOGIN_DAY = .login_ref; + #LOGIN_DAY = gettime(5); + debugmes "[DLBH] month checks ok"; // Handle rewards: Streaks first, daily later. Streak reward prevail over daily reward. if (#LOGIN_STREAK > 27) { @@ -96,6 +99,7 @@ function script daily_login_bonus_handler { dispbottom l("##2Daily login bonus: ##B@@ Job Exp.##b", .@value); } } + debugmes "[DLBH] Finished: "+#LOGIN_DAY+" ok"; return; } |