Register for your free account! | Forgot your password?

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

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

Advertisement



Help Urgent ive exuasted my self from all options now its time to ask for help

Discussion on Help Urgent ive exuasted my self from all options now its time to ask for help within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
matthew 2010's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 23
Received Thanks: 4
Help Urgent ive exuasted my self from all options now its time to ask for help

Hi all i need help on how i can clear a hole database table at a certain time this is wat i have so far but it dosent do anything i also made a similar command with out a time ofc but it only removes the person who uses the command from the table
Code:
                    #region
                    if (DateTime.Now.Hour == 12 && DateTime.Now.Minute == 00 && DateTime.Now.Second == 00)
                    {
                        foreach (Client.GameState client in ServerBase.Kernel.GamePool.Values)
                        {
                            client.Vote = 0;
                            client.Entity.VotePoints = 0;
                            MySqlCommand cmd = new MySqlCommand(MySqlCommandType.DELETE);
                            cmd.Delete("votes", "EntityName", client.Entity.Name).And("UserIp", client.IP).Execute();
                            ServerBase.Kernel.SendWorldMessage(new Network.GamePackets.Message("Voteing Reset Go See Vote Npc in TwinCity xxx.xxx To Vote For Our Server And Earn Your 30,000 cps", System.Drawing.Color.Orange, Network.GamePackets.Message.Center), ServerBase.Kernel.GamePool.Values);
                            Console.WriteLine("VoteTable Reset.");
                            break;
                        }
                    }
                    #endregion
and here is the command
Code:
                                case "resetvote":
                                    {
                                        foreach (Client.GameState clients in ServerBase.Kernel.GamePool.Values)
                                        {
                                            client.Vote = 0;
                                            client.Entity.VotePoints = 0;
                                            MySqlCommand cmd = new MySqlCommand(MySqlCommandType.DELETE);
                                            cmd.Delete("votes", "EntityName", clients.Entity.Name).And("UserIp", clients.IP).Execute();
                                            ServerBase.Kernel.SendWorldMessage(new Network.GamePackets.Message("Voteing Reset Go See Vote Npc in TwinCity xxx.xxx To Vote For Our Server And Earn Your 30,000 cps", System.Drawing.Color.Orange, Network.GamePackets.Message.Center), ServerBase.Kernel.GamePool.Values);
                                            Console.WriteLine("VoteTable Reset.");
                                            break;
                                        }
                                        break;
still need hlp if any 1 can
matthew 2010 is offline  
Reply


Similar Threads Similar Threads
[HELP]Item options
12/13/2011 - Dekaron Private Server - 2 Replies
so i have came into a slight problem, i am trying to add +5% Physical damage and +5% magic damage gems to a server but i cant find the option indexes. i have searched several times to find the correct option but i have had no luck. so does anyone know if there is such option and where to find it? if you could help me it would be much appreciated. :)
URGENT-URGENT -LEAD PLS
08/31/2011 - Metin2 Private Server - 0 Replies
Guys I bought a dedicate yesterday but i don't know how to put my metin2 server inside of it! I pay if someone help me!!! skype: synxsoft msn: [email protected]
Need Help With Options
06/04/2011 - Need for Speed World - 1 Replies
Hey, whenever I ram cars, my screen shakes and does all that crap. Is there any way to get rid of that, pretty annoying for me considering I use tank mode and it destroys gameplay for me...
Bot with english options
10/08/2010 - Last Chaos - 3 Replies
Does anyone have a bot with english options? The one I'm using now works, but is in german so I can't really tell what everything says...
URGENT! ALL SPEEDHACKERS URGENT!
04/25/2007 - Eudemons Online - 9 Replies
Hi everyone. I am an avid player of Eudemons Online and the first time i discovered AndyX's speedhack i was so happy beyond describing. About 2 weeks ago, i got caught but i got off without paying. Then 1 week ago, i was caught for the second time and i tried pretending innocent so i didnt have to pay the fee of 2760 eps to get out but this time the gm told me i was speedhacking and the location+time. all the speedhackers are slowly starting to be botjailed and this is a warning to every1....



All times are GMT +2. The time now is 04:11.


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.