this is for both lotf and coemu
 
HomeCalendarFAQSearchMemberlistUsergroupsRegisterLog in

Share | 
 

 CoEmu Save CPs

View previous topic View next topic Go down 
AuthorMessage
Admin
Admin


Posts : 56
Join date : 2009-08-20

PostSubject: CoEmu Save CPs   Fri Aug 21, 2009 12:16 am

CREDITS TO 1supertao

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();
        }
Back to top Go down
View user profile http://openprojects.forumotions.net
 
CoEmu Save CPs
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Muv-Luv: Save in the name of true love!
» Sasuke will save Madara - Theory
» I can't seem to save my game
» 2nd save files
» Other Save Files

Permissions in this forum:You cannot reply to topics in this forum
lotf/coemu project :: Codes-
Jump to: