Advertisement
Guest User

Evento Tribo BETA

a guest
Nov 26th, 2014
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. for i in pairs(tfm.get.room.playerList) do
  2. system.bindMouse(i,true)
  3. end
  4.  
  5. function eventMouse(p,x,y)
  6. tfm.exec.movePlayer(p,x,y)
  7. end
  8.  
  9. function eventPlayerGetCheese(p)
  10. tfm.exec.killPlayer(p)
  11. end
  12.  
  13. for i in pairs(tfm.get.room.playerList) do
  14. tfm.exec.giveMeep(i)
  15. end
  16.  
  17. nomedobot="Jingle"
  18. cmm="BR";
  19. mensagens={
  20.  
  21. ["boasvindas"]="Bem Vindo(a) , ao Evento de Natal! Chegue até o Jingle sem pegar nenhum queijo! Ao clicar na tela você teleporta! Boa Sorte!";
  22. ["recrute"]="Preste Atenção!";
  23. ["minigames"]="Temos alguns minigames como : Deathmatch , prophunt e Muito Mais !";
  24. ["regras"]="Chegue até o Jingle sem pegar nenhum queijo! Ao clicar na tela você teleporta! Boa Sorte!";
  25. };
  26. msg={
  27. ["atv"]=false;
  28. };
  29. -- Inicio do script
  30. print("<VP>Bot messagens<V> inciado!")
  31. ui.addTextArea(0,"<#EB1D51='#F0A78E'>> [".. cmm.."] [<#EB1D51='#E88F4F'><a href='event:fechar'>".. nomedobot.."</a></font>] ".. mensagens.boasvindas.."</font>",NIL,6,368,478,30,0x1C3C41,0x1C3C41,0.9,true)
  32. -- Novo jogador entra na sala
  33. function eventNewPlayer(player)
  34. ui.addTextArea(0,"<font color='#F0A78E'>> [".. cmm.."] [<#EB1D51='#E88F4F'><a href='event:fechar'>".. nomedobot.."</a></font>] ".. mensagens.boasvindas.."</font>",NIL,6,368,478,30,0x1C3C41,0x1C3C41,0.9,true)
  35. end
  36. -- Comandos
  37. function eventChatCommand(player,cm)
  38. if mensagens[cm] then
  39. textarea(player,mensagens[cm])
  40. end
  41. system.disableChatCommandDisplay(cm, true)
  42. end
  43. -- Text ara
  44. function textarea(player,msg)
  45. ui.addTextArea(0,"<font color='#F0A78E'>> [".. cmm.."] [<r='#E88F4F'><a href='event:fechar'>".. nomedobot.."</a></font>] ".. msg.."</font</font>",player,6,368,478,30,0x1C3C41,0x1C3C41,0.9,true)
  46. end
  47. -- Links de uma textarea
  48.  
  49. function eventTextAreaCallback(id,player,link)
  50. if link == "fechar" then
  51. ui.removeTextArea(0,player)
  52. end
  53. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement