Hello. My players was reporting my Broadcaster NPC. They said sometimes its repeating their old message. So the scenario is like this.
First broadcast message will be
Hi
Then they use it again by saying
Hello
So instead of hello, it was saying hi (the previous message). Im pertaining to one character.
Anyways this is the script i use. (it has a 3 min delay before broadcasting again)
prontera,187,209,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","Nevermind")){
case 1:
if(Broadcast> gettimetick(2)) {
next;
mes @header$;
mes "Sorry you have to wait for 3 min.";
close;
}
next;
mes @header$;
if(Zeny<1000000) goto $nozenybc;
set Zeny,zeny - broadcastfee;
mes "Please input your message.";
next;
input broadcast$;
announce ""+strcharinfo(0)+": "+broadcast$+"",0,0x5AFF00; // Edit 5AFF00 for color code HTML Color Code
close2;
set Broadcast, gettimetick(2)+180; //Timer 180 = 3 minutes
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;
}
splendide,194,182,3 duplicate(BC) Broadcaster#2 894
Please have a look at it.