diff options
author | Joseph Botosh <rumly111@gmail.com> | 2015-09-17 21:20:27 +0300 |
---|---|---|
committer | Joseph Botosh <rumly111@gmail.com> | 2015-09-17 21:20:27 +0300 |
commit | 3f6c7dc003fce61e3c19aafad0cad618dac12002 (patch) | |
tree | c3df2381e7c2d98f4931ee8bf2901afe7bf75bf5 /npc | |
parent | 131b072228ddc3f67f3ea701703990bdc1937f61 (diff) | |
download | serverdata-3f6c7dc003fce61e3c19aafad0cad618dac12002.tar.gz serverdata-3f6c7dc003fce61e3c19aafad0cad618dac12002.tar.bz2 serverdata-3f6c7dc003fce61e3c19aafad0cad618dac12002.tar.xz serverdata-3f6c7dc003fce61e3c19aafad0cad618dac12002.zip |
add functions narrator, speech
Diffstat (limited to 'npc')
-rw-r--r-- | npc/functions/main.txt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/npc/functions/main.txt b/npc/functions/main.txt index 9ca373cb..2da97e2e 100644 --- a/npc/functions/main.txt +++ b/npc/functions/main.txt @@ -75,3 +75,25 @@ function script strip { } return substr(.@s$, .@start, .@end); } + +function script narrator { + mes ""; + mes l("[Narrator]"); + for (.@i = 0; .@i < getargcount(); .@i++) + { + mes col(getarg(.@i), 9); + next; + } + return; +} + +function script speech { + mes ""; + mesn; + for (.@i = 0; .@i < getargcount(); .@i++) + { + mesq getarg(.@i); + next; + } + return; +} |