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 Q&A
Habbo club button's
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="Muff" data-source="post: 409635" data-attributes="member: 61877"><p>[USER=18160]@JMG[/USER] it's plus original one craig released, <a href="http://prntscr.com/f89t5b" target="_blank">http://prntscr.com/f89t5b</a><strong>.</strong></p><p></p><p>Yeah i assumed it did and here's my CatalogPageMessageComposer for those who are curious.</p><p>[CODE]using System;</p><p>using System.Linq;</p><p></p><p>using Plus.Core;</p><p>using Plus.HabboHotel.Items;</p><p>using Plus.HabboHotel.Catalog;</p><p>using Plus.HabboHotel.Catalog.Utilities;</p><p></p><p>namespace Plus.Communication.Packets.Outgoing.Catalog</p><p>{</p><p> public class CatalogPageComposer : ServerPacket</p><p> {</p><p> public CatalogPageComposer(CatalogPage Page, string CataMode)</p><p> : base(ServerPacketHeader.CatalogPageMessageComposer)</p><p> {</p><p> base.WriteInteger(Page.Id);</p><p> base.WriteString(CataMode);</p><p> base.WriteString(Page.Template);</p><p></p><p> base.WriteInteger(Page.PageStrings1.Count);</p><p> foreach (string s in Page.PageStrings1)</p><p> {</p><p> base.WriteString(s);</p><p> }</p><p></p><p> base.WriteInteger(Page.PageStrings2.Count);</p><p> foreach (string s in Page.PageStrings2)</p><p> {</p><p> base.WriteString(s);</p><p> }</p><p></p><p></p><p> if (!Page.Template.Equals("frontpage") && !Page.Template.Equals("club_buy"))</p><p> {</p><p></p><p></p><p> base.WriteInteger(Page.Items.Count);</p><p> foreach (CatalogItem Item in Page.Items.Values)</p><p> {</p><p> base.WriteInteger(Item.Id);</p><p> base.WriteString(Item.Name);</p><p> base.WriteBoolean(false);//IsRentable</p><p> base.WriteInteger(Item.CostCredits);</p><p></p><p> if (Item.CostDiamonds > 0)</p><p> {</p><p> base.WriteInteger(Item.CostDiamonds);</p><p> base.WriteInteger(5); // Diamonds</p><p> }</p><p> else</p><p> {</p><p> base.WriteInteger(Item.CostPixels);</p><p> base.WriteInteger(0); // Type of PixelCost</p><p> }</p><p></p><p> base.WriteBoolean(ItemUtility.CanGiftItem(Item));</p><p></p><p> if (Item.Data.InteractionType == InteractionType.DEAL)</p><p> {</p><p> foreach (CatalogDeal Deal in Page.Deals.Values)</p><p> {</p><p> base.WriteInteger(Deal.ItemDataList.Count);//Count</p><p></p><p> foreach (CatalogItem DealItem in Deal.ItemDataList.ToList())</p><p> {</p><p> base.WriteString(DealItem.Data.Type.ToString());</p><p> base.WriteInteger(DealItem.Data.SpriteId);</p><p> base.WriteString("");</p><p> base.WriteInteger(1);</p><p> base.WriteBoolean(false);</p><p> }</p><p> base.WriteInteger(0);//club_level</p><p> base.WriteBoolean(ItemUtility.CanSelectAmount(Item));</p><p> }</p><p> }</p><p> else</p><p> {</p><p> base.WriteInteger(string.IsNullOrEmpty(Item.Badge) ? 1 : 2);//Count 1 item if there is no badge, otherwise count as 2.</p><p> {</p><p> if (!string.IsNullOrEmpty(Item.Badge))</p><p> {</p><p> base.WriteString("b");</p><p> base.WriteString(Item.Badge);</p><p> }</p><p></p><p> base.WriteString(Item.Data.Type.ToString());</p><p> if (Item.Data.Type.ToString().ToLower() == "b")</p><p> {</p><p> //This is just a badge, append the name.</p><p> base.WriteString(Item.Data.ItemName);</p><p> }</p><p> else</p><p> {</p><p> base.WriteInteger(Item.Data.SpriteId);</p><p> if (Item.Data.InteractionType == InteractionType.WALLPAPER || Item.Data.InteractionType == InteractionType.FLOOR || Item.Data.InteractionType == InteractionType.LANDSCAPE)</p><p> {</p><p> base.WriteString(Item.Name.Split('_')[2]);</p><p> }</p><p> else if (Item.Data.InteractionType == InteractionType.BOT)//Bots</p><p> {</p><p> CatalogBot CatalogBot = null;</p><p> if (!PlusEnvironment.GetGame().GetCatalog().TryGetBot(Item.ItemId, out CatalogBot))</p><p> base.WriteString("hd-180-7.ea-1406-62.ch-210-1321.hr-831-49.ca-1813-62.sh-295-1321.lg-285-92");</p><p> else</p><p> base.WriteString(CatalogBot.Figure);</p><p> }</p><p> else if (Item.ExtraData != null)</p><p> {</p><p> base.WriteString(Item.ExtraData != null ? Item.ExtraData : string.Empty);</p><p> }</p><p> base.WriteInteger(Item.Amount);</p><p> base.WriteBoolean(Item.IsLimited); // IsLimited</p><p> if (Item.IsLimited)</p><p> {</p><p> base.WriteInteger(Item.LimitedEditionStack);</p><p> base.WriteInteger(Item.LimitedEditionStack - Item.LimitedEditionSells);</p><p> }</p><p> }</p><p> base.WriteInteger(0); //club_level</p><p> base.WriteBoolean(ItemUtility.CanSelectAmount(Item));</p><p></p><p> base.WriteBoolean(false);// TODO: Figure out</p><p> base.WriteString("");//previewImage -> e.g; catalogue/pet_lion.png</p><p> }</p><p> }</p><p> }</p><p> }</p><p> else</p><p> base.WriteInteger(0);</p><p> base.WriteInteger(-1);</p><p> base.WriteBoolean(false);</p><p></p><p> base.WriteInteger(PlusEnvironment.GetGame().GetCatalog().GetPromotions().ToList().Count);//Count</p><p> foreach (CatalogPromotion Promotion in PlusEnvironment.GetGame().GetCatalog().GetPromotions().ToList())</p><p> {</p><p> base.WriteInteger(Promotion.Id);</p><p> base.WriteString(Promotion.Title);</p><p> base.WriteString(Promotion.Image);</p><p> base.WriteInteger(Promotion.Unknown);</p><p> base.WriteString(Promotion.PageLink);</p><p> base.WriteInteger(Promotion.ParentId);</p><p> }</p><p> if (Page.Template.Equals("vip_buy"))</p><p> {</p><p> base.WriteInteger(0); //Page ID</p><p> base.WriteString("NORMAL");</p><p> base.WriteString("vip_buy");</p><p> base.WriteInteger(2);</p><p> base.WriteString("hc2_clubtitle");</p><p> base.WriteString("clubcat_pic");</p><p> base.WriteInteger(0); // Nueva Release</p><p> base.WriteInteger(0);</p><p> base.WriteInteger(-1);</p><p> base.WriteBoolean(false);</p><p></p><p> if (Page.Template.Equals("club_gifts"))</p><p> {</p><p> base.WriteString("club_gifts");</p><p> base.WriteInteger(</p><p>);</p><p> base.WriteString(Convert.ToString(Page.PageStrings2));</p><p> base.WriteInteger(1);</p><p> base.WriteString(Convert.ToString(Page.PageStrings2));</p><p> }</p><p> }</p><p> }</p><p> }</p><p> }[/CODE]</p></blockquote><p></p>
[QUOTE="Muff, post: 409635, member: 61877"] [USER=18160]@JMG[/USER] it's plus original one craig released, [URL]http://prntscr.com/f89t5b[/URL][B].[/B] Yeah i assumed it did and here's my CatalogPageMessageComposer for those who are curious. [CODE]using System; using System.Linq; using Plus.Core; using Plus.HabboHotel.Items; using Plus.HabboHotel.Catalog; using Plus.HabboHotel.Catalog.Utilities; namespace Plus.Communication.Packets.Outgoing.Catalog { public class CatalogPageComposer : ServerPacket { public CatalogPageComposer(CatalogPage Page, string CataMode) : base(ServerPacketHeader.CatalogPageMessageComposer) { base.WriteInteger(Page.Id); base.WriteString(CataMode); base.WriteString(Page.Template); base.WriteInteger(Page.PageStrings1.Count); foreach (string s in Page.PageStrings1) { base.WriteString(s); } base.WriteInteger(Page.PageStrings2.Count); foreach (string s in Page.PageStrings2) { base.WriteString(s); } if (!Page.Template.Equals("frontpage") && !Page.Template.Equals("club_buy")) { base.WriteInteger(Page.Items.Count); foreach (CatalogItem Item in Page.Items.Values) { base.WriteInteger(Item.Id); base.WriteString(Item.Name); base.WriteBoolean(false);//IsRentable base.WriteInteger(Item.CostCredits); if (Item.CostDiamonds > 0) { base.WriteInteger(Item.CostDiamonds); base.WriteInteger(5); // Diamonds } else { base.WriteInteger(Item.CostPixels); base.WriteInteger(0); // Type of PixelCost } base.WriteBoolean(ItemUtility.CanGiftItem(Item)); if (Item.Data.InteractionType == InteractionType.DEAL) { foreach (CatalogDeal Deal in Page.Deals.Values) { base.WriteInteger(Deal.ItemDataList.Count);//Count foreach (CatalogItem DealItem in Deal.ItemDataList.ToList()) { base.WriteString(DealItem.Data.Type.ToString()); base.WriteInteger(DealItem.Data.SpriteId); base.WriteString(""); base.WriteInteger(1); base.WriteBoolean(false); } base.WriteInteger(0);//club_level base.WriteBoolean(ItemUtility.CanSelectAmount(Item)); } } else { base.WriteInteger(string.IsNullOrEmpty(Item.Badge) ? 1 : 2);//Count 1 item if there is no badge, otherwise count as 2. { if (!string.IsNullOrEmpty(Item.Badge)) { base.WriteString("b"); base.WriteString(Item.Badge); } base.WriteString(Item.Data.Type.ToString()); if (Item.Data.Type.ToString().ToLower() == "b") { //This is just a badge, append the name. base.WriteString(Item.Data.ItemName); } else { base.WriteInteger(Item.Data.SpriteId); if (Item.Data.InteractionType == InteractionType.WALLPAPER || Item.Data.InteractionType == InteractionType.FLOOR || Item.Data.InteractionType == InteractionType.LANDSCAPE) { base.WriteString(Item.Name.Split('_')[2]); } else if (Item.Data.InteractionType == InteractionType.BOT)//Bots { CatalogBot CatalogBot = null; if (!PlusEnvironment.GetGame().GetCatalog().TryGetBot(Item.ItemId, out CatalogBot)) base.WriteString("hd-180-7.ea-1406-62.ch-210-1321.hr-831-49.ca-1813-62.sh-295-1321.lg-285-92"); else base.WriteString(CatalogBot.Figure); } else if (Item.ExtraData != null) { base.WriteString(Item.ExtraData != null ? Item.ExtraData : string.Empty); } base.WriteInteger(Item.Amount); base.WriteBoolean(Item.IsLimited); // IsLimited if (Item.IsLimited) { base.WriteInteger(Item.LimitedEditionStack); base.WriteInteger(Item.LimitedEditionStack - Item.LimitedEditionSells); } } base.WriteInteger(0); //club_level base.WriteBoolean(ItemUtility.CanSelectAmount(Item)); base.WriteBoolean(false);// TODO: Figure out base.WriteString("");//previewImage -> e.g; catalogue/pet_lion.png } } } } else base.WriteInteger(0); base.WriteInteger(-1); base.WriteBoolean(false); base.WriteInteger(PlusEnvironment.GetGame().GetCatalog().GetPromotions().ToList().Count);//Count foreach (CatalogPromotion Promotion in PlusEnvironment.GetGame().GetCatalog().GetPromotions().ToList()) { base.WriteInteger(Promotion.Id); base.WriteString(Promotion.Title); base.WriteString(Promotion.Image); base.WriteInteger(Promotion.Unknown); base.WriteString(Promotion.PageLink); base.WriteInteger(Promotion.ParentId); } if (Page.Template.Equals("vip_buy")) { base.WriteInteger(0); //Page ID base.WriteString("NORMAL"); base.WriteString("vip_buy"); base.WriteInteger(2); base.WriteString("hc2_clubtitle"); base.WriteString("clubcat_pic"); base.WriteInteger(0); // Nueva Release base.WriteInteger(0); base.WriteInteger(-1); base.WriteBoolean(false); if (Page.Template.Equals("club_gifts")) { base.WriteString("club_gifts"); base.WriteInteger( ); base.WriteString(Convert.ToString(Page.PageStrings2)); base.WriteInteger(1); base.WriteString(Convert.ToString(Page.PageStrings2)); } } } } }[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Habbo club button's
Top