summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-10-06 16:03:40 -0300
committerJesusaves <cpntb1@ymail.com>2018-10-06 16:03:40 -0300
commit070bf3df848f31eb555f91d00f7e4f4596bc0954 (patch)
tree2cde836f2802a2f93edec07cc8b242c7fbf0b928 /npc
parent6917025fb41e73476380a55ad135d254926ae1cf (diff)
downloadserverdata-070bf3df848f31eb555f91d00f7e4f4596bc0954.tar.gz
serverdata-070bf3df848f31eb555f91d00f7e4f4596bc0954.tar.bz2
serverdata-070bf3df848f31eb555f91d00f7e4f4596bc0954.tar.xz
serverdata-070bf3df848f31eb555f91d00f7e4f4596bc0954.zip
Don't bother to give daily login bonus to players on starting areas
Diffstat (limited to 'npc')
-rw-r--r--npc/commands/motd.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/npc/commands/motd.txt b/npc/commands/motd.txt
index e6cafa342..ddc2dcdfb 100644
--- a/npc/commands/motd.txt
+++ b/npc/commands/motd.txt
@@ -187,6 +187,11 @@ OnPCLoginEvent:
// Number of times you claimed the top prize (27 days streak)
if (#LOGIN_DAY != .login_ref) {
+ // demure check: Are you on a start area?
+ getmapxy(.@m$,.@x,.@y,0);
+ if (.@m$ ~= "000")
+ end;
+
// Is it a new month?
if (#LOGIN_TABLE == gettime(6)) {
#LOGIN_STREAK=#LOGIN_STREAK+1;