diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-01-25 18:41:12 -0200 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-01-25 18:41:12 -0200 |
commit | 73e3db7f944160a9dfda7995bbf37898c8f3c471 (patch) | |
tree | 1f9a96be5cf6fe16ac66ff33bf18139b7487980c /npc/commands | |
parent | e115717b8a686a22493e48680c588f6556f29881 (diff) | |
download | serverdata-73e3db7f944160a9dfda7995bbf37898c8f3c471.tar.gz serverdata-73e3db7f944160a9dfda7995bbf37898c8f3c471.tar.bz2 serverdata-73e3db7f944160a9dfda7995bbf37898c8f3c471.tar.xz serverdata-73e3db7f944160a9dfda7995bbf37898c8f3c471.zip |
@servmsg experiment (for test server only)
Diffstat (limited to 'npc/commands')
-rw-r--r-- | npc/commands/kami.txt | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/npc/commands/kami.txt b/npc/commands/kami.txt index 4cb8964a9..7d443cf55 100644 --- a/npc/commands/kami.txt +++ b/npc/commands/kami.txt @@ -1,15 +1,10 @@ // TMW2 Script // -// @k atcommand +// @k <message> // Broadcast, and broadcast to #world too -// -// group lv: 0 -// group char lv: 0 -// log: True -// -// usage: -// @wgm Help -// +// +// @servmsg <message> +// Experimental, uses servicemessage() - requires up to date server - script @k 32767,{ end; @@ -21,7 +16,13 @@ OnCall: announce l(.@request$), bc_all|bc_npc; end; +OnServMsg: + .@request$ = strcharinfo(0)+": "; + .@request$ += implode(.@atcmd_parameters$, " "); + servicemessage(.@request$); + end; OnInit: bindatcmd "k", "@k::OnCall", 80, 80, 1; + bindatcmd "servmsg", "@k::OnServMsg", 99, 99, 1; } |