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
[HEADERS] PRODUCTION-201812272209-984739530
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="jordynegen11" data-source="post: 442913" data-attributes="member: 83872"><p>[USER=79259]@treebeard[/USER] is right.</p><p></p><p>New structure BadgesComposer:</p><p></p><p>[CODE]INT //unkown</p><p>INT //unkown</p><p>INT //count</p><p>{</p><p> INT // always 1?</p><p> STRING //Badge Name</p><p>}</p><p>[/CODE]</p><p></p><p>PLUS emulator new GetBadgesEvent.cs:</p><p>[CODE]</p><p>using System;</p><p>using System.Linq;</p><p>using System.Text;</p><p></p><p>using Plus.Communication.Packets.Outgoing.Inventory.Badges;</p><p>using Plus.Communication.Packets.Outgoing.Users;</p><p></p><p>namespace Plus.Communication.Packets.Incoming.Inventory.Badges</p><p>{</p><p> class GetBadgesEvent : IPacketEvent</p><p> {</p><p> public void Parse(HabboHotel.GameClients.GameClient Session, ClientPacket Packet)</p><p> {</p><p> Session.SendMessage(new BadgesComposer(Session));</p><p> Session.SendMessage(new HabboUserBadgesComposer(Session.GetHabbo()));</p><p> }</p><p> }</p><p>}</p><p>[/CODE]</p><p></p><p>PLUS emulator new BadgesComposer.cs:</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.GameClients;</p><p>using Plus.HabboHotel.Users.Badges;</p><p></p><p>namespace Plus.Communication.Packets.Outgoing.Inventory.Badges</p><p>{</p><p> class BadgesComposer : ServerPacket</p><p> {</p><p> public BadgesComposer(GameClient Session)</p><p> : base(ServerPacketHeader.BadgesMessageComposer)</p><p> {</p><p> List<Badge> EquippedBadges = new List<Badge>();</p><p></p><p> base.WriteInteger(1);</p><p> base.WriteInteger(0);</p><p> base.WriteInteger(Session.GetHabbo().GetBadgeComponent().Count);</p><p> foreach (Badge Badge in Session.GetHabbo().GetBadgeComponent().GetBadges().ToList())</p><p> {</p><p> if (Badge != null)</p><p> {</p><p> base.WriteInteger(1);</p><p> base.WriteString(Badge.Code);</p><p></p><p> if (Badge.Slot > 0)</p><p> EquippedBadges.Add(Badge);</p><p> }</p><p> else</p><p> {</p><p> base.WriteInteger(0);</p><p> base.WriteString("ABC");</p><p> }</p><p> }</p><p> }</p><p> }</p><p>}</p><p>[/CODE]</p><p></p><p>PLUS emulator new HabboUserBadgesComposer.cs:</p><p>[CODE]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.Users;</p><p>using Plus.HabboHotel.Users.Badges;</p><p></p><p>namespace Plus.Communication.Packets.Outgoing.Users</p><p>{</p><p> class HabboUserBadgesComposer : ServerPacket</p><p> {</p><p> public HabboUserBadgesComposer(Habbo Habbo)</p><p> : base(ServerPacketHeader.HabboUserBadgesMessageComposer)</p><p> {</p><p> base.WriteInteger(Habbo.Id);</p><p> base.WriteInteger(Habbo.GetBadgeComponent().EquippedCount);</p><p></p><p> foreach (Badge Badge in Habbo.GetBadgeComponent().GetBadges().ToList())</p><p> {</p><p> if (Badge.Slot <= 0)</p><p> continue;</p><p></p><p> base.WriteInteger(Badge.Slot);</p><p> base.WriteString(Badge.Code);</p><p> }</p><p> }</p><p> }</p><p>}</p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="jordynegen11, post: 442913, member: 83872"] [USER=79259]@treebeard[/USER] is right. New structure BadgesComposer: [CODE]INT //unkown INT //unkown INT //count { INT // always 1? STRING //Badge Name } [/CODE] PLUS emulator new GetBadgesEvent.cs: [CODE] using System; using System.Linq; using System.Text; using Plus.Communication.Packets.Outgoing.Inventory.Badges; using Plus.Communication.Packets.Outgoing.Users; namespace Plus.Communication.Packets.Incoming.Inventory.Badges { class GetBadgesEvent : IPacketEvent { public void Parse(HabboHotel.GameClients.GameClient Session, ClientPacket Packet) { Session.SendMessage(new BadgesComposer(Session)); Session.SendMessage(new HabboUserBadgesComposer(Session.GetHabbo())); } } } [/CODE] PLUS emulator new BadgesComposer.cs: [CODE] using System; using System.Linq; using System.Text; using System.Collections.Generic; using Plus.HabboHotel.GameClients; using Plus.HabboHotel.Users.Badges; namespace Plus.Communication.Packets.Outgoing.Inventory.Badges { class BadgesComposer : ServerPacket { public BadgesComposer(GameClient Session) : base(ServerPacketHeader.BadgesMessageComposer) { List<Badge> EquippedBadges = new List<Badge>(); base.WriteInteger(1); base.WriteInteger(0); base.WriteInteger(Session.GetHabbo().GetBadgeComponent().Count); foreach (Badge Badge in Session.GetHabbo().GetBadgeComponent().GetBadges().ToList()) { if (Badge != null) { base.WriteInteger(1); base.WriteString(Badge.Code); if (Badge.Slot > 0) EquippedBadges.Add(Badge); } else { base.WriteInteger(0); base.WriteString("ABC"); } } } } } [/CODE] PLUS emulator new HabboUserBadgesComposer.cs: [CODE]using System; using System.Linq; using System.Text; using System.Collections.Generic; using Plus.HabboHotel.Users; using Plus.HabboHotel.Users.Badges; namespace Plus.Communication.Packets.Outgoing.Users { class HabboUserBadgesComposer : ServerPacket { public HabboUserBadgesComposer(Habbo Habbo) : base(ServerPacketHeader.HabboUserBadgesMessageComposer) { base.WriteInteger(Habbo.Id); base.WriteInteger(Habbo.GetBadgeComponent().EquippedCount); foreach (Badge Badge in Habbo.GetBadgeComponent().GetBadges().ToList()) { if (Badge.Slot <= 0) continue; base.WriteInteger(Badge.Slot); base.WriteString(Badge.Code); } } } } [/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
Server Releases
[HEADERS] PRODUCTION-201812272209-984739530
Top