summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-10-17 12:37:22 -0300
committerJesusaves <cpntb1@ymail.com>2019-10-17 12:37:22 -0300
commitd7c5583dedf0c8d0cd783e86b6f10ccbaa81b99b (patch)
treecc96cef78eee613c05a6a5990bc23d78916d4545 /npc
parent9d54bf86d9732da93121ca135e2f2487873ed4a6 (diff)
downloadserverdata-d7c5583dedf0c8d0cd783e86b6f10ccbaa81b99b.tar.gz
serverdata-d7c5583dedf0c8d0cd783e86b6f10ccbaa81b99b.tar.bz2
serverdata-d7c5583dedf0c8d0cd783e86b6f10ccbaa81b99b.tar.xz
serverdata-d7c5583dedf0c8d0cd783e86b6f10ccbaa81b99b.zip
Professor - report estimation of AFKing time
Diffstat (limited to 'npc')
-rw-r--r--npc/003-0-1/professor.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/npc/003-0-1/professor.txt b/npc/003-0-1/professor.txt
index 7a5809513..50941cf98 100644
--- a/npc/003-0-1/professor.txt
+++ b/npc/003-0-1/professor.txt
@@ -10,6 +10,8 @@
next;
mesn;
mesq l("Sit on the rug in front of me and learn wisdom! Maybe you'll learn something this way.");
+ if (AFKING)
+ mesc l("Thus far, you've heard about %d hours and %d minutes of wisdom.", AFKING/1200, AFKING%1200/60);
if (!TUTORIAL) close;
next;
mes ".:: AFK EXP AREA ::.";
@@ -47,7 +49,7 @@ OnSpeeching:
deltimer(.name$+"::OnSpeeching"); // safeguard
// Max AFK time is determined as 15 minutes + 1 second every 20 minutes AFKed
// Capped at 1 hour (you've AFK'ed 37 days and 12 hours)
- .@maxafk=max(3600, 900+(AFKING/1200));
+ .@maxafk=min(3600, 900+(AFKING/1200));
// If you have been IDLE for at least 2 seconds you'll get the EXP.
// Note you don't need to sit, only be idle.
if (is_between(2, .@maxafk, checkidle())) {