Jump to content
Emistry

Utility: Random News

Recommended Posts

Random News


This Script will auto Announce / Broadcast a Messages randomly every interval of times.

Configuration :

Delay to announce:

	OnTimer60000: // announce every 60 seconds.

Announcement List:

	OnInit:
		// Random Message to be Announced
		setarray .news_list$,	
			"Updated News 1 every X Minute",
			"Updated News 2 every X Minute",
			"Updated News 3 every X Minute",
			"Updated News 4 every X Minute",
			"Updated News 5 every X Minute",
			"Updated News 6 every X Minute",
			"Updated News 7 every X Minute";
 

  • Submitter
  • Submitted
    07/29/2012
  • Category
  • Video
  • Content Author
    Emistry

 

  • Upvote 3
Link to comment
Share on other sites

    sleep ( .Time * 900000 );

what is that for ?

refer sleep

 

so it means

if i set

set .Time,2;        // Announce every x Minute.

it the 2 minutes will multiply by 900sec after the first announce ?

Link to comment
Share on other sites

-	script	News	-1,{
OnInit:
set .Time,2;		// Announce every x Minute.

setarray .News$[0],	// Random Message to be Announced
		"News : Server has been changed from 3rd job renewal to Trans only Pre-Renewal Setting.",
		"News : Please remove all your Unknown item( Apple ). Giving you 2days to delete the apple's or else your account will be deleted.",
		"News : Please check the server info for the changes in rates and info's of OurOwn. ",
		"News : Please Report Any Bugs Immediately.";
while( 1 ){
	announce .News$[ rand( getarraysize( .News$ ) ) ],0;
	sleep ( .Time * 900000 );
	}
end;
}

that is the code i want to announce it every 2 minutes

but its not announcing ,

 

that's why im curious about this sleep ( .Time * 900000 );

Link to comment
Share on other sites

On 7/29/2012 at 8:02 PM, Emistry said:

File Name: Random News

File Submitter: Emistry

File Submitted: 29 Jul 2012

File Category: Utilities

Content Author: Emistry

This Script will auto Announce / Broadcast a Messages randomly every interval of times.

Configuration :

 

set .Time,60;  // Announce every x Minute.
setarray .News$[0], // Random Message to be Announced
 "Updated News 1 every X Minute",
 "Updated News 2 every X Minute",
 "Updated News 3 every X Minute",
 "Updated News 4 every X Minute",
 "Updated News 5 every X Minute",
 "Updated News 6 every X Minute",
 "Updated News 7 every X Minute";
 

 

 

https://rathena.org/board/index.php?/files/file/2503-%7B?%7D/

Visit Emistry Topic for more Scripts...

how to make this every 5 minutes?

Link to comment
Share on other sites

5 hours ago, Osus said:

how to make this every 5 minutes?

set .Time,60;  // Announce every x Minute.

Just edit this to

set .Time,300;  // Announce every x Minute.

 

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
Reply to this topic...

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.