Mousetat

Meep bot nob

Jan 7th, 2017
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. admin="Reshman" --commands: !mod <message>
  2.  
  3. maps={'@6484268', '799141', '1515058', '1519483', '464787', '293487', '848697', '300404', '1659906', '495880', '2408376', '852617', '290388', '492283', '5973058', '290974', '276534', '290865', '958881', '3322939', '280120', '697561', '3480467', '279689', '5964714', '390386', '390383', '481676', '6376931', '391057', '289932', '953515', '3579303', '1533333', '491819', '6456320', '1515058', '464787', '848697', '793117', '495880', '290388', '492283', '390649', '290974', }
  4. tfm.exec.newGame(maps[math.random(1,#maps)])
  5. print(#maps)
  6. function eventNewGame()
  7. tfm.exec.chatMessage("<font color='#E29BD9'>[MEEPbot] "..mes[math.random(1,#mes)].."</font>")
  8. for name,player in pairs(tfm.get.room.playerList) do
  9. tfm.exec.giveMeep(name)
  10. end
  11. end
  12.  
  13. function eventPlayerDied(name)
  14. i=0
  15. for name,player in pairs(tfm.get.room.playerList) do
  16. i=i+1
  17. if player.isDead==true then
  18. i=i-1
  19. else
  20. winner=name
  21. end
  22. end
  23. if i<2 then
  24. tfm.exec.giveCheese(winner)
  25. tfm.exec.playerVictory(winner)
  26. tfm.exec.newGame(maps[math.random(1,#maps)])
  27. end
  28. end
  29.  
  30.  
  31. mes={"Hey you want some MEEP?", "Meep: the most powerful repulsion force." ,"MEEP POWERR!", "Woah, that was so close!", "At your service!", "Never underestimate the Power of Meep", "How to be a pro Meeper?", "Hey I like your cute sexy body *-*", "Mice don't squeak, mice MEEP!"}
  32.  
  33. system.disableChatCommandDisplay("kill", true)
  34. system.disableChatCommandDisplay("mod", true)
  35.  
  36. function eventChatCommand(name,message)
  37. if message=="kill" and name==admin then
  38. system.exit()
  39. elseif string.sub(message,0,3)=="mod" and name==admin then
  40. tfm.exec.chatMessage("<font color='#E29BD9'>"..string.sub(message,5).."</font>")
  41. end
  42. end
Advertisement
Add Comment
Please, Sign In to add comment