Register for your free account! | Forgot your password?

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

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

Advertisement



code save characters lvl and all

Discussion on code save characters lvl and all within the CO2 Private Server forum part of the Conquer Online 2 category.

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

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  
Old 03/07/2010, 20:46   #2
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
whats the point of this? it dosent read it all it does it saves it and also wrong section
-Shunsui- is offline  
Old 03/07/2010, 21:09   #3
 
CompacticCo's Avatar
 
elite*gold: 0
Join Date: Aug 2009
Posts: 424
Received Thanks: 108
Agreed.
CompacticCo 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
CODE : Save Ragnarok :)
04/29/2010 - 12Sky2 - 2 Replies
Hello every one~ after using my small brains, ive atlast come to understand the working of ragnarok bot by Strike aid ...and how to make it sun again with new adresses... to make it clear iam not good at this .....i was expecting others like mega or spare to do this but seems they are busy XD the last ingredient in making ragnarok work are the adresses that i need.... the following adresses are the ones i need and the following alone are the capablities that may work in the ragnarok...
fix 100% code save characters lvl and all for 5165
03/09/2010 - CO2 PServer Guides & Releases - 6 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
Cps Save // Why my code don't work?
08/08/2009 - CO2 Private Server - 1 Replies
Hello, I have some questions, I know that this forum has many people who can help, I hope the same please help me. ------------------------------------------------- ---------------------- Q.1.: That's work for CoEmu? Because here don't work: PS: This code is in database.cs above it has: public static class Database { public static void SaveConquerPoints(Character Client) { MySqlCommand Command = new MySqlCommand("UPDATE `characters` SET `CPoint` = " +...



All times are GMT +2. The time now is 13:18.


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.