Jump to content
  • 0

Can somebody edit this Script for me? Broadcaster


eboni001

Question


  • Group:  Members
  • Topic Count:  79
  • Topics Per Day:  0.02
  • Content Count:  327
  • Reputation:   4
  • Joined:  06/22/13
  • Last Seen:  

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.

Edited by eboni001
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  410
  • Reputation:   29
  • Joined:  04/04/12
  • Last Seen:  

More than just that spot :P

 

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
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  410
  • Reputation:   29
  • Joined:  04/04/12
  • Last Seen:  

Change the variable Broadcast to #Broadcast, so it's an account variable.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  79
  • Topics Per Day:  0.02
  • Content Count:  327
  • Reputation:   4
  • Joined:  06/22/13
  • Last Seen:  

Change the variable Broadcast to #Broadcast, so it's an account variable.

here?

if(Broadcast> gettimetick(2)) {

like this?

 

if(#Broadcast> gettimetick(2)) {
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  79
  • Topics Per Day:  0.02
  • Content Count:  327
  • Reputation:   4
  • Joined:  06/22/13
  • Last Seen:  

thanks for your help is fixed now ^_^

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...