Velaski
winner
- Aug 4, 2015
- 562
- 165
Found this on the rival forum and I see a lot of people requesting it.
1. Go to UserDataFactory.cs
Change
to
2. Go to SendMsgEvent.cs and replace everything with
3.Finally, go to BuddyListComposer.cs and replace everything with:
Not even sure if it works but hopefully it does.
I take no credit for this, found it on the rival forum.
1. Go to UserDataFactory.cs
Change
PHP:
return new UserData(UserId, Achievements, favouritedRooms, ignores, badges, friends, requests, rooms, quests, user, Relationships);
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);
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);
}
}
}
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);
}
}
}
}
}
I take no credit for this, found it on the rival forum.