Advertisement
NathNath

Untitled

Sep 28th, 2013
92
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. ui.addPopup(1,0,"<p align='center'><font size='20'><b>Bienvenue dans <font face='Time Sans MS'>Special Agents Mices</font> !</b><br></font><font size='12'>Cette tribu est actuellement morte, mais nous essayons de la faire revivre!<br>Si vous shouaitez nous aider, <b>invitez vos amis</b> et faites de la <b>pub</b> !<br><br>Et si vous voulez vous amuser, n'hésitez pas a demander au chef de la tribu Nathaan, ou à d'autres membres !<br><br><font size='10'>Merci d'avoir rejoind la tribu, et surtout, invitez vos amis, et essayez de la faire <b>revivre</b> !</font>",playerName,180,110,480)
  4. end
  5.  
  6. for name,player in pairs(tfm.get.room.playerList) do
  7. eventNewPlayer(name)
  8. end
  9.  
  10. function eventKeyboard(name,key,down,x,y)
  11. if key==32 then
  12. tfm.exec.movePlayer(name,0,0,true,0,-50,false)
  13. end
  14. end
  15.  
  16.  
  17. fly = true
  18.  
  19. function eventNewGame()
  20. for p in pairs(tfm.get.room.playerList) do
  21. tfm.exec.bindKeyboard(p, 32, true, true)
  22. end
  23. end
  24.  
  25. function eventKeyboard(p, key)
  26. if fly and key == 32 then
  27. tfm.exec.movePlayer(p, 0, 0, true, 0, -50, true)
  28. end
  29. end
  30.  
  31. function eventChatCommand(p, c)
  32. if c == "fly" then
  33. fly = not fly
  34. end
  35. end
  36.  
  37. 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")
  38.  
  39. 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")
  40.  
  41. 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")
  42.  
  43. tfm.exec.setUIShamanName("<J><font size='14'><font size='15' color='#E01B5D'>AXIS'</font></font>")
  44.  
  45. tfm.exec.setUIMapName("<J><font size='14'><font size='15' color='#E01B5D'>AXIS'</font></font>")
  46.  
  47. 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)
  48.  
  49. function eventPopupAnswer(popupId,playerName,answer)
  50. if popupId == 0 then
  51. print(playerName..": "..answer)
  52. end
  53. end
  54.  
  55. 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")
  56.  
  57. for name,player in pairs(tfm.get.room.playerList) do
  58. system.bindMouse(name, true)
  59. end
  60.  
  61. function eventMouse(name, x, y)
  62. tfm.exec.addConjuration(x/10, y/10, 10000)
  63. end
  64.  
  65. tfm.exec.disableAutoScore(true)
  66.  
  67. function eventChatCommand(playerName, message)
  68. if message=="comandos" then
  69. 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)
  70. end
  71. if message=="meep" then
  72. tfm.exec.giveMeep(playerName)
  73. end
  74. if message=="vamp" then
  75. tfm.exec.setVampirePlayer(playerName)
  76. end
  77. if message=="death" then
  78. tfm.exec.killPlayer(playerName)
  79. end
  80. if message=="snow" then
  81. tfm.exec.snow()
  82. end
  83. if message=="sham" then
  84. tfm.exec.setShaman(playerName)
  85. end
  86. if message=="black" then
  87. tfm.exec.setNameColor(playerName, 0x000000)
  88. end
  89. if message=="white" then
  90. tfm.exec.setNameColor(playerName, 0xFFFFFF)
  91. end
  92. if message=="red" then
  93. tfm.exec.setNameColor(playerName, 0xFF0000)
  94. end
  95. if message=="orange" then
  96. tfm.exec.setNameColor(playerName, 0xFF8000)
  97. end
  98. if message=="yellow" then
  99. tfm.exec.setNameColor(playerName, 0xFFFF00)
  100. end
  101. if message=="green" then
  102. tfm.exec.setNameColor(playerName, 0x00FF00)
  103. end
  104. if message=="blue" then
  105. tfm.exec.setNameColor(playerName, 0x0000FF)
  106. end
  107. if message=="purple" then
  108. tfm.exec.setNameColor(playerName, 0x660099)
  109. end
  110. if message=="q1" then
  111. ui.addPopup(20,1,"<p align='center'><font size='30'><b><font face='Time Sans MS'>AXIS'</font></b><br></font><font size='15'>We like the tribe ?",all,200,50,400)
  112. end
  113. end
  114.  
  115. function eventEmotePlayed(playerName, emote)
  116. if emote==6 then
  117. ui.addPopup(12,2,"<p align='center'><font size='30'><b><font face='Time Sans MS'>AXIS'</font></b><br></font><font size='15'>Your Special Message",playerName,200,50,400)
  118. end
  119. end
  120.  
  121. function eventPopupAnswer(idpopup, playerName, answer)
  122. if idpopup==12 then
  123. print("<font color='#009D9D'>["..playerName.."]</font> <font color='#C2C2DA'>"..answer.."</font>")
  124. ui.addPopup(13, 0, "<font color='#009D9D' size='15'>["..playerName.."]</font> <font size='15'>"..answer.."</font>", nil, 0, 24, 800)
  125. end
  126. end
  127.  
  128. function eventPopupAnswer(popupId, playerName, reponse)
  129. if (popupId == 20) then
  130. if reponse=="yes" then
  131. ui.addPopup(0,0,playerName.." like the tribe.",everdybody,200,50,100)
  132. end
  133. if reponse=="no" then
  134. ui.addPopup(0,0,playerName.." didn't like the tribe.",everybody,200,100,100)
  135. end
  136. end
  137. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement