diff options
-rw-r--r-- | npc/commands/language.txt | 13 | ||||
-rw-r--r-- | npc/functions/hub.txt | 5 |
2 files changed, 13 insertions, 5 deletions
diff --git a/npc/commands/language.txt b/npc/commands/language.txt index e7e1ecd7a..a03e2cf70 100644 --- a/npc/commands/language.txt +++ b/npc/commands/language.txt @@ -13,10 +13,7 @@ // @lang // -- script @lang 32767,{ - end; - -OnCall: +function script CMD_lang { checkclientversion; mesq l("Which language do you speak?"); next; @@ -24,6 +21,14 @@ OnCall: mes ""; mesn; mesq l("Ok, done."); + return; +} + +- script @lang 32767,{ + end; + +OnCall: + CMD_lang(); close; OnInit: 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 |