summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-04-18 15:28:44 -0300
committerJesusaves <cpntb1@ymail.com>2019-04-18 15:34:45 -0300
commitd0ee6cc84412539b30c0351a129c0ac9ae94b18c (patch)
tree55e2fde0f88a229f13bb324b3fbfff7139dbde08 /npc/functions
parente8b603241549767f32e32332d3a7653fb6ae2d0a (diff)
downloadserverdata-d0ee6cc84412539b30c0351a129c0ac9ae94b18c.tar.gz
serverdata-d0ee6cc84412539b30c0351a129c0ac9ae94b18c.tar.bz2
serverdata-d0ee6cc84412539b30c0351a129c0ac9ae94b18c.tar.xz
serverdata-d0ee6cc84412539b30c0351a129c0ac9ae94b18c.zip
GMs on MK Guild may opt to receive strange coins automatically
Diffstat (limited to 'npc/functions')
-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");