- script bg_announcer -1,{
OnInit:
.gm_level = 99;
.announce_delay = 300;
.zeny = 50000;
end;
OnTalk:
if ( getgmlevel() >= .gm_level && .gm_level ) {
if ( select( "Continue","Configure Delay [^FF0000"+.announce_delay+"seconds^000000]" ) == 2 ) {
input .announce_delay,0,3600;
mes "Delay updated to ^FF0000"+.announce_delay+"seconds^000000";
next;
}
}
mes "Zeny cost : "+.zeny;
if ( Zeny >= .zeny ) {
.@gettimetick = gettimetick(2);
if ( .npc_delay < .@gettimetick ) {
announce "["+strcharinfo(0)+"] we are in Battlegrounds. Let's play!",bc_all;
mes "Message announced.";
.npc_delay = ( .@gettimetick + .announce_delay );
Zeny -= .zeny;
}
else {
mes "Re-use delay: "+( .npc_delay - .@gettimetick)+" seconds";
}
}
close;
}
prontera,155,181,5 script Battleground Announce#0 861,{
doevent "bg_announcer::OnTalk";
}
prontera,155,181,5 duplicate(Battleground Announce#0) Battleground Announce#1 861
prontera,155,181,5 duplicate(Battleground Announce#0) Battleground Announce#2 861
prontera,155,181,5 duplicate(Battleground Announce#0) Battleground Announce#3 861
prontera,155,181,5 duplicate(Battleground Announce#0) Battleground Announce#4 861
prontera,155,181,5 duplicate(Battleground Announce#0) Battleground Announce#5 861