[Help] trade in coemu

06/29/2009 18:49 m7med#1
when i trade cps to someone and he exit from the game and log in again he found cps 0 cuz the game not save the cps
and i have this in game sever window :
unknown packet type 1151
can anyone fix it :confused:
06/29/2009 21:38 PurePwnage23#2
Find this

Code:
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 + ", `HairStyle` = " + Client.Hair + ", `Class` = " + (int)Client.Class + ", `Exp` = " + Client.Exp + ", `Money` = " + Client.Money +", `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());
Replace The Full Line With

Code:
MySqlCommand Cmd = new MySqlCommand("UPDATE `characters` SET `Level` = " + Client.Level + ", `WHMoney` = " + Client.WHMoney + ", `CPs` = " + Client.CPs + "`PKPoints` = " + Client.PkPoints+", `xCord` = " + Client.X + ", `yCord` = " + Client.Y + ", `Map` = " + (int)Client.Map + ", `HairStyle` = " + Client.Hair + ", `Class` = " + (int)Client.Class + ", `Exp` = " + Client.Exp + ", `Money` = " + Client.Money +",`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());
Credits To xellios

Next Time Use Search....
06/29/2009 21:58 n0mansland#3
Quote:
Originally Posted by m7med View Post
when i trade cps to someone and he exit from the game and log in again he found cps 0 cuz the game not save the cps
and i have this in game sever window :
unknown packet type 1151
can anyone fix it :confused:
lol howd you find out how to do definitions? or you just looked at it and finally figured it out
06/29/2009 22:15 Kiyono#4
Quote:
Originally Posted by n0mansland View Post
lol howd you find out how to do definitions? or you just looked at it and finally figured it out
He could've found some C# tuts.
06/29/2009 22:18 n0mansland#5
Maybe.. I should prolly do that havent found time to read 500 tuts on it *SO BORING* All i know now is from looking at codes