Advertisement
alditojeje

Untitled

Aug 28th, 2020
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.84 KB | None | 0 0
  1. --[[
  2. Cosas por hacer ;v
  3. Contador
  4. Sistema dificultad
  5.  
  6.  
  7. Minijuegos:
  8. Repetir una secuencia de caritas
  9. ¡Estás congelado! [congelar a toda la sala]
  10. ¡Ahora estas atado a X! [pareja]
  11. Alguien tiene que morir! // Aparecen objetos de chaman que intentan matarte
  12. Haz X click en la pantalla
  13. Tas chikito
  14. Transformar a alguien en vamp, alejarlo de los demas, cuando alguien más se transforme, se muera
  15. ¡Haz click para generar una explosión! [just one for person, not too explosive]
  16. Abraza a alguien U//w//U r
  17. Cuanto es 10x10?
  18. El ultimo en hacer click muere
  19. Escribe !hate [nombreDeJugador] para matar al jugador mas odiado
  20. Cuál es el número de tu titulo? [pa hard i guess] wtf imposible SI ES POSIBLE
  21. Escribe el nombre de tu tribu ["Ninguno"] si no tienes
  22. ¿En que fecha te registraste?
  23. Cuántos puntos tienes?
  24. Ten cuidado! Tienes super velocidad carnal! // tu rata se ha vuelto loka
  25. Saltar es mas pesado // tfm.exec.movePlayer(name, 0, 0, true, 0, 100, true)
  26.  
  27.  
  28. cuantos ratones vivos quedan?
  29.  
  30.  
  31. PONER QUE SE DESACTIVE MEEP AL INICIAR NUEVO MAPA, player.info[nombre].alive = true TAMBIÉN
  32.  
  33. ]]
  34. local counter = 0
  35. local seconds = 20
  36. local rounds = 0
  37. local difficulty = 0
  38. local message = ""
  39. local player = {info = {}}
  40. local playersAlive = {}
  41. local killPlayers = {}
  42. local counterMinigames = 0
  43. --local timeNewRound = os.time() + 15000 -- Empieza con 15s (+5s que tarda en iniciar la ronda) extras
  44. local timeNewRound = os.time()
  45. local frases = {"Fafee es el mejor Funcorp", "Esternocleidomastoideo", "Electroencefalografia", "Fafee es el peor Funcorp", "Up: 368 W: 0 Z: 0"}
  46. local numMatar = 0
  47. local movIzq = false
  48.  
  49. tfm.exec.disableAutoNewGame()
  50. tfm.exec.disableAutoShaman()
  51. tfm.exec.disableAutoTimeLeft()
  52. tfm.exec.disablePhysicalConsumables()
  53. tfm.exec.disableAutoScore()
  54.  
  55. ui.addTextArea(0, "<R><font size='20'><p align='center'>" .. seconds .. "</R>", nil, 378, 32, 30, 30, 0x2B2B2B, 0x121212, 0.7, true) -- Tiempo
  56.  
  57. addGender = function(nombre)
  58. if tfm.get.room.playerList[nombre].gender == 2 then
  59. player.info[nombre].genero = "masculino"
  60. elseif tfm.get.room.playerList[nombre].gender == 1 then
  61. player.info[nombre].genero = "femenino"
  62. else
  63. player.info[nombre].genero = "ninguno"
  64. end
  65. end
  66.  
  67. stats = function()
  68. for _, nombre in pairs(playersAlive) do
  69. player.info[nombre].roundWin = false
  70. player.info[nombre].clicks = 0
  71. player.info[nombre].countE = 0
  72. player.info[nombre].team = ""
  73. player.info[nombre].clicksTextareas = 0
  74. player.info[nombre].numero = 0
  75. addGender(nombre)
  76. counterMinigames = 0
  77. end
  78. end
  79.  
  80. teclasPlayer = function (nombre)
  81. tfm.exec.bindKeyboard(nombre, 37, true, true) -- Arrow Left
  82. tfm.exec.bindKeyboard(nombre, 38, true, true) -- Arrow UP
  83. tfm.exec.bindKeyboard(nombre, 39, true, true) -- Arrow Right
  84. tfm.exec.bindKeyboard(nombre, 40, true, true) -- Arrow Down
  85. tfm.exec.bindKeyboard(nombre, 83, true, true) -- S
  86. tfm.exec.bindKeyboard(nombre, 87, true, true) -- W
  87. tfm.exec.bindKeyboard(nombre, 90, true, true) -- Z
  88. tfm.exec.bindKeyboard(nombre, 65, true, true) -- A
  89. tfm.exec.bindKeyboard(nombre, 68, true, true) -- D
  90. tfm.exec.bindKeyboard(nombre, 81, true, true) -- Q
  91. tfm.exec.bindKeyboard(nombre, 69, true, true) -- E
  92. end
  93.  
  94. eventNewPlayer = function (nombre)
  95. table.insert(playersAlive, nombre)
  96. player.info[nombre] = {}
  97. player.info[nombre].alive = true
  98. -- player.info[nombre].roundWin = false -- ESTOS SE AGREGAN EN STATS()
  99. -- player.info[nombre].clicks = 0 -- ESTOS SE AGREGAN EN STATS()
  100. system.bindMouse(nombre, true)
  101. teclasPlayer(nombre)
  102. -- addGender(nombre) -- ESTOS SE AGREGAN EN STATS()
  103. end
  104.  
  105. for i, k in pairs(tfm.get.room.playerList) do
  106. eventNewPlayer(i)
  107. end
  108.  
  109. eventMouse = function (nombre, posX, posY)
  110. if not player.info[nombre].alive then return end
  111. if minigame == 3 or minigame == 32 then
  112. player.info[nombre].clicks = player.info[nombre].clicks + 1
  113. if player.info[nombre].clicks >= clicksToWin then
  114. player.info[nombre].roundWin = true
  115. end
  116. end
  117. end
  118.  
  119. infoGame = function (message)
  120. ui.addTextArea(1, "<BV><font size='20'><p align='center'><b>" .. message .."</BV></b>", nil, 150, 360, 500, 30, 0x2B2B2B, 0x121212, 0.9, true)
  121. end
  122.  
  123. eventChatMessage = function (nombre, mensaje)
  124. if not player.info[nombre].alive then return end
  125. if minigame == 1 then
  126. if mensaje:lower() == player.info[nombre].genero then
  127. player.info[nombre].roundWin = true
  128. end
  129. elseif minigame == 11 then
  130. tfm.exec.killPlayer(nombre)
  131. elseif (minigame == 15 or minigame == 24) and mensaje == tostring(numeroMinigame) then
  132. player.info[nombre].roundWin = true
  133. elseif minigame == 18 and mensaje == "2010" then
  134. player.info[nombre].roundWin = true
  135. elseif minigame == 21 and mensaje:lower() == frases[frase]:lower() then
  136. player.info[nombre].roundWin = true
  137. elseif (minigame == 22 or minigame == 33) and tonumber(mensaje) and tonumber(mensaje) > 0 and tonumber(mensaje) <= numMatarMax then
  138. player.info[nombre].numero = tonumber(mensaje)
  139. end
  140. end
  141.  
  142. saberDificultad = function ()
  143. if difficulty == 0 then
  144. return "<PT>Fácil</PT>"
  145. elseif difficulty == 1 then
  146. return "<A:ACTIVE>Medio</A:ACTIVE>"
  147. elseif difficulty == 2 then
  148. return "<R>Difícil</R>"
  149. elseif difficulty == 3 then
  150. return "<font color='#F93018'>Experto</font>"
  151. end
  152. end
  153.  
  154. clickTextareas = function ()
  155. for i = 100, cantidad + 100 do
  156. ui.addTextArea(i, "<BV><font size='34'><p align='center'><a href='event:clicksTextarea'>•</BV>", nil, math.random(10, 790), math.random(50, 300), 0, 0, 0, 0, 0, true)
  157. end
  158. end
  159.  
  160. newRound = function()
  161. rounds = rounds + 1
  162. if rounds == 10 or rounds == 20 or rounds == 30 or rounds == 50 then -- En las rondas 5, 10, 20 y 30 aumenta la difcultad
  163. difficulty = difficulty + 1
  164. end
  165. ui.setMapName ("<N>Dificultad: </N>" .. saberDificultad() .. " <G>|</G> <N>Ronda: </N><BV>" .. rounds)
  166. stats()
  167. difficulty = 1
  168. for i = 100, 130 do -- remove all
  169. ui.removeTextArea(i, nil)
  170. end
  171. ui.removeTextArea(7, nil) -- remove ganador palta/aguacate
  172. if difficulty == 0 then -- EASY
  173. minigame = math.random(23)
  174. minigame = 22
  175. seconds = 10
  176. if minigame == 1 then
  177. message = "¡Escribe el género de tu perfil!"
  178. elseif minigame == 2 then
  179. message = "¡Esquiva la lava!"
  180. lavaW = 30
  181. lavaH = 25
  182. cantidadLava = 2
  183. allWin()
  184. elseif minigame == 3 then
  185. seconds = seconds - 2
  186. clicksToWin = 10
  187. message = "¡Haz click en la pantalla <R>" .. clicksToWin .. "<R> veces!"
  188. elseif minigame == 4 then
  189. seconds = seconds - 4
  190. message = "¡Quédate MIRANDO hacia la derecha!"
  191. elseif minigame == 5 then
  192. seconds = seconds - 4
  193. message = "¡Quédate MIRANDO hacia la izquierda!"
  194. elseif minigame == 6 then
  195. message= "¡Agachate para cavar tu tumba!"
  196. allWin()
  197. elseif minigame == 7 then
  198. message = "¡No saltes!"
  199. allWin()
  200. elseif minigame == 8 then
  201. message = "¡No te muevas!"
  202. allWin()
  203. elseif minigame == 9 then
  204. message = "Lanza confeti 5 veces"
  205. elseif minigame == 10 then
  206. seconds = 6
  207. message = "¡Baila!"
  208. elseif minigame == 11 then
  209. message = "Si mandas un mensaje, ¡mueres!"
  210. allWin()
  211. elseif minigame == 12 then
  212. seconds = 6
  213. message = "¡Todos tienen meep!"
  214. allWin()
  215. meep(true)
  216. elseif minigame == 13 then
  217. message = "¡No te muevas hacia la derecha!"
  218. allWin()
  219. elseif minigame == 14 then
  220. message = "¡No te muevas hacia la izquierda!"
  221. allWin()
  222. elseif minigame == 15 then
  223. numeroMinigame = math.random(1000000, 10000000)
  224. message = "Escribe este numero: <R>" .. numeroMinigame .. "</R>"
  225. elseif minigame == 16 then
  226. message = "¿Palta o Aguacate? ¡Morirá el peor equipo!"
  227. ui.addTextArea(5, "<A:ACTIVE><font size='16'><p align='center'><a href='event:palta'><b>Palta</a></PT>", nil, 140, 160, 0, 30, 0x2B2B2B, 0x121212, 0.7, true)
  228. ui.addTextArea(6, "<A:ACTIVE><font size='16'><p align='center'><a href='event:aguacate'><b>Aguacate</a></PT>", nil, 600, 160, 0, 30, 0x2B2B2B, 0x121212, 0.7, true)
  229. elseif minigame == 17 then
  230. message = "¡Haz click en todos los puntos!"
  231. seconds = 16
  232. cantidad = 10
  233. clickTextareas(cantidad)
  234. elseif minigame == 18 then
  235. message = "¿En qué año se publicó Transformice?"
  236. elseif minigame == 19 then
  237. message = "¡Pon la bandera de Argentina!"
  238. elseif minigame == 20 then
  239. allWin()
  240. seconds = 26
  241. poscX, poscY, rotacion = math.random(10,790), math.random(20, 200), math.random(90, 120)
  242. if poscX >= 400 then
  243. rotacion = rotacion * -1
  244. end
  245. message = "¡Esquiva los cañones!"
  246. elseif minigame == 21 then
  247. frase = math.random(1, #frases)
  248. message = 'Escribe: "<R>' .. frases[frase] .. '</R>"'
  249. elseif minigame == 22 then
  250. numMatarMax = 10
  251. numMatar = math.random(1, numMatarMax)
  252. message = "Escribe un número del <R>1</R> al <R>" .. numMatarMax .. "</R>"
  253. elseif minigame == 23 then
  254. message = "¡Pon la bandera de Chile!"
  255. end -- end minigames dif0
  256. elseif difficulty == 1 then -- MEDIUM
  257. minigame = math.random(24,25)
  258.  
  259. minigame = 33
  260. seconds = 10
  261. if minigame == 24 then
  262. numeroMinigame = math.random(1000000000, 10000000000) * 107
  263. message = "Escribe este numero: <R>" .. numeroMinigame .. "</R>"
  264. elseif minigame == 25 then
  265. message = "¡Esquiva la lava!"
  266. lavaW = 50
  267. lavaH = 25
  268. cantidadLava = 4
  269. allWin()
  270. elseif minigame == 26 then
  271. message = "¡Haz click en todos los puntos!"
  272. seconds = 21
  273. cantidad = 20
  274. clickTextareas(cantidad)
  275. elseif minigame == 27 then
  276. message = "¡Quédate CAMINANDO hacia la derecha!"
  277. elseif minigame == 28 then
  278. message = "¡Quédate CAMINANDO hacia la izquierda!"
  279. elseif minigame == 29 then
  280. message = "¡Salta en los últimos DOS segundos!"
  281. elseif minigame == 30 then
  282. message = "Si mandas un mensaje, ¡mueres!"
  283. allWin()
  284. elseif minigame == 31 then
  285. message = "¡Eres más rápido hacia la izquierda!"
  286. movIzq = true
  287. allWin()
  288. elseif minigame == 32 then
  289. clicksToWin = 20
  290. message = "¡Haz click en la pantalla <R>" .. clicksToWin .. "</R> veces!"
  291. elseif minigame == 33 then
  292. numMatarMax = 7
  293. numMatar = math.random(1, numMatarMax)
  294. message = "Escribe un número del <R>1</R> al <R>" .. numMatarMax .. "</R>"
  295. elseif minigame == 34 then
  296.  
  297.  
  298. end
  299.  
  300. elseif difficulty == 2 then -- HARD
  301.  
  302. elseif difficulty == 3 then -- EXPERT
  303.  
  304. end
  305. infoGame(message)
  306. end
  307.  
  308. eventTextAreaCallback = function (id, nombre, callback)
  309. if not player.info[nombre].alive then return end
  310. if minigame == 16 then
  311. if callback == "palta" then
  312. player.info[nombre].team = "palta"
  313. tfm.exec.chatMessage("¡Ahora estás en el equipo Palta!", nombre)
  314. else
  315. player.info[nombre].team = "aguacate"
  316. tfm.exec.chatMessage("¡Ahora estás en el equipo Aguacate!", nombre)
  317. end
  318. elseif minigame == 17 or minigame == 26 then
  319. if callback == 'clicksTextarea' then
  320. ui.removeTextArea(id, nombre)
  321. player.info[nombre].clicksTextareas = player.info[nombre].clicksTextareas + 1
  322. if player.info[nombre].clicksTextareas >= cantidad then
  323. player.info[nombre].roundWin = true
  324. end
  325. end
  326. end
  327. end
  328.  
  329. meep = function(activo)
  330. for _, nombre in pairs(playersAlive) do
  331. tfm.exec.giveMeep(nombre, activo)
  332. end
  333. end
  334.  
  335. removeItem = function (myTable, key)
  336. for i, keyTable in ipairs(myTable) do
  337. if keyTable == key then
  338. table.remove(myTable, i)
  339. return
  340. end
  341. end
  342. end
  343.  
  344. rondaTerminada = function ()
  345. if minigame == 4 then
  346. for _, nombre in pairs(playersAlive) do
  347. if tfm.get.room.playerList[nombre].isFacingRight then
  348. player.info[nombre].roundWin = true
  349. end
  350. end
  351. elseif minigame == 5 then
  352. for _, nombre in pairs(playersAlive) do
  353. if not tfm.get.room.playerList[nombre].isFacingRight then
  354. player.info[nombre].roundWin = true
  355. end
  356. end
  357. elseif minigame == 16 then
  358. contPalta = 0
  359. contAguacate = 0
  360. ui.removeTextArea(5, nil)
  361. ui.removeTextArea(6, nil)
  362. for _, nombre in pairs(playersAlive) do
  363. if player.info[nombre].team == "palta" then
  364. contPalta = contPalta + 1
  365. elseif player.info[nombre].team == "aguacate" then
  366. contAguacate = contAguacate + 1
  367. end
  368. end
  369. if contPalta > contAguacate then
  370. ganadorFruta = "Palta"
  371. elseif contPalta < contAguacate then
  372. ganadorFruta = "Aguacate"
  373. else
  374. ganadorFruta = "¡Empate!"
  375. end
  376. ui.addTextArea(7, "<BV><font size='20'><p align='center'><b>El ganador es: <R>" .. ganadorFruta .. "</R></BV>", nil, 150, 360, 500, 30, 0x2B2B2B, 0x121212, 0.7, true)
  377. for _, nombre in pairs(playersAlive) do
  378. if (player.info[nombre].team == ganadorFruta:lower()) or ganadorFruta == "¡Empate!" then
  379. player.info[nombre].roundWin = true
  380. end
  381. end
  382. elseif minigame == 22 or minigame == 33 then
  383. for _, nombre in pairs(playersAlive) do
  384. if player.info[nombre].numero ~= numMatar and player.info[nombre].numero > 0 then
  385. player.info[nombre].roundWin = true
  386. end
  387. end
  388. ui.addTextArea(7, "<BV><font size='20'><p align='center'><b>¡Todos los números<R> " .. numMatar .. " </R>moriran!</BV>", nil, 150, 360, 500, 30, 0x2B2B2B, 0x121212, 0.7, true)
  389. elseif minigame == 27 then
  390. for _, nombre in pairs(playersAlive) do
  391. if tfm.get.room.playerList[nombre].movingRight then
  392. player.info[nombre].roundWin = true
  393. end
  394. end
  395. elseif minigame == 28 then
  396. for _, nombre in pairs(playersAlive) do
  397. if tfm.get.room.playerList[nombre].movingLeft then
  398. player.info[nombre].roundWin = true
  399. end
  400. end
  401. end
  402. minigame = 999
  403.  
  404. for _, nombre in pairs(playersAlive) do -- agregar al array kilLPlayers todos los jugadores que no hayan termiando la ronda.
  405. if not player.info[nombre].roundWin then
  406. table.insert(killPlayers, nombre)
  407. end
  408. end
  409. for _, nombre in pairs(killPlayers) do -- los mata, y los elimina de playersAlive
  410. tfm.exec.killPlayer(nombre)
  411. removeItem(playersAlive, nombre)
  412. end
  413. killPlayers = {}
  414. ui.removeTextArea(1, nil)
  415. timeNewRound = os.time()
  416. end
  417.  
  418. eventEmotePlayed = function(nombre, idEmote, bandera)
  419. if not player.info[nombre].alive then return end
  420. if minigame == 10 and idEmote == 0 then
  421. player.info[nombre].roundWin = true
  422. elseif minigame == 19 and idEmote == 10 and bandera == "ar" then
  423. player.info[nombre].roundWin = true
  424. elseif minigame == 23 and idEmote == 10 and bandera == "cl" then
  425. player.info[nombre].roundWin = true
  426. end
  427. end
  428.  
  429. eventPlayerDied = function(nombre)
  430. removeItem(playersAlive, nombre)
  431. player.info[nombre].alive = false
  432. end
  433.  
  434. allWin = function()
  435. for i, k in pairs(playersAlive) do
  436. player.info[k].roundWin = true
  437. end
  438. end
  439.  
  440. tfm.exec.newGame('7773692')
  441. tfm.exec.setGameTime(100000)
  442.  
  443. eventLoop = function (elapsed, remaining)
  444. counter = counter + 1 -- cada 0.5s el contador aumenta en 1
  445. if counter >= 2 and seconds > 0 then -- si pasó 1s entonces..
  446. seconds = seconds - 1 -- se resta 1s
  447. ui.updateTextArea(0, "<R><font size='20'><p align='center'>" .. seconds .. "</R>", nil) -- se actualiza el textarea
  448. counter = 0
  449.  
  450. if minigame == 2 or minigame == 25 then
  451. counterMinigames = counterMinigames + 1
  452. if counterMinigames >= 2 then
  453. for k = 1, cantidadLava do
  454. rainLava(k, lavaW, lavaH)
  455. end
  456. counterMinigames = 0
  457. end
  458. elseif minigame == 20 then
  459. counterMinigames = counterMinigames + 1
  460. if counterMinigames == 1 then
  461. tfm.exec.addShamanObject(0, poscX-7, poscY-7, rotacion + 180)
  462. elseif counterMinigames >= 2 then
  463. spawnearCn()
  464. end
  465. end
  466. if seconds == 0 then
  467. rondaTerminada()
  468. end
  469. end
  470.  
  471. if timeNewRound < os.time() - 5000 then
  472. timeNewRound = 9999999999999
  473. newRound()
  474. end
  475. end
  476.  
  477. spawnearCn = function ()
  478. tfm.exec.addShamanObject(math.random(1701,1714), poscX, poscY, rotacion, 10, 10)
  479. counterMinigames = 0
  480. poscX, poscY, rotacion = math.random(10,790), math.random(20, 200), math.random(90, 120)
  481. if poscX >= 400 then
  482. rotacion = rotacion * -1
  483. end
  484. end
  485.  
  486. rainLava = function(id, lavaWidht, lavaHeigth)
  487. tfm.exec.addPhysicObject(id, math.random(10, 790), 0, {
  488. type = 3,
  489. width = lavaWidht,
  490. height = lavaHeigth,
  491. friction = 0.2,
  492. restitution = 9999,
  493. miceCollision = true,
  494. groundCollision = false,
  495. dynamic = true,
  496. fixedRotation = true,
  497. mass = 10,
  498. linearDamping = 0
  499. })
  500. end
  501.  
  502. eventKeyboard = function(nombre, key, down, posX, posY)
  503. if not player.info[nombre].alive then return end
  504. if (minigame == 6) and (key == 40 or key == 83) and (not tfm.get.room.playerList[nombre].isDead) then -- Se coloca entre () la primera condición para que si alguna de las dos es true pase a la siguiente.
  505. tfm.exec.killPlayer(nombre)
  506. tfm.exec.addShamanObject(90, posX, posY)
  507. elseif (minigame == 7) and (key == 38 or key == 87 or key == 90) then
  508. tfm.exec.killPlayer(nombre)
  509. elseif (minigame == 8) and (key == 38 or key == 39 or key == 37 or key == 87 or key == 90 or key == 40 or key == 83 or key == 65 or key == 68 or key == 81) then
  510. tfm.exec.killPlayer(nombre)
  511. elseif minigame == 9 and key == 69 then
  512. player.info[nombre].countE = player.info[nombre].countE + 1
  513. if player.info[nombre].countE >= 5 then
  514. player.info[nombre].roundWin = true
  515. end
  516. elseif movIzq and (key == 37 or key == 65 or key == 81) then
  517. tfm.exec.movePlayer(nombre, 0, 0, true, -50, 0, true)
  518. elseif (minigame == 13) and (key == 39 or key == 68) then
  519. tfm.exec.killPlayer(nombre)
  520. elseif (minigame == 14) and (key == 37 or key == 81) then
  521. tfm.exec.killPlayer(nombre)
  522. elseif minigame == 29 and (key == 38 or key == 87 or key == 90) then
  523. if seconds <= 2 then
  524. player.info[nombre].roundWin = true
  525. else
  526. tfm.exec.killPlayer(nombre)
  527. end
  528. end
  529.  
  530. end
  531.  
  532.  
  533. -- MAYBE AGREGAR, BOMBAS CON ESPACIO:
  534. --[[
  535. local toDespawn = {}
  536. local mice = {}
  537. local countdownBomb = 2000 -- Segundos para poder colocar otra bomba
  538. local countDownExplode = 1000 -- Segundos para que explote la bomba.
  539. local power = 100 -- Fuerza con la que empujará a las ratas.
  540. local area = 60 -- Área de empuje
  541. local miceOnly = false -- Cambiar a "true" (sin las comillas) en caso de que quieras que los objetos en la sala no se muevan
  542.  
  543. function main()
  544. table.foreach(tfm.get.room.playerList, eventNewPlayer)
  545. end
  546.  
  547. function eventNewPlayer(name)
  548. if not mice[name] then
  549. mice[name] = {
  550. timeStamp = os.time()
  551. }
  552. end
  553. tfm.exec.bindKeyboard(name, 32, true, true)
  554. end
  555.  
  556. function eventLoop(time, remaining)
  557. for i, bomb in ipairs(toDespawn) do
  558. if bomb[1] <= os.time() - countDownExplode then
  559. local x = tfm.get.room.objectList[bomb[2]]--.x
  560. -- local y = tfm.get.room.objectList[bomb[2]]--.y
  561. --[[
  562. tfm.exec.removeObject(bomb[2])
  563. table.remove(toDespawn, i)
  564. tfm.exec.explosion(x, y, power, area, miceOnly)
  565. end
  566. end
  567. end
  568.  
  569. function eventKeyboard(name, key, down, x, y)
  570. if mice[name].timeStamp < os.time() - countdownBomb then
  571. local bomb = tfm.exec.addShamanObject(23, x, y)
  572. mice[name].timeStamp = os.time()
  573. table.insert(toDespawn, {os.time(), bomb})
  574. end
  575. end
  576.  
  577. main()
  578.  
  579. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement