Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tfm.exec.disableAutoNewGame(false)
- tfm.exec.disableAfkDeath(true)
- tfm.exec.disableAutoShaman(false)
- system.disableChatCommandDisplay("t", true)
- local words = {
- salute = { "hello", "hi", "hola", "hallo", "hey"},
- sweet = { "cookie", "candy", "cake", "pancake", "pie", "gum", "gummybear"},
- filter = { "shit", "fuck", "porn", "p0rn", "dick", "penis", "vigina", "boob", "sex" },
- like = {"like", "love", "<3", "luv", "hug", "kiss", "friend" }
- }
- tfm.exec.chatMessage("<font color='#fffffff'>Chatbot is Here! Type ![message] to talk to it!</font>",nil)
- function firework(x, y, typ)
- local particles = {0,1,2,4,9,11,13}
- local rad = math.random(1,50)
- local num = math.random(20,30)
- local gvel = math.random(2,4)
- local r = math.random(0,1)
- local rand = r==0 and false or true
- local part = particles[math.random(1,#particles)]
- if typ == "circle" then
- for i=1,num do
- local ang = math.rad( 360/num * i)
- local vx = math.sin(ang)*gvel
- local vy = math.cos(ang)*gvel
- local to_show = rand and part or particles[math.random(1,#particles)]
- tfm.exec.displayParticle(to_show, x, y, vx, vy)
- end
- else
- for i=1,num+30 do
- local vy = -math.sqrt(i) * gvel
- local vx = math.sin( math.rad( 360/num * i) ) * gvel
- local to_show = rand and part or particles[math.random(1,#particles)]
- tfm.exec.displayParticle(to_show, x, y, vx, vy)
- end
- end
- end
- function table.find(tbl, value)
- for k,v in pairs(tbl) do
- if v == value then
- return true
- end
- end
- return false
- end
- function eventNewPlayer(name)
- tfm.exec.respawnPlayer(name)
- end
- function displayMessage(id, txt, player)
- tfm.exec.chatMessage("<font color='#009D9D'>[Chatbot]</font><font color='#C2C2DA'> "..txt,player)
- end
- function eventChatCommand(name,message)
- local message = message:lower()
- local args = {}
- for arg in message:gmatch("%S+") do
- args[#args+1] = arg
- end
- if args[1]=="t" and name=="Mousetat" then
- tfm.exec.chatMessage("<font color='#C53DFF'>[~Chatbot Creator]"..args[2].."</font>",nil)
- elseif args[1]=="lol" then
- local answers = {
- "Lick on Lollipop!",
- "Like on Lasers!",
- "Light outsmarts Lurkers!",
- "Live on LoBsters",
- "Leaping on Leopards",
- "Lazers of legs", --< OMG THIS ONE xD
- "Try laughing harder",--me too lol
- "HAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHA"
- }
- local rand=math.random(1,#answers)
- displayMessage(1,""..answers[rand].."</font>")
- elseif args[1]=="rofl" then
- local answers = {
- "Racoons out for logs!", -- SO GENIUN !
- "Roll on flying lions",
- "Reek out flapping leopards",
- "Read on freezing lizards!",
- "Race on frozen lime",
- }
- local rand=math.random(1,#answers)
- displayMessage(1,""..answers[rand].."</font>")
- elseif args[1]=="wtf" then
- local answers = {
- "Wednesday Thursday Friday",
- "When Tig flies",
- "Why time flies?",
- "Who to flick?",
- "We take flippers!",
- }
- local rand=math.random(1,#answers)
- displayMessage(1,""..answers[rand].."</font>")
- elseif args[1]=="win" then
- local answers = {
- "You lost.",
- "Diamonds in the sky !",
- "Reek out flapping leopards",
- "Don't try to hack, haxor!",
- "Wheels In Neon!",
- }
- local rand=math.random(1,#answers)
- displayMessage(1,""..answers[rand].."</font>")
- elseif args[1]=="stop" then
- displayMessage(1,"NO!I WILL NOT STOP UNTIL U CRASH!</font>")
- elseif args[1]=="ban" then
- local answers = {
- "Your demand has been taken into potato",
- "Your demand has been taken into refrigerations",
- "Ban? No no no I don't ban...",
- }
- local rand=math.random(1,#answers)
- displayMessage(1,""..answers[rand].."</font>")
- elseif args[1]=="kill" then
- displayMessage(1,"Rest in pieces</font>")
- tfm.exec.killPlayer(name)
- elseif args[1]=="die" then
- local rand=math.random(1,2)
- if rand==1 then
- displayMessage(1,"No You Die!</font>")
- tfm.exec.killPlayer(name)
- else
- displayMessage(1,"<R><a href='event:die'>Farewell cruel world! Bye Bye!</a></font><N>")
- end
- elseif args[1]=="me" then
- local adjectives = {"worst", "best", "most annoying", "coolest", "stupidest", "noobest", "cutest"}
- local to_use = adjectives[math.random(1,#adjectives)]
- displayMessage(1,""..name.." is the "..to_use.." player on Transformice.</font>")
- elseif args[1]=="troll" then
- for i = 1,10 do
- eventChatCommand(name, "fire")
- end
- elseif args[1]=="rickroll" then
- displayMessage(1,"bit.ly/1c9vo1S")
- elseif message:find("no") then
- local answers = {
- "Yes sweety *-*",
- "But I...I kinda likez you... :(",
- "YEAH BABY!",
- "But...but you were awesome...*cry*",
- "DID YOU JUST SAY NO???",
- "YOU WAN SUM NO?"
- }
- local rand=math.random(1,#answers)
- displayMessage(1,""..answers[rand].."</font>")
- elseif table.find(words.salute, args[1]) then
- local answers = {
- "Hey cutie I stalk you every day",
- "Hello, beauty !",
- "OMG GET ME YOUR PHOTO I WANT IT SO BAD",
- "Hello, what do you want, pervert ?",
- "Hey wanna go out some day?",
- "Sup buddy i like your hair!",
- "Don't talk to me I'm a gangster",
- "Hey do you like me?",
- "HEY CUTIE KAN I CALL YOU BABY?"
- }
- local rand=math.random(1,#answers)
- displayMessage(1,""..answers[rand].."</font>")
- elseif message:find("yes") then
- local answers = {
- "NO I LIKE LOLLIPOPS!",
- "You have been rejected",
- "I don't like you though",
- "YOU WAN SUM YES?",
- "No...NO...NOOOOOOO!",
- "Nope"
- }
- local rand=math.random(1,#answers)
- displayMessage(1,""..answers[rand].."</font>")
- elseif args[1]=="help" and args[2] then
- local answers = {
- "YOU NEED SUM HELP???",
- "Help is NOT available. I am really sorry...",
- "How much will you <R>pay<N>?",
- "dot dot dot dot dot, help required and not prov1,ed.",
- }
- local rand=math.random(1,#answers)
- displayMessage(1,""..answers[rand].."</font>")
- elseif args[1] == "fire" then
- local pp = tfm.get.room.playerList[name]
- local x = pp.x
- local y = pp.y
- firework(x, y, math.random(0,1)==0 and "circle" or nil)
- elseif args[1] == "666" then
- local answers = {
- "( 11 * 101 - 1000 ) * 2 * 3 \n",
- "<R> Tigrounette is watching ...",
- "<J>KEEP OUT.",
- }
- ui.setMapName(answers[math.random(1,#answers)])
- elseif args[1] == "fly" then
- local answers = {
- "YEAH! FLY BABY FLY!",
- "FLY TO THE MOON",
- "I believe I can fly",
- "I believe I can touch the skies!",
- "You wanna fly? SURE!"
- }
- local rand=math.random(1,#answers)
- displayMessage(1,""..answers[rand].."</font>")
- tfm.exec.movePlayer(name,0,0,true,0,-9999,true)
- elseif args[1] == "69" then
- local answers = {
- "You are sick...",
- "Nice position u got there :)",
- "MY FAVOURITE NUMBER!",
- "That's my life summarised",
- "Do you know 6 and 9 together is 69?",
- }
- local rand=math.random(1,#answers)
- displayMessage(1,""..answers[rand].."</font>")
- else -- V put it here instead
- if message:find("pizza") then
- local answers = {
- "Pizza coming !",
- "Bakerbot is at service !",
- "Bakerbot is currently busy.",
- "OMG YOU ALSO LOVE PIZZA ? SURE !",
- }
- local rand=math.random(1,#answers)
- displayMessage(1,""..answers[rand].."</font>")
- elseif message:find("hate") then
- local answers = {
- "I'm sorry !",
- "Chatbot is sorry :(",
- "I love you too !",
- "Pardon me, take this cake as a sorry gift.",
- }
- local rand=math.random(1,#answers)
- displayMessage(1,""..answers[rand].."</font>")
- elseif message:find("sorry") then
- local answers = {
- "It's too late to apologise",
- "Nah it's NOT okay",
- "I don't forgive you",
- "Your apology will be accepted in 999 donkey years",
- "BUT YOU DON'T LOOK SORRY!",
- "Really?"
- }
- local rand=math.random(1,#answers)
- displayMessage(1,""..answers[rand].."</font>")
- else
- local sweet_demand = nil
- local lovely_love = nil
- for k,v in pairs(words.sweet) do
- if message:find(v) then
- sweet_demand = v
- end
- end
- for k,v in pairs(words.like) do
- if message:find(v) then
- lovely_love = v
- end
- end
- if sweet_demand then
- local ans = {
- "the %s is delivered !",
- "Do you really want a tasty %s ?",
- "Oh please, %ss are mine !",
- }
- local rand = math.random(1,#ans)
- displayMessage(1,""..string.format(ans[rand], sweet_demand).."</font>")
- elseif lovely_love then
- local ans = {
- "I love you too! Wanna be friends?",
- "I kinda like you too!",
- "Muuuuaaah!",
- "Come lets get in love",
- "I love you, you love me!",
- "I think I'm likin' it!",
- "Sorry...I don't feel what you feel for me :(",
- "You love me? BUT I HATE YOU!"
- }
- local rand = math.random(1,#ans)
- displayMessage(1,""..string.format(ans[rand], sweet_demand).."</font>")
- else
- local answers = {
- "Chatbot at service !",
- "Try !troll :^)",
- "fire fire fire !",
- "don't chat the number of the devil.",
- "chatting is a bizantical word !",
- "Sorry there is no such language in this entire planet",
- "This is a very weird language",
- "I don't understand what you are saying...",
- "This feels awkward...",
- "STOP SPAMMING PLS!",
- "You are a weirdo",
- "Can you please speak a bit louder?",
- "Can you please speak a bit LOUDER?",
- "You are speaking rubbish...",
- "Yes???",
- "Is Tigrounette a hacker?",
- "Nope",
- "You need a cookie?",
- "You are talking Greek",
- "I don't care!",
- "Do you think I care?",
- "message",
- "Give me a break...",
- "Yo mama so fat...",
- "I am a very nice Chatbot",
- "At your service!",
- "Do you know how to type?",
- "Your presence is very captivating!",
- "lol hahaa"
- }
- local rand = math.random(1,#answers)
- if answers[rand]=="message" then
- displayMessage(1,""..message.."</font>")
- else
- displayMessage(1,""..answers[rand].."</font>")
- end
- end
- end
- end
- end
- function eventTextAreaCallback(textAreaID, playerName, callback)
- if callback=="cake" then
- for name,player in pairs(tfm.get.room.playerList) do
- if name==playerName then
- tfm.exec.addShamanObject(104,player.x,player.y,0,0,0,false)
- end
- end
- elseif callback=="die" then
- system.exit()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment