Jump to content

Question

9 answers to this question

Recommended Posts

Posted (edited)
frontier,185,131,5	script	Broadcaster	114,{
	//what's the npc name to show in messages?
		set @npcname$, "Broadcaster";
	//NPC Headers Name:
		set @header$,"[^0000ff" + @npcname$ + "^000000]";
	//NPC COST PER Broadcast:
		set @broadcastfee, 10000000;
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
		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,0xB1FB17;
			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;
}

how can change the broadcast like this

15s8yvo.jpg

broadcast to botton

Edited by Emistry
topic merged.
Posted
frontier,185,131,5	script	Broadcaster	114,{
	//what's the npc name to show in messages?
		set @npcname$, "Broadcaster";
	//NPC Headers Name:
		set @header$,"[^0000ff" + @npcname$ + "^000000]";
	//NPC COST PER Broadcast:
		set @broadcastfee, 10000000;
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
		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,0xB1FB17;
			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;
}

how can change the broadcast like this

15s8yvo.jpg

broadcast to botton

find 

announce "Message from "+strcharinfo(0)+": "+@broadcast$+"",0,0xB1FB17;

change to 

dispbottom "Message from "+strcharinfo(0)+": "+@broadcast$+"",0,0x9327e5;

Posted

it should be

globalmes strcharinfo(0)+": "+@broadcast$;

but still there is no way for you since you're using eathena ...

 

only *Amod / rathena / hercules have IRC system

 

even the IRC Channel Script i have...wont work for eathena..

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...