From 964018501cd9c86790ff206692500841056733d1 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 11 Apr 2021 11:45:30 -0300 Subject: Fix some bugs (registercmd), improve a bit debug menu --- npc/functions/main.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'npc/functions/main.txt') diff --git a/npc/functions/main.txt b/npc/functions/main.txt index 58d1bff0..930e5283 100644 --- a/npc/functions/main.txt +++ b/npc/functions/main.txt @@ -602,7 +602,11 @@ function script wgm { } function script registercmd { - bindatcmd getarg(0), getarg(1), getarg(2, 0); + // Remove "@" from command start + .@cmd$=getarg(1); + if (charat(.@cmd$, 0) == "@") + delchar(.@cmd$, 0); + bindatcmd getarg(0), .@cmd$, getarg(2, 0); return; } @@ -615,3 +619,8 @@ function script readparam2 { return; } +function script updateskill { + skill getarg(0), getarg(1), 0; + return; +} + -- cgit v1.2.3-60-g2f50