Plus EMU Spambot Problem

LAR5

New Member
Aug 23, 2019
5
0
Hey

We recently started Tux Hotel. It is going very well, and we get around 20 online every night. Unfortunately, there is 1 fun nuisance who likes to come online with a spam tool, who can send 1000's of messages in 1 second, which our emulator cannot handle, and therefore fails/gives players enormous annoyance.

We are at a loss, we have tried everything, block recapatcha, VPNs from all countries except Belgium and the Netherlands, but the spammer keeps coming back. The spammer also comes on a VPN, so banning makes no sense.

We have discovered that it is a player/staff member of Meep hotel, since we have contacts with other retro hotels, who had the same thing when they said this had not been fixed, and switched to an emulator other than Plus.

We would like to continue to use the Plus emulator, and therefore we are looking for someone who knows how to combat this spam tool, or where the fault lies in the plus emulator, hopefully, someone can help us!

Thanks!
Post automatically merged:

PS: My discord is LK#0756
 

Parsov

Member
May 18, 2016
315
206
Do you not have something like this:


ChatEvent.cs

C#:
PlusEnvironment.GetGame().GetChatManager().GetLogs().StoreChatlog(new ChatlogEntry(Session.GetHabbo().Id, Room.Id, Message, UnixTimestamp.GetNow(), Session.GetHabbo(), Room));
            string word;
            if (!Session.GetHabbo().GetPermissions().HasRight("word_filter_override") &&
                PlusEnvironment.GetGame().GetChatManager().GetFilter().IsUnnaceptableWord(Message, out word))
            {
                    Session.GetHabbo().BannedPhraseCount++;

                if (Session.GetHabbo().BannedPhraseCount >= 1)
                {
                    Session.SendWhisper("Otel icin uygun olmayan bir kelimeden bahsetmistin! uyari: " + Session.GetHabbo().BannedPhraseCount + "/10");

                    DateTime dtDateTime = new DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc);
                    dtDateTime = dtDateTime.AddSeconds(PlusEnvironment.GetUnixTimestamp()).ToLocalTime();

                    PlusEnvironment.GetGame().GetClientManager().StaffAlert1(new RoomInviteComposer(int.MinValue, "Spammer: " + Session.GetHabbo().Username + " / Phrase: " + Message + " / Word: " + word.ToUpper() + " / Phase: " + Session.GetHabbo().BannedPhraseCount + " / 10."));
                    PlusEnvironment.GetGame().GetClientManager().StaffAlert2(new RoomNotificationComposer("Reklamveren uyarisi:",
                    "<b><font color=\"#B40404\">Bir yaptirima basvurmadan once iyi arastirmayi unutmayin.</font></b><br><br>Word: <b>" + word.ToUpper() + "</b>.<br><br><b>Phrase:</b><br><i>" + Message +
                    "</i>.<br><br><b>Type:</b><br>Oda sohbeti.\r\n" + "<b>USER: " + Session.GetHabbo().Username + "</b><br><b>Sekans:</b> " + Session.GetHabbo().BannedPhraseCount + "/10.", "foto", "Arastirmak", "event:navigator/goto/" +
                    Session.GetHabbo().CurrentRoomId));
                    
                    if (Session.GetHabbo().BannedPhraseCount >= 10)
                    {
                        PlusEnvironment.GetGame().GetClientManager().StaffAlert(RoomNotificationComposer.SendBubble("commandsupdated", "KULLANICI " + Session.GetHabbo().Username + " sistem tarafindan otomatik olarak yasaklandi.", ""));

                        PlusEnvironment.GetGame().GetModerationManager().BanUser("System", HabboHotel.Moderation.ModerationBanType.USERNAME, Session.GetHabbo().Username, "Spam yapdigin icin yasaklandin:  (" + word + ")", (PlusEnvironment.GetUnixTimestamp() + 78892200));
                        Session.Disconnect();
                            return;
                    }
                    return;
                }

                Session.SendMessage(new ChatComposer(User.VirtualId, "Inappropriate message", 0, Colour));
                return;
            }

Pretty sure Plus Emulator has something like this. It'll alert the staff and warn the user.

If you don't have something like this you'll need to code more than just what I sent.

Or for example if you don't want them saying 1 word multiple times you could also try doing something like:
C#:
            Room.GetFilter().CheckMessage(Message);

            if (Message.StartsWith(":", StringComparison.CurrentCulture) && PlusEnvironment.GetGame().GetChatManager().GetCommands().Parse(Session, Message))
                return;

            if(Session.GetHabbo().LastMessage == Message)
            {
                Session.GetHabbo().LastMessageCount++;
                if(Session.GetHabbo().LastMessageCount > 3)
                {
                    PlusEnvironment.GetGame().GetClientManager().RepeatAlert(new RoomInviteComposer(int.MinValue, "Repeat: " + Session.GetHabbo().Username + " / Phrase: " + Message + " / Times: " + Session.GetHabbo().LastMessageCount + "."));
                    Session.GetHabbo().LastMessageCount = 0;
                }
            }
 

Users who are viewing this thread

Top