Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Releases
Server Releases
[RELEASE] [COMMAND] [PlusEMU] View Inventories
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Txc" data-source="post: 430839" data-attributes="member: 73856"><p>Pm me, let me know what you're having trouble with. I fixed it in my emulator.</p><p>[doublepost=1521520372,1521506639][/doublepost]For anyone having trouble adding this into plus, getting errors in FurniListComposer.cs use mine:</p><p>[CODE]</p><p>using System;</p><p>using System.Linq;</p><p>using System.Text;</p><p>using System.Collections.Generic;</p><p></p><p>using Plus.HabboHotel.Items;</p><p>using Plus.HabboHotel.Groups;</p><p>using Plus.HabboHotel.Users;</p><p>using Plus.HabboHotel.Catalog.Utilities;</p><p></p><p>namespace Plus.Communication.Packets.Outgoing.Inventory.Furni</p><p>{</p><p> class FurniListComposer : ServerPacket</p><p> {</p><p> public FurniListComposer(ICollection<Item> Items, int pages, int page)</p><p> : base(ServerPacketHeader.FurniListMessageComposer)</p><p> {</p><p> base.WriteInteger(pages);//Pages</p><p> base.WriteInteger(page);//Page?</p><p></p><p> base.WriteInteger(Items.Count);</p><p> foreach (Item Item in Items)</p><p> {</p><p> WriteItem(Item);</p><p> }</p><p> }</p><p></p><p> public FurniListComposer(List<Item> Items, ICollection<Item> Walls, bool StaffCheck = false)</p><p> : base(ServerPacketHeader.FurniListMessageComposer)</p><p> {</p><p> base.WriteInteger(1);</p><p> base.WriteInteger(1);</p><p></p><p> base.WriteInteger(Items.Count + Walls.Count);</p><p> foreach (Item Item in Items.ToList())</p><p> WriteItem(Item, StaffCheck);</p><p></p><p> foreach (Item Item in Walls.ToList())</p><p> WriteItem(Item, StaffCheck);</p><p> }</p><p></p><p> private void WriteItem(Item Item, bool StaffCheck)</p><p> {</p><p> base.WriteInteger(Item.Id);</p><p> base.WriteString(Item.GetBaseItem().Type.ToString().ToUpper());</p><p> base.WriteInteger(Item.Id);</p><p> base.WriteInteger(Item.GetBaseItem().SpriteId);</p><p> ItemBehaviourUtility.GenerateExtradata(Item, this);</p><p> base.WriteBoolean(StaffCheck ? false : Item.GetBaseItem().AllowEcotronRecycle);</p><p> base.WriteBoolean(StaffCheck ? false : Item.GetBaseItem().AllowTrade);</p><p> base.WriteBoolean(Item.LimitedNo == 0 ? Item.GetBaseItem().AllowInventoryStack : false);</p><p> base.WriteBoolean(StaffCheck ? false : ItemUtility.IsRare(Item));</p><p> base.WriteInteger(-1);//Seconds to expiration.</p><p> base.WriteBoolean(true);</p><p> base.WriteInteger(-1);//Item RoomId</p><p></p><p> if (!Item.IsWallItem)</p><p> {</p><p> base.WriteString(string.Empty);</p><p> base.WriteInteger(0);</p><p> }</p><p> }</p><p> private void WriteItem(Item Item)</p><p> {</p><p> base.WriteInteger(Item.Id);</p><p> base.WriteString(Item.GetBaseItem().Type.ToString().ToUpper());</p><p> base.WriteInteger(Item.Id);</p><p> base.WriteInteger(Item.GetBaseItem().SpriteId);</p><p></p><p> if (Item.LimitedNo > 0)</p><p> {</p><p> base.WriteInteger(1);</p><p> base.WriteInteger(256);</p><p> base.WriteString(Item.ExtraData);</p><p> base.WriteInteger(Item.LimitedNo);</p><p> base.WriteInteger(Item.LimitedTot);</p><p> }</p><p> else</p><p> ItemBehaviourUtility.GenerateExtradata(Item, this);</p><p></p><p> base.WriteBoolean(Item.GetBaseItem().AllowEcotronRecycle);</p><p> base.WriteBoolean(Item.GetBaseItem().AllowTrade);</p><p> base.WriteBoolean(Item.LimitedNo == 0 ? Item.GetBaseItem().AllowInventoryStack : false);</p><p> base.WriteBoolean(ItemUtility.IsRare(Item));</p><p> base.WriteInteger(-1);//Seconds to expiration.</p><p> base.WriteBoolean(true);</p><p> base.WriteInteger(-1);//Item RoomId</p><p></p><p> if (!Item.IsWallItem)</p><p> {</p><p> base.WriteString(string.Empty);</p><p> base.WriteInteger(0);</p><p> }</p><p> }</p><p> }</p><p>}</p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="Txc, post: 430839, member: 73856"] Pm me, let me know what you're having trouble with. I fixed it in my emulator. [doublepost=1521520372,1521506639][/doublepost]For anyone having trouble adding this into plus, getting errors in FurniListComposer.cs use mine: [CODE] using System; using System.Linq; using System.Text; using System.Collections.Generic; using Plus.HabboHotel.Items; using Plus.HabboHotel.Groups; using Plus.HabboHotel.Users; using Plus.HabboHotel.Catalog.Utilities; namespace Plus.Communication.Packets.Outgoing.Inventory.Furni { class FurniListComposer : ServerPacket { public FurniListComposer(ICollection<Item> Items, int pages, int page) : base(ServerPacketHeader.FurniListMessageComposer) { base.WriteInteger(pages);//Pages base.WriteInteger(page);//Page? base.WriteInteger(Items.Count); foreach (Item Item in Items) { WriteItem(Item); } } public FurniListComposer(List<Item> Items, ICollection<Item> Walls, bool StaffCheck = false) : base(ServerPacketHeader.FurniListMessageComposer) { base.WriteInteger(1); base.WriteInteger(1); base.WriteInteger(Items.Count + Walls.Count); foreach (Item Item in Items.ToList()) WriteItem(Item, StaffCheck); foreach (Item Item in Walls.ToList()) WriteItem(Item, StaffCheck); } private void WriteItem(Item Item, bool StaffCheck) { base.WriteInteger(Item.Id); base.WriteString(Item.GetBaseItem().Type.ToString().ToUpper()); base.WriteInteger(Item.Id); base.WriteInteger(Item.GetBaseItem().SpriteId); ItemBehaviourUtility.GenerateExtradata(Item, this); base.WriteBoolean(StaffCheck ? false : Item.GetBaseItem().AllowEcotronRecycle); base.WriteBoolean(StaffCheck ? false : Item.GetBaseItem().AllowTrade); base.WriteBoolean(Item.LimitedNo == 0 ? Item.GetBaseItem().AllowInventoryStack : false); base.WriteBoolean(StaffCheck ? false : ItemUtility.IsRare(Item)); base.WriteInteger(-1);//Seconds to expiration. base.WriteBoolean(true); base.WriteInteger(-1);//Item RoomId if (!Item.IsWallItem) { base.WriteString(string.Empty); base.WriteInteger(0); } } private void WriteItem(Item Item) { base.WriteInteger(Item.Id); base.WriteString(Item.GetBaseItem().Type.ToString().ToUpper()); base.WriteInteger(Item.Id); base.WriteInteger(Item.GetBaseItem().SpriteId); if (Item.LimitedNo > 0) { base.WriteInteger(1); base.WriteInteger(256); base.WriteString(Item.ExtraData); base.WriteInteger(Item.LimitedNo); base.WriteInteger(Item.LimitedTot); } else ItemBehaviourUtility.GenerateExtradata(Item, this); base.WriteBoolean(Item.GetBaseItem().AllowEcotronRecycle); base.WriteBoolean(Item.GetBaseItem().AllowTrade); base.WriteBoolean(Item.LimitedNo == 0 ? Item.GetBaseItem().AllowInventoryStack : false); base.WriteBoolean(ItemUtility.IsRare(Item)); base.WriteInteger(-1);//Seconds to expiration. base.WriteBoolean(true); base.WriteInteger(-1);//Item RoomId if (!Item.IsWallItem) { base.WriteString(string.Empty); base.WriteInteger(0); } } } } [/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
Server Releases
[RELEASE] [COMMAND] [PlusEMU] View Inventories
Top