|
You last visited: Today at 15:37
Advertisement
AutoStart Tournament
Discussion on AutoStart Tournament within the CO2 Private Server forum part of the Conquer Online 2 category.
12/26/2009, 00:27
|
#1
|
elite*gold: 1
Join Date: Dec 2009
Posts: 126
Received Thanks: 17
|
AutoStart Tournament
How do i make so a tournament start automatical, is for LOTF (C#)
Sorry for asking, but i dunno remember >.<
|
|
|
12/26/2009, 00:32
|
#2
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
|
Quote:
Originally Posted by N¡ghtMare ?? WooT
How do i make so a tournament start automatical, is for LOTF (C#)
Sorry for asking, but i dunno remember >.<
|
You need to make a method for it and you can use datetime.
|
|
|
12/26/2009, 00:43
|
#3
|
elite*gold: 1
Join Date: Dec 2009
Posts: 126
Received Thanks: 17
|
Ya but how.
Is it in world.cs?
I mean like: (I know is not like this is just example)
Quote:
if Time = XX:30
{
DeathMatch = true;
}
if Time = XX:40
{
DeathMatch = false;
|
But thanks 
But i need some more help to add the things XD
|
|
|
12/28/2009, 11:27
|
#4
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
|
Quote:
Originally Posted by N¡ghtMare ?? WooT
Ya but how.
Is it in world.cs?
I mean like: (I know is not like this is just example)
But thanks 
But i need some more help to add the things XD
|
That could work, or you could do something like
Case Monday:
if (Hours(5) == 15:30)
Method<I use global timer so its like this>
Do you get it?
|
|
|
01/03/2010, 05:23
|
#5
|
elite*gold: 1
Join Date: Dec 2009
Posts: 126
Received Thanks: 17
|
I get it some way.
Thanks.
I hope i can make it work
|
|
|
01/03/2010, 09:56
|
#6
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
|
Quote:
Originally Posted by N¡ghtMare ?? WooT
I get it some way.
Thanks.
I hope i can make it work 
|
No problem.
Anymore questions feel free to pm me and I will gladly help you out.
|
|
|
01/03/2010, 11:12
|
#7
|
elite*gold: 0
Join Date: Nov 2009
Posts: 390
Received Thanks: 321
|
Code:
System.Timers.Timer cTimer = new System.Timers.Timer(1000.0);
cTimer.Start();
cTimer.Elapsed += delegate{ StartTournament(); };
void StartTournament()
{
if(DateTime.Now == <YourValue>)
{
// Do whatever for tournament here
}
}
|
|
|
01/03/2010, 11:53
|
#8
|
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
|
i would not use a 1 Second timer as it will lag up everithing.
i would make it atleast 30 -120 minutes
|
|
|
01/03/2010, 14:16
|
#9
|
elite*gold: 0
Join Date: Nov 2009
Posts: 390
Received Thanks: 321
|
Quote:
Originally Posted by ~Yuki~
i would not use a 1 Second timer as it will lag up everithing.
i would make it atleast 30 -120 minutes
|
In this case a 1 min timer is max, you don't want to miss starting the tournament just because you used some large time spans, give it a small calculation at different values and consider that you might actually start up your server 10 minutes before your tournament is supposed to fire up, see if a 30 min timer will work with that. . and it will not lag anything up just because of a simple boolean operation
|
|
|
01/05/2010, 09:24
|
#10
|
elite*gold: 1
Join Date: Dec 2009
Posts: 126
Received Thanks: 17
|
@Nullable
I hav a question, the place you say i should put value, is it what time??
So if i put 45.
It come every XX:45?
|
|
|
01/05/2010, 14:11
|
#11
|
elite*gold: 0
Join Date: Nov 2009
Posts: 390
Received Thanks: 321
|
Quote:
Originally Posted by N¡ghtMare ?? WooT
@Nullable
I hav a question, the place you say i should put value, is it what time??
So if i put 45.
It come every XX:45?
|
If(DateTime.Now.Minute == 45) to make it start every time it is XX:45
|
|
|
01/05/2010, 19:33
|
#12
|
elite*gold: 0
Join Date: Sep 2008
Posts: 178
Received Thanks: 62
|
Where we put this?
|
|
|
01/05/2010, 19:45
|
#13
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
|
Quote:
Originally Posted by cakobu
Where we put this?
|
You can put it with the method.
|
|
|
01/08/2010, 12:07
|
#14
|
elite*gold: 1
Join Date: Dec 2009
Posts: 126
Received Thanks: 17
|
Code:
System.Timers.Timer cTimer = new System.Timers.Timer(1000.0);
cTimer.Start();
cTimer.Elapsed += delegate{ StartTournament(); };
void StartTournament()
{
if(DateTime.Now == <YourValue>)
{
// Do whatever for tournament here
}
}
When i paste it in world.cs it says:
Methode must have a return point.
How to i do?
Thanks.
|
|
|
01/08/2010, 13:52
|
#15
|
elite*gold: 0
Join Date: Nov 2009
Posts: 390
Received Thanks: 321
|
Quote:
Originally Posted by N¡ghtMare ?? WooT
When i paste it in world.cs it says:
Methode must have a return point.
How to i do?
Thanks.
|
There are no methods in this code, maybe it is your method that is not a void, check your code, if it is not mind posting the code?
|
|
|
 |
|
Similar Threads
|
script im Autostart
06/27/2010 - AutoIt - 21 Replies
Hallo!
Wie kann ich es erreichen dass sich mein SCript automatisch in den Autostart verschiebt? Mit FileMove() macht das Script das leider nciht :-( kann vllt daran liegen dass ich Vista hab. Gibts da noch Möglichkeiten?
mfg
|
cd autostart
06/22/2010 - Technical Support - 6 Replies
hallo leute ich hab ein problem
normal wenn man ne cd reinschiebt dann startet die ja
aber bei mir ist das nicht so :( kann mir das jemand machen das das wieder geht pls???
|
[AutoIt] Autostart Controlle
06/12/2010 - AutoIt - 6 Replies
Hi, ich hab folgendes Problem
ich will ein Prog machen mitdem man die Sachen die im Autostart sind auslesen kann und dann Anzeigen und dann noch ändern kann oder neue hinzufügen aber
mir fehlt die Erfahrung und ich konnte keine passenden Befehle finden (via Google )
Kann mir villt einer einen Befehle oder Scriptteile sagen
also sowas wie Regread() aber da komme ich ned weiter
Hoffe auf Hilfe
|
[Autostart]Race Tournament(v5017)
04/16/2010 - CO2 PServer Guides & Releases - 10 Replies
yea this is the race tournament for 5017.
Map = Lab1
Tournament start:
XX:45
Script:
General.cs
Search for Thetimer = new System.Timers.Timer();
|
Autostart
02/06/2010 - General Coding - 6 Replies
Mein Problem ist, dass ich mit Visual Basic 2008 Express Edition ein Programm erstellt habe, aber nicht weiß welchen Befehl/Script ich verwenden soll, damit sich das Programm von aleine öffnet, wenn ich mein Pc hochfahre.
|
All times are GMT +1. The time now is 15:38.
|
|