summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-06-21 21:26:54 -0300
committerJesusaves <cpntb1@ymail.com>2018-06-21 21:26:54 -0300
commita1890ee5ad07743a4efe4b376f9c4d710192c343 (patch)
treeffa57cbcde1bfc0a7504f904d55a19fafacfe59b /npc
parentd4430950003f0516acb3a2fd5e8475c6448be987 (diff)
downloadserverdata-a1890ee5ad07743a4efe4b376f9c4d710192c343.tar.gz
serverdata-a1890ee5ad07743a4efe4b376f9c4d710192c343.tar.bz2
serverdata-a1890ee5ad07743a4efe4b376f9c4d710192c343.tar.xz
serverdata-a1890ee5ad07743a4efe4b376f9c4d710192c343.zip
Malfunction
Diffstat (limited to 'npc')
-rw-r--r--npc/commands/scheduled-broadcasts.txt2
-rw-r--r--npc/functions/string.txt3
2 files changed, 4 insertions, 1 deletions
diff --git a/npc/commands/scheduled-broadcasts.txt b/npc/commands/scheduled-broadcasts.txt
index 78515e09e..cb40ed7d1 100644
--- a/npc/commands/scheduled-broadcasts.txt
+++ b/npc/commands/scheduled-broadcasts.txt
@@ -7,7 +7,7 @@ function script StoneBoard {
mes l("Please enter the message:");
next;
input .@msg$;
- .@msg$ = strip(.@msg$);
+ //.@msg$ = strip(.@msg$);
if (.@msg$ != "") {
return .@msg$;
}
diff --git a/npc/functions/string.txt b/npc/functions/string.txt
index efeaf476d..719951690 100644
--- a/npc/functions/string.txt
+++ b/npc/functions/string.txt
@@ -102,6 +102,7 @@ function script format_number {
// get from user language
switch (Lang) {
case 1: .@separator$ = " "; break; // French
+ case 4: .@separator$ = "."; break; // Brazilian
default: .@separator$ = ","; // English (default)
}
}
@@ -141,6 +142,8 @@ function script strip {
.@end--;
}
}
+ debugmes "STRIP.DEBUG MODE ENABLED BY JESUSALVA. PASSING SUBSTRING PARAMS";
+ debugmes "String \""+.@s$+"\" from "+str(.@start)+" to "+str(.@end);
return substr(.@s$, .@start, .@end);
}