diff options
Diffstat (limited to 'npc/functions/hub.txt')
-rw-r--r-- | npc/functions/hub.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt index 95eb02fe0..2cf46f67c 100644 --- a/npc/functions/hub.txt +++ b/npc/functions/hub.txt @@ -230,6 +230,12 @@ function script HUB_Logout { // HUB_SkillInvoke ( ) function script HUB_SkillInvoke { + // Something is... wrong + if (!@skillId) { + Exception("ILLEGAL SKILL PASSED TO HUB. It has been compromised, Jim.", RB_DEBUGMES|RB_IRCBROADCAST) + return; + } + // TODO: Detect what was script-cast and what was player-case. Then, readd RB_IRCBROADCAST // If you can't do this: You can't do this if (getskilllv(@skillId) < @skillLv) |