diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-10-21 13:03:57 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-10-21 13:03:57 -0300 |
commit | 6fe7f254952d180ed9c1d6a4bd5424b1092c342b (patch) | |
tree | 2459898e76b0ad81d55c25a1fa6babed3ae998a5 /npc/functions/hub.txt | |
parent | cc543c9823acd389a89d6269f3d3c467871072e0 (diff) | |
download | serverdata-6fe7f254952d180ed9c1d6a4bd5424b1092c342b.tar.gz serverdata-6fe7f254952d180ed9c1d6a4bd5424b1092c342b.tar.bz2 serverdata-6fe7f254952d180ed9c1d6a4bd5424b1092c342b.tar.xz serverdata-6fe7f254952d180ed9c1d6a4bd5424b1092c342b.zip |
If you cannot use the skill, broadcast the error message on IRC
Diffstat (limited to 'npc/functions/hub.txt')
-rw-r--r-- | npc/functions/hub.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt index eefe8d9d0..95245d453 100644 --- a/npc/functions/hub.txt +++ b/npc/functions/hub.txt @@ -173,7 +173,7 @@ function script HUB_Logout { function script HUB_SkillInvoke { // If you can't do this: You can't do this if (getskilllv(@skillId) < @skillLv) - end; + Exception("System ERROR, HSI."+@skillId+" INVALID CAST (got "+@skillLv+" expected "+getskilllv(@skillId)+")", RB_IRCBROADCAST|RB_DEBUGMES|RB_ISFATAL); // Record to database skillInvoke[@skillId] = skillInvoke[@skillId] + 1; @@ -183,6 +183,9 @@ function script HUB_SkillInvoke { case TMW2_FAKESKILL: atcommand("@refresh"); break; + case TMW2_FAKESKILL2: + CMD_lang(); next; closeclientdialog; + break; } // Debug |