Quick Fix:
In HabboMessenger.cs
Look for
and replace it withCode:internal void DestroyFriendship(uint friendID)
Now look forCode:internal void DestroyFriendship(uint friendID) { using (IQueryAdapter adapter = ButterflyEnvironment.GetDatabaseManager().getQueryreactor()) { adapter.runFastQuery(string.Concat(new object[] { "DELETE FROM messenger_friendships WHERE (sender = ", this.UserId, " AND receiver = ", friendID, ") OR (receiver = ", this.UserId, " AND sender = ", friendID, ")" })); } this.OnDestroyFriendship(friendID); this.GetClient().GetHabbo().GetRelationshipComposer().RelationshipStatusUpdate(friendID, 0); GameClient clientByUserID = ButterflyEnvironment.GetGame().GetClientManager().GetClientByUserID(friendID); if ((clientByUserID != null) && (clientByUserID.GetHabbo().GetMessenger() != null)) { clientByUserID.GetHabbo().GetMessenger().OnDestroyFriendship(this.UserId); } else { using (IQueryAdapter adapter = ButterflyEnvironment.GetDatabaseManager().getQueryreactor()) { adapter.setQuery("DELETE FROM user_relationships WHERE requester_id = @sender AND target_id = @target LIMIT 1"); adapter.addParameter("sender", friendID); adapter.addParameter("target", UserId); adapter.runQuery(); }//non sono siuro che vada bene... le cache?? } }
and afterCode:internal void OnDestroyFriendship(uint Friend)add:Code:this.friends.Remove(Friend);EDIT:Code:this.GetClient().GetHabbo().GetRelationshipComposer().RelationshipStatusUpdate(Friend, 0);
This is the right packet id for RoomError:
Code:Outgoing.RoomError = 1671;//b





