hello guys, can somebody add a delay of 3 minutes per account to use this broadcaster? it give a notice like this: please wait 3 minutes before BC to avoid flooding, but people won't respect this,
i want when somebody try to BC before 3 minutes npc say: you already broadcasted a message within the last 3 minutes... Please Try Again Later. i want this delay apply for each account so it can avoid
people changing character to broadcast.
thanks in advance.
prontera,183,215,3 script Broadcaster#1::BC 894,{
set @npcname$, "Broadcaster";
set @header$,"[^0000ff" + @npcname$ + "^000000]";
set broadcastfee, 1000000;
if (agitcheck()){mes @header$; mes "War of Emperium is ongoing!"; close;}
mes @header$;
mes "Hi, I'm the Broadcaster";
mes "I can Broadcast a message for you";
next;
mes @header$;
mes "It costs ^ff0000"+ broadcastfee +"^000000 zeny ";
next;
mes @header$;
mes "Would you like to Broadcast?";
switch (select("yes","No")){
case 1:
if(Broadcast> gettimetick(2)) {
next;
mes @header$;
mes "Sorry you have to wait for 3min.";
close;
}
next;
mes @header$;
if(Zeny<1000000) goto $nozenybc;
set Zeny,zeny - broadcastfee;
mes "Please input your message.";
next;
input broadcast$;
announce "Message from "+strcharinfo(0)+": "+broadcast$+"",0,0xFFCC00; // Edit FFA500 to green color code
close2;
set Broadcast, gettimetick(2)+180;
dispbottom "Broadcaster: Please wait for 3min until next broadcast to avoid flooding.";
end;
case 2:
mes "Suit yourself";
close;
}
$nozenybc:
mes "I have to check that you have";
mes "enough money";
next;
mes @header$;
mes "Im sorry but you dont have ^ff0000"+broadcastfee+"^000000 zeny";
mes "Go get it if you want to Broadcast";
close;
}
louyang,213,45,6 duplicate(BC) Broadcaster#2 894
hugel,102,153,3 duplicate(BC) Broadcaster#3 894
gonryun,161,126,4 duplicate(BC) Broadcaster#4 894
morocc,148,102,5 duplicate(BC) Broadcaster#5 894
payon,164,216,2 duplicate(BC) Broadcaster#6 894
geffen,111,64,5 duplicate(BC) Broadcaster#7 894
turbo_room,94,120,5 duplicate(BC) Broadcaster#8 894
Edited:
ok Broadcast already have the delay of 3 minutes only need the delay working for each char of the account.
Question
eboni001
hello guys, can somebody add a delay of 3 minutes per account to use this broadcaster? it give a notice like this: please wait 3 minutes before BC to avoid flooding, but people won't respect this,
i want when somebody try to BC before 3 minutes npc say: you already broadcasted a message within the last 3 minutes... Please Try Again Later. i want this delay apply for each account so it can avoid
people changing character to broadcast.
Edited:
ok Broadcast already have the delay of 3 minutes only need the delay working for each char of the account.
Edited by eboni0014 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.