summaryrefslogtreecommitdiff
path: root/npc/functions/main.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/main.txt')
-rw-r--r--npc/functions/main.txt11
1 files changed, 10 insertions, 1 deletions
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;
+}
+