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="Chenaho" data-source="post: 397272" data-attributes="member: 66264"><p>So has anyone got any info on how to fix LTD window on items?</p><p>[doublepost=1485931869,1485930938][/doublepost]This should work?</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(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> </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(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> }</p><p>}</p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="Chenaho, post: 397272, member: 66264"] So has anyone got any info on how to fix LTD window on items? [doublepost=1485931869,1485930938][/doublepost]This should work? [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(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); 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(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); } } } } [/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
Server Releases
[RELEASE] [COMMAND] [PlusEMU] View Inventories
Top