summaryrefslogtreecommitdiff
path: root/npc/functions/daily.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/daily.txt')
-rw-r--r--npc/functions/daily.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/npc/functions/daily.txt b/npc/functions/daily.txt
index b02a4c303..697f133a9 100644
--- a/npc/functions/daily.txt
+++ b/npc/functions/daily.txt
@@ -18,6 +18,18 @@ function script daily_login_bonus_handler {
// Number of times you claimed the top prize (27 days streak)
//debugmes "DLBH";
+ // GMs can receive Strange Coins
+ if (GSET_AUTORECEIVE_COINS) {
+ if (is_gm()) {
+ if (#GMEVENT_T <= gettimetick(2)) {
+ #GMEVENT_T=gettimetick(2)+(60*60*24);
+ getitem StrangeCoin, 30;
+ }
+ } else {
+ GSET_AUTORECEIVE_COINS=false;
+ }
+ }
+
if (#LOGIN_DAY != gettime(5)) {
// demure check: Are you on a start area?
getmapxy(.@m$,.@x,.@y,0);
@@ -128,6 +140,7 @@ function script daily_login_bonus_handler {
dispbottom "##B##2"+l("Merry Christmas!")+" "+l("You have gained a special login bonus!")+"##b##0";
}
}
+
// We're almost done with daily logins, just the optional User Interface
if (!GSET_DAILYREWARD_SILENT) {
setnpcdialogtitle l("Daily Login Rewards");