Register for your free account! | Forgot your password?

You last visited: Today at 18:46

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

Advertisement



[Release]CoEmu Save CPs

Discussion on [Release]CoEmu Save CPs within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2009
Posts: 104
Received Thanks: 7
[Release]CoEmu Save CPs

People gettin tired of CP's not saving? Stop asking ... its a freakin noob change

Go to Database>Database

Search for
Code:
public static void SaveCharacter(Character Client)
Replace the whole void with

Code:
        public static void SaveCharacter(Character Client)
        {
            MySqlCommand Cmd = new MySqlCommand("UPDATE `characters` SET `Level` = " + Client.Level + ", `WHMoney` = " + Client.WHMoney + ", `PkPoints` = " + Client.PkPoints + ", `xCord` = " + Client.X + ", `yCord` = " + Client.Y + ", `Map` = " + (int)Client.Map + ", `RecordMap` = " + Client.RecordMap + ", `RecordX` = " + Client.RecordX + ", `RecordY` = " + Client.RecordY + ", `HairStyle` = " + Client.Hair + ", `Class` = " + (int)Client.Class + ", `Exp` = " + Client.Exp + ", `Money` = " + Client.Money + ", `CPoints` = " + Client.CPs + ", `Str` = " + Client.Strength + ",`Vit` = " + Client.Vitality + ", `Spi` = " + Client.Spirit + ", `Dex` = " + Client.Dexterity + ", `StatPoints` = " + Client.StatPoints + ", `FirstLog` = " + 1 + ", `Reborn` = " + Client.Reborn + ", `HP` = " + Client.CurrentHP + ", `MP` = " + Client.CurrentMP + " WHERE `CharID` = " + Client.ID, DatabaseConnection.NewConnection());
            Cmd.ExecuteNonQuery();
            Cmd.Connection.Close();
            Cmd.Connection.Dispose();
            Cmd.Dispose();
        }
WALLA... IF I HELPED +1K... If not.. Then who cares..
1supertao is offline  
Thanks
1 User
Old 08/09/2009, 19:47   #2
 
n0mansland's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 780
Received Thanks: 255
lol you sure you didn't look on a recent post? You're a new member and all.. just wondering..
n0mansland is offline  
Old 08/09/2009, 19:57   #3
 
elite*gold: 0
Join Date: Aug 2009
Posts: 104
Received Thanks: 7
Lol... pulled it out of my source... its not hard.. on added CPoint to it... cause that y it won't save.. wit out it... I understand C# ,,, And i my other acc was banned... infractions these days LMAO >.<

If i use CoEmu.. and I coded magicartisan..

How do i make it so that, it only levels to my level.. like i was level 70.. and it will let me level it all the way up to 130.. How do I only make it so it will go to the level I am?
1supertao is offline  
Old 08/10/2009, 13:20   #4
 
damianpesta's Avatar
 
elite*gold: 0
Join Date: Jan 2007
Posts: 1,034
Received Thanks: 58
Quote:
Originally Posted by 1supertao View Post
If i use CoEmu.. and I coded magicartisan..

How do i make it so that, it only levels to my level.. like i was level 70.. and it will let me level it all the way up to 130.. How do I only make it so it will go to the level I am?

Why am I not suprised that ur last acc got banned... New acc and double posting already?
damianpesta is offline  
Reply


Similar Threads Similar Threads
[Release]Save Haloes
05/04/2013 - CO2 PServer Guides & Releases - 25 Replies
I made a new easier way of saving halos. I took what Korvacs said into effect. First we're going to define. Lets go to Character.cs and search for:public PKMode PKMode = PKMode.Capture; Atop of that place this public int Top = 0; Now let's go to Database.cs and search for this: public static Game.Character LoadCharacter(string Name, ref string Account) In the bottom of that you will see: C.Spouse =...
[Release]INI save system for 12tail's flowers!
11/14/2010 - CO2 PServer Guides & Releases - 37 Replies
OK, this save system works, but you have to get the actually flower system working(like me). First in your C:\OldCODB\ folder, make a NEW FOLDER called "Flowers" (without the quotes) Then... Find in Database.cs: public static Game.Character LoadCharacter(string Name, ref string Account) and above that add:
[RELEASE]Great Save!
06/15/2010 - CO2 PServer Guides & Releases - 17 Replies
This is for tanels source :) Is just a autosave. Go to Program.cs. Search for: public static System.Timers.Timer DropEventTimer = null; user it put: public static System.Timers.Timer Thetimer;
[RELEASE][GC All Version] Macro & Save Files a.k.a BOT + Tutorials
04/02/2010 - Grand Chase Hacks, Bots, Cheats & Exploits - 411 Replies
THIS IS AN EXPLOIT IN GRANDCHASE USING MACRO TOOLS FOR MANUAL BOT.AND WITH TUTORIAL LINK AND VIDEO SO YOU CAN UNDERSTAND IT FASTER..YOU CAN CREATE UR OWN SCRIPT AND SHARE IT TO OTHERS JUST POST IT HERE TO AVOID SPAMMING PLEASE ^^ AND DONT FORGET TO PUT WHAT PROGRAM YOU USE LIKE AXIFE OR GRASsSOFT.... IT IS FOR THOSE PEOPLE THAT NEED TIME TO RELAX OR NEED TO DO SOME OTHER CHORES. AND MAYBE IT CAN BE USE IN OTHER ONLINE GAMES TOO :):cool::) NEEDED: Brian~ SD Hack...
[Release]Auto Save!!
11/05/2008 - CO2 PServer Guides & Releases - 16 Replies
open client.cs search for if (World.AllChars.Contains(MyChar.UID)) World.AllChars.Remove(MyChar.UID); } catch (Exception Exc) { General.WriteLine(Exc.ToString()); } Add below



All times are GMT +1. The time now is 18:48.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.