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.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/npc/003-0-1/professor.txt b/npc/003-0-1/professor.txt
index 673c05b65..43fd6f6cd 100644
--- a/npc/003-0-1/professor.txt
+++ b/npc/003-0-1/professor.txt
@@ -32,8 +32,9 @@ OnTimer3000:
end;
OnSpeeching:
- // Max AFK time is determined as 15 minutes + 1 minute every 20 minutes AFKed
- .@maxafk=900+(AFKING/1200);
+ // 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));
// 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())) {