diff options
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; } |