Jump to content
  • 0
Sign in to follow this  
Hadeszeus

Announce via command request

Question

Requesting a custom command that will broadcast my message to a specific map I declared in the script.

 

For example:

 

If i type @broadcast2 Announcement for Prontera, Morroc, Payon, Geffen Map Only

The announcement will only broadcast on the specific map I set in an array/script.

 

setarray $broadcastMap$[0],prontera,morroc,payon,geffen;

 

 

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

try this..

- script atcmd_broadcast2 -1,{OnInit:bindatcmd "broadcast2",strnpcinfo(3)+"::OnAtcommand";end;OnAtcommand:setarray .@broadcastMap$[0],"prontera","morroc","payon","geffen";for(.@i=0; .@i<getarraysize(.@broadcastMap$);.@i=.@i+1){mapannounce .@broadcastMap$[.@i],.@atcmd_parameters$[0];}end;}

:meow:

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.