diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-10-17 12:37:22 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-10-17 12:37:22 -0300 |
commit | d7c5583dedf0c8d0cd783e86b6f10ccbaa81b99b (patch) | |
tree | cc96cef78eee613c05a6a5990bc23d78916d4545 /npc/003-0-1 | |
parent | 9d54bf86d9732da93121ca135e2f2487873ed4a6 (diff) | |
download | serverdata-d7c5583dedf0c8d0cd783e86b6f10ccbaa81b99b.tar.gz serverdata-d7c5583dedf0c8d0cd783e86b6f10ccbaa81b99b.tar.bz2 serverdata-d7c5583dedf0c8d0cd783e86b6f10ccbaa81b99b.tar.xz serverdata-d7c5583dedf0c8d0cd783e86b6f10ccbaa81b99b.zip |
Professor - report estimation of AFKing time
Diffstat (limited to 'npc/003-0-1')
-rw-r--r-- | npc/003-0-1/professor.txt | 4 |
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())) { |