From 6fe7f254952d180ed9c1d6a4bd5424b1092c342b Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 21 Oct 2019 13:03:57 -0300 Subject: If you cannot use the skill, broadcast the error message on IRC --- npc/functions/hub.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'npc/functions') 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 -- cgit v1.2.3-70-g09d2