Register for your free account! | Forgot your password?

You last visited: Today at 14:34

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release] MOTD

Discussion on [Release] MOTD within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2007
Posts: 306
Received Thanks: 75
[Release] MOTD

For those of you who have ever MUDded, you know what an MOTD is. For those of you who don't.. It's basically a welcome message.

When you log on it sends you whatever lines as your welcome message..

If you don't know where it is, it's in Client.GetPacket() and its above the following lines:

Code:
                                        SendPacket(General.MyPackets.GeneralData(MyChar.UID, 0, 0, 0, 75));
                                        There = true;
Simply replace the welcome lines (above the 2 lines stated above) with :

Code:
                                        System.IO.StreamReader tr = new System.IO.StreamReader(System.Windows.Forms.Application.StartupPath + @"\MOTD.txt");
                                        string A = null;
                                        while((A = tr.ReadLine()) != null ) {
                                            SendPacket(General.MyPackets.SendMsg(MessageId, "System", MyChar.Name, A, 2000));
                                        }
                                        tr.Close();
Then in your Debug folder (or whatever folder your server starts from) add a file called MOTD.txt, and edit it, save it. Now when you want a new welcome message, instead of editing it in your source then recompiling and restarting, you only need edit this file and save it.

Simple, I know, but I have had a look at several sources and none of them do this; so there you have it.
Rechocto is offline  
Thanks
9 Users
Old 09/16/2008, 21:42   #2
 
elite*gold: 0
Join Date: Sep 2008
Posts: 73
Received Thanks: 141
A motd is something different.
-Shoҳ- is offline  
Old 09/16/2008, 21:49   #3
 
taguro's Avatar
 
elite*gold: 0
Join Date: Jun 2007
Posts: 387
Received Thanks: 64
This is actually a really good contribution... thanks for sharing this. I've just put it my source.
taguro is offline  
Old 09/16/2008, 21:50   #4
 
elite*gold: 0
Join Date: Jun 2007
Posts: 323
Received Thanks: 30
Indeed Gr8 lul
Zanzibar is offline  
Old 09/16/2008, 21:53   #5
 
glupkotrup's Avatar
 
elite*gold: 0
Join Date: May 2007
Posts: 1,195
Received Thanks: 457
@Shox If its different why did ya thanked him? Just asking!
@Rechoto Nice (alltho already had this but with Welcome.txt xD)
glupkotrup is offline  
Old 09/16/2008, 22:12   #6
 
elite*gold: 0
Join Date: Sep 2008
Posts: 73
Received Thanks: 141
Quote:
Originally Posted by glupkotrup View Post
@Shox If its different why did ya thanked him? Just asking!
@Rechoto Nice (alltho already had this but with Welcome.txt xD)
because he did alot of work
-Shoҳ- is offline  
Old 09/16/2008, 22:24   #7
 
glupkotrup's Avatar
 
elite*gold: 0
Join Date: May 2007
Posts: 1,195
Received Thanks: 457
Nope coz you didn't knew how to change the welcome message... I hate ppl who lye!
glupkotrup is offline  
Old 09/16/2008, 22:28   #8
 
elite*gold: 0
Join Date: Sep 2008
Posts: 73
Received Thanks: 141
Quote:
Originally Posted by glupkotrup View Post
Nope coz you didn't knew how to change the welcome message... I hate ppl who lye!
-.- are you **** serious? everyone knows how to change the welcome message
-Shoҳ- is offline  
Old 09/16/2008, 22:31   #9
 
glupkotrup's Avatar
 
elite*gold: 0
Join Date: May 2007
Posts: 1,195
Received Thanks: 457
Roflmao... I think not everyone...
glupkotrup is offline  
Old 09/16/2008, 22:32   #10
 
elite*gold: 0
Join Date: Nov 2007
Posts: 306
Received Thanks: 75
Don't fight, it was a very simple code and some people wouldn't have thought to write it, so I released it
Rechocto is offline  
Old 09/16/2008, 22:43   #11
 
glupkotrup's Avatar
 
elite*gold: 0
Join Date: May 2007
Posts: 1,195
Received Thanks: 457
Lol the guy is too serious... I can't go on like that
glupkotrup is offline  
Old 09/17/2008, 00:49   #12
 
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 154
Good for people who don't know hardly ANYTHING about coding.

+thanks, Not because I need it, and if you think I'm lying, come play my server k? But because some n00ps may need this =D I actually thought about doing this, but doing it in Config.ini
tao4229 is offline  
Old 09/17/2008, 00:54   #13
 
elite*gold: 0
Join Date: Jun 2007
Posts: 323
Received Thanks: 30
I wanna play on you......... i mean yourr server
Zanzibar is offline  
Old 09/17/2008, 00:58   #14
 
elite*gold: 0
Join Date: Nov 2007
Posts: 306
Received Thanks: 75
pm me for link, zanzibar
Rechocto is offline  
Old 09/17/2008, 01:06   #15
 
elite*gold: 0
Join Date: Jun 2007
Posts: 323
Received Thanks: 30
Why cant u pm me the link I r too is are is r lazy r
Zanzibar is offline  
Reply


Similar Threads Similar Threads
MOTD Definieren
07/24/2010 - Flyff Private Server - 3 Replies
Hallo, gibt es die Möglichkeit in der MOTD auch einen Webclient zu starten?
[Service]Erstelle eure motd,commandmenu und echo menues
04/06/2010 - Counter-Strike - 4 Replies
Neu: Erstelle nun auch alle ingame configen buyscripts und andere scripts nach wahl Auserdem kann ich euch das Standartmenu veraendern inklusive eigenes bild fuer eure aufloesung oder mehre aufloesung fuer clans usw Mit Standartmenu ist der Startbildschirm von CS 1.6 oder CSS gemeint Dabei kann ich auch mehre menu punkte hinzufuegen warum nicht statt connect to server-Create A Lan server usw folgendes da stehen habe Unsere Server(mit direkt verbindung auf fav oder clan...



All times are GMT +1. The time now is 14:39.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.