RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

[RunUO 2.0] Message of the Day

Joeku

Lord
[RunUO 2.0] Message of the Day

Code:
/**************************************
*Script Name: Message of the Day      *
*Author: Joeku                        *
*For use with RunUO 2.0               *
*Client Tested with: 6.0.2.0          *
*Version: 1.0                         *
*Initial Release: 12/04/07            *
*Revision Date: 12/04/07              *
**************************************/
Changelog
  • Version 1.0 December 4, 2007 - Initial release.
Description

After seeing quite a few mediocre, half-complete MOTD scripts, I finally decided to make my own. The MOTD is designed to keep players up to date on shard news. It displays upon player login, as well as when the [MOTD command is used.

Features
  • Easy-to-use GUI.
  • Active .TXT file reading (you can edit the MOTD out-of-game, and you don't have to restart the shard to update changes).
  • Preference controls (players can choose not to display MOTD upon login).
  • Dynamic category/indexing system (you can have as many categories as you would like).
  • Easy to add/edit/remove category entries.
  • Automatic formatting for category entries.
Installation/Use

Drop the MOTD folder into your custom scripts directory. Open Main.cs:
Code:
namespace Joeku.MOTD
{
	public class MOTD_Main
	{
		public const int Version = 100;
		public const string ReleaseDate = "December 4, 2007";

		public static readonly string FilePath = Path.Combine( Core.BaseDirectory, @"DataMOTD" );
		public static MOTD_Info[] Info = new MOTD_Info[]
		{
[COLOR="Blue"]			new MOTD_Info( "News" ),
			new MOTD_Info( "Changelog" )[/COLOR]
		};
		public static MOTD_HelpInfo[] HelpInfo = new MOTD_HelpInfo[]
		{
			new MOTD_HelpInfo( "About" ),
			new MOTD_HelpInfo( "Preferences" )
		};
You can have as many different categories as you would like, as long as you have at least one. After you edit this script to your liking, boot up the shard and log in. The .TXT files should be generated in "Data\MOTD". Directions to add new entries to the MOTD are included inside the .TXT files.

Coming Soon
  • In-game editing tool for entries.
Previews
  1. MOTD main menu after using [MOTD - "News" category.
  2. MOTD main menu after clicking Next Page button - "Changelog" category.
  3. MOTD main menu after clicking Next Page button again - "RunIM.Net" category.
  4. MOTD help menu after clicking Help button - "About" category.
  5. MOTD help menu after clicking Next Page button - "Preferences" category.
 

Attachments

  • screenshot 1.jpg
    screenshot 1.jpg
    85.6 KB · Views: 1,394
  • screenshot 2.jpg
    screenshot 2.jpg
    79.9 KB · Views: 773
  • screenshot 3.jpg
    screenshot 3.jpg
    83.2 KB · Views: 685
  • screenshot 4.jpg
    screenshot 4.jpg
    82.9 KB · Views: 595
  • screenshot 5.jpg
    screenshot 5.jpg
    74.8 KB · Views: 931
  • MOTD.zip
    7.2 KB · Views: 1,043

minworm

Wanderer
Joeku;727704 said:
Code:
/**************************************
*Script Name: Message of the Day      *
*Author: Joeku                        *
*For use with RunUO 2.0               *
*Client Tested with: 6.0.2.0          *
*Version: 1.0                         *
*Initial Release: 12/04/07            *
*Revision Date: 12/04/07              *
**************************************/
Changelog
  • Version 1.0 December 4, 2007 - Initial release.
Description

After seeing quite a few mediocre, half-complete MOTD scripts, I finally decided to make my own. The MOTD is designed to keep players up to date on shard news. It displays upon player login, as well as when the [MOTD command is used.

Features
  • Easy-to-use GUI.
  • Active .TXT file reading (you can edit the MOTD out-of-game, and you don't have to restart the shard to update changes).
  • Preference controls (players can choose not to display MOTD upon login).
  • Dynamic category/indexing system (you can have as many categories as you would like).
  • Easy to add/edit/remove category entries.
  • Automatic formatting for category entries.
Installation/Use

Drop the MOTD folder into your custom scripts directory. Open Main.cs:
Code:
namespace Joeku.MOTD
{
	public class MOTD_Main
	{
		public const int Version = 100;
		public const string ReleaseDate = "December 4, 2007";

		public static readonly string FilePath = Path.Combine( Core.BaseDirectory, @"DataMOTD" );
		public static MOTD_Info[] Info = new MOTD_Info[]
		{
[COLOR="Blue"]			new MOTD_Info( "News" ),
			new MOTD_Info( "Changelog" )[/COLOR]
		};
		public static MOTD_HelpInfo[] HelpInfo = new MOTD_HelpInfo[]
		{
			new MOTD_HelpInfo( "About" ),
			new MOTD_HelpInfo( "Preferences" )
		};
You can have as many different categories as you would like, as long as you have at least one. After you edit this script to your liking, boot up the shard and log in. The .TXT files should be generated in "DataMOTD". Directions to add new entries to the MOTD are included inside the .TXT files.

Coming Soon
  • In-game editing tool for entries.
Previews
  1. MOTD main menu after using [MOTD - "News" category.
  2. MOTD main menu after clicking Next Page button - "Changelog" category.
  3. MOTD main menu after clicking Next Page button again - "RunIM.Net" category.
  4. MOTD help menu after clicking Help button - "About" category.
  5. MOTD help menu after clicking Next Page button - "Preferences" category.
very good,hoho.....
 

Liacs

Sorceror
great! very good idea! Could have been mine *lol*

Thanks a lot for the submission, Joeku!

Lia
 

Liacs

Sorceror
@Johnny: run the script once on your server. Then go to Your-main-RUNUO-folder/DATA/MOTD. Here you can find the text files.

It is pretty simple to edit. There is also a how-to in each of them.

My tip: make a shortcut of both of them on the desktop ;)

Have fun!

BTW: that is the worst avatar picture I have seen in years!
 
Ok Liacas its sort of confusing, im in custom script folder and then i went to main all i see is a buncha things but i dont see where i can write my text in for the motd for the message of the day,. I dont wanna write it somewhere wrong so that i get errors and then gotta message how to fix them.
 

homergz

Sorceror
As Liacs said:

@Johnny: run the script once on your server. Then go to Your-main-RUNUO-folder/DATA/MOTD.
 

GhostRiderGrey

Sorceror
Joeku, I have been using your script for about a month and absolutely love it!! Is is possible to make the gump window (and text) a little wider than it is now? I started to look at the gump.cs file for this, but, being a scripting newbie, quickly became confused and thought it better to ask.

Thanks,
-GhostRiderGrey
 
I enjoy this script very much, love the ability to decided if to view this or not. I also look forward to the in game edit when that comes out as well. You have created a very useful script here.
 

Joeku

Lord
GhostRiderGrey;758519 said:
Joeku, I have been using your script for about a month and absolutely love it!! Is is possible to make the gump window (and text) a little wider than it is now? I started to look at the gump.cs file for this, but, being a scripting newbie, quickly became confused and thought it better to ask.

Thanks,
-GhostRiderGrey
You're on your own on this one =P this script wasn't made to be editable... you'll have to go through and change everything to widen it.
I might include sizability in my next release though... hrm...
Hanse_T_Insane;758532 said:
I enjoy this script very much, love the ability to decided if to view this or not. I also look forward to the in game edit when that comes out as well. You have created a very useful script here.
Thanks :)
 

GhostRiderGrey

Sorceror
Joeku;759133 said:
I might include sizability in my next release though... hrm...

Thanks :)

Joeku, Thank you for the information and the great script. I look forward to your next release!! :)

-GhostRiderGrey
 

Riokashu

Wanderer
[MOTD Command Prob

So when I type in [MOTD on either a staff or player character, it doesn't show the gump for this script, it shows a different gump that says "there is currently no news available." . Any ideas why?
 
Top