Advertisement
NathNath

Untitled

Sep 28th, 2013
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function eventNewPlayer(name)
  2. tfm.exec.bindKeyboard(name,32,true,true)
  3. end
  4.  
  5. for name,player in pairs(tfm.get.room.playerList) do
  6. eventNewPlayer(name)
  7. end
  8.  
  9. function eventKeyboard(name,key,down,x,y)
  10. if key==32 then
  11. tfm.exec.movePlayer(name,0,0,true,0,-50,false)
  12. end
  13. end
  14.  
  15.  
  16. fly = true
  17.  
  18. function eventNewGame()
  19. for p in pairs(tfm.get.room.playerList) do
  20. tfm.exec.bindKeyboard(p, 32, true, true)
  21. end
  22. end
  23.  
  24. function eventKeyboard(p, key)
  25. if fly and key == 32 then
  26. tfm.exec.movePlayer(p, 0, 0, true, 0, -50, true)
  27. end
  28. end
  29.  
  30. function eventChatCommand(p, c)
  31. if c == "fly" then
  32. fly = not fly
  33. end
  34. end
  35.  
  36. ui.addTextArea("1","<J><font size='14'><b><font size='20' color='#606090'>¡Bienvenidos a AXIS'!</font></b></font>",name,"280","50","360","99999","0","0")
  37.  
  38. ui.addTextArea("2","<J><font size='14'><font size='20' color='#E01B5D'>¡¡DALE A <b>ESPACIO</b> PARA VOLAR!!</font></font>",name,"200","200","400","100","0","0")
  39.  
  40. ui.addTextArea("3","<J><font face='Soopafresh' color='#2F7FCC' size='15'>Los códigos han sido elaborados por Aritxy, agradecimientos especiales a <b>Zfc</b><N>",name,"20","375","800","99999","0","0")
  41.  
  42. tfm.exec.setUIShamanName("<J><font size='14'><font size='15' color='#E01B5D'>AXIS'</font></font>")
  43.  
  44. tfm.exec.setUIMapName("<J><font size='14'><font size='15' color='#E01B5D'>AXIS'</font></font>")
  45.  
  46. ui.addPopup("4","<J><font size='12'><b><font size='15' color='#009D9D'>¿Te gusta la tribu AXIS'?</font></b></font>" ,player,700,300,190)
  47.  
  48. function eventPopupAnswer(popupId,playerName,answer)
  49. if popupId == 0 then
  50. print(playerName..": "..answer)
  51. end
  52. end
  53.  
  54. ui.addTextArea("5","<J><font size='14'><font size='20' color='#E01B5D'>¡¡CLIKA EN ALGUNA PARTE DEL MAPA PARA <b>CONJUGAR</b>!!</font></font>",name,"200","300","400","99999","0","0")
  55.  
  56. for name,player in pairs(tfm.get.room.playerList) do
  57. system.bindMouse(name, true)
  58. end
  59.  
  60. function eventMouse(name, x, y)
  61. tfm.exec.addConjuration(x/10, y/10, 10000)
  62. end
  63.  
  64. tfm.exec.disableAutoScore(true)
  65.  
  66. function eventChatCommand(playerName, message)
  67. if message=="comandos" then
  68. ui.addPopup("6", 0, "<J><font color='#009D9D' size='15'><b>Comandos:</b> <b>!meep</b> - Activas el meep para ti. <b>!sham</b> - Te conviertes en chamán. <b>!vamp</b> - Te conviertes en vampiro. <b>!death</b> - Mueres. <b>!snow</b> - Empieza a nevar.", playerName, -100, 100, 200)
  69. end
  70. if message=="meep" then
  71. tfm.exec.giveMeep(playerName)
  72. end
  73. if message=="vamp" then
  74. tfm.exec.setVampirePlayer(playerName)
  75. end
  76. if message=="death" then
  77. tfm.exec.killPlayer(playerName)
  78. end
  79. if message=="snow" then
  80. tfm.exec.snow()
  81. end
  82. if message=="sham" then
  83. tfm.exec.setShaman(playerName)
  84. end
  85. if message=="black" then
  86. tfm.exec.setNameColor(playerName, 0x000000)
  87. end
  88. if message=="white" then
  89. tfm.exec.setNameColor(playerName, 0xFFFFFF)
  90. end
  91. if message=="red" then
  92. tfm.exec.setNameColor(playerName, 0xFF0000)
  93. end
  94. if message=="orange" then
  95. tfm.exec.setNameColor(playerName, 0xFF8000)
  96. end
  97. if message=="yellow" then
  98. tfm.exec.setNameColor(playerName, 0xFFFF00)
  99. end
  100. if message=="green" then
  101. tfm.exec.setNameColor(playerName, 0x00FF00)
  102. end
  103. if message=="blue" then
  104. tfm.exec.setNameColor(playerName, 0x0000FF)
  105. end
  106. if message=="purple" then
  107. tfm.exec.setNameColor(playerName, 0x660099)
  108. end
  109. end
  110.  
  111. function eventEmotePlayed(playerName, emote)
  112. if emote==6 then
  113. ui.addPopup(12,2,"<p align='center'><font size='30'><b><font face='Time Sans MS'>Special Agents Mices</font></b><br></font><font size='15'>Your Special Message",playerName,200,50,400)
  114. end
  115. end
  116.  
  117. function eventPopupAnswer(idpopup, playerName, answer)
  118. if idpopup==12 then
  119. print("<font color='#009D9D'>["..playerName.."]</font> <font color='#C2C2DA'>"..answer.."</font>")
  120. ui.addPopup(13, 0, "<font color='#009D9D' size='15'>["..playerName.."]</font> <font size='15'>"..answer.."</font>", nil, 0, 24, 800)
  121. end
  122. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement