diff options
-rw-r--r-- | npc/commands/scheduled-broadcasts.txt | 2 | ||||
-rw-r--r-- | npc/functions/string.txt | 3 |
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); } |