summaryrefslogblamecommitdiff
path: root/npc/commands/kami.txt
blob: cec938802e90590468aa7e858153a10ea7abd724 (plain) (tree)
1
2
3
4
5
6
7

              
               
                                         


                                                                   




                               
                                     
                                                        



                                          


                                                        
                                  
        


                                           
                                                    
 
// TMW2 Script
//
// @k <message>
// Broadcast, and broadcast to #world too
// 
// @servmsg <message>
// Experimental, uses servicemessage() - requires up to date server

-	script	@k	32767,{
    end;

OnCall:
    .@request$ = strcharinfo(0)+": ";
	.@request$ += implode(.@atcmd_parameters$, " ");
    channelmes("#world", .@request$);
    announce l(.@request$), bc_all|bc_npc;
    end;

OnServMsg:
    .@request$ = strcharinfo(0)+": ";
	.@request$ += implode(.@atcmd_parameters$, " ");
    servicemessage(.@request$, 0);
    end;

OnInit:
    bindatcmd "k", "@k::OnCall", 80, 80, 1;
    bindatcmd "servmsg", "@k::OnServMsg", 99, 99, 1;
}