summaryrefslogtreecommitdiff
path: root/npc/commands/debug-preset.txt
diff options
context:
space:
mode:
authorgumi <mekolat@users.noreply.github.com>2017-07-10 14:53:47 -0400
committergumi <mekolat@users.noreply.github.com>2017-07-17 17:10:27 -0400
commit3c9b5c41881137456750d9f8bd5124b09c057100 (patch)
treeecfb609e7b7df13af417b546760fcb841b560c94 /npc/commands/debug-preset.txt
parentefdca25204a4ccc4ea5687ada7a67b51f5fb0cc5 (diff)
downloadserverdata-3c9b5c41881137456750d9f8bd5124b09c057100.tar.gz
serverdata-3c9b5c41881137456750d9f8bd5124b09c057100.tar.bz2
serverdata-3c9b5c41881137456750d9f8bd5124b09c057100.tar.xz
serverdata-3c9b5c41881137456750d9f8bd5124b09c057100.zip
improved hurnscald map
Diffstat (limited to 'npc/commands/debug-preset.txt')
-rw-r--r--npc/commands/debug-preset.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/npc/commands/debug-preset.txt b/npc/commands/debug-preset.txt
index a0112e58..40f61261 100644
--- a/npc/commands/debug-preset.txt
+++ b/npc/commands/debug-preset.txt
@@ -72,10 +72,10 @@ function script DoRoutine {
}
}
- if (getarg(2, 0) && getargcount() >= 3)
+ if (getargcount() >= 3)
.@value = max(getarg(2), .@value);
- if (getarg(3, 0) && getargcount() >= 4)
+ if (getargcount() >= 4)
.@value = min(getarg(3), .@value);
return .@value;
@@ -166,7 +166,7 @@ function script DoRoutine {
/* (j) */
case 107: /* k => skill */
.@k = max(1, min(32767, .@a));
- skill .@k, parsev(getskilllv(.@k), .@args$[1], 0, 10);
+ skill .@k, parsev(getskilllv(.@k), .@args$[1], 0, 10), 0;
break;
case 108: /* l => luk */
.@base = readparam(bLuk);