cadz Posted December 1, 2012 Group: Members Topic Count: 83 Topics Per Day: 0.02 Content Count: 243 Reputation: 1 Joined: 08/29/12 Last Seen: August 1, 2021 Share Posted December 1, 2012 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. =) Quote Link to comment Share on other sites More sharing options...
clydelion Posted December 1, 2012 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 754 Reputation: 186 Joined: 05/22/12 Last Seen: October 15, 2022 Share Posted December 1, 2012 -<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. Quote Link to comment Share on other sites More sharing options...
Ryokem Posted December 1, 2012 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 205 Reputation: 19 Joined: 10/12/12 Last Seen: November 7, 2013 Share Posted December 1, 2012 (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 December 1, 2012 by Ryokem Quote Link to comment Share on other sites More sharing options...
Ajjwidjdneidjenw Posted December 1, 2012 Group: Members Topic Count: 15 Topics Per Day: 0.00 Content Count: 161 Reputation: 31 Joined: 12/06/11 Last Seen: December 25, 2022 Share Posted December 1, 2012 (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 December 1, 2012 by garet999 Quote Link to comment Share on other sites More sharing options...
Emistry Posted December 1, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 8 minutes ago Share Posted December 1, 2012 you can try this.. https://rathena.org/board/index.php?/files/file/2503-%7B?%7D/ Quote Link to comment Share on other sites More sharing options...
Ryokem Posted December 1, 2012 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 205 Reputation: 19 Joined: 10/12/12 Last Seen: November 7, 2013 Share Posted December 1, 2012 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 Quote Link to comment Share on other sites More sharing options...
cadz Posted December 1, 2012 Group: Members Topic Count: 83 Topics Per Day: 0.02 Content Count: 243 Reputation: 1 Joined: 08/29/12 Last Seen: August 1, 2021 Author Share Posted December 1, 2012 whoaa too many of them. btw thanks a lot for the announcer.. 2 thumps up =) i'll try each of them 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..... Quote Link to comment Share on other sites More sharing options...
Ajjwidjdneidjenw Posted December 1, 2012 Group: Members Topic Count: 15 Topics Per Day: 0.00 Content Count: 161 Reputation: 31 Joined: 12/06/11 Last Seen: December 25, 2022 Share Posted December 1, 2012 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 Quote Link to comment Share on other sites More sharing options...
Ryokem Posted December 1, 2012 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 205 Reputation: 19 Joined: 10/12/12 Last Seen: November 7, 2013 Share Posted December 1, 2012 whoaa too many of them. btw thanks a lot for the announcer.. 2 thumps up =) i'll try each of them 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. Quote Link to comment Share on other sites More sharing options...
cadz Posted December 1, 2012 Group: Members Topic Count: 83 Topics Per Day: 0.02 Content Count: 243 Reputation: 1 Joined: 08/29/12 Last Seen: August 1, 2021 Author Share Posted December 1, 2012 (edited) whoaa too many of them. btw thanks a lot for the announcer.. 2 thumps up =) i'll try each of them 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 December 1, 2012 by cadz Quote Link to comment Share on other sites More sharing options...
Dastgir Posted December 1, 2012 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 331 Reputation: 63 Joined: 11/29/11 Last Seen: 11 hours ago Share Posted December 1, 2012 (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 December 1, 2012 by Dastgir Pojee Quote Link to comment Share on other sites More sharing options...
clydelion Posted December 1, 2012 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 754 Reputation: 186 Joined: 05/22/12 Last Seen: October 15, 2022 Share Posted December 1, 2012 @Dastgir Pojee rand(3) will give either 0, 1, or 2.. That should be rand(1,3). Quote Link to comment Share on other sites More sharing options...
Dastgir Posted December 1, 2012 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 331 Reputation: 63 Joined: 11/29/11 Last Seen: 11 hours ago Share Posted December 1, 2012 Ohh sry, in hurry i forgot that. Quote Link to comment Share on other sites More sharing options...
cadz Posted December 1, 2012 Group: Members Topic Count: 83 Topics Per Day: 0.02 Content Count: 243 Reputation: 1 Joined: 08/29/12 Last Seen: August 1, 2021 Author Share Posted December 1, 2012 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? Quote Link to comment Share on other sites More sharing options...
Emistry Posted December 1, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 8 minutes ago Share Posted December 1, 2012 @cadz just add a new line of it if you have more messages to display...... Quote Link to comment Share on other sites More sharing options...
cadz Posted December 1, 2012 Group: Members Topic Count: 83 Topics Per Day: 0.02 Content Count: 243 Reputation: 1 Joined: 08/29/12 Last Seen: August 1, 2021 Author Share Posted December 1, 2012 okay thanks a lot master emistry got 1 now thanks a lot =) master emistry i got error on line 36. Quote Link to comment Share on other sites More sharing options...
Question
cadz
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.