Announce via command request

Hadeszeus

New member
Messages
651
Points
0
Location
Philippines
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.

Code:
setarray $broadcastMap$[0],prontera,morroc,payon,geffen;
 
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;}
default_ani_meow.gif


 
Last edited by a moderator:
Back
Top