Jump to content
  • 0

Request:announcer


Question

Posted

hi there anyone can give me this script

every 30 mins will different anouncement

announce "GM will never ask your password or any information of players account.",0;

announce "bla bla bla bla.",0;

and more announcement...

thanks in advance. =)

15 answers to this question

Recommended Posts

Posted

-<tab>script<tab>announcer#1<tab>-1,{
OnMinute00:
OnMinute30:
announce "GM will never ask your password or any information of players account.",0;
 sleep 1000;
announce "Announcement 2.",0;
sleep 1000;
announce "Announcement 3.",0;
end;
}

This is triggered every 12:00, 12:30, 01:00, 01:30 .. and so on.

edit:Oops, I missed the 'different' part.

Posted (edited)
OnMinute00:
OnMinute30:
if( .rand )
	.index = rand(getarraysize(.announce$));
else
    .index = (.index+1) % getarraysize(.announce$);
announce .announce$[.index], 0;
end;


OnInit:
setarray .announce$,
	"Sentence 1",
	"Sentence 2",
	"Sentence 3",
	// Add as many as you wish
	"Sentence N";

.rand = 1; //Set 1 if you want random sentence each time, 0 if you want to announce it consecutively.
end;

Edited by Ryokem
Posted (edited)

Randomly bc's one of the following, but I geuss the above is better.

-	script	Announcement	-,{
OnInit:
setarray .Announcements$[0],"GameMasters will never ask for your account information.",
"Broadcast Two",
"Broadcast Three"; //etc..
setarray .colour$[0],"0xFF0000",//red
"0x00FF00", //Green
"0x0000FF"; //blue
end;

OnMinute00:
OnMinute30:
announce .Announcements$[(rand(getarraysize(.Announcements$)))],0,.Colour$[(rand(getarraysize(.colour$)))];
end;
}

Edited by garet999
Posted

set .Announcements$[0],"GameMasters will never ask for your account information.",
"Broadcast Two",
"Broadcast Three"; //etc..
set .colour$[0],"0xFF0000",//red
"0x00FF00", //Green
"0x0000FF"; //blue

Those are multiple values settings, so you must use Setarray ;)

Posted

whoaa too many of them. btw thanks a lot for the announcer.. 2 thumps up =) i'll try each of them /no1

OnMinute00:
OnMinute30:
if( .rand )
	.index = rand(getarraysize(.announce$));
else
	.index = (.index+1) % getarraysize(.announce$);
announce .announce$[.index], 0;
end;


OnInit:
setarray .announce$,
	"Sentence 1",
	"Sentence 2",
	"Sentence 3",
	// Add as many as you wish
	"Sentence N";

.rand = 1; //Set 1 if you want random sentence each time, 0 if you want to announce it consecutively.
end;

have parse line problem in line 29.....

Posted

whoaa too many of them. btw thanks a lot for the announcer.. 2 thumps up =) i'll try each of them /no1

OnMinute00:
OnMinute30:
if( .rand )
	.index = rand(getarraysize(.announce$));
else
	.index = (.index+1) % getarraysize(.announce$);
announce .announce$[.index], 0;
end;


OnInit:
setarray .announce$,
	"Sentence 1",
	"Sentence 2",
	"Sentence 3",
	// Add as many as you wish
	"Sentence N";

.rand = 1; //Set 1 if you want random sentence each time, 0 if you want to announce it consecutively.
end;

have parse line problem in line 29.....

There's not even Line 29 O.o Tell me what line and which error.

Posted (edited)

whoaa too many of them. btw thanks a lot for the announcer.. 2 thumps up =) i'll try each of them /no1

OnMinute00:
OnMinute30:
if( .rand )
	.index = rand(getarraysize(.announce$));
else
	.index = (.index+1) % getarraysize(.announce$);
announce .announce$[.index], 0;
end;


OnInit:
setarray .announce$,
	"Sentence 1",
	"Sentence 2",
	"Sentence 3",
	// Add as many as you wish
	"Sentence N";

.rand = 1; //Set 1 if you want random sentence each time, 0 if you want to announce it consecutively.
end;

have parse line problem in line 29.....

There's not even Line 29 O.o Tell me what line and which error.

the .index part.

Edited by cadz
Posted (edited)

A Small and nice script

-	script	Announce	-1,{
OnMinute00:
OnMinute30:
switch(rand(2)) {
case 0: announce "GM will never ask your password or any information of players account.",0; end;
case 1: announce "Another Broadcast",0; end;
case 2: announce "Another Broadcast",0; end;
}
}

Change rand(2) if want more/less announcement and add/remove the case

Edited by Dastgir Pojee
Posted

you can try this..

master emistry do i need to change the

"Updated News 1 every X Minute",

into my "message",? right?

and

setarray .News$[0], \\ << this one [0]? not how many msg you will add?

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...