Guild War

03/18/2010 17:25 .Beatz#1
Hey guys, I am wondering how to make guild war start at a certain time. like just the weekend or a few days a week. something like that.
Code:
                        if (DateTime.Now.DayOfWeek == DayOfWeek.Wednesday) // Day of the week
                        {
                            if (DateTime.Now.Hour == 14 && DateTime.Now.Minute >= 15 && !Features.GuildWars.War)
                                Features.GuildWars.StartWar();
                        }
I am guessing i would have to use something like this, But i am not sure where to put it :S if someone could advise me it would help alot thanks
03/18/2010 20:50 -Shunsui-#2
You Can Follow This Guide ([Only registered and activated users can see links. Click Here To Register...])

Or Go To MyThread.cs and Search for

PHP Code:
Thread.Sleep(1);
                { 
And Add

PHP Code:
if (DateTime.Now.DayOfWeek == DayOfWeek.Wednesday && DateTime.Now.Hour == 14 && DateTime.Now.Minute >= 15// Day of the week
                    
{
                            
Features.GuildWars.StartWar();
                    } 
Right Below it

For the Way
Code:
DateTime.Now.Minute >= 15
Is Going to Keep On Spamming it for those 5 Minutes till the Time Switches to 20, You Can Do DateTime.Now.Minute == 15 and do a Second time check DateTime.Now.Second w,e
03/20/2010 07:09 sawickas#3
Quote:
Originally Posted by -Shunsui- View Post
You Can Follow This Guide ([Only registered and activated users can see links. Click Here To Register...])

Or Go To MyThread.cs and Search for

PHP Code:
Thread.Sleep(1);
                { 
And Add

PHP Code:
if (DateTime.Now.DayOfWeek == DayOfWeek.Wednesday && DateTime.Now.Hour == 14 && DateTime.Now.Minute >= 15// Day of the week
                    
{
                            
Features.GuildWars.StartWar();
                    } 
Right Below it

For the Way
Code:
DateTime.Now.Minute >= 15
Is Going to Keep On Spamming it for those 5 Minutes till the Time Switches to 20, You Can Do DateTime.Now.Minute == 15 and do a Second time check DateTime.Now.Second w,e
Dont Work i checked :(
03/20/2010 10:11 .Beatz#4
Quote:
Originally Posted by sawickas View Post
Dont Work i checked :(
i am working on it still. I got it the other day but my comp crashed and i cant remember what i done lmao
04/09/2010 14:21 lukejonesy#5
i have a command that makes guild war last 48 hours, when the pole dies, respawns and gw starts again, untill the time runs out...48 hours later... then the pole reheals from where ever it was and winner is decided =) (pole becomes un-attackable again =)

yey for me lol.