Jump to content
  • 0

Request:announcer


cadz

Question


  • Group:  Members
  • Topic Count:  83
  • Topics Per Day:  0.02
  • Content Count:  243
  • Reputation:   1
  • Joined:  08/29/12
  • Last Seen:  

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

Link to comment
Share on other sites

15 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  205
  • Reputation:   19
  • Joined:  10/12/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  161
  • Reputation:   31
  • Joined:  12/06/11
  • Last Seen:  

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


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  205
  • Reputation:   19
  • Joined:  10/12/12
  • Last Seen:  

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 ;)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  83
  • Topics Per Day:  0.02
  • Content Count:  243
  • Reputation:   1
  • Joined:  08/29/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  161
  • Reputation:   31
  • Joined:  12/06/11
  • Last Seen:  

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 ;)

I know, my bad. DIdn't test it :P

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  205
  • Reputation:   19
  • Joined:  10/12/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  83
  • Topics Per Day:  0.02
  • Content Count:  243
  • Reputation:   1
  • Joined:  08/29/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  331
  • Reputation:   63
  • Joined:  11/29/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

@Dastgir Pojee

rand(3) will give either 0, 1, or 2.. That should be rand(1,3).

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  331
  • Reputation:   63
  • Joined:  11/29/11
  • Last Seen:  

Ohh sry, in hurry i forgot that.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  83
  • Topics Per Day:  0.02
  • Content Count:  243
  • Reputation:   1
  • Joined:  08/29/12
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

@cadz

YYIm6.png

just add a new line of it if you have more messages to display......

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  83
  • Topics Per Day:  0.02
  • Content Count:  243
  • Reputation:   1
  • Joined:  08/29/12
  • Last Seen:  

okay thanks a lot master emistry got 1 now thanks a lot =)

master emistry i got error on line 36.

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