Everyone who has never used our Bots before, can test each one for 2 days without any limitation.
The trial is given automatically when you login on the Bot, but in some cases it wouldn't work (security reasons).
If this happens, send me a private message and i will be checking the failed trials manually and adding it for those who didn't get it.
We are looking for resellers who may accept payment methods different from ours, including classictibia's cash, realesta's cash, mastercores' cash, etc. Interested? Click here at anytime.



Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FREE Auto-Responder
#1
Hello.

This script will reply messages received on selected channel only. So if you want to reply messages on "Default" then you must leave "Default" channel selected.
This will NOT reply private messages.

How it works
Once Bot receives a specific message, it will randomly choose one of the possible answers and say it.
Example:
KEY = {'food', 'food plz', 'food?', 'got food?'},
ANSWER = {{'no i need too', 'nope', 'no', 'nah', 'sorry but i need food too :p'}, {'i dont have food..', '...', 'stop spam'}}
Player says: "food"
Bot says: "sorry but i need food too :p"
If player says: "food" again then bot may say "i dont have food".

Recommendations
I truly recommend you guys to change the answers on "CONFIG.IGNORED_MESSAGES" and other answers that Bot may say to avoid being detected using an auto-responder. I also recommend to add more "keywords" that makes script reply onit must reply.

CODE
   local CONFIG = {
      SAFE_LIST = { "Bubble", "Eternal Oblivion" }, -- Players that will not be replied.
      DANGER_LIST = { "Rafael", "System" }, -- GMs.
      LogText = true, -- Log conversatio on file? It will be saved on Bot's folder/files/"[player] - Auto Responder.txt"
      IGNORED_MESSAGES = {'bye, ignored', 'bb, you r ignored', 'waste of time bb', 'no more talk, bye', 'rly? why wasting my time?'}, -- Text to send when ignoring a player.
   }


   --[[ UNLESS YOU ARE GOING TO CHANGE KEYWORDS OR SO AND KNOW WHAT YOU ARE DOING, 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
   }

   local player_name = name()

   local fileName = sprintf('[%s] - Auto Responder', player_name)

   if CONFIG.LogText and not file.exists(fileName) then
      file.clear(fileName)
   end

   AUTO_RESPONDER.SPEECHWORDS = AUTO_RESPONDER.SPEECHWORDS or {
      {
         KEY = {'hi', 'hey', 'hello', 'sup', 'yo', 'yoo', 'hiho', 'huhu', 'man'},
         ANSWER = {{'hi', 'hey', 'hello', 'hiho', 'yo :p', 'sup'}, {'I already said hi.. leave alone or ignored', 'wtf why u spam', 'stop spam or ignored', 'if u spam again im gonna ignore u'}}
      }, 
      {
         KEY = {'food', 'food plz', 'food?', 'got food?'},
         ANSWER = {{'no i need too', 'nope', 'no', 'nah', 'sorry but i need food too :p'}, {'i dont have food..', '...', 'stop spam'}}
      },
      {
         KEY = {'botter', 'bot?', 'ng?', 'probot', 'pro bot', 'elf?', 'botter!', 'you botting?', 'bot', 'fucking botter', 'hi bot', 'bot ?', 'BOT', 'BOTTER', 'booter', 'BOT ?', 'BOT?', 'BOTTER?', 'BOTS', 'BOTTS', 'BOTS?', 'BOTTS?', 'boter', 'BOTER', 'boter?', 'BOTER?'},
         ANSWER = {{'like i would need to use a bot :p', 'hahahaha... NO', 'dont be ridiculous', 'nope', 'nah', 'no mate, i do not bot', 'no i am not'}, {'i dont bot..', 'man i dont need bot'}}
      },
      {
         KEY = {'reported', 'botting', 'cheater', 'cave bot', 'i will report u', 'ja te reportei'},
         ANSWER = {{'sure -.- what ever you say', 'yes of course... NOT', 'whauhauehauhea'}, {'haha noob i dont bot', '-.- no way'}}
      },
      {
         KEY = {'what colour are my shoes?', 'what color is the sky'},
         ANSWER = {{'its blue :D'}, {'u know the color'}}
      },
      {
         KEY = {'no kill', 'mine', 'no attack', 'no atk', 'dont kill them', 'thats mine', 'dont kill pls', 'ks', 'ill ks u', 'dont kill', 'NO KILL'},
         ANSWER = {{'i need exp man :S', 'we all need exp'}, {'i kill what i want', 'haha u funny man'}}
      },
      {
         KEY = {'training', 'training pls', 'skill', 'i skill', 'skill pls', 'skill plz'},
         ANSWER = {{'lol go for it', 'xD ok man but i need exp'}, {'why train hahaha', 'only noob skills'}}
      },
      {
         KEY = {'can you rope me up', 'can you rope me up?', 'rope?', 'rope', 'rope pls', 'rope please', 'rope plz', 'rope me up please'},
         ANSWER = {{'i need hunting sorry', 'sorry leveling atm'}, {'have no rope', 'rope urself', 'rope takes to much time'}}
      },
      {
         KEY = {'noob', 'naab', 'nabb', 'nab', 'noobie', 'newb', 'newbie', '-.- noob', '-.-', 'sai noob', 'NB', 'noobs', 'NOB'},
         ANSWER = {{'-.- noob', '-.- sure man', 'whahaha xD so funny'}, {'stop or ignored', 'annoying.. im going to ignore u'}}
      },
      {
         KEY = {'br?', 'br', 'pl?', 'pl', 'nl', 'nl?', 'be', 'swe', 'pl?', 'swe?', 'br?', 'pl ?', 'be?'},
         ANSWER = {{'no', 'nah'}, {'stop or ignored', 'annoying.. im going to ignore u'}}
      },
      {
         KEY = {'oi', 'hola', 'aaah?', 'para porra', 'para complerar', 'para compra una maguia pliz', 'aff vc p.a'},
         ANSWER = {{'not br', 'english plx'}, {'u blind? i only speak english', 'english only'}}
      },
      {
         KEY = {'no', 'yeah', 'yeah?', 'no?'},
         ANSWER = {{'no?'}, {'no?'}}
      },
      {
         KEY = {':D', ':P', ':(', 'xd', 'ow', ':]', 'ok', 'o', ':@', ':S', 'o.o', ':}', ':p', 'xD', ':/', '=)', ':)', ':(', ':>', '^^'},
         ANSWER = {{':D', ':P', ':)', 'xD', '^^', '^.^', ':>'}}
      },
      {
         KEY = {'respeta', 'respect', 'respeta hijo de puta', 'so respect'},
         ANSWER = {{'huh', 'what?', 'lol', 'xD'}, {'what u mean respect?', 'i dont know respect haha', 'man go away'}}
      },
      {
         KEY = {'lol', 'rofl', 'lmao', 'ftw', 'wtf', 'aff', 'af', 'lol man?', 'lol?', 'wtf?'},
         ANSWER = {{':D', 'rofl', 'haha', 'lmao'}, {'^^', '^.^', ':>'}}
      },
      {
         KEY = {'skills?', 'skill?'},
         ANSWER = {{'very high', 'secret'}, {'i dont skill :D', 'man go look online'}}
      },
      {
         KEY = {'i hunt here', 'i am here', 'me here', "i'm here"},
         ANSWER = {{'sorry i need level', 'leave please', 'leave!'}, {'no i am here', 'im here'}}
      },
      {
         KEY = {'what color does a banana have', 'what is the collor of a banana?', 'what colour is a banana?', 'what color can a banana be'},
         ANSWER = {{'yellow, sometimes green if not to ripe :P why?'}, {'u know the color of bananas...'}}
      },
      {
         KEY = {'play fair and safe', 'play on', 'sorry play on', 'carry on'},
         ANSWER = {{'hehe I will xD'}}
      },
      {
         KEY = {'what are you doing here?', 'what are you doing', 'what are u doing', 'what are u doing?', 'what you doing', 'what u doing?'},
         ANSWER = {{'hunting :p', 'bored'}, {'same thing everyone does..', 'i do same thing as u do'}}
      },
      {
         KEY = {'what colour is the sky?', 'what collor of the sky?', 'what colour is the sky?'},
         ANSWER = {{'blue...', 'red? lol'}, {'...', '..', '....'}}
      },
      {
         KEY = {'leave', 'leave!', 'leave plxx', 'leave now', 'leave plz', 'leave pls', 'leave?', 'leave ?', 'banned or leave', 'leave or banned', 'leave or banned?', 'leave or banned ?', 'no leave?', 'no leave ?'},
         ANSWER = {{'i need exp man :S', 'hauehua i will lvl too'}, {'i wont leave haha', 'u leave..'}}
      },
      {
         KEY = {'sup?', 'sup', 'everything ok?', 'whats up', 'whats up?', 'how are you?', 'yo sup?', 'hows you?'},
         ANSWER = {{'fine but lemme hunt now', 'good i go hunt now'}, {'u already asked me that..',}}
      },
      {
         KEY = {'where you from?', 'where are you from?', 'where are you from', 'where you from'},
         ANSWER = {{'secret ^^'}, {'.. where u from?', 'im from hell huaehuah'}}
      },
      {
         KEY = {'need mana', 'mana gaining',},
         ANSWER = {{'lol k', ' Ok :)'}, {'too bad i cant give u mana hahah', 'go buy potions :D'}}
      },
      {
         KEY = {'pk help', 'pk', 'pks', 'pking', 'help pk', 'pk help me'},
         ANSWER = {{'sorry cant help', 'msg other guy'}, {'want me pk u? xD', 'who pk?'}}
      },
      {
         KEY = {'fuck you', 'fu', 'fuck', 'bitch', 'puta madre', 'fdp', 'kurwa'},
         ANSWER = {{':( not nice man', 'lol noob'}, {'reported'}}
      },
      {
         KEY = {'what is your vocation?', 'voc?', 'vocation?'},
         ANSWER = {{'look at me and youll see ^^'}, {'kina?', 'mage?', 'pally?'}}
      },
      {
         KEY = {'what color does my outfit has?', 'what is the color of my outfit?', 'what color is my outfit?'},
         ANSWER = {{'blue :)', 'yellow xD'}, {'u know the color..'}}
      },
      {
         KEY = {'what monsters are you killing', 'what monsters are killing',},
         ANSWER = {{'are you blind? -.-', 'all the monsters HAHA'}, {'i kill all rofl', 'everything haha'}}
      },
      {
         KEY = {"i'm pro", 'protected', 'protection', 'i have pro', 'protected'},
         ANSWER = {{'and? So do I...'}, {'i dont care bout ur protection', 'ur protector is a noob', 'i can kill ur protector'}}
      },
      {
         KEY = {'?', '?!', '??', '???', 'what?', 'what?!', 'huh', 'afffff'},
         ANSWER = {{'what?', 'hm?','?'}}
      },
      {
         KEY = {'whats your problem?', 'what is your problem?', 'whats ur problem'},
         ANSWER = {{'i got no problem'}, {'u got problem?', 'stop whining', 'wa wa wa'}}
      },
      {
         KEY = {'me so evil', 'i am the devil', 'satan', 'evul'},
         ANSWER = {{'LOL whuauehau'}, {'Im so evil!', 'huaheuae','die'}}
      },
      {
         KEY = {'stop', 'stop plx', 'stop plz', 'stop pls', 'oi stop it', 'stop it'},
         ANSWER = {{'-.- I need level!!'}, {'dont tell me stop noob', 'i do what i want -.-'}}
      },
      {
         KEY = {'ban', 'banned', 'banishment', 'banning you', 'going to ban u', 'going to ban you', 'you gonna be banned', 'you are banned'},
         ANSWER = {{'why man? im not doing anything wrong :S'}, {'i reported u', 'reported man -.-', 'i dont go banned'}}
      },
      {
         KEY = {'help me', 'help', 'help!', 'helping'},
         ANSWER = {{'no man find other help'}, {'i cant help', 'pay 100k i help', 'u pay me for help?'}}
      },
      {
         KEY = {'..i..', '.i.', '.l.', '.1.', 'loser', 'dickhead', 'butthead', 'fucker', 'puto'},
         ANSWER = {{'LOL I laugh at your face'}, {'ur words dont hurt me', 'haha ur mom', 'noob'}}
      },
      {
         KEY = {'what color does an apple have?', 'what color is apples?'},
         ANSWER = {{'Red?', 'Green?'}, {'u know the color...', '...', ',,'}}
      },
      {
         KEY = {'what is my name', 'what is my name?'},
         ANSWER = {{'dont you know your own name? xD'}, {'u tell me -.-', 'pfft noob'}}
      },
      {
         KEY = {'block', 'blocked', 'stuck', 'trap', 'trapped', 'traped', 'haha blocked', 'trap him', 'trap her', 'blocked botter', 'trapped botter'},
         ANSWER = {{'lol funny that you trap me :p'}, {'why u try trap?', 'lol nice try'}}
      },
      {
         KEY = {'time?', 'whats the time', 'clock?', 'time?'},
         ANSWER = {{'lol look at the clock -.-'}, {'time for u to get a watch', 'i unno man'}}
      },
      {
         KEY = {'r please', 'r me', 'r!', 'r me :@', 'r now or dead', 'talk to me please', 'talk to me', 'talk!', 'talk please', 'talk pls', 'talk now'},
         ANSWER = {{'i am', 'lol patience'}, {'how many times must u beg..', 'i r when i want -.-'}}
      },
      {
         KEY = {'how are you?', 'how are u?', 'ho are u?', 'ho are you?'},
         ANSWER = {{'fine thanks', 'good :)'}}
      },
      {
         KEY = {'fun', 'pleasure', 'having fun', 'fun', 'funny', 'having fun?'},
         ANSWER = {{'tibia big fun!'}, {'i have fun laugh at ur face xD'}}
      },
      {
         KEY = {'cool', 'very cool', 'uber cool', 'kewl', 'cewl'},
         ANSWER = {{'yes very cool'}, {'rox', 'i rox', 'u rox', 'sweet', 'awesome'}}
      },
      {
         KEY = {'kill', 'kill them', 'kill monsters'},
         ANSWER = {{'..', '...', 'aff'}}
      },
      {
         KEY = {'..','.','...'},
         ANSWER = {{'??', '?', '???'}}
      },
      {
         KEY = {'bad', 'good', 'sucks', 'great'},
         ANSWER = {{'yeps'}, {'nopes'}}
      },
      {
         KEY = {'****', 'xeno', 'xb', '******', 'red bot', '*******', 'bottt', 'rbp'},
         ANSWER = {{'what that?', 'wtf u saying?', '???'}}
      },
      {
         KEY = {'heal', 'healing please', 'heal plx', 'heal plz',},
         ANSWER = {{'heal urself..', 'go ask someone else'}, {'i cant heal u', 'heal me first'}}
      },
      {
         KEY = {'hehe', 'haha', 'hihi'},
         ANSWER = {{'^^', ':p', 'hihi', 'haha'}}
      },
      {
         KEY = {'friends?', 'friend', 'friend?', 'friends', 'amigo', 'add vip'},
         ANSWER = {{'il think about it :]'}, {'no', 'noo!'}}
      },
      {
         KEY = {'runemaking', 'runes', 'rune', 'runes plz'},
         ANSWER = {{'why?'}}
      },
      {
         KEY = {'fishing', 'fishing rod', 'fish plx'},
         ANSWER = {{'yes i can fish good', 'im a fishing owner lol'}, {'no have', 'dont have fish'}}
      },
      {
         KEY = {'type', 'type', 'typ fast', 'fast', 'fast typer :D', 'very fast typer'},
         ANSWER = {{'yes im really fast', 'train a lot on speed', 'im one hell of a racemachine'}}
      },
      {
         KEY = {'nice', 'very nice'},
         ANSWER = {{'nice! :D'}, {'nice frei itan?', 'grats', 'awesome'}}
      },
      {
         KEY = {'what world do you play?', 'world?', 'world', 'what world is this?'},
         ANSWER = {{'meh', 'unno'}}
      },
      {
         KEY = {'what is your name?', 'name?', 'rl name?', 'your name?'},
         ANSWER = {{'Go check online'}}
      },
      {
         KEY = {'good exp?', 'enough exp?', 'is the cave big enough?', 'cave big', 'big cave?', 'explore', 'cave big enough for 2 of us'},
         ANSWER = {{'leave i need full exp', 'leave now', 'leave grrr'}}
      },
      {
         KEY = {'what color is your hair?', 'hair?'},
         ANSWER = {{'green? xD', 'brown? haha'}, {'why u want to know?', 'why?'}}
      },
      {
         KEY = {'how do you talk?', 'how do you talk to people?', 'how to talk?'},
         ANSWER = {{'type and press enter...'}}
      },
      {
         KEY = {'what is the name of this game?', 'name of this game?', 'how is this game called?', 'what is this game called?'},
         ANSWER = {{'Tibia? :p'}}
      },
      {
         KEY = {'bye', 'cya', 'see you later', 'im leave', 'see ya', 'baba', 'bb', 'goodbye', 'good bye', 'adios'},
         ANSWER = {{'cya', 'bb', 'bye', 'adios', 'See you later'}, {'leave already rofl', 'talk to u later'}}
      },
      {
         KEY = {'think your cool?', 'think you are cool?'},
         ANSWER = {{'my mum said i was cool =]', 'cooler than you :p'}, {'i am very cool haha', 'i rox mans'}}
      },
      {
         KEY = {'stop killing my stuff', 'i was here first', ' i first', 'stop kill', 'stop killing'},
         ANSWER = {{'now its mine haha', 'i here', 'mine', 'grrr'}, {'stop whine', 'wah wah wah whine', '-tear-'}}
      },
      {
         KEY = {'auto responder?', 'auto respond', 'autorespond', 'responder?', 'auto responder ?', 'auto responder', 'auto?', 'autoanswer?', 'autoanswer'},
         ANSWER = {{':o tibia has that now? wow lol'}, {' u are one funny man', 'hahahaha'}}
      },
      {
         KEY = {'long?', 'how long?', 'can i hunt?'},
         ANSWER = {{'till I want', '5000 hours', 'all day long'},{'if you spam i will block you'}}
      },
      {   
         KEY = {'u there?', 'u there ?', 'you there?', 'are you there', 'are you there?', 'ta ae?', 'ta aew?', 'ta ai?', 'vc ta ae?', 'vc ta ai?', 'ta no pc?', 'ta no PC?', 'man ta ai?'},
         ANSWER = {{'yes', 'yup', 'sure'},{'Yes bro, I am', 'seriously? -.-', '-.-'}}
      },
      {
         KEY = {'u are not in computer', 'u no use computer', 'u are not there', 'you are not there', 'you are not on the computer', 'you dont use the computer'},
         ANSWER = {{'Yes I am', 'I am', 'uhum, sure bro', 'shut up'},{'dude, do you have problems?', 'are you crazy?', 'gonna ignore you'}}
      },
      {
         KEY = {'dude', 'hey dude', 'yo dude', 'llol'},
         ANSWER = {{'Wasup', 'yoyoyo', 'hey yo', 'whats up'},{'whats up bro', 'hum', 'what...'}}
      },   
   }

   table.insert(CONFIG.SAFE_LIST, player_name)
   table.lower(CONFIG.SAFE_LIST)
   table.lower(CONFIG.DANGER_LIST)

   local MESSAGES = getnewmessages()

   for i,m in pairs(MESSAGES) do
      if m.sender ~= nil and m.sender ~= '' and m.sender:lower() ~= player_name:lower() and (not table.find(CONFIG.SAFE_LIST, m.sender:lower()))  then
         if not AUTO_RESPONDER.IGNORED_PLAYERS["" .. m.sender .. ""] then
            for TALK_INDEX = 1, #AUTO_RESPONDER.SPEECHWORDS do
               if table.find(AUTO_RESPONDER.SPEECHWORDS[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.SPEECHWORDS[TALK_INDEX].ANSWER[AUTO_RESPONDER.PLAYER_MESSAGE_INFO["" .. m.sender .. ""][TALK_INDEX] + 1] then
                           AUTO_RESPONDER.IGNORED_PLAYERS["" .. m.sender .. ""] = true

                           local mustAnswerIgnored = false
                           local firstLetters = string.sub(m.sender, 3)
                           if firstLetters ~= 'CM ' and firstLetters ~= 'GM ' and not table.find(CONFIG.DANGER_LIST, m.sender:lower()) then
                              local creaturesScreen = getcreatures("pfs")
                              for i,j in pairs(creaturesScreen) do
                                 if j.name:lower() == m.sender:lower() and (j.visible or j.outfitid == 321 or j.outfitid == 75) then
                                    mustAnswerIgnored = true
                                    break
                                 end
                              end
                           else
                              mustAnswerIgnored = true
                           end

                           if mustAnswerIgnored then
                              say(CONFIG.IGNORED_MESSAGES[math.random(1, #CONFIG.IGNORED_MESSAGES)])
                              if CONFIG.LogText then
                                 file.writeline(fileName, m.sender .. ": " .. m.content)
                                 file.writeline(fileName, "IGNORED PLAYER: " .. m.sender)
                              end                            
                           end

                           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

                  local mustAnswer = false
                  local firstLetters = string.sub(m.sender, 3)
                  if firstLetters ~= 'CM ' and firstLetters ~= 'GM ' and not table.find(CONFIG.DANGER_LIST, m.sender:lower()) ~= nil then
                     local creaturesScreen = getcreatures("pfs")
                     for i,j in pairs(creaturesScreen) do
                        if j.name:lower() == m.sender:lower() and (j.visible or j.outfitid == 321 or j.outfitid == 75) then
                           mustAnswer = true
                           break
                        end
                     end
                  else
                     mustAnswer = true
                  end

                  if mustAnswer then
                     say(AUTO_RESPONDER.SPEECHWORDS[TALK_INDEX].ANSWER[AUTO_RESPONDER.PLAYER_MESSAGE_INFO["" .. m.sender .. ""][TALK_INDEX] +1 ][math.random(1, #AUTO_RESPONDER.SPEECHWORDS[TALK_INDEX].ANSWER[AUTO_RESPONDER.PLAYER_MESSAGE_INFO["" .. m.sender .. ""][TALK_INDEX] + 1])])
                     if CONFIG.LogText then
                        file.writeline(fileName, m.sender .. ": " .. m.content)
                        file.writeline(fileName, player_name .. ": " .. AUTO_RESPONDER.SPEECHWORDS[TALK_INDEX].ANSWER[AUTO_RESPONDER.PLAYER_MESSAGE_INFO["" .. m.sender .. ""][TALK_INDEX] +1 ][math.random(1, #AUTO_RESPONDER.SPEECHWORDS[TALK_INDEX].ANSWER[AUTO_RESPONDER.PLAYER_MESSAGE_INFO["" .. m.sender .. ""][TALK_INDEX] + 1])])
                     end
                  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



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016