viewing paste 1-click battleground announcer. | Athena

Posted on the | Last edited on
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
 
 
 
-   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
Viewed 1267 times, submitted by Emistry.