Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server > CO2 PServer Guides & Releases
You last visited: Today at 10:41

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

Advertisement



[Release] Custom Automatic Restarter for LOTF Source!!!

Discussion on [Release] Custom Automatic Restarter for LOTF Source!!! within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
Mjnorman's Avatar
 
elite*gold: 0
Join Date: Oct 2007
Posts: 83
Received Thanks: 13
[Release] Custom Automatic Restarter for LOTF Source!!!

First in General.cs Search for public static void DoStuff()
Above it add this
Quote:
public static void RestarttTimer_Elapsed(object sender, ElapsedEventArgs e)
{
World.SendMsgToAll("Server Restart in 10 seconds!", "SYSTEM", 2011);
new Thread(new ThreadStart(
delegate()
{
Console.WriteLine("Server Restarting in 10 seconds!");
Thread.Sleep(5000);
Console.WriteLine("Server Restarting in 5 seconds!");
World.SendMsgToAll("Server Restart in 5 seconds!", "SYSTEM", 2011);
Thread.Sleep(5000);
World.SaveAllChars();
General.ServerRestart();
}
)).Start();
}
Now go Some were around line 55 in General.cs and Put this!!!
Quote:
public static System.Timers.Timer RestarttTimer;
Now Goto Line 246 in General.cs and Put this!
Quote:
RestarttTimer = new System.Timers.Timer();
RestarttTimer.Interval = 3600000;
RestarttTimer.Elapsed += new ElapsedEventHandler(RestarttTimer_Elapsed);
RestarttTimer.Start();
Hit Thanks if this helped you please
Mjnorman is offline  
Old 05/06/2009, 00:59   #2
 
LetterX's Avatar
 
elite*gold: 20
Join Date: May 2007
Posts: 1,125
Received Thanks: 332
Quote:
Originally Posted by Mjnorman View Post
Now go Some were around line 55 in General.cs and Put this!!!
Now Goto Line 246 in General.cs and Put this!
You can't base it off of lines.
You may have stuff in your general.cs file others don't, therefore making your file longer and containing data at different lines than others; or vice versa.

edit: fixed quote
LetterX is offline  
Old 05/06/2009, 01:21   #3
 
Mjnorman's Avatar
 
elite*gold: 0
Join Date: Oct 2007
Posts: 83
Received Thanks: 13
Quote:
Originally Posted by LetterX View Post
You can't base it off of lines.
You may have stuff in your general.cs file others don't, therefore making your file longer and containing data at different lines than others; or vice versa.

edit: fixed quote
ohhh sorry
Mjnorman is offline  
Reply


Similar Threads Similar Threads
[Release]Conquer Server Restarter Source
01/06/2010 - CO2 PServer Guides & Releases - 4 Replies
This Is The Conquer Server Restarter VB Source Photo: http://i48.tinypic.com/2yumszc.jpg DownLoad Link : Conquer Server Restarter VB.rar Information : i Dont Got This Source From Any One So Dont Say Iam Leecher O.o I Forget Something ( There Is No Rules )
[RELEASE]BlackAndWhiteCo's LOTF Source ;)
01/30/2009 - CO2 PServer Guides & Releases - 34 Replies
DELETED THANKS TO RETARDED NOOBS THAT THINK IT IS SHADECO SOURCE LOL LMAO
DeathCo's custom lotf source
12/09/2008 - CO2 Private Server - 13 Replies
hi guys its me Death from DeathCo and i just felt like sharing my customized lotf source with yall.... hav fun.... Thanks are greatly appreciated
[Release] LOTF Source
08/17/2008 - CO2 PServer Guides & Releases - 55 Replies
Here is the Official LOTF Source, readily available to download. If you thinks it fake, don't download it. Miss out on the source. Scan it if you like, enjoy. Below are TWO different versions of the LOTF Source, and the Shadow Co Source. All based on LOTF. Download (Original): MediaFire | ZeroWaitingTime | MegaUpload



All times are GMT +1. The time now is 10:43.


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.