Register for your free account! | Forgot your password?

You last visited: Today at 08:53

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

Advertisement



DateTime Guild War

Discussion on DateTime Guild War within the CO2 Private Server forum part of the Conquer Online 2 category.

Closed Thread
 
Old   #1
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
DateTime Guild War

Alright well in the 5165 source I made a datetime start for guild war.
Here's the code.
Code:
public static void GuildWarTime()// On or Off
        {
            if (DateTime.Now.DayOfWeek == DayOfWeek.Wednesday && DateTime.Now.Hour == 2 && DateTime.Now.Minute == 15)
            {
                StartWar();
            }
        }
Here's the StartWar void:
Code:
 public static void StartWar()
        {
            Init();
            World.SendMsgToAll("SYSTEM", "Guild War has begun!", 2011, 0);
            War = true;
        }
It doesn't work though.
Nothing happens when it hits that time.
Anyone see anything wrong?
Arcо is offline  
Old 12/16/2009, 10:11   #2
 
felipeboladao's Avatar
 
elite*gold: 0
Join Date: Jul 2007
Posts: 255
Received Thanks: 273
need of some ajusts *----*

need add hour and minute to finality Guild war.

And Full Work Code ;D
felipeboladao is offline  
Old 12/16/2009, 10:12   #3
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by felipeboladao View Post
need of some ajusts *----*

Well no duh.
Thanks for stating the obvious.
I got this fixed.
#Request close.
Arcо is offline  
Old 12/16/2009, 10:34   #4
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
The check is in a void, which means you have to check the check void (lol) all the time, which is not the way to do it. Put the datetime code in a timethread and it should work fine.
_Emme_ is offline  
Old 12/16/2009, 10:41   #5
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by EmmeTheCoder View Post
The check is in a void, which means you have to check the check void (lol) all the time, which is not the way to do it. Put the datetime code in a timethread and it should work fine.

Lol I already fixed it but thanks.
Arcо is offline  
Old 12/16/2009, 11:10   #6
 
elite*gold: 20
Join Date: Aug 2005
Posts: 1,734
Received Thanks: 1,000
Closed
tanelipe is offline  
Closed Thread


Similar Threads Similar Threads
datetime and count
09/14/2010 - CO2 Private Server - 2 Replies
okay i was trying to count how long an action took. but it counted how long it took to send the action, but not how long it took. How can i make it count after the action is send. And yea I did put the time after the action, but still doing it. Something I can use to check if action is done? Is for 5165 tanel.
[QUESTion] DateTime Help
07/23/2009 - CO2 Private Server - 6 Replies
Ok im looking at this one datetime im trying to make one but i dont understand this hour part where it says ServerTime.Hour == 8 what time is the 8 lol else if ((World.ServerTime.DayName == "Monday" || World.ServerTime.DayName == "Wednesday") && World.ServerTime.Hour == 8 && World.ServerTime.Minute == 50)
[HELP] Datetime error
06/23/2009 - CO2 Private Server - 0 Replies
Ok im geting this error when i try to load 10 expballs per day here it is http://img188.imageshack.us/img188/8279/erroryfn.p ng



All times are GMT +2. The time now is 08:53.


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