GamerzPlanet - For All Your Online Gaming Needs!!

Go Back   GamerzPlanet - For All Your Online Gaming Needs!! > Online Gaming > FlyFF Discussion



AntiSpam Script

FlyFF Discussion


Reply
 
Thread Tools Display Modes
Old 06-23-2008, 11:29 AM   #1
2.718281828459045
 
nForce's Avatar
 
Last Online: Yesterday 07:39 PM
Join Date: May 2006
Location: Canada
Posts: 567
Thanks: 0
Thanked 2,278 Times in 171 Posts
nForce is on a distinguished road
iTrader: 0 / 0%
Points: 3,844.00
Bank: 114,403.90
Total Points: 118,247.90
AntiSpam Script

Well I've heard reports that there is a bit of spamming taking place in the realm of FlyFF. No one likes spammers, so I've decided to post a quick and dirty AntiSpam script for any GMs that happen across this thread, which I'm quite sure they will.

A few things to note. I'm not sure if /ban is the correct command, so if it is not replace it with whatever is. Feel free to add entries to the blacklist as necessary, following the correct regular expression syntax.

This is not for normal players, so please do not post bug reports.

Code:
---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
---------------------------- FlyFF Automaton - AntiSpam Script ------------------------------
--------------------- Copyright (C) 2008 by dBased. All rights reserved. --------------------
---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------

-------------------------------------------------
------------------- Variables -------------------
-------------------------------------------------
local AntiSpam            = { }
AntiSpam.Commands        = { }
AntiSpam.Enabled        = true
-------------------------------------------------
-------------------------------------------------

-------------------------------------------------
------------------- Blacklist -------------------
-------------------------------------------------
AntiSpam.Blacklist = {
    "www(.*)mercsell(.*)com",
    "www(.*)mmodo(.*)com",
    "www(.*)plsale(.*)com"
}
-------------------------------------------------
-------------------------------------------------

-------------------------------------------------
------------------- Processor -------------------
-------------------------------------------------
function AntiSpam.ProcessEvent ( Source, Text )
    if ( not AntiSpam.Enabled ) then return end
    Input = Text:lower ()
    for k,Entry in pairs(AntiSpam.Blacklist) do
        if ( Input:find ( Entry:lower () ) ~= nil ) then
            ChatF ( "/ban %s", Source )
            Log ( NAME_Warning, string.format ( "Banned %s for uttering: %s", Source, Text ) )
            break
        end
    end
end
-------------------------------------------------
-------------------------------------------------

-------------------------------------------------
----------------- Event Handlers ----------------
-------------------------------------------------
function AntiSpam.OnChat ( Actor, Text )
    if ( Actor == nil ) then return end
    AntiSpam.ProcessEvent ( Actor:Get ( "Name" ), Text )
end

function AntiSpam.OnSay ( Source, Destination, Text )
    AntiSpam.ProcessEvent ( Source, Text )
end

function AntiSpam.OnWhisper ( Source, Destination, Text )
    AntiSpam.ProcessEvent ( Source, Text )
end

function AntiSpam.OnUnload ()
    RemoveCommand ( "AntiSpam" )
end
-------------------------------------------------
-------------------------------------------------

-------------------------------------------------
--------------- Command Handling ----------------
-------------------------------------------------
function AntiSpam.FindCommand ( CommandName )
    if ( CommandName:len () == 0 ) then return nil end
    for k, Command in pairs(AntiSpam.Commands) do
        if ( k:lower () == CommandName:lower () ) then return Command end
    end
    return nil
end

function AntiSpam.CommandHandler ( Arguments, Device )
    if ( Arguments:len () == 0 ) then return false end
    local ArgsPrefix = Arguments:match ( "%w+%s*" )
    local CommandName = ArgsPrefix:match ( "%w+" )
    local CommandArguments = Arguments:sub ( ArgsPrefix:len () + 1 )
    local Command = AntiSpam.FindCommand ( CommandName )
    
    if ( Command ~=nil ) then
        Command ( CommandArguments, Device )
    else
        Log ( NAME_Critical, "Error: No such command exists!", Device )
    end
    
    return true
end
-------------------------------------------------
-------------------------------------------------

