R63 Inventory Fixed!

Status
Not open for further replies.
Experienced Elementalist
Joined
Jan 24, 2009
Messages
226
Reaction score
166
Many people had questions about the inventory that it didn't load in new swf.
In the new swf (RELEASE63-32073-31958-201103102307) are the inventory packets changed.
Here how to fix the loading of the inventory :thumbup:

Into /HabboHotel/Users/Inventory/InventoryComponent.cs search for:
PHP:
public ServerMessage SerializeItemInventory()
Replace whole void with:
PHP:
        public ServerMessage SerializeItemInventory()
        {
            ServerMessage Message = new ServerMessage(140);

            Message.AppendStringWithBreak("S");
            Message.AppendInt32(1);
            Message.AppendInt32(1);
            Message.AppendInt32(this.ItemCount);

            lock (this.InventoryItems)
            {
                List<UserItem>.Enumerator eItems = this.InventoryItems.GetEnumerator();

                while (eItems.MoveNext())
                {
                    eItems.Current.Serialize(Message, true);
                }
            }

            return Message;
        }

Into /HabboHotel/Items/UserItem.cs search for:
PHP:
Message.AppendStringWithBreak(GetBaseItem().Type.ToUpper());
Above it Remove:
PHP:
Message.AppendInt32(0);
 
Last edited:
1st post it's the packet structure from the emulator from the coding in the emulator before thanks for this
 
Wait, what about the wall items?
Cuz they now changed Wall & Room items into one packet with two seperate strings.
And i now only see Floor items. ( S )
 
Last edited:
this is a nice fix, thanks much.
 
Wait, what about the wall items?
Cuz they now changed Wall & Room items into one packet with two seperate strings.
And i now only see Floor items. ( S )
You can skip the wallitem packet if you're a scrub but you'll get strange inventory errors if you do, for instance if you haven't got any flooritems and you buy a wallitem then I don't think you'll see any items in your inventory.
 
yh... i did it but nope? it didnt work? screenies:

[IMG]https://forum.ragezone.com/ima...forum.ragezone.com/images/404_image.png[/IMG]
 
Oh, did you upload codes correctly, or not sure?
 
Status
Not open for further replies.
Back