diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-05-14 21:48:56 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-08-05 03:25:43 -0300 |
commit | 2720336cf91ef9792e40c35c3459c4069b64d728 (patch) | |
tree | 9382e7277d696d4e85390b16263aba11051988dc | |
parent | 7b7a700659b32cc73a8636c2103520cd4dada22a (diff) | |
download | serverdata-2720336cf91ef9792e40c35c3459c4069b64d728.tar.gz serverdata-2720336cf91ef9792e40c35c3459c4069b64d728.tar.bz2 serverdata-2720336cf91ef9792e40c35c3459c4069b64d728.tar.xz serverdata-2720336cf91ef9792e40c35c3459c4069b64d728.zip |
Optimization
-rw-r--r-- | npc/functions/main.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/npc/functions/main.txt b/npc/functions/main.txt index 02374e14..851c46d0 100644 --- a/npc/functions/main.txt +++ b/npc/functions/main.txt @@ -248,7 +248,7 @@ function script getv { // setv(variable, value{, Vault ID}) -> Sets a Vault Variable function script setv { .@v$=getarg(0); - if (charat(.@v$, getstrlen(.@v$)-1) == "$") { + if (isstr(getarg(1)) { .@val$=getarg(1); .@str=true; } else { @@ -268,7 +268,7 @@ function script setv { } end; } - // Yes, 90% of the function is hard-failing. + // Yes, 70% of the function is hard-failing. // I miss Exception() function >__> if (.@str) return setd("$VAULT_"+.@v$+"["+.@id+"]", .@val$); |