summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-01-25 18:41:12 -0200
committerJesusaves <cpntb1@ymail.com>2019-01-25 18:41:12 -0200
commit73e3db7f944160a9dfda7995bbf37898c8f3c471 (patch)
tree1f9a96be5cf6fe16ac66ff33bf18139b7487980c /npc
parente115717b8a686a22493e48680c588f6556f29881 (diff)
downloadserverdata-73e3db7f944160a9dfda7995bbf37898c8f3c471.tar.gz
serverdata-73e3db7f944160a9dfda7995bbf37898c8f3c471.tar.bz2
serverdata-73e3db7f944160a9dfda7995bbf37898c8f3c471.tar.xz
serverdata-73e3db7f944160a9dfda7995bbf37898c8f3c471.zip
@servmsg experiment (for test server only)
Diffstat (limited to 'npc')
-rw-r--r--npc/commands/kami.txt19
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;
}