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 Q&A
Plus EMU Spambot Problem
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="Parsov" data-source="post: 452666" data-attributes="member: 68429"><p>Do you not have something like this:</p><p></p><p></p><p><strong>ChatEvent.cs</strong></p><p></p><p>[CODE=csharp]PlusEnvironment.GetGame().GetChatManager().GetLogs().StoreChatlog(new ChatlogEntry(Session.GetHabbo().Id, Room.Id, Message, UnixTimestamp.GetNow(), Session.GetHabbo(), Room));</p><p> string word;</p><p> if (!Session.GetHabbo().GetPermissions().HasRight("word_filter_override") &&</p><p> PlusEnvironment.GetGame().GetChatManager().GetFilter().IsUnnaceptableWord(Message, out word))</p><p> {</p><p> Session.GetHabbo().BannedPhraseCount++;</p><p></p><p> if (Session.GetHabbo().BannedPhraseCount >= 1)</p><p> {</p><p> Session.SendWhisper("Otel icin uygun olmayan bir kelimeden bahsetmistin! uyari: " + Session.GetHabbo().BannedPhraseCount + "/10");</p><p></p><p> DateTime dtDateTime = new DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc);</p><p> dtDateTime = dtDateTime.AddSeconds(PlusEnvironment.GetUnixTimestamp()).ToLocalTime();</p><p></p><p> PlusEnvironment.GetGame().GetClientManager().StaffAlert1(new RoomInviteComposer(int.MinValue, "Spammer: " + Session.GetHabbo().Username + " / Phrase: " + Message + " / Word: " + word.ToUpper() + " / Phase: " + Session.GetHabbo().BannedPhraseCount + " / 10."));</p><p> PlusEnvironment.GetGame().GetClientManager().StaffAlert2(new RoomNotificationComposer("Reklamveren uyarisi:",</p><p> "<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 +</p><p> "</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/" +</p><p> Session.GetHabbo().CurrentRoomId));</p><p> </p><p> if (Session.GetHabbo().BannedPhraseCount >= 10)</p><p> {</p><p> PlusEnvironment.GetGame().GetClientManager().StaffAlert(RoomNotificationComposer.SendBubble("commandsupdated", "KULLANICI " + Session.GetHabbo().Username + " sistem tarafindan otomatik olarak yasaklandi.", ""));</p><p></p><p> PlusEnvironment.GetGame().GetModerationManager().BanUser("System", HabboHotel.Moderation.ModerationBanType.USERNAME, Session.GetHabbo().Username, "Spam yapdigin icin yasaklandin: (" + word + ")", (PlusEnvironment.GetUnixTimestamp() + 78892200));</p><p> Session.Disconnect();</p><p> return;</p><p> }</p><p> return;</p><p> }</p><p></p><p> Session.SendMessage(new ChatComposer(User.VirtualId, "Inappropriate message", 0, Colour));</p><p> return;</p><p> }[/CODE]</p><p></p><p>Pretty sure Plus Emulator has something like this. It'll alert the staff and warn the user.</p><p></p><p>If you don't have something like this you'll need to code more than just what I sent.</p><p></p><p>Or for example if you don't want them saying 1 word multiple times you could also try doing something like:</p><p>[CODE=csharp] Room.GetFilter().CheckMessage(Message);</p><p></p><p> if (Message.StartsWith(":", StringComparison.CurrentCulture) && PlusEnvironment.GetGame().GetChatManager().GetCommands().Parse(Session, Message))</p><p> return;</p><p></p><p> if(Session.GetHabbo().LastMessage == Message)</p><p> {</p><p> Session.GetHabbo().LastMessageCount++;</p><p> if(Session.GetHabbo().LastMessageCount > 3)</p><p> {</p><p> PlusEnvironment.GetGame().GetClientManager().RepeatAlert(new RoomInviteComposer(int.MinValue, "Repeat: " + Session.GetHabbo().Username + " / Phrase: " + Message + " / Times: " + Session.GetHabbo().LastMessageCount + "."));</p><p> Session.GetHabbo().LastMessageCount = 0;</p><p> }</p><p> }[/CODE]</p></blockquote><p></p>
[QUOTE="Parsov, post: 452666, member: 68429"] Do you not have something like this: [B]ChatEvent.cs[/B] [CODE=csharp]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; }[/CODE] 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: [CODE=csharp] 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; } }[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Plus EMU Spambot Problem
Top