summaryrefslogtreecommitdiff
path: root/npc/functions/main.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-04-11 11:45:30 -0300
committerJesusaves <cpntb1@ymail.com>2021-04-11 11:45:30 -0300
commit964018501cd9c86790ff206692500841056733d1 (patch)
tree6de960490befac31afa56d52570331694c8482a7 /npc/functions/main.txt
parentf29978094ea5a9962ac149805c0393d5d3dda7e4 (diff)
downloadserverdata-964018501cd9c86790ff206692500841056733d1.tar.gz
serverdata-964018501cd9c86790ff206692500841056733d1.tar.bz2
serverdata-964018501cd9c86790ff206692500841056733d1.tar.xz
serverdata-964018501cd9c86790ff206692500841056733d1.zip
Fix some bugs (registercmd), improve a bit debug menu
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;
+}
+