Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server > CO2 PServer Guides & Releases
You last visited: Today at 23:51

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

Advertisement



fix 100% code save characters lvl and all for 5165

Discussion on fix 100% code save characters lvl and all for 5165 within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2008
Posts: 26
Received Thanks: 2
fix 100% code save characters lvl and all for 5165

hello all this code for save lvl character and cps

open Database.cs

and search

PHP Code:
                return "Error: Character already exists!"
del this code and add this new code


PHP Code:
if (File.Exists("C:\\OldCODB\\Users\\Characters\\" Name ".chr"))
                    return 
"Character already exists.";
                
IniFile F = new IniFile("C:\\OldCODB\\Users\\Characters\\" Name ".chr");
                
F.WriteString("Character""name"Name);
                
F.WriteString("Character""spouse""None");
                
F.WriteString("Character""whpass""");
                
F.WriteString("Character""account"Account);
                
F.WriteInteger("Character""body"Body);
                
F.WriteInteger("Character""hair", (410 + (Program.Rnd.Next(5) * 100)));
                
F.WriteInteger("Character""map"1010);
                
F.WriteInteger("Character""x"61);
                
F.WriteInteger("Character""y"110);
                
F.WriteInteger("Character""job"Job);
                
F.WriteInteger("Character""level"1);
                
F.WriteInteger("Character""strength"5);
                
F.WriteInteger("Character""agility"5);
                
F.WriteInteger("Character""vitality"5);
                
F.WriteInteger("Character""hitpoints"33);
                
F.WriteInteger("Character""silvers"10000);
                
F.WriteInteger("Character""merchant"1);
                
                
F.Save();
                
IniFile Dr = new IniFile("C:\\OldCODB\\Users\\" Account ".usr");
                
Dr.WriteString("User""character"Name);
                
Dr.Save();
                return 
"ANSWER_OK"

Good luck for all
memo1340 is offline  
Thanks
2 Users
Old 03/08/2010, 19:28   #2
 
walmartboi's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 378
Received Thanks: 163
Umm, I seriously have no clue what this is supposed to do/what the point of it is. -.-

Btw:

Code:
IniFile Dr = new IniFile("C:\\OldCODB\\Users\\" + Account + ".usr");
No checks?

And I still don't know what the point of this is LOL.
walmartboi is offline  
Old 03/08/2010, 20:12   #3
 
elite*gold: 0
Join Date: Apr 2007
Posts: 142
Received Thanks: 15
Quote:
Originally Posted by walmartboi View Post
Umm, I seriously have no clue what this is supposed to do/what the point of it is. -.-

Btw:

Code:
IniFile Dr = new IniFile("C:\\OldCODB\\Users\\" + Account + ".usr");
No checks?

And I still don't know what the point of this is LOL.
If I got it right, the point of it is to Save the characters.. I've noticed that sometimes Console gives you an exception about characters like someones acc didn't save. Happens Sometimes.
Secrets-man is offline  
Old 03/08/2010, 21:18   #4
 
elite*gold: 0
Join Date: Sep 2008
Posts: 26
Received Thanks: 2
Quote:
Originally Posted by Bolopia View Post
Well good job but don't the characters already save?
man will save if you write /exit or /restart
memo1340 is offline  
Old 03/08/2010, 21:31   #5
 
xScott's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 322
Received Thanks: 63
Quote:
Originally Posted by memo1340 View Post
man will save if you write /exit or /restart
isnt this already included in the source?
xScott is offline  
Old 03/08/2010, 21:35   #6
 
walmartboi's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 378
Received Thanks: 163
Quote:
Originally Posted by memo1340 View Post
man will save if you write /exit or /restart
It does that by itself, and with this code you're creating a whole new file and not even saving everything.
walmartboi is offline  
Old 03/09/2010, 01:49   #7
 
.Ocularis's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 309
Received Thanks: 208
This doesn't even look like like it suppose to save live character information, It looks like a code to save newly created account with extra things...
.Ocularis is offline  
Reply


Similar Threads Similar Threads
Need Auto Save Code for 5165
09/11/2010 - CO2 Private Server - 29 Replies
hi, my source don't save the caracters actions some times ex: i was lvl 120 and i had 2000cps i was in TC , i level up to 200 and i get 5kkcps and i go to BI i relog and i find my character lvl 120 with 2000cps in TC a friend told me you have to make auto save code to save each 2min or 2sec whatever but i don't know what's this code and where i put it
Roll Back or No Save Bug!! 5165
07/11/2010 - CO2 Private Server - 1 Replies
Hi, i have a co pserver 5165, i'm getting a fucked bug well i made a video to more understand YouTube - mybug.wmv please tell me what's the problem, or if it's possible help me to fix it and if no one know how to fix, please give me a good 5165 source
5165 source Don't save
07/01/2010 - CO2 Private Server - 3 Replies
hi i have a co pserver 5165 well the server don't save for exemple some one was lvl 50 and had 50kcps he dropped 1kkcps and leveled up to 137, well he disconnect, and after 5 ou 10mn he relog, and he find himself lvl 50 and has 50kcps only so the server didin't saved, i have 2 or 3 players who have same problem
code save characters lvl and all
03/07/2010 - CO2 Private Server - 2 Replies
hello all this code for save lvl character and cps open Database.cs and search return "Error: Character already exists!"; del this code and add this new code



All times are GMT +1. The time now is 23:53.


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