-------------------------------------------------
------------------- Commands --------------------
-------------------------------------------------
function AntiSpam.Commands.Enable ( Arguments, Device )
    AntiSpam.Enabled = true
    Log ( NAME_Log, "AntiSpam enabled!", Device )
end

function AntiSpam.Commands.Disable ( Arguments, Device )
    AntiSpam.Enabled = false
    Log ( NAME_Log, "AntiSpam disabled!", Device )
end
-------------------------------------------------
-------------------------------------------------

-------------------------------------------------
----------------- Registration ------------------
-------------------------------------------------
Register ( AntiSpam, "AntiSpam" )
AddCommand ( AntiSpam.CommandHandler, "AntiSpam", "<Command> <Arguments>", "Executes an AntiSpam command!" )
-------------------------------------------------
-------------------------------------------------

---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
Attached Files
File Type: rar AntiSpam.rar (861 Bytes, 33 views)
__________________



Last edited by nForce; 06-24-2008 at 01:50 AM.
nForce is offline   Reply With Quote
The Following 3 Users Say Thank You to nForce For This Useful Post:
areyoucrazy (06-25-2008), Ghetto555 (06-24-2008), Mr.Ics (06-24-2008)
Sponsored Links
Old 06-23-2008, 11:46 AM   #2
Lurker
 
Last Online: 10-05-2008 08:24 AM
Join Date: Jun 2008
Age: 18
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Tom94 is on a distinguished road
iTrader: 0 / 0%
Points: 1,319.26
Bank: 0.00
Total Points: 1,319.26
Re: AntiSpam Script

Nice one but if gms meet ppl like me who spam shout for other ppl or just use many different spams that lil script wont work as they need to add all the spam messages to blacklist ^^

its a pretty nice idea but i dont think it will help alot ;)
Tom94 is offline   Reply With Quote
Old 06-23-2008, 11:48 AM   #3
wtfux
Guest
 
Posts: n/a
iTrader: / %
Points: 0
Bank: 0
Total Points: 0
Re: AntiSpam Script

GMs use automaton :o?
  Reply With Quote
Old 06-23-2008, 12:07 PM   #4
Registered User
 
Last Online: 09-24-2008 10:19 AM
Join Date: Jan 2006
Posts: 36
Thanks: 6
Thanked 1 Time in 1 Post
kfir124 is on a distinguished road
iTrader: 0 / 0%
Points: 5,671.87
Bank: 0.00
Total Points: 5,671.87
Re: AntiSpam Script

Quote:
Originally Posted by wtfux View Post
GMs use automaton :o?
they can :D
kfir124 is offline   Reply With Quote
Old 06-23-2008, 12:14 PM   #5
Registered User
 
Last Online: Yesterday 10:13 AM
Join Date: May 2008
Posts: 41
Thanks: 16
Thanked 5 Times in 5 Posts
FedExx is on a distinguished road
iTrader: 0 / 0%
Points: 1,135.81
Bank: 3,900.23
Total Points: 5,036.04
Re: AntiSpam Script

Quote:
Originally Posted by kfir124 View Post
they can :D
They don't need to, Gm already have all + more of the capabilities of automation. It's hardly anything new for them.
FedExx is offline   Reply With Quote
Old 06-23-2008, 12:36 PM   #6
2.718281828459045
 
nForce's Avatar
 
Last Online: Yesterday 07:39 PM
Join Date: May 2006
Location: Canada
Posts: 567
Thanks: 0
Thanked 2,278 Times in 171 Posts
nForce is on a distinguished road
iTrader: 0 / 0%
Points: 3,844.00
Bank: 114,403.90
Total Points: 118,247.90
Re: AntiSpam Script

Quote:
Originally Posted by FedExx View Post
They don't need to, Gm already have all + more of the capabilities of automation. It's hardly anything new for them.
That's not quite accurate. Yes, they do have privileges to do pretty much anything from spawning items and monsters to banning users from the service. However, the FlyFF client does not offer any platform for scripting or automating such actions. Furthermore, it is quite clear they haven't set up any spam filtering or banning mechanisms server side.

In other words, although FlyFF Automaton does not allow a player to achieve any powers beyond that of a normal player, it does allow tasks to be automated, including administrative tasks if you do have GM privileges.

Your post is a clear indication of your lack of understanding in this area. Simply because they have administrative privileges on the server, does not imply that it comes with a tool set to automate tasks as well. While, that may be possible, from what I've heard it is not the case.
__________________


nForce is offline   Reply With Quote
Old 06-23-2008, 04:49 PM   #7
Registered User
 
Last Online: 07-18-2008 05:37 AM
Join Date: Jun 2007
Location: Cagliari, Italia
Posts: 40
Thanks: 2
Thanked 4 Times in 4 Posts
Porocido is on a distinguished road
iTrader: 0 / 0%
Points: 4,376.80
Bank: 0.00
Total Points: 4,376.80
Re: AntiSpam Script

Nice release nForce.
(;
I'll use this script for the lame people :E
Kthxbye~
Porocido is offline   Reply With Quote
Old 06-23-2008, 05:28 PM   #8
Registered User
 
Last Online: 09-16-2008 04:34 PM
Join Date: Feb 2008
Posts: 53
Thanks: 8
Thanked 2 Times in 2 Posts
Luski14 is on a distinguished road
iTrader: 0 / 0%
Points: 4,692.29
Bank: 0.00
Total Points: 4,692.29
Re: AntiSpam Script

Even though you are not a GM, work for Gala/Aeonsoft or anything...
They should pay you...




And hire you...


This is beautiful work and shouldn't only be recognized by the gaming/cheating community, but the ****ing producers should bow down to your ass. You know more about their game than they do >_>
Luski14 is offline   Reply With Quote
Old 06-23-2008, 06:41 PM   #9
Registered User
 
Last Online: 06-27-2008 08:54 PM
Join Date: Oct 2007
Age: 27
Posts: 27
Thanks: 0
Thanked 1 Time in 1 Post
VampiricAngel is on a distinguished road
iTrader: 0 / 0%
Points: 3,280.35
Bank: 0.00
Total Points: 3,280.35
Re: AntiSpam Script

Quote:
Originally Posted by wtfux View Post
GMs use automaton :o?
why not? they are humans too. :P

Quote:
Originally Posted by Luski14
Even though you are not a GM, work for Gala/Aeonsoft or anything...
They should pay you...




And hire you...


This is beautiful work and shouldn't only be recognized by the gaming/cheating community, but the ****ing producers should bow down to your ass. You know more about their game than they do >_>
Quote:
An individual who breaks a law that conscience tells him is unjust, and who willingly accepts the penalty of imprisonment in order to arouse the conscience of the community over its injustice, is in reality expressing the highest respect for the law. - Dr. Martin Luther King, Jr.
VampiricAngel is offline   Reply With Quote
Old 06-23-2008, 07:19 PM   #10
Registered User
 
Last Online: Yesterday 10:13 AM
Join Date: May 2008
Posts: 41
Thanks: 16
Thanked 5 Times in 5 Posts
FedExx is on a distinguished road
iTrader: 0 / 0%
Points: 1,135.81
Bank: 3,900.23
Total Points: 5,036.04
Re: AntiSpam Script

Quote:
Originally Posted by nForce View Post
That's not quite accurate. Yes, they do have privileges to do pretty much anything from spawning items and monsters to banning users from the service. However, the FlyFF client does not offer any platform for scripting or automating such actions. Furthermore, it is quite clear they haven't set up any spam filtering or banning mechanisms server side.

In other words, although FlyFF Automaton does not allow a player to achieve any powers beyond that of a normal player, it does allow tasks to be automated, including administrative tasks if you do have GM privileges.

Your post is a clear indication of your lack of understanding in this area. Simply because they have administrative privileges on the server, does not imply that it comes with a tool set to automate tasks as well. While, that may be possible, from what I've heard it is not the case.

K
FedExx is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

All times are GMT -7. The time now is 06:14 PM.


Powered by: vBulletin
Copyright ©2008, GamerzPlanet.Net
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Network: GamerzPlanet | ForumzPlanet | GzPUpload | GzPArcade | GzP Host | Poker Tips | Watch Desperate Housewives | Visits: