Can anyone help me, when i logout i lose my "High level" items any idea how to fix this ?
Thanks.
Edit:
Ok i found why it won't say, it didn't send the new ItemID to the database
Here is what i did, it may help you guys to
1. In GameServer open 'Database.cs'
2. Find public static void UpdateItem(Struct.ItemInfo Item)
3. Replace with this
public static void UpdateItem(Struct.ItemInfo Item)
{
MySqlCommand Cmd = new MySqlCommand("UPDATE `items` SET `ItemID` = " + Item.ItemID + ", `Position` = " + Item.Position + ", `Minus` = " + Item.Bless + ", `Plus` = " + Item.Plus + ", `Enchant` = " + Item.Enchant + ", `Soc1` = " + Item.Soc1 + ", `Soc2` = " + Item.Soc2 + ", `Dura` = " + Item.Dura + ", `MaxDura` = " + Item.MaxDura + " WHERE `ItemUID` = \"" + Item.UID + "\"", DatabaseConnection.NewConnection());
Cmd.ExecuteNonQuery();
Cmd.Connection.Close();
Cmd.Connection.Dispose();
Cmd.Dispose();
}
Hope this helped you to, or you already found it your self