Advertisement
Guest User

asdagt

a guest
Aug 17th, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.26 KB | None | 0 0
  1. tfm.exec.setGameTime (6000, verdadero)
  2. tfm.exec.disableAutoShaman (verdadero)
  3. tfm.exec.disableAutoNewGame (verdadero)
  4. tfm.exec.setUIMapName ("¡El piso es lava!")
  5. tfm.exec.newGame (7214563)
  6. ilosc = 10
  7. tfm.exec.addPhysicObject (1,800,387, {
  8. type = 6,
  9. restitution = 0.2,
  10. friction = 0.3,
  11. width = 1600,
  12. height = 37,
  13. groundCollision = true,
  14. miceCollision = true
  15. })
  16. to = 0
  17. czas = 10
  18. score = 0
  19.  
  20.  
  21. function eventLoop (timeRemaining, timeRemaining)
  22. if (to == 2) then
  23. czas = czas-1
  24. score = score + 1
  25. if (score == 10) luego
  26. por nombre, jugador en parejas (tfm.get.room.playerList) do
  27. tfm.exec .giveMeep (nombre)
  28. final
  29. terminar
  30. si (czas == 3) entonces
  31.  
  32. x = math.random (100,1500)
  33. xx = math.random (100,1500)
  34. idd = math.random (1,7)
  35. id = math.random (1,7)
  36.  
  37.  
  38. usun = tfm.exec.addShamanObject (id, x, 350,0,0,0, falso)
  39. usunn = tfm.exec.addShamanObject (idd, xx, 350,0,0,0, falso)
  40.  
  41. finaliza
  42. si (czas == - 3) luego
  43. tfm.exec.removeObject (usun)
  44. tfm.exec.removeObject (usunn)
  45.  
  46. ilosc = ilosc - 1
  47. czas = ilosc
  48. tfm.exec.addPhysicObject (1,800,387, {
  49. type = 6,
  50. restitution = 0.2,
  51. friction = 0.3,
  52. width = 1600,
  53. height = 37,
  54. groundCollision = true,
  55. miceCollision = true
  56. })
  57. tfm.exec.removePhysicObject (2)
  58. end
  59.  
  60. if (czas <= 0)
  61.  
  62. tfm.exec.addPhysicObject (1,800,387, {
  63. type = 6,
  64. restitution = 0.2,
  65. friction = 0.3,
  66. width = 1600,
  67. height = 37,
  68. groundCollision = true,
  69. miceCollision = false
  70. })
  71. tfm.exec. addPhysicObject (2,800,387, {
  72. type = 3,
  73. restitution = 0.2,
  74. friction = 0.3,
  75. width = 1600,
  76. height = 37,
  77. groundCollision = true,
  78. miceCollision = false
  79. })
  80.  
  81. ui.addTextArea (7, "<p align = 'center'> < font size = '50 'color =' # FF0000 '> EL SUELO ES LAVA </font> </p> ", nulo, 50, 125, 700, 119, 0x324650, 0x000000, 0, verdadero, verdadero)
  82. más
  83. ui.addTextArea (7, "<p align = 'center'> <font size = '90 '>" .. czas .. "</font> </p>", nulo, 50, 125, 700, 119, 0x324650, 0x000000, 0, verdadero, verdadero)
  84. ui.addTextArea (5, "", nulo, 50, 250, 700, 119, 0x324650, 0x000000, 0, verdadero, verdadero)
  85. final
  86. a = 0
  87. más
  88. a = a + 1
  89. final
  90. if (ilosc == 4) entonces
  91. ilosc = 10 función
  92. final
  93. final
  94. eventPlayerDied (playerName)
  95. tfm.exec.setUIShamanName (playerName .. "ha muerto")
  96. tfm.exec.setPlayerScore (playerName, -2, verdadero) función
  97. final
  98. eventChatCommand ( playerName, message)
  99. if (message == "reset") entonces
  100. tfm.exec.setPlayerScore (playerName,0)
  101. end
  102. end
  103. liczba = 0
  104. tablica = {}
  105. zycie = {}
  106. e = 0
  107. para nombre, jugador en parejas (tfm.get.room.playerList) do
  108. tablica [name] = 0
  109. e = e + 1
  110.  
  111. print (name)
  112. end
  113. print (e)
  114. function eventPlayerDied (n)
  115. tablica [n] = 1
  116. zycie [n ] = 0
  117. e = e-1
  118. print (e)
  119. para el nombre, jugador en parejas (tfm.get.room.playerList) hacer
  120. if (tablica [name] == 0) luego
  121. liczba = liczba + 1
  122. wyg = name
  123. end
  124. end
  125. function eventPlayerLeft (n)
  126. tablica [n] = 1
  127. zycie [n] = 0
  128. e = e-1
  129. print (e)
  130. para el nombre, jugador en parejas (tfm.get.room.playerList) hacer
  131. if (tablica [name] == 0 ) luego
  132. liczba = liczba + 1
  133. wyg = nombre
  134. fin
  135. fin
  136. fin
  137. if (liczba == 1) luego
  138. imprime (wyg .. "wygral")
  139. tfm.exec.giveCheese (wyg)
  140. ui.addTextArea (5, "<p align = 'center'> <font size = '50 'color =' # FFFF00 '> ".. wyg .." ha ganado el juego </font> </p> ", nulo, 50, 250, 700, 500, 0x324650, 0x000000, 0, verdadero, verdadero)
  141. tfm.exec.playerVictory (wyg)
  142. tfm.exec.newGame (7214563)
  143. tfm.exec.addPhysicObject (1,800,387, {
  144. type = 6,
  145. restitution = 0.2,
  146. friction = 0.3,
  147. width = 1600,
  148. height = 37,
  149. groundCollision = true,
  150. miceCollision = true
  151. })
  152. a = 0
  153. czas = 10
  154. puntaje = 0
  155. e = 0
  156. tablica = {}
  157. ilosc = 10
  158. tfm.exec.setPlayerScore (wyg, score, true)
  159. para el nombre,jugador en parejas (tfm.get.room.playerList) hacer
  160. tablica [name] = 0
  161. zycie [name] = 1
  162. e = e + 1
  163. end
  164. wyg = ""
  165. liczba = 0
  166. print (e)
  167. else
  168. liczba = 0
  169. end
  170. end
  171. function eventChatCommand (playerName, message)
  172. if (message == "res" ) luego
  173. liczba = 0
  174. e = 0
  175. tablica = {}
  176. para el nombre, jugador en parejas (tfm.get.room.playerList) do
  177. tablica [name] = 0
  178.  
  179. e = e + 1
  180. end
  181. wyg = ""
  182. print (e)
  183. end
  184. end
  185. function eventPlayerRespawn (nn)
  186. if (zycie [nn] == 0) then
  187. tfm.exec.setVampirePlayer (nn)
  188. end
  189. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement