Ago i saw verry long ago to fix it with something like "SQL_NO_CACHE" but didn't work for me,.. sow thats reason why i post a new fix by me ;p
Search into /HabboHotel/Users/Iventory/IventoryComponent.cs for:
Replace that WHOLE void with:Code:public void AddItem(uint Id, uint BaseItem, string ExtraData)
U maybe think, isnt this going to give u other errors, or a insta loop or whatever? -> NO! :DCode:public void AddItem(uint Id, uint BaseItem, string ExtraData) { try { lock (this.InventoryItems) { InventoryItems.Add(new UserItem(Id, BaseItem, ExtraData)); using (DatabaseClient dbClient = UberEnvironment.GetDatabase().GetClient()) { dbClient.AddParamWithValue("extra_data", ExtraData); dbClient.ExecuteQuery("INSERT INTO user_items (id,user_id,base_item,extra_data) VALUES ('" + Id + "','" + UserId + "','" + BaseItem + "',@extra_data)"); } } } catch (Exception) { this.AddItem(Id, BaseItem, ExtraData); } }
Bcouse the change to get itemid error with much ppl online is 1 at 20/50 ,... just say to the script to try it again ;) and it will work,...
I doesn't got ANY duplicate itemid error/disconnect anymore :D





