Ignore User Fix UberEmu 100%
Hello ragezone, i fixed up some codes =)
The Ignore function!
How to add?
1.
Code:
Goto uberEmu -> Messages -> Rooms.cs
Replace the voids IgnoreUser() and UnignoreUser() with:
Code:
private void IgnoreUser()
{
Room Room = Session.GetHabbo().CurrentRoom;
if (Room == null)
{
return;
}
uint nulled = Request.PopWiredUInt();
string UserName = Request.PopFixedString();
RoomUser IgnoreUser = Room.GetRoomUserByHabbo(UserName);
if (IgnoreUser == null)
return;
uint IgnoreId = IgnoreUser.GetClient().GetHabbo().Id;
if (Session.GetHabbo().MutedUsers.Contains(IgnoreId))
{
return;
}
Session.GetHabbo().MutedUsers.Add(IgnoreId);
GetResponse().Init(419);
GetResponse().AppendInt32(1);
SendResponse();
}
private void UnignoreUser()
{
Room Room = Session.GetHabbo().CurrentRoom;
if (Room == null)
{
return;
}
uint nulled = Request.PopWiredUInt();
string UserName = Request.PopFixedString();
RoomUser IgnoreUser = Room.GetRoomUserByHabbo(UserName);
if (IgnoreUser == null)
return;
uint IgnoreId = IgnoreUser.GetClient().GetHabbo().Id;
if (!Session.GetHabbo().MutedUsers.Contains(IgnoreId))
{
return;
}
Session.GetHabbo().MutedUsers.Remove(IgnoreId);
GetResponse().Init(419);
GetResponse().AppendInt32(3);
SendResponse();
}
2.
Code:
Goto uberEmu -> HabboHotel -> Rooms -> RoomUser.cs
3.
Replace:
Code:
GetRoom().SendMessage(ChatMessage);
With:
Code:
lock (GetRoom().UserList)
{
foreach (RoomUser User in GetRoom().UserList)
{
if (User.IsBot || User.IsPet || User.GetClient() == null)
continue; // skip these user
if (!User.GetClient().GetHabbo().MutedUsers.Contains(Session.GetHabbo().Id))
{
User.GetClient().SendMessage(ChatMessage);
}
}
}
Thats all! Dont forget to push the thanks button!
Re: Ignore User Fix UberEmu 100%
Re: Ignore User Fix UberEmu 100%
Re: Ignore User Fix UberEmu 100%
There's something about that code which says to me it's not going to work correctly.. and I've not even tested it.
Re: Ignore User Fix UberEmu 100%
Re: Ignore User Fix UberEmu 100%
Quote:
Originally Posted by
wichard
Tell me
Code:
if (User.IsBot || User.IsPet || User.GetClient() == null)
continue;
User.IsBot or User.IsPet or User is Null then continue?
Re: Ignore User Fix UberEmu 100%
Re: Ignore User Fix UberEmu 100%
Quote:
Originally Posted by
wichard
Eh, I didn't see the foreach.
One of those months at the moment. :(
Re: Ignore User Fix UberEmu 100%
Ok btw i've testes it Enough times, and it works =)
Re: Ignore User Fix UberEmu 100%
Re: Ignore User Fix UberEmu 100%
Re: Ignore User Fix UberEmu 100%
Re: Ignore User Fix UberEmu 100%
Excellent, let's see how long it is before it is on Phoenix Emulator :P
Re: Ignore User Fix UberEmu 100%
Quote:
Originally Posted by
Hejula
Excellent, let's see how long it is before it is on Phoenix Emulator :P
Probably already there.
Re: Ignore User Fix UberEmu 100%
Quote:
Originally Posted by
Jontycat
Probably already there.
Nope, Aaron ain't 24/7 on RaGEZONE to copy & paste those fixes soo it would probably be added tommorow in Phoenix
And released in the next build.
Re: Ignore User Fix UberEmu 100%
Quote:
Originally Posted by
PEjump2
Nope, Aaron ain't 24/7 on RaGEZONE to copy & paste those fixes soo it would probably be added tommorow in Phoenix
And released in the next build.
I don't need to be, I have people to lurk for me. trololol
Re: Ignore User Fix UberEmu 100%
Wichard what was wrong with the old Ignore User?
-Slaxxer
Re: Ignore User Fix UberEmu 100%
Quote:
Originally Posted by
DarkBreakX
Wichard what was wrong with the old Ignore User?
-Slaxxer
It didn't ignore the users at all, LOL.
Re: Ignore User Fix UberEmu 100%
Quote:
Originally Posted by
Sojobo
I don't need to be, I have people to lurk for me. trololol
Lol,
Nice release, your contributions to this community is well appreciated.
KEEP IT UP!:ott1:
Re: Ignore User Fix UberEmu 100%
It isn't working 100%
Some people if they chat. The client crashes ;o
Re: Ignore User Fix UberEmu 100%
See , so this is a usefull release , Thanks good release!