Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 01:46

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

Advertisement



How would i make guildwar only work on weekends?

Discussion on How would i make guildwar only work on weekends? within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2007
Posts: 6
Received Thanks: 0
Talking How would i make guildwar only work on weekends?

I want to make GW only work on weekends and auto-restart every time someone takes the pole until whatever time I would like to set it to.

Another question I would like the answer to. Is how do I make the pole have the same HP as the funds of the currently winning guild at the time they took the pole. Any help would be greatly appreciated.
aisaiya is offline  
Old 05/26/2012, 20:22   #2
 
Zeroxelli's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
Make a boolean in the server called IsGW
Code:
public static bool IsGW = false;
Then do something like

Code:
Timer GWTimer = new Timer(60000); // Call the check every 60 seconds
GWTimer.Elapsed += delegate { if (!IsGW && DateTime.Now.DayOfWeek == DayOfWeek.Saturday) { IsGW = true; /* Your GW code here */ };
GWTimer.Start();
GC.KeepAlive(GWTimer);
Prolly better ways, but you get the idea.
Zeroxelli is offline  
Thanks
1 User
Old 05/26/2012, 22:17   #3
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
Y dont u try to Check Trinity Source .... Its Good Reference and check How is the GW Start Timer work
shadowman123 is offline  
Old 05/26/2012, 22:45   #4
 
elite*gold: 0
Join Date: Feb 2007
Posts: 6
Received Thanks: 0
I tried this but its not working



public static void GWautostart()
{
Timer GWStarter = new Timer(60000); // Call the check every 60 seconds
GWStarter.Elapsed += delegate
{
if (DateTime.Now.DayOfWeek == DayOfWeek.Saturday)
{
Features.GuildWars.StartWar();
}

GWStarter.Start();
GC.KeepAlive(GWStarter);
};
}
aisaiya is offline  
Old 05/27/2012, 01:50   #5
 
elite*gold: 0
Join Date: Nov 2009
Posts: 342
Received Thanks: 17
just make code for time then put the action and it must work .....
|xabi| is offline  
Old 05/27/2012, 02:29   #6
 
Zeroxelli's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
Did you call GWautostart(); ?
Zeroxelli is offline  
Old 05/27/2012, 02:54   #7
 
-Sensei-'s Avatar
 
elite*gold: 0
Join Date: Oct 2011
Posts: 267
Received Thanks: 59
Quote:
Originally Posted by Zeroxelli View Post
Did you call GWautostart(); ?
I bet he just copy then paste the code.
-Sensei- is offline  
Thanks
1 User
Old 05/27/2012, 05:48   #8
 
Zeroxelli's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
Quote:
Originally Posted by -Sensei- View Post
I bet he just copy then paste the code.
At least he made his own method. Though, it's best to just put it in his main program method and assign it along with other main variables.
Zeroxelli is offline  
Reply


Similar Threads Similar Threads
how to make register.php work and client work at the same time
07/04/2014 - Dekaron Private Server - 11 Replies
Prior to my tut I am assuming you already checked this steps: 1. Followed Warmongers Ultimate Dekaron Server Setup 2. That you had succesfully downloaded and implement Silkbotters web registration php's and installed XAMPP server 3. That you already edited all the .ini in your htdocs folder with localhost IP 127.0.0.1, (yup, including Login server config.ini) NOW this is what I learned: 1. When you setup your system DSN which you named "account" with log-in and password = account, at the...
I need a fully work GuildWar
01/07/2012 - CO2 Private Server - 3 Replies
hey guyz can u help me to get the fully work GuildWar for 5165 i have it but its have some bugs waiting ur help guyz
how to make DSEEG work with dragonica (THQ/ICE) work for vista 32 bit users
10/16/2010 - Dragonica - 4 Replies
ok after 3 hours of messing around with dragonica i found a way to make it work with DSEEG for those who got the memory edit error firstly within the 1 minture the game is open with dseeg remove all hotkeys and delete all bot settings and click save leave the patcher.exe filepath as it is, select THQ and close everything, make sure that you set DSEEG to run as admin from the compatibility tab in properties. now delete engine.ini from both c: drive and the dragonica release folder ...
[REL]Make GuildWar start auto after it has been Taken + command to stop GW
04/02/2010 - CO2 PServer Guides & Releases - 4 Replies
Ok so this code SHOULD work perfectly with no errors right.... to make the GW start auto after it has been taken.... goto Features>Guildwar.cs and hit CTRL+F and search for World.SendMsgToAll("SYSTEM", Highest.TheGuild.GuildName + under the rest of that line just add THIS code
[request] How to make guildWar working on PowerSourceCo
09/24/2009 - CO2 Private Server - 18 Replies
Hello everyone Can you tell me what i have to do to make guildwar working on PowerSource Co because my / command don't work :( Thank you for reply :)



All times are GMT +1. The time now is 01:47.


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.