summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/functions/hub.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt
index f108995ae..8b2241148 100644
--- a/npc/functions/hub.txt
+++ b/npc/functions/hub.txt
@@ -241,6 +241,9 @@ function script HUB_SkillInvoke {
// If you can't do this: You can't do this
if (getskilllv(@skillId) < @skillLv)
Exception("System ERROR, HSI."+@skillId+" INVALID CAST (got "+@skillLv+" expected "+getskilllv(@skillId)+", sub-LC."+(getcharid(3)-2000000)+")", RB_DEBUGMES|RB_ISFATAL);
+ // You are AFK for over 3 minutes, that's crazy, disregard
+ if (checkidle() > 180)
+ return;
// Record to database
skillInvoke[@skillId] = skillInvoke[@skillId] + 1;