Advertisement
Guest User

CHRISTMAAAS

a guest
Nov 23rd, 2014
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.80 KB | None | 0 0
  1. tfm.exec.disableAutoShaman(true)
  2. tfm.exec.newGame([[<C><P D="x_evenements/x_fondNowel2013.jpg" /><Z><S><S Y="397" T="12" P="0,0,0.3,0.2,0,0,0,0" L="800" o="12bd94" m="" X="400" H="25" /><S Y="361" T="12" P="0,0,0.3,0.2,0,0,0,0" L="125" o="12bd94" m="" X="254" H="25" /><S Y="361" T="12" P="0,0,0.3,0.2,0,0,0,0" L="300" o="12bd94" m="" X="136" H="60" /><S Y="201" T="12" P="0,0,0.3,0.2,0,0,0,0" L="20" o="12bd94" m="" X="-10" H="400" /><S Y="201" T="12" P="0,0,0.3,0.2,0,0,0,0" L="20" o="12bd94" m="" X="811" H="400" /><S Y="372" T="12" P="0,0,0.3,0.2,0,0,0,0" L="125" o="12bd94" m="" X="284" H="25" /><S Y="385" T="12" P="0,0,0.3,0.2,0,0,0,0" L="125" o="12bd94" m="" X="312" H="25" /><S Y="316" T="12" P="0,0,0.3,0.2,0,0,0,0" L="140" o="12bd94" m="" X="495" H="10" /><S Y="210" T="12" P="0,0,0.3,0.2,-70,0,0,0" L="160" o="12bd94" m="" X="233" H="10" /><S Y="212" T="12" P="0,0,0.3,0.2,-70,0,0,0" L="160" o="12bd94" m="" X="249" H="10" /><S Y="187" T="12" P="0,0,0.3,0.2,0,0,0,0" L="170" o="12bd94" m="" X="80" H="10" /><S Y="135" T="12" P="0,0,0.3,0.2,0,0,0,0" L="560" o="12bd94" m="" X="536" H="10" /><S Y="108" T="12" P="0,0,0.3,0.2,0,0,0,0" L="40" o="12bd94" m="" X="422" H="40" /><S Y="120" T="12" P="0,0,0.3,0.2,0,0,0,0" L="20" o="12bd94" m="" X="365" H="40" /><S Y="115" T="12" P="0,0,0.3,0.2,0,0,0,0" L="10" o="12bd94" m="" X="656" H="40" /><S Y="107" T="12" P="0,0,0.3,0.2,0,0,0,0" L="10" o="12bd94" m="" X="752" H="50" /><S Y="119" T="12" P="0,0,0.3,0.8,0,0,0,0" L="90" o="12bd94" m="" X="705" H="40" /><S Y="-9" T="12" P="0,0,0.3,0.2,90,0,0,0" L="20" o="12bd94" m="" X="404" H="900" /></S><D><T Y="329" X="91" /><DS Y="317" X="89" /></D><O /></Z></C>]]);
  3. function eventEmotePlayed(k,id)
  4. if (id == 3) then
  5. for loop = 10,0,-1 do
  6. tfm.exec.displayParticle(5,tfm.get.room.playerList[k].x,tfm.get.room.playerList[k].y,math.random(-1,1),math.random(-1,1),math.random(-0.21,0.21),math.random(-0.21,0.21))
  7. end
  8. end
  9. end
  10. tfm.exec.setUIMapName("Encontro Natalino <rose>n")
  11. tfm.exec.setUIShamanName("<rose>vas")
  12. tfm.exec.setNameColor("Tinittee", 0xEB1D51)
  13. tfm.exec.disableAutoNewGame(true)
  14. function sendUi(title, text, player, x, y, width, height)
  15. ui.addTextArea(0, string.format("<font size='14' face='Verdana' color='#2e72cb'><b>%s</font>",title), player, x+width/2, y-28, width+4, height, 0x27373f, 0x27373f, 1, true);
  16. ui.addTextArea(1, text, player, x+width/2+2, y, width, height-30, 0x324650, 0x324650, 1, true);
  17. ui.addTextArea(2, "", player, width+171, y-26, 15, 15, 0x009D9D, 0x009D9D, 1, true);
  18. ui.addTextArea(3, "<font color = '#eb1d51' size='15'><B><a href='event:close'>X</a>", player, width+171, y-30, 15, player, 0, 0, 1, true);
  19. end
  20.  
  21. function main()
  22. sendUi('Enigma', 'Natal: A época de se reunir com a família, trocar presentes, e outras coisas felizes!<br>Vista-se para a melhor época do ano!<br><br>Dica: Comida natalina<br><br><', player, 200, 200, 200, 200)
  23. end
  24.  
  25. function eventChatCommand(player,command)
  26. if command == 'panetone' then
  27. sendUi('1ª PARTE', '<font size="20"><vp>Hmm!</vp><font size="12"><br><br>Monte sua árvore e decore-a!<br>Dica: Luzes<br><rose>e', player, 200, 200, 200, 200)
  28. elseif command == 'pisca-pisca' then
  29. sendUi('2ª PARTE', '<font size="15">As casa ficam lindas com os Pisca-Pisca<font size="12"><br><br>Pegue seu casado, olhe a neve do lado de fora!<br><br>Dica: O que fica nas portas das casas?', player, 200, 200, 200, 200)
  30.  
  31. elseif command == 'guirlandas' then
  32. sendUi('3ª PARTE', '<font size="20">Decorações \Õ/<font size="12"><br><br>O mês de festas está aí. Dezembro é o melhor mês do ano, além das férias, tem as festas de Fim de Ano!<br><br>Dica: Este ano teremos que trocar presentes + 3s<br><rose>ca', player, 200, 200, 200, 200)
  33.  
  34. elseif command == 'presentesss' then
  35. sendUi('4ª PARTE', '<font size="20">Quase lá!<font size="12"><br><br>Você chegou <j>ao final do enigma!<n><br><br>Você precisa adivinhar o <i>comando secreto</i> para você ganhar o queijo! Não diga-o para <b>ninguém</b><br><br>Dica: Mapa + 1ª parte + Shaman + 3ª parte ', player, 200, 200, 200, 200)
  36.  
  37. elseif command == 'nevasca' then
  38. tfm.exec.giveCheese(player)
  39. end
  40.  
  41. end
  42.  
  43. function eventTextAreaCallback(id, player,callback)
  44. if callback == "close" then
  45. for x = 3,0,-1 do
  46. ui.removeTextArea(x)
  47. end
  48. end
  49. end
  50.  
  51. main()
  52. function eventNewPlayer(playerName)
  53. tfm.exec.respawnPlayer(playerName)
  54. end
  55. function eventPlayerDied(playerName)
  56. tfm.exec.respawnPlayer(playerName)
  57. end
  58. system.disableChatCommandDisplay("nevasca")
  59. system.disableChatCommandDisplay("panetone")
  60. system.disableChatCommandDisplay("peru")
  61. system.disableChatCommandDisplay("biscoitos")
  62. system.disableChatCommandDisplay("pisca-pisca")
  63. system.disableChatCommandDisplay("pisca_pisca")
  64. system.disableChatCommandDisplay("piscaspiscas")
  65. system.disableChatCommandDisplay("piscapisca")
  66. system.disableChatCommandDisplay("pisca pisca")
  67. system.disableChatCommandDisplay("guirlandas")
  68. system.disableChatCommandDisplay("guirlanda")
  69. system.disableChatCommandDisplay("Guirlanda")
  70. system.disableChatCommandDisplay("Guirlandas")
  71. system.disableChatCommandDisplay("presentesss")
  72. system.disableChatCommandDisplay("presente")
  73. system.disableChatCommandDisplay("presenteSSS")
  74. system.disableChatCommandDisplay("presente3s")
  75. system.disableChatCommandDisplay("nevasca")
  76. system.disableChatCommandDisplay("nevascas")
  77. system.disableChatCommandDisplay("neve")
  78. system.disableChatCommandDisplay("neige")
  79. system.disableChatCommandDisplay("nevado")
  80. system.disableChatCommandDisplay("nevando")
  81. function eventPlayerWon(playerName)
  82. tfm.exec.respawnPlayer(playerName)
  83. end
  84. tfm.exec.snow("500" , "5")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement