Jump to content

Utility: Random News


Emistry

Recommended Posts


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

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

  • 1 month later...

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

hi again =) is this random news is only 1 news or can make multiple news?

Link to comment
Share on other sites


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

multiple....

Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  96
  • Reputation:   1
  • Joined:  03/07/12
  • Last Seen:  

seting color?

Link to comment
Share on other sites


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

seting color?

refer Announce#Color

Link to comment
Share on other sites

  • 3 months later...

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  924
  • Reputation:   166
  • Joined:  04/05/13
  • Last Seen:  

Thanks for script.

 

It's working!

Link to comment
Share on other sites

  • 4 months later...

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   1
  • Joined:  09/01/13
  • Last Seen:  

how it works?

Link to comment
Share on other sites


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

how it works?

just load the script..and every short interval it will randomly pick a message and broadcast to everyone.

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  80
  • Reputation:   1
  • Joined:  09/13/13
  • Last Seen:  

    sleep ( .Time * 900000 );

what is that for ?

Link to comment
Share on other sites


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

    sleep ( .Time * 900000 );

what is that for ?

refer sleep

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  80
  • Reputation:   1
  • Joined:  09/13/13
  • Last Seen:  

    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


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

sleep ( .Time * 60000 );

it should be this...

announce every "x" minute.   not multiply.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  80
  • Reputation:   1
  • Joined:  09/13/13
  • Last Seen:  

-	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

  • 6 years later...

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   0
  • Joined:  12/03/19
  • Last Seen:  

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


  • Group:  Forum Moderator
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  830
  • Reputation:   316
  • Joined:  02/11/19
  • Last Seen:  

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