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
[PLUS][FEATURE] Staff Chat
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="Velaski" data-source="post: 395608" data-attributes="member: 61835"><p>Found this on the rival forum and I see a lot of people requesting it.</p><p> </p><p>1. Go to UserDataFactory.cs</p><p></p><p>Change </p><p>[PHP] return new UserData(UserId, Achievements, favouritedRooms, ignores, badges, friends, requests, rooms, quests, user, Relationships);</p><p>[/PHP]</p><p></p><p>to</p><p>[PHP]if (user.Rank >= 6) //Change it to the minimum rank you want</p><p> friends.Add(0x7fffffff, new MessengerBuddy(0x7fffffff, "Staff Chat", "hr-831-45.fa-1206-91.sh-290-1331.ha-3129-100.hd-180-2.cc-3039-73.ch-3215-92.lg-270-73", "Solo Staffs", 0, true, false));</p><p> return new UserData(UserId, Achievements, favouritedRooms, ignores, badges, friends, requests, rooms, quests, user, Relationships);[/PHP]</p><p></p><p>2. Go to SendMsgEvent.cs and replace everything with</p><p>[PHP]using System;</p><p>using System.Linq;</p><p>using System.Text;</p><p>using System.Collections.Generic;</p><p>using Plus.Communication.Packets.Outgoing.Messenger;</p><p></p><p>namespace Plus.Communication.Packets.Incoming.Messenger</p><p>{</p><p> class SendMsgEvent : IPacketEvent</p><p> {</p><p> public void Parse(HabboHotel.GameClients.GameClient Session, ClientPacket Packet)</p><p> {</p><p> if (Session == null || Session.GetHabbo() == null || Session.GetHabbo().GetMessenger() == null)</p><p> return;</p><p></p><p> int userId = Packet.PopInt();</p><p> if (userId == 0 || userId == Session.GetHabbo().Id)</p><p> return;</p><p></p><p> string message = PlusEnvironment.GetGame().GetChatManager().GetFilter().CheckMessage(Packet.PopString());</p><p> if (string.IsNullOrWhiteSpace(message))</p><p> return;</p><p></p><p></p><p> if (Session.GetHabbo().TimeMuted > 0)</p><p> {</p><p> Session.SendNotification("Oops, you're currently muted - you cannot send messages.");</p><p> return;</p><p> }</p><p></p><p> if (userId == 0x7fffffff)</p><p> {</p><p></p><p> PlusEnvironment.GetGame().GetClientManager().StaffAlert(new NewConsoleMessageComposer(0x7fffffff, Session.GetHabbo().Username + ": " + message), Session.GetHabbo().Id);</p><p> return;</p><p> }</p><p></p><p></p><p> Session.GetHabbo().GetMessenger().SendInstantMessage(userId, message);</p><p></p><p> }</p><p> }</p><p>}[/PHP]</p><p></p><p>3.Finally, go to BuddyListComposer.cs and replace everything with:</p><p>[PHP]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.Messenger;</p><p>using Plus.HabboHotel.Users.Relationships;</p><p></p><p>namespace Plus.Communication.Packets.Outgoing.Messenger</p><p>{</p><p> class BuddyListComposer : ServerPacket</p><p> {</p><p> public BuddyListComposer(ICollection<MessengerBuddy> Friends, Habbo Player)</p><p> : base(ServerPacketHeader.BuddyListMessageComposer)</p><p> {</p><p> base.WriteInteger(1);</p><p> base.WriteInteger(0);</p><p></p><p> base.WriteInteger(Friends.Count);</p><p> foreach (MessengerBuddy Friend in Friends.ToList())</p><p> {</p><p> if (Friend.Id == 0x7fffffff)</p><p> {</p><p> base.WriteInteger(0x7fffffff);</p><p> base.WriteString(Friend.mUsername);</p><p> base.WriteInteger(1);//Gender.</p><p> base.WriteBoolean(true);</p><p> base.WriteBoolean(Friend.InRoom);</p><p> base.WriteString(Friend.mLook);</p><p> base.WriteInteger(0); // category id</p><p> base.WriteString(string.Empty);</p><p> base.WriteString(string.Empty);//Alternative name?</p><p> base.WriteString(string.Empty);</p><p> base.WriteBoolean(true);</p><p> base.WriteBoolean(false);</p><p> base.WriteBoolean(false);//Pocket Habbo user.</p><p> base.WriteShort(0);</p><p></p><p></p><p> }</p><p> else</p><p> {</p><p> Relationship Relationship = Player.Relationships.FirstOrDefault(x => x.Value.UserId == Convert.ToInt32(Friend.UserId)).Value;</p><p></p><p> base.WriteInteger(Friend.Id);</p><p> base.WriteString(Friend.mUsername);</p><p> base.WriteInteger(1);//Gender.</p><p> base.WriteBoolean(Friend.IsOnline);</p><p> base.WriteBoolean(Friend.IsOnline && Friend.InRoom);</p><p> base.WriteString(Friend.IsOnline ? Friend.mLook : string.Empty);</p><p> base.WriteInteger(0); // category id</p><p> base.WriteString(Friend.IsOnline ? Friend.mMotto : string.Empty);</p><p> base.WriteString(string.Empty);//Alternative name?</p><p> base.WriteString(string.Empty);</p><p> base.WriteBoolean(true);</p><p> base.WriteBoolean(false);</p><p> base.WriteBoolean(false);//Pocket Habbo user.</p><p> base.WriteShort(Relationship == null ? 0 : Relationship.Type);</p><p> }</p><p> }</p><p> }</p><p> }</p><p>}[/PHP]</p><p>Not even sure if it works but hopefully it does.</p><p><strong><u>I take no credit for this, found it on the rival forum. </u></strong></p></blockquote><p></p>
[QUOTE="Velaski, post: 395608, member: 61835"] Found this on the rival forum and I see a lot of people requesting it. 1. Go to UserDataFactory.cs Change [PHP] return new UserData(UserId, Achievements, favouritedRooms, ignores, badges, friends, requests, rooms, quests, user, Relationships); [/PHP] to [PHP]if (user.Rank >= 6) //Change it to the minimum rank you want friends.Add(0x7fffffff, new MessengerBuddy(0x7fffffff, "Staff Chat", "hr-831-45.fa-1206-91.sh-290-1331.ha-3129-100.hd-180-2.cc-3039-73.ch-3215-92.lg-270-73", "Solo Staffs", 0, true, false)); return new UserData(UserId, Achievements, favouritedRooms, ignores, badges, friends, requests, rooms, quests, user, Relationships);[/PHP] 2. Go to SendMsgEvent.cs and replace everything with [PHP]using System; using System.Linq; using System.Text; using System.Collections.Generic; using Plus.Communication.Packets.Outgoing.Messenger; namespace Plus.Communication.Packets.Incoming.Messenger { class SendMsgEvent : IPacketEvent { public void Parse(HabboHotel.GameClients.GameClient Session, ClientPacket Packet) { if (Session == null || Session.GetHabbo() == null || Session.GetHabbo().GetMessenger() == null) return; int userId = Packet.PopInt(); if (userId == 0 || userId == Session.GetHabbo().Id) return; string message = PlusEnvironment.GetGame().GetChatManager().GetFilter().CheckMessage(Packet.PopString()); if (string.IsNullOrWhiteSpace(message)) return; if (Session.GetHabbo().TimeMuted > 0) { Session.SendNotification("Oops, you're currently muted - you cannot send messages."); return; } if (userId == 0x7fffffff) { PlusEnvironment.GetGame().GetClientManager().StaffAlert(new NewConsoleMessageComposer(0x7fffffff, Session.GetHabbo().Username + ": " + message), Session.GetHabbo().Id); return; } Session.GetHabbo().GetMessenger().SendInstantMessage(userId, message); } } }[/PHP] 3.Finally, go to BuddyListComposer.cs and replace everything with: [PHP]using System; using System.Linq; using System.Text; using System.Collections.Generic; using Plus.HabboHotel.Users; using Plus.HabboHotel.Users.Messenger; using Plus.HabboHotel.Users.Relationships; namespace Plus.Communication.Packets.Outgoing.Messenger { class BuddyListComposer : ServerPacket { public BuddyListComposer(ICollection<MessengerBuddy> Friends, Habbo Player) : base(ServerPacketHeader.BuddyListMessageComposer) { base.WriteInteger(1); base.WriteInteger(0); base.WriteInteger(Friends.Count); foreach (MessengerBuddy Friend in Friends.ToList()) { if (Friend.Id == 0x7fffffff) { base.WriteInteger(0x7fffffff); base.WriteString(Friend.mUsername); base.WriteInteger(1);//Gender. base.WriteBoolean(true); base.WriteBoolean(Friend.InRoom); base.WriteString(Friend.mLook); base.WriteInteger(0); // category id base.WriteString(string.Empty); base.WriteString(string.Empty);//Alternative name? base.WriteString(string.Empty); base.WriteBoolean(true); base.WriteBoolean(false); base.WriteBoolean(false);//Pocket Habbo user. base.WriteShort(0); } else { Relationship Relationship = Player.Relationships.FirstOrDefault(x => x.Value.UserId == Convert.ToInt32(Friend.UserId)).Value; base.WriteInteger(Friend.Id); base.WriteString(Friend.mUsername); base.WriteInteger(1);//Gender. base.WriteBoolean(Friend.IsOnline); base.WriteBoolean(Friend.IsOnline && Friend.InRoom); base.WriteString(Friend.IsOnline ? Friend.mLook : string.Empty); base.WriteInteger(0); // category id base.WriteString(Friend.IsOnline ? Friend.mMotto : string.Empty); base.WriteString(string.Empty);//Alternative name? base.WriteString(string.Empty); base.WriteBoolean(true); base.WriteBoolean(false); base.WriteBoolean(false);//Pocket Habbo user. base.WriteShort(Relationship == null ? 0 : Relationship.Type); } } } } }[/PHP] Not even sure if it works but hopefully it does. [B][U]I take no credit for this, found it on the rival forum. [/U][/B] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
Server Releases
[PLUS][FEATURE] Staff Chat
Top