Results 1 to 7 of 7

Thread: [ HELP ] ACTION - Respond Private Message

  1. #1
    iBot User
    Join Date
    Sep 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    Question [ HELP ] ACTION - Respond Private Message

    Hello My friends,

    I try to write a Action if some friend send a private message to me in game, my char respond automatically to Him.

    Sample:

    local FriendList = {"Friend1","Friend2"}
    local localchat_messages = getnewmessages("Local Chat")

    for i = 0, localchat_messages do
    -- ...
    -- getnewmessages.type [6]
    end

    But i don't know how i can use type 6 : "Player private message" and how i can open pm chat automatically.

    Anyone have a Idea ?

  2. #2
    Normal User flygt's Avatar
    Join Date
    May 2012
    Posts
    487
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    20
    Rep Power
    5
    Auto Respond
    Ps: use in action, not hud

    Code:
    local CONFIG = {
    
        SAFE_LIST = {"Ropiderz", "Jonatas"},        --  It'll not respond to this people
    
        MINIMUM_LEVEL = 8,                                      --  It'll not respond to people that have less than this level
    
        INPUT_TYPE = "Keyboard keys",                           --  Types could be "Clipboard" or "Keyboard keys"
    
        TYPE_SPEED = {40, 65},                                  --  Type speed, it'll only be considered if "Keyboard keys" was set
    
    }
    
    
    
    --[[ DON'T EDIT BELOW THIS LINE --]]
    
    
    
    AUTO_RESPONDER = AUTO_RESPONDER or {
    
        IGNORED_PLAYERS = {},
    
        PLAYER_MESSAGE_INFO = {},
    
        MESSAGE_RECORDER = {},
    
        TIME_BETWEEN_RESPONCES = 2,
    
        RESPONCE_TIMER = os.time(),
    
        INITIALIZED = false
    
    }
    
    
    
    AUTO_RESPONDER.TALK_WORDS = AUTO_RESPONDER.TALK_WORDS or {
    
        {
    
            KEY = {'hi', 'hello', 'sup', 'yo', 'yoo', 'hiho'},
    
            ANSWER = {{'hi', 'hello', 'hiho', 'yo', 'sup'}, {'i already said hi...', 'stop spam plz', 'ok man you said hi twice'}}
    
        },
    
        {
    
            KEY = {'bot?', 'bot', 'botter', 'bottter', 'botterrr', 'botting', 'you are bot', "you're bot", 'your bot'},
    
            ANSWER = {{'me?', 'me ? lol', 'no man', 'youre wrong', "you're wrong", 'i dont bot'}, {'leave plz', 'stop spam or ignored', 'get out of here', 'stop plz'}}
    
        },
    
        {
    
            KEY = {'auto respond', 'auto responder', 'auto respond ?', 'auto respond?', 'auto responder?', 'auto responder ?', 'auto-respond', 'auto-responder', 'auto-responder?', 'auto-responder ?', 'auto-respond?', 'auto-respond ?'},
    
            ANSWER = {{'lol man', 'lol wtf is this?', "lol'ed now", "tibia has that ?", "hahaha"}, {"man i said no", "stop spaming plz", "bb mate", "a nice feature from humans"}}
    
        },
    
        {
    
            KEY = {'no kill', 'plz no kill', 'dont kill', "i'm skill", 'im skill', 'im skilling', 'plz no kill', "i'm skilling", 'man no kill', 'ks?', 'ks', 'ks lol', 'dont ks', "don't ks"},
    
            ANSWER = {{'sry i need exp', 'i need all exp', 'all exp is mine', 'leave plz i need exp'}, {"i will kill everything", 'i kill what i want', 'ks is fun'}}
    
        },
    
        {
    
            KEY = {'noob', 'n00b', 'nb', 'noob -.-', 'n00b -.-', 'noobie', 'newbie', 'nb plz', 'noob plz'},
    
            ANSWER = {{'noob u', 'noob you', 'nab', 'sure noob', '-.-'}, {'whatever', 'w.e', 'ok man bb', 'noob gtfo'}}
    
        },
    
        {
    
            KEY = {'whats my name?', 'what is my name ?', 'what is my name?', "what's my name?", "what's my name ?"},
    
            ANSWER = {{'look on your character lol', 'your name is noob', 'u dont know how to read ?'}, {'lol man u know your name', 'u know your name stop spam', 'stop spam man'}}
    
        },
    
        {
    
            KEY = {"going to delete you", 'going to delete your char', "i'll delete your char", "i will delete your char", "i'll ban you", "i'll ban u", 'going to ban you', 'going to ban u'},
    
            ANSWER = {{"so you're a gm..", "no you're not", 'ok man do what u want'}, {'ok man come back tomorrow', 'stop man bb', 'stop spam'}}
    
        },
    
        {
    
            KEY = {'fuck you', 'fuck u', 'fuk you', 'fuk u', 'fak you', 'fak u', 'fak', 'fuck', 'damn you'},
    
            ANSWER = {{'not nice man', 'stop', 'i dont like that'}, {'sounds like a you dont like me', 'stop or ignore', 'stop or reported', 'i didnt liked, reported'}}
    
        },
    
        {
    
            KEY = {'leave', 'leave plz', 'leave man', 'leave pls', 'leavee'},
    
            ANSWER = {{'nop', 'sry no', 'nonono', "i'll stay", 'sry bb'}, {'no man byee', 'i will hunt now', 'i am here now begone'}}
    
        },
    
        {
    
            KEY = {'lol', 'rofl', 'lmao', 'ftw', 'wtf', 'haha', 'hehe', 'LMAO', 'ROFL', 'LOL', 'loled', "lol'ed", 'lul', 'lool'},
    
            ANSWER = {{'haha', 'lul', 'lool', 'hehehe', 'rofl', 'roflmao'}, {':)', '^^', ':]', ':>'}}
    
        },
    
        {
    
            KEY = {'how do you type?', 'how do you type ?', 'how you type ?', 'how you type?', 'how to type?', 'how to type ?'},
    
            ANSWER = {{'type text and do enter', 'u need something special', 'u need to be special', 'with fingers', 'with hands'}, {'lol stuff you said', 'man i need to hunt alone', 'bb or ignored'}}
    
        },
    
    }
    
    
    
    if not AUTO_RESPONDER.INITIALIZED then
    
        setsettings("Settings\\Input\\Keyboard\\TypingStyle", CONFIG.INPUT_TYPE)
    
        setsettings('Settings\\Input\\Keyboard\\PressWaitTime', CONFIG.TYPE_SPEED[1] .. ' to ' .. CONFIG.TYPE_SPEED[2])
    
        AUTO_RESPONDER.INITIALIZED = true
    
    end
    
    
    
    local MESSAGES = getnewmessages("Local Chat")
    
    
    
    for INDEX = 0, MESSAGES.count - 1 do
    
        local m = {text = MESSAGES[INDEX].text, sender = MESSAGES[INDEX].sender or '', type = MESSAGES[INDEX].type, content = MESSAGES[INDEX].text:match('%b[]: (.+)') or '', time = MESSAGES[INDEX].text:sub(1, 5), level = tonumber((tostring(string.match(MESSAGES[INDEX].text, '.+ (%b[]): .+')):gsub("[^%d]", ''))) or 0}
    
    
    
        if m.sender:lower() ~= name:lower() and table.find({1, 6}, m.type) and (not table.find(CONFIG.SAFE_LIST, m.sender)) and m.level >= CONFIG.MINIMUM_LEVEL and os.difftime(os.time(), AUTO_RESPONDER.RESPONCE_TIMER) >= AUTO_RESPONDER.TIME_BETWEEN_RESPONCES then
    
            if not AUTO_RESPONDER.IGNORED_PLAYERS["" .. m.sender .. ""] then
    
                for TALK_INDEX = 1, #AUTO_RESPONDER.TALK_WORDS do
    
                    if table.find(AUTO_RESPONDER.TALK_WORDS[TALK_INDEX].KEY, m.content) then
    
                        if AUTO_RESPONDER.PLAYER_MESSAGE_INFO["" .. m.sender .. ""] then
    
                            if AUTO_RESPONDER.PLAYER_MESSAGE_INFO["" .. m.sender .. ""][TALK_INDEX] then
    
                                if not AUTO_RESPONDER.TALK_WORDS[TALK_INDEX].ANSWER[AUTO_RESPONDER.PLAYER_MESSAGE_INFO["" .. m.sender .. ""][TALK_INDEX] + 1] then
    
                                    if m.type == 1 then
    
                                        say('ignored')
    
                                    elseif m.type == 6 then
    
                                        say('@' .. m.sender .. '@ ignored')
    
                                    end
    
                                    AUTO_RESPONDER.IGNORED_PLAYERS["" .. m.sender .. ""] = true
    
                                    return
    
                                end
    
                            else
    
                                AUTO_RESPONDER.PLAYER_MESSAGE_INFO["" .. m.sender .. ""][TALK_INDEX] = 0
    
                            end
    
                        else
    
                            AUTO_RESPONDER.PLAYER_MESSAGE_INFO["" .. m.sender .. ""] = {}
    
                            AUTO_RESPONDER.PLAYER_MESSAGE_INFO["" .. m.sender .. ""][TALK_INDEX] = 0
    
                        end
    
                        if m.type == 1 then
    
                            say(AUTO_RESPONDER.TALK_WORDS[TALK_INDEX].ANSWER[AUTO_RESPONDER.PLAYER_MESSAGE_INFO["" .. m.sender .. ""][TALK_INDEX] +1 ][math.random(1, #AUTO_RESPONDER.TALK_WORDS[TALK_INDEX].ANSWER[AUTO_RESPONDER.PLAYER_MESSAGE_INFO["" .. m.sender .. ""][TALK_INDEX] + 1])])
    
                        elseif m.type == 6 then
    
                            say('*' .. m.sender .. '* ' .. AUTO_RESPONDER.TALK_WORDS[TALK_INDEX].ANSWER[AUTO_RESPONDER.PLAYER_MESSAGE_INFO["" .. m.sender .. ""][TALK_INDEX] +1 ][math.random(1, #AUTO_RESPONDER.TALK_WORDS[TALK_INDEX].ANSWER[AUTO_RESPONDER.PLAYER_MESSAGE_INFO["" .. m.sender .. ""][TALK_INDEX] + 1])])
    
                        end
    
                        AUTO_RESPONDER.PLAYER_MESSAGE_INFO["" .. m.sender .. ""][TALK_INDEX], AUTO_RESPONDER.RESPONCE_TIMER = (AUTO_RESPONDER.PLAYER_MESSAGE_INFO["" .. m.sender .. ""][TALK_INDEX] + 1), os.time()
    
                        return
    
                    end
    
                end
    
                AUTO_RESPONDER.MESSAGE_RECORDER["" .. m.content .. ""] = (AUTO_RESPONDER.MESSAGE_RECORDER["" .. m.content .. ""] or 1) + 1
    
            end
    
        end
    
    end

    Credits: I do not know exactly, I believe is the most Ropiderz, removed this action from a script free area
    Last edited by flygt; 12-09-2013 at 01:22 AM.

  3. #3
    Normal User rafaelcanovas's Avatar
    Join Date
    Sep 2013
    Posts
    132
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    20
    Rep Power
    4
    Quote Originally Posted by flygt View Post
    Auto Respond
    Ps: use in action, not hud

    Code:
    local CONFIG = {
    
        SAFE_LIST = {"Ropiderz", "Jonatas"},        --  It'll not respond to this people
    
        MINIMUM_LEVEL = 8,                                      --  It'll not respond to people that have less than this level
    
        INPUT_TYPE = "Keyboard keys",                           --  Types could be "Clipboard" or "Keyboard keys"
    
        TYPE_SPEED = {40, 65},                                  --  Type speed, it'll only be considered if "Keyboard keys" was set
    
    }
    
    
    
    --[[ DON'T EDIT BELOW THIS LINE --]]
    
    
    
    AUTO_RESPONDER = AUTO_RESPONDER or {
    
        IGNORED_PLAYERS = {},
    
        PLAYER_MESSAGE_INFO = {},
    
        MESSAGE_RECORDER = {},
    
        TIME_BETWEEN_RESPONCES = 2,
    
        RESPONCE_TIMER = os.time(),
    
        INITIALIZED = false
    
    }
    
    
    
    AUTO_RESPONDER.TALK_WORDS = AUTO_RESPONDER.TALK_WORDS or {
    
        {
    
            KEY = {'hi', 'hello', 'sup', 'yo', 'yoo', 'hiho'},
    
            ANSWER = {{'hi', 'hello', 'hiho', 'yo', 'sup'}, {'i already said hi...', 'stop spam plz', 'ok man you said hi twice'}}
    
        },
    
        {
    
            KEY = {'bot?', 'bot', 'botter', 'bottter', 'botterrr', 'botting', 'you are bot', "you're bot", 'your bot'},
    
            ANSWER = {{'me?', 'me ? lol', 'no man', 'youre wrong', "you're wrong", 'i dont bot'}, {'leave plz', 'stop spam or ignored', 'get out of here', 'stop plz'}}
    
        },
    
        {
    
            KEY = {'auto respond', 'auto responder', 'auto respond ?', 'auto respond?', 'auto responder?', 'auto responder ?', 'auto-respond', 'auto-responder', 'auto-responder?', 'auto-responder ?', 'auto-respond?', 'auto-respond ?'},
    
            ANSWER = {{'lol man', 'lol wtf is this?', "lol'ed now", "tibia has that ?", "hahaha"}, {"man i said no", "stop spaming plz", "bb mate", "a nice feature from humans"}}
    
        },
    
        {
    
            KEY = {'no kill', 'plz no kill', 'dont kill', "i'm skill", 'im skill', 'im skilling', 'plz no kill', "i'm skilling", 'man no kill', 'ks?', 'ks', 'ks lol', 'dont ks', "don't ks"},
    
            ANSWER = {{'sry i need exp', 'i need all exp', 'all exp is mine', 'leave plz i need exp'}, {"i will kill everything", 'i kill what i want', 'ks is fun'}}
    
        },
    
        {
    
            KEY = {'noob', 'n00b', 'nb', 'noob -.-', 'n00b -.-', 'noobie', 'newbie', 'nb plz', 'noob plz'},
    
            ANSWER = {{'noob u', 'noob you', 'nab', 'sure noob', '-.-'}, {'whatever', 'w.e', 'ok man bb', 'noob gtfo'}}
    
        },
    
        {
    
            KEY = {'whats my name?', 'what is my name ?', 'what is my name?', "what's my name?", "what's my name ?"},
    
            ANSWER = {{'look on your character lol', 'your name is noob', 'u dont know how to read ?'}, {'lol man u know your name', 'u know your name stop spam', 'stop spam man'}}
    
        },
    
        {
    
            KEY = {"going to delete you", 'going to delete your char', "i'll delete your char", "i will delete your char", "i'll ban you", "i'll ban u", 'going to ban you', 'going to ban u'},
    
            ANSWER = {{"so you're a gm..", "no you're not", 'ok man do what u want'}, {'ok man come back tomorrow', 'stop man bb', 'stop spam'}}
    
        },
    
        {
    
            KEY = {'fuck you', 'fuck u', 'fuk you', 'fuk u', 'fak you', 'fak u', 'fak', 'fuck', 'damn you'},
    
            ANSWER = {{'not nice man', 'stop', 'i dont like that'}, {'sounds like a you dont like me', 'stop or ignore', 'stop or reported', 'i didnt liked, reported'}}
    
        },
    
        {
    
            KEY = {'leave', 'leave plz', 'leave man', 'leave pls', 'leavee'},
    
            ANSWER = {{'nop', 'sry no', 'nonono', "i'll stay", 'sry bb'}, {'no man byee', 'i will hunt now', 'i am here now begone'}}
    
        },
    
        {
    
            KEY = {'lol', 'rofl', 'lmao', 'ftw', 'wtf', 'haha', 'hehe', 'LMAO', 'ROFL', 'LOL', 'loled', "lol'ed", 'lul', 'lool'},
    
            ANSWER = {{'haha', 'lul', 'lool', 'hehehe', 'rofl', 'roflmao'}, {':)', '^^', ':]', ':>'}}
    
        },
    
        {
    
            KEY = {'how do you type?', 'how do you type ?', 'how you type ?', 'how you type?', 'how to type?', 'how to type ?'},
    
            ANSWER = {{'type text and do enter', 'u need something special', 'u need to be special', 'with fingers', 'with hands'}, {'lol stuff you said', 'man i need to hunt alone', 'bb or ignored'}}
    
        },
    
    }
    
    
    
    if not AUTO_RESPONDER.INITIALIZED then
    
        setsettings("Settings\\Input\\Keyboard\\TypingStyle", CONFIG.INPUT_TYPE)
    
        setsettings('Settings\\Input\\Keyboard\\PressWaitTime', CONFIG.TYPE_SPEED[1] .. ' to ' .. CONFIG.TYPE_SPEED[2])
    
        AUTO_RESPONDER.INITIALIZED = true
    
    end
    
    
    
    local MESSAGES = getnewmessages("Local Chat")
    
    
    
    for INDEX = 0, MESSAGES.count - 1 do
    
        local m = {text = MESSAGES[INDEX].text, sender = MESSAGES[INDEX].sender or '', type = MESSAGES[INDEX].type, content = MESSAGES[INDEX].text:match('%b[]: (.+)') or '', time = MESSAGES[INDEX].text:sub(1, 5), level = tonumber((tostring(string.match(MESSAGES[INDEX].text, '.+ (%b[]): .+')):gsub("[^%d]", ''))) or 0}
    
    
    
        if m.sender:lower() ~= name:lower() and table.find({1, 6}, m.type) and (not table.find(CONFIG.SAFE_LIST, m.sender)) and m.level >= CONFIG.MINIMUM_LEVEL and os.difftime(os.time(), AUTO_RESPONDER.RESPONCE_TIMER) >= AUTO_RESPONDER.TIME_BETWEEN_RESPONCES then
    
            if not AUTO_RESPONDER.IGNORED_PLAYERS["" .. m.sender .. ""] then
    
                for TALK_INDEX = 1, #AUTO_RESPONDER.TALK_WORDS do
    
                    if table.find(AUTO_RESPONDER.TALK_WORDS[TALK_INDEX].KEY, m.content) then
    
                        if AUTO_RESPONDER.PLAYER_MESSAGE_INFO["" .. m.sender .. ""] then
    
                            if AUTO_RESPONDER.PLAYER_MESSAGE_INFO["" .. m.sender .. ""][TALK_INDEX] then
    
                                if not AUTO_RESPONDER.TALK_WORDS[TALK_INDEX].ANSWER[AUTO_RESPONDER.PLAYER_MESSAGE_INFO["" .. m.sender .. ""][TALK_INDEX] + 1] then
    
                                    if m.type == 1 then
    
                                        say('ignored')
    
                                    elseif m.type == 6 then
    
                                        say('@' .. m.sender .. '@ ignored')
    
                                    end
    
                                    AUTO_RESPONDER.IGNORED_PLAYERS["" .. m.sender .. ""] = true
    
                                    return
    
                                end
    
                            else
    
                                AUTO_RESPONDER.PLAYER_MESSAGE_INFO["" .. m.sender .. ""][TALK_INDEX] = 0
    
                            end
    
                        else
    
                            AUTO_RESPONDER.PLAYER_MESSAGE_INFO["" .. m.sender .. ""] = {}
    
                            AUTO_RESPONDER.PLAYER_MESSAGE_INFO["" .. m.sender .. ""][TALK_INDEX] = 0
    
                        end
    
                        if m.type == 1 then
    
                            say(AUTO_RESPONDER.TALK_WORDS[TALK_INDEX].ANSWER[AUTO_RESPONDER.PLAYER_MESSAGE_INFO["" .. m.sender .. ""][TALK_INDEX] +1 ][math.random(1, #AUTO_RESPONDER.TALK_WORDS[TALK_INDEX].ANSWER[AUTO_RESPONDER.PLAYER_MESSAGE_INFO["" .. m.sender .. ""][TALK_INDEX] + 1])])
    
                        elseif m.type == 6 then
    
                            say('*' .. m.sender .. '* ' .. AUTO_RESPONDER.TALK_WORDS[TALK_INDEX].ANSWER[AUTO_RESPONDER.PLAYER_MESSAGE_INFO["" .. m.sender .. ""][TALK_INDEX] +1 ][math.random(1, #AUTO_RESPONDER.TALK_WORDS[TALK_INDEX].ANSWER[AUTO_RESPONDER.PLAYER_MESSAGE_INFO["" .. m.sender .. ""][TALK_INDEX] + 1])])
    
                        end
    
                        AUTO_RESPONDER.PLAYER_MESSAGE_INFO["" .. m.sender .. ""][TALK_INDEX], AUTO_RESPONDER.RESPONCE_TIMER = (AUTO_RESPONDER.PLAYER_MESSAGE_INFO["" .. m.sender .. ""][TALK_INDEX] + 1), os.time()
    
                        return
    
                    end
    
                end
    
                AUTO_RESPONDER.MESSAGE_RECORDER["" .. m.content .. ""] = (AUTO_RESPONDER.MESSAGE_RECORDER["" .. m.content .. ""] or 1) + 1
    
            end
    
        end
    
    end

    Credits: I do not know exactly, I believe is the most Ropiderz, removed this action from a script free area
    bro this action work perfect? i'm working, i will test and edit here!
    If I helped you, give me a REP +
    Se eu te ajudei, retribua com um REP+

  4. #4
    Normal User flygt's Avatar
    Join Date
    May 2012
    Posts
    487
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    20
    Rep Power
    5
    Quote Originally Posted by rafaelcanovas View Post
    bro this action work perfect? i'm working, i will test and edit here!
    work perfect me for

  5. #5
    Normal User rafaelcanovas's Avatar
    Join Date
    Sep 2013
    Posts
    132
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    20
    Rep Power
    4
    Quote Originally Posted by flygt View Post
    work perfect me for
    thanks bro, rep+
    If I helped you, give me a REP +
    Se eu te ajudei, retribua com um REP+

  6. #6
    Premium User Eldar's Avatar
    Join Date
    Apr 2013
    Location
    Poland
    Posts
    1,335
    Mentioned
    37 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    62 Post(s)
    Reputation
    159
    Rep Power
    7
    Wrong board, moved to Support & Requests.

  7. #7
    Normal User
    Join Date
    Dec 2013
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    3
    Quote Originally Posted by flygt View Post
    Auto Respond
    Ps: use in action, not hud

    Code:
    local CONFIG = {
    
        SAFE_LIST = {"Ropiderz", "Jonatas"},        --  It'll not respond to this people
    
        MINIMUM_LEVEL = 8,                                      --  It'll not respond to people that have less than this level
    
        INPUT_TYPE = "Keyboard keys",                           --  Types could be "Clipboard" or "Keyboard keys"
    
        TYPE_SPEED = {40, 65},                                  --  Type speed, it'll only be considered if "Keyboard keys" was set
    
    }
    
    
    
    --[[ DON'T EDIT BELOW THIS LINE --]]
    
    
    
    AUTO_RESPONDER = AUTO_RESPONDER or {
    
        IGNORED_PLAYERS = {},
    
        PLAYER_MESSAGE_INFO = {},
    
        MESSAGE_RECORDER = {},
    
        TIME_BETWEEN_RESPONCES = 2,
    
        RESPONCE_TIMER = os.time(),
    
        INITIALIZED = false
    
    }
    
    
    
    AUTO_RESPONDER.TALK_WORDS = AUTO_RESPONDER.TALK_WORDS or {
    
        {
    
            KEY = {'hi', 'hello', 'sup', 'yo', 'yoo', 'hiho'},
    
            ANSWER = {{'hi', 'hello', 'hiho', 'yo', 'sup'}, {'i already said hi...', 'stop spam plz', 'ok man you said hi twice'}}
    
        },
    
        {
    
            KEY = {'bot?', 'bot', 'botter', 'bottter', 'botterrr', 'botting', 'you are bot', "you're bot", 'your bot'},
    
            ANSWER = {{'me?', 'me ? lol', 'no man', 'youre wrong', "you're wrong", 'i dont bot'}, {'leave plz', 'stop spam or ignored', 'get out of here', 'stop plz'}}
    
        },
    
        {
    
            KEY = {'auto respond', 'auto responder', 'auto respond ?', 'auto respond?', 'auto responder?', 'auto responder ?', 'auto-respond', 'auto-responder', 'auto-responder?', 'auto-responder ?', 'auto-respond?', 'auto-respond ?'},
    
            ANSWER = {{'lol man', 'lol wtf is this?', "lol'ed now", "tibia has that ?", "hahaha"}, {"man i said no", "stop spaming plz", "bb mate", "a nice feature from humans"}}
    
        },
    
        {
    
            KEY = {'no kill', 'plz no kill', 'dont kill', "i'm skill", 'im skill', 'im skilling', 'plz no kill', "i'm skilling", 'man no kill', 'ks?', 'ks', 'ks lol', 'dont ks', "don't ks"},
    
            ANSWER = {{'sry i need exp', 'i need all exp', 'all exp is mine', 'leave plz i need exp'}, {"i will kill everything", 'i kill what i want', 'ks is fun'}}
    
        },
    
        {
    
            KEY = {'noob', 'n00b', 'nb', 'noob -.-', 'n00b -.-', 'noobie', 'newbie', 'nb plz', 'noob plz'},
    
            ANSWER = {{'noob u', 'noob you', 'nab', 'sure noob', '-.-'}, {'whatever', 'w.e', 'ok man bb', 'noob gtfo'}}
    
        },
    
        {
    
            KEY = {'whats my name?', 'what is my name ?', 'what is my name?', "what's my name?", "what's my name ?"},
    
            ANSWER = {{'look on your character lol', 'your name is noob', 'u dont know how to read ?'}, {'lol man u know your name', 'u know your name stop spam', 'stop spam man'}}
    
        },
    
        {
    
            KEY = {"going to delete you", 'going to delete your char', "i'll delete your char", "i will delete your char", "i'll ban you", "i'll ban u", 'going to ban you', 'going to ban u'},
    
            ANSWER = {{"so you're a gm..", "no you're not", 'ok man do what u want'}, {'ok man come back tomorrow', 'stop man bb', 'stop spam'}}
    
        },
    
        {
    
            KEY = {'fuck you', 'fuck u', 'fuk you', 'fuk u', 'fak you', 'fak u', 'fak', 'fuck', 'damn you'},
    
            ANSWER = {{'not nice man', 'stop', 'i dont like that'}, {'sounds like a you dont like me', 'stop or ignore', 'stop or reported', 'i didnt liked, reported'}}
    
        },
    
        {
    
            KEY = {'leave', 'leave plz', 'leave man', 'leave pls', 'leavee'},
    
            ANSWER = {{'nop', 'sry no', 'nonono', "i'll stay", 'sry bb'}, {'no man byee', 'i will hunt now', 'i am here now begone'}}
    
        },
    
        {
    
            KEY = {'lol', 'rofl', 'lmao', 'ftw', 'wtf', 'haha', 'hehe', 'LMAO', 'ROFL', 'LOL', 'loled', "lol'ed", 'lul', 'lool'},
    
            ANSWER = {{'haha', 'lul', 'lool', 'hehehe', 'rofl', 'roflmao'}, {':)', '^^', ':]', ':>'}}
    
        },
    
        {
    
            KEY = {'how do you type?', 'how do you type ?', 'how you type ?', 'how you type?', 'how to type?', 'how to type ?'},
    
            ANSWER = {{'type text and do enter', 'u need something special', 'u need to be special', 'with fingers', 'with hands'}, {'lol stuff you said', 'man i need to hunt alone', 'bb or ignored'}}
    
        },
    
    }
    
    
    
    if not AUTO_RESPONDER.INITIALIZED then
    
        setsettings("Settings\\Input\\Keyboard\\TypingStyle", CONFIG.INPUT_TYPE)
    
        setsettings('Settings\\Input\\Keyboard\\PressWaitTime', CONFIG.TYPE_SPEED[1] .. ' to ' .. CONFIG.TYPE_SPEED[2])
    
        AUTO_RESPONDER.INITIALIZED = true
    
    end
    
    
    
    local MESSAGES = getnewmessages("Local Chat")
    
    
    
    for INDEX = 0, MESSAGES.count - 1 do
    
        local m = {text = MESSAGES[INDEX].text, sender = MESSAGES[INDEX].sender or '', type = MESSAGES[INDEX].type, content = MESSAGES[INDEX].text:match('%b[]: (.+)') or '', time = MESSAGES[INDEX].text:sub(1, 5), level = tonumber((tostring(string.match(MESSAGES[INDEX].text, '.+ (%b[]): .+')):gsub("[^%d]", ''))) or 0}
    
    
    
        if m.sender:lower() ~= name:lower() and table.find({1, 6}, m.type) and (not table.find(CONFIG.SAFE_LIST, m.sender)) and m.level >= CONFIG.MINIMUM_LEVEL and os.difftime(os.time(), AUTO_RESPONDER.RESPONCE_TIMER) >= AUTO_RESPONDER.TIME_BETWEEN_RESPONCES then
    
            if not AUTO_RESPONDER.IGNORED_PLAYERS["" .. m.sender .. ""] then
    
                for TALK_INDEX = 1, #AUTO_RESPONDER.TALK_WORDS do
    
                    if table.find(AUTO_RESPONDER.TALK_WORDS[TALK_INDEX].KEY, m.content) then
    
                        if AUTO_RESPONDER.PLAYER_MESSAGE_INFO["" .. m.sender .. ""] then
    
                            if AUTO_RESPONDER.PLAYER_MESSAGE_INFO["" .. m.sender .. ""][TALK_INDEX] then
    
                                if not AUTO_RESPONDER.TALK_WORDS[TALK_INDEX].ANSWER[AUTO_RESPONDER.PLAYER_MESSAGE_INFO["" .. m.sender .. ""][TALK_INDEX] + 1] then
    
                                    if m.type == 1 then
    
                                        say('ignored')
    
                                    elseif m.type == 6 then
    
                                        say('@' .. m.sender .. '@ ignored')
    
                                    end
    
                                    AUTO_RESPONDER.IGNORED_PLAYERS["" .. m.sender .. ""] = true
    
                                    return
    
                                end
    
                            else
    
                                AUTO_RESPONDER.PLAYER_MESSAGE_INFO["" .. m.sender .. ""][TALK_INDEX] = 0
    
                            end
    
                        else
    
                            AUTO_RESPONDER.PLAYER_MESSAGE_INFO["" .. m.sender .. ""] = {}
    
                            AUTO_RESPONDER.PLAYER_MESSAGE_INFO["" .. m.sender .. ""][TALK_INDEX] = 0
    
                        end
    
                        if m.type == 1 then
    
                            say(AUTO_RESPONDER.TALK_WORDS[TALK_INDEX].ANSWER[AUTO_RESPONDER.PLAYER_MESSAGE_INFO["" .. m.sender .. ""][TALK_INDEX] +1 ][math.random(1, #AUTO_RESPONDER.TALK_WORDS[TALK_INDEX].ANSWER[AUTO_RESPONDER.PLAYER_MESSAGE_INFO["" .. m.sender .. ""][TALK_INDEX] + 1])])
    
                        elseif m.type == 6 then
    
                            say('*' .. m.sender .. '* ' .. AUTO_RESPONDER.TALK_WORDS[TALK_INDEX].ANSWER[AUTO_RESPONDER.PLAYER_MESSAGE_INFO["" .. m.sender .. ""][TALK_INDEX] +1 ][math.random(1, #AUTO_RESPONDER.TALK_WORDS[TALK_INDEX].ANSWER[AUTO_RESPONDER.PLAYER_MESSAGE_INFO["" .. m.sender .. ""][TALK_INDEX] + 1])])
    
                        end
    
                        AUTO_RESPONDER.PLAYER_MESSAGE_INFO["" .. m.sender .. ""][TALK_INDEX], AUTO_RESPONDER.RESPONCE_TIMER = (AUTO_RESPONDER.PLAYER_MESSAGE_INFO["" .. m.sender .. ""][TALK_INDEX] + 1), os.time()
    
                        return
    
                    end
    
                end
    
                AUTO_RESPONDER.MESSAGE_RECORDER["" .. m.content .. ""] = (AUTO_RESPONDER.MESSAGE_RECORDER["" .. m.content .. ""] or 1) + 1
    
            end
    
        end
    
    end

    Credits: I do not know exactly, I believe is the most Ropiderz, removed this action from a script free area

    How i can delete ignore settings?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •