- script Broadcaster -1,{
OnInit:
bindatcmd "broad",strnpcinfo( 3 )+"::OnBroadCastMessage";
end;
OnBroadCastMessage:
if ( timer > gettimetick( 2 ) ) {
dispbottom "You can use the broadcast command after " + ( timer - gettimetick( 2 ) ) + " second" + ( ( timer - gettimetick( 2 ) ) > 1 ? "s" : "" ) + ".";
end;
}
if ( Zeny < 1000000 ) {
dispbottom "You don't have zeny to do broadcasting";
end;
}
if ( .@atcmd_parameters$[ 0 ] != "" ) {
Zeny -= 1000000;
announce "[" + strcharinfo( 0 ) + "] : " +implode(.@atcmd_parameters$, " "), 0, 0xFF0000;
timer = gettimetick( 2 ) + 10;
}
end;
}