summaryrefslogtreecommitdiff
path: root/npc/003-0-1
diff options
context:
space:
mode:
Diffstat (limited to 'npc/003-0-1')
-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())) {