Hadeszeus 15 Posted January 7, 2015 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 OnlyThe announcement will only broadcast on the specific map I set in an array/script. setarray $broadcastMap$[0],prontera,morroc,payon,geffen; Quote Share this post Link to post Share on other sites
0 malufett 247 Posted January 7, 2015 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;} 1 Hadeszeus reacted to this Quote Share this post Link to post Share on other sites
0 Hadeszeus 15 Posted January 7, 2015 Thanks Malu! Ill try this Quote Share this post Link to post Share on other sites
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.
Share this post
Link to post
Share on other sites