Register for your free account! | Forgot your password?

You last visited: Today at 13:31

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

Advertisement



[Request] need code

Discussion on [Request] need code within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
rgaguena's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 43
Received Thanks: 4
[Request] need code

Can someone make a code for an automatic restart of the server every 2 hours.. Please.and Thanks.
i work in lotf source
rgaguena is offline  
Old 08/07/2009, 18:59   #2
 
elite*gold: 20
Join Date: May 2008
Posts: 1,103
Received Thanks: 254
post this in general.cs

HTML Code:
                Restart = new System.Timers.Timer();
                Restart.Interval = 6000000;
                Restart.Elapsed += new ElapsedEventHandler(Restart_Elapsed);
                Restart.Start();
This to

HTML Code:
        public static void Restart_Elapsed(object sender, ElapsedEventArgs e)
        {
            Process nServ = new Process();
            nServ.StartInfo.FileName = Application.StartupPath + @"\DexCo.exe";
            nServ.Start();
            World.SaveAllChars();
            Environment.Exit(0);
        }
Pete1990 is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[Request] code
10/26/2009 - AutoIt - 5 Replies
can someone help me with a code..for silkroad i want to be a keypresser 1~5 very faster...but just for SRO ( controlsend funciton) i dont know how to make it..please help me !
[Request] bot code that uses packets
06/15/2009 - Archlord - 0 Replies
if any if u guys have a source code of a bot(any language is ok) that uses packets injection (send-receive-analyze) (hopefully it has info about the encryption...) so i can learn few stuff from it! (i wont use the bot ever, im not active in this game....) also, if anyone recommends a third party library that can be used to modify packets (modify them before they are sent or received...) and thanks.
[Request]Pharmacist Items Code So I Code Buy the Scroll
05/30/2009 - CO2 Private Server - 1 Replies
could you please teach me how to code Pharmacist Items so i could buy them all especially the scrolls.
request/help with a code
10/24/2008 - CO2 Private Server - 1 Replies
well i kinda need a lil bit of help on how to start a code that will check if i'm the only one who's on the map O.O thx
[Request]C++ Bot Source Code/Example Code
07/19/2008 - Silkroad Online - 2 Replies
Please someone direct me to anywhere that might have any sort of information and resources on the construction of a bot, preferably in C++. Looking for any Reverse engineering information(finding the Base addr for say player) and locating the offsets ptrs for Cur health etc. I would also love to see a simple example source in C++ of putting those addresses and offsets into action. I'm sure I have the basic idea down on how to do this but I'm not 100% sure how to get it setup correctly. ...



All times are GMT +1. The time now is 13:31.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.