Register for your free account! | Forgot your password?

You last visited: Today at 10:54

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

Advertisement



a really small prob.

Discussion on a really small prob. within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2007
Posts: 220
Received Thanks: 63
a really small prob.

ok so umm i made a small code that will check if you use Lotto 10 times or not....but the prob. is when you relog it becomes 0 again O.O any ideas why? umm thx +)
BlooD-BoY is offline  
Old 10/23/2008, 13:53   #2
 
elite*gold: 0
Join Date: Dec 2006
Posts: 196
Received Thanks: 35
Quote:
Originally Posted by BlooD-BoY View Post
ok so umm i made a small code that will check if you use Lotto 10 times or not....but the prob. is when you relog it becomes 0 again O.O any ideas why? umm thx +)
because it doesnt save the amount of times that you entered lotto...
randomnoob is offline  
Old 10/23/2008, 14:03   #3
 
elite*gold: 0
Join Date: Nov 2007
Posts: 306
Received Thanks: 75
update your mysql database (coproj) table (characters) and add the column "lotto" as an integer, then in DataBase.SaveChar() update it to save that variable.

Good luck
Rechocto is offline  
Old 10/23/2008, 22:39   #4
 
elite*gold: 0
Join Date: Jan 2007
Posts: 220
Received Thanks: 63
Quote:
Originally Posted by Rechocto View Post
update your mysql database (coproj) table (characters) and add the column "lotto" as an integer, then in DataBase.SaveChar() update it to save that variable.

Good luck
ok nvm, tyvm for your help it works =) btw i got a question, if i make a timer that will make it 0 after lets say 24hrs and i got a restarter that restarts the server every 1hr...will the 24hrs timer keep going or start from 24hrs again? O.O thx
BlooD-BoY is offline  
Old 10/24/2008, 03:24   #5
 
elite*gold: 0
Join Date: Nov 2007
Posts: 306
Received Thanks: 75
you have a couple of options here:

1) make a 3rd party stand alone program to modify the database at a given time each day
("update characters set lotto=0");
2) make it save when they did their lottos (DateTime.Now) and if (DateTime.Compare(LottoTime, DateTime.Now) == 86400) { } and make thatupdate it (86,400 seconds = 24 hours)
3) put a timer in your source to go off at a certain time each day
4) Set up a scheduled time for "server maintenence" (server goes down for a half hour, you compile any updates, run C Cleaner, and restart your computer) and in the startup script for your server you update the database setting lotto=0


there are many more options and how you do it is up to you, these are pretty simple ways in my opinion, so good luck
Rechocto is offline  
Reply


Similar Threads Similar Threads
Small D3D
04/22/2010 - WarRock Hacks, Bots, Cheats & Exploits - 2 Replies
http://img504.imageshack.us/img504/5259/hach1.jpg http://img268.imageshack.us/img268/7105/hach2.jpg download:small.zip kostenlos von Uploading.com herunterladen VT:kommt sofort vll ein thx :D
Small pally prob with manniquen DB
12/12/2008 - EO PServer Hosting - 5 Replies
ok so i have a small issue with the pallys on the new manniquen server like when they change their class from warrior or something to pally theres no soul for them any way to fix it?
hi all i need small help
08/31/2008 - Cabal Online - 4 Replies
hi all am just started this game i just want to wat's the better cahr who i can play? and how i put his point i mean how to increse str and int and dex hope any 1 help me:D
Hey Just Small Help
07/02/2007 - Conquer Online 2 - 2 Replies
I want help For Scamming Chars My real life friend come to my home alot and play with me conquer last night he won 2 soc earring =) on my home ( PC ) he didnt give me any thing and he tell me borrow me 4 dbs for Super iT he didnt reback the dbs after he sell the earring and i tryed to get Keylogger + Password Stealer + Golden Eye no 1 of them working with Conquer i need any thing For conquer cant get the password i mean like : typesaver any thing typed / happened keyboard Report for it please...
small help =)
12/26/2006 - Conquer Online 2 - 7 Replies
Well I be need a bot for fire tao, and all of the bots that I saw similar or the COpartner are not functioning in that new one patch ah I remembered of an autoclicky that catch here now do not I remember the author than autoclick" but is easy find here in the site barely is going to digitize conquer clicky in search I put to firecircle in "right button" meditation in f1 and sit in F2. now it is easy a lot you are necessary barely of good itens for the be able to stayed of the respaw check...



All times are GMT +2. The time now is 10:54.


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.