Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- admins = {
- ["Refletz#6472"] = true,
- ["Soristl1#0000"] = true,
- }
- system.disableChatCommandDisplay (nil, true)
- tfm.exec.setRoomMaxPlayers(15)
- tt = 0
- mice = {}
- lang = {}
- portaisid = {}
- lang.br = {
- text1 = "<p align='center'><font size='14px'><font color='#000000'><b>O jogo começa em",
- text2 = "<p align='center'><font size='15px'><a href='event:p'>Clique aqui para participar",
- text3 = "<p align='center'><font size='12px'>Jogadores participando:",
- text4 = "<p align='center'><font size='15px'>Participando",
- text5 = "<p align='center'><font size='13px'>Capacidade Máxima de jogadores atingida.",
- text6 = "<p align='center'><font size='20px'><font face='soopafresh'><bv>Deadfender<n> (Beta)<br><br><font face='Verdana'><font size='12px'>Vá para:<br><br><font color='#FFE300'>Instruções</font> | <a href='event:cmd'>Comandos</a>",
- text7 = "<font size='15px'><bv>Como jogar<n>:<font size='12px'><br><br><br>1- Impeça que o cannon chegue ao 'gol' com pisos que você mesmo ira colocar no mapa através do click;<br><br>2- o cannon irá spawnar em cima da área verde. Use a área verde para colocar os pisos (Com o click), que irão impedir o cannon de chegar ao chão e impedir que vá ao 'gol';<br><br>3- Você pode colocar 2 ou 3 objetos. Vai depender da rodada em que você está.",
- text8 = "<p align='center'><font size='20px'><font face='soopafresh'><bv>Deadfender<n> (Beta)<br><br><font face='Verdana'><font size='12px'>Vá para:<br><br><a href='event:ajuda'>Instruções</a> | <font color='#FFE300'>Comandos</font>",
- text9 = "<font size='15px'><bv>Comandos<n>: -- <rose>*<n> -> Comandos para o admin da sala --<font size='12px'><br><br><br><j>!Resettimer<n> <rose>*<n> - Reseta o tempo de iniciar a partida.<br><j>!lang [BR/EN]<n> - Muda o idioma do jogo.<br><br><br><br><br><br>Programador da ideia: Refletz#6472 (Soristl)<br><br>Agradecimento a todos que colaboraram de alguma forma para a criação deste script ;)",
- text10 = "<p align='center'><font size='12px'><a href='event:vida'>Vida dos jogadores",
- text11 = "<p align='center'><font size='15px'><font color='#D30A0A'>Leia a ajuda para:<br>Instruções | Comandos",
- text12 = "<p align='center'><font size='12px'>Nessa rodada poderá spawnar",
- text13 = "<font size='15px'><font color='#000000'><b>Coloque pisos através do click do mouse, clicando na área <font color='#178E31'>verde<n>.",
- text14 = "<font size='15px'><font color='#000000'><b>Evite que o Cannon caia no gol para não perder <r>uma vida<n>.",
- text15 = "pisos",
- text18 = "<j>É necessário dois jogadores ou mais para iniciar a partida<n>"
- }
- lang.en = {
- text1 = "<p align='center'><font size='14px'><font color='#000000'><b>The game will start in",
- text2 = "<p align='center'><font size='15px'><a href='event:p'>Press to participate",
- text3 = "<p align='center'><font size='12px'>Players in game:",
- text4 = "<p align='center'><font size='15px'>Participating",
- text5 = "<p align='center'><font size='13px'>Maximum player capacity reached.",
- text6 = "<p align='center'><font size='20px'><font face='soopafresh'><bv>Deadfender<n> (Beta)<br><br><font face='Verdana'><font size='12px'>Go to:<br><br><font color='#FFE300'>Instructions</font> | <a href='event:cmd'>Commands</a>",
- text7 = "<font size='15px'><bv>How to play<n>:<font size='12px'><br><br><br>1- Prevent the cannon from reaching the goal by placing the grounds (you can spawn them by clicking on the screen);<br><br>2- The cannon will spawn on the green area. Use the green area to place the grounds by clicking on the screen and prevent the cannon from reaching the goal.;<br><br>3- You'll be able to place 2 or 3 grounds. It depends on the current round.",
- text8 = "<p align='center'><font size='20px'><font face='soopafresh'><bv>Deadfender<n> (Beta)<br><br><font face='Verdana'><font size='12px'>Go to:<br><br><a href='event:ajuda'>Instructions</a> | <font color='#FFE300'>Commands</font>",
- text9 = "<font size='15px'><bv>Commands<n>: -- <rose>*<n> -> Room admin commands --<font size='12px'><br><br><br><j>!Resettimer<n> <rose>*<n> - The time to start is reset<br><j>!lang [BR/EN]<n> - Change the game language.<br><br><br><br><br><br>Idea programmer: Refletz#6472 (Soristl)<br><br>Thanks to everyone who collaborated in some way to create this script ;)",
- text10 = "<p align='center'><font size='12px'><a href='event:vida'>Players lives ",
- text11 = "<p align='center'><font size='15px'><font color='#D30A0A'>Read the help to:<br>Instructions | Commands",
- text12 = "<p align='center'><font size='12px'>In this round you’ll be able to spawn",
- text13 = "<font size='15px'><font color='#000000'><b>Spawn the grounds by clicking in the <font color='#178E31'>green area.",
- text14 = "<font size='15px'><font color='#000000'><b>Prevent the cannon from reaching the goal to avoid losing <r>one life<n>.",
- text15 = "grounds",
- text18 = "<j>Two or more players are required to start the game<n>"
- }
- if tfm.get.room.community == "br" then
- trad = lang.br
- else
- trad = lang.en
- end
- for name, data in pairs(tfm.get.room.playerList) do
- mice[name] = {v = name, tr = trad}
- table.insert(mice, mice[name])
- end
- function iniciar()
- tfm.exec.disableAutoShaman() tfm.exec.newGame('<C><P F="8" L="2131" H="600" /><Z><S><S L="2131" X="1065" H="40" Y="580" T="10" P="0,0,0.3,0,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="6a7495" X="-5" Y="300" T="12" H="610" /><S L="10" o="6a7495" X="2135" H="610" Y="300" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,90,0,0,0" L="10" o="6a7495" H="2131" Y="-1" T="12" X="1065" /><S P="0,0,0.3,0.2,0,0,0,0" Y="0" L="10" X="0" c="4" i="322,450,../godspaw/img/renard/anim-1-3.png" T="14" H="10" /><S P="0,0,0.3,0.2,0,0,0,0" Y="0" L="10" X="0" c="4" i="100,200,17429228e27.png" T="14" H="10" /></S><D><DS Y="479" X="213" /></D><O /></Z></C>')
- tfm.exec.disableAutoNewGame()
- tfm.exec.disableAutoScore (true)
- tfm.exec.disableAutoTimeLeft (true)
- tfm.exec.disableAfkDeath (true)
- tfm.exec.disableMortCommand (true)
- tfm.exec.disablePhysicalConsumables (true)
- removeText()
- ui.removeTextArea(3001)
- ui.removeTextArea(3002)
- tabela = {}
- for tv = 1, #mice do
- ui.addTextArea(1, mice[tv].tr.text2, mice[tv].v, 250, 370, 300, 25, 0x0e232b, 0x171717, 1, true)
- ui.addTextArea(2, mice[tv].tr.text3.." "..#tabela.."/8", mice[tv].v, 30, 370, 200, 25, 0x0e232b, 0x171717, 1, true)
- ui.addTextArea(18, mice[tv].tr.text13, mice[tv].v, 989, 350, 190, 90, 0x242424, 0xFFFFFF, 0, false)
- ui.addTextArea(19, mice[tv].tr.text14, mice[tv].v, 1745, 348, 190, 92, 0x242424, 0xFFFFFF, 0, false)
- if tt == 0 then
- ui.addTextArea(5001, "", mice[tv].v, 0, 0, 800, 400, 0x161616, 0x161616, 0.8, true)
- ui.addPopup(0, 1, mice[tv].tr.text11, mice[tv].v, 300, 150, 250, true)
- end
- end
- tabela1 = {}
- objectList = {}
- fim = false
- inGame = false
- spec = {}
- players = {}
- player1 = "a"
- player2 = "b"
- player3 = "c"
- player4 = "d"
- player5 = "e"
- player6 = "f"
- player7 = "g"
- player8 = "h"
- lifer = 0
- lifeb = 0
- lifey = 0
- lifeg = 0
- lifeo = 0
- lifero = 0
- lifep = 0
- lifec = 0
- cm = 0
- tt = 1
- time = os.time() + 25000
- modo = "espera"
- ui.addTextArea(4000, "<p align='center'><font size='15px'><a href='event:ajuda'>?", nil, 5, 25, 20, 20, 0x0e232b, 0x171717, 1, true)
- --system.bindMouse (admin, true)
- end
- function eventTextAreaCallback(tI, name, c)
- if c == "p" and #tabela <= 8 then
- t = false
- for i = 1, #tabela, 1 do
- if tabela[i] == name then
- t = true
- end
- end
- if t == false then
- table.insert(tabela, name)
- ui.addTextArea(1, mice[name].tr.text4, mice[name].v, 250, 370, 300, 25, 0x0e232b, 0x171717, 1, true)
- for pf = 1, #mice do
- ui.addTextArea(2, mice[pf].tr.text3.." "..#tabela.."/8", mice[pf].v, 30, 370, 200, 25, 0x0e232b, 0x171717, 1, true)
- end
- end
- if #tabela == 8 then
- for vt = 1, #mice do
- ui.addTextArea(4, mice[vt].tr.text5, nil, 250, 370, 300, 25, 0x0e232b, 0x171717, 1, false)
- end
- for tb = 1, #tabela do
- ui.removeTextArea(4, tabela[tb])
- end
- end
- end
- if c == "ajuda" then
- repita(name)
- end
- if c == "fecha" then
- ui.removeTextArea(4001, name)
- ui.removeTextArea(4002, name)
- ui.removeTextArea(4003, name)
- end
- if c == "cmd" then
- ui.addTextArea(4001, mice[name].tr.text8, mice[name].v, 100, 50, 600, 100, 0x0e232b, 0x171717, 1, true)
- ui.addTextArea(4002, mice[name].tr.text9, mice[name].v, 100, 150, 600, 200, 0x0e232b, 0x171717, 1, true)
- ui.addTextArea(4003, "<p align='center'><font size='15px'><a href='event:fecha'><r>X<n>", name, 650, 60, 30, 20, 0x0e232b, 0x171717, 1, true)
- end
- if c == "vida" then
- lang.br.text16 = "<p align='center'><font size='15px'><font face='soopafresh'>Vida dos jogadores</font><p align='left'><font size='14px'><font face='arial'><br><br>Jogador: <r>"..tabela1[1].."<n> | Vida: "..lifer.."<br>Jogador: <bv>"..tabela1[2].."<n> | Vida: "..lifeb.."<br>Jogador: <j>"..tabela1[3].."<n> | Vida: "..lifey.." <br>Jogador: <vp>"..tabela1[4].."<n> | Vida: "..lifeg.." <br>Jogador: <ce>"..tabela1[5].."<n> | Vida "..lifeo.." <br>Jogador: <rose>"..tabela1[6].."<n> | Vida: "..lifero.." <br>Jogador: <vi>"..tabela1[7].."<n> | Vida: "..lifep.." <br>Jogador: <CH>"..tabela1[8].."<n> | Vida: "..lifec..""
- lang.en.text16 = "<p align='center'><font size='15px'><font face='soopafresh'>Players' lives</font><p align='left'><font size='14px'><font face='arial'><br><br>Player: <r>"..tabela1[1].."<n> | Life: "..lifer.."<br>Player: <bv>"..tabela1[2].."<n> | Life: "..lifeb.."<br>Player: <j>"..tabela1[3].."<n> | Life: "..lifey.." <br>Player: <vp>"..tabela1[4].."<n> | Life: "..lifeg.." <br>Player: <ce>"..tabela1[5].."<n> | Life: "..lifeo.." <br>Player: <rose>"..tabela1[6].."<n> | Life: "..lifero.." <br>Player: <vi>"..tabela1[7].."<n> | Life: "..lifep.." <br>Player: <CH>"..tabela1[8].."<n> | Life: "..lifec..""
- ui.addTextArea(3001, mice[name].tr.text16, name, 264, 114, 400, 200, 0x0e232b, 0x171717, 1, true)
- ui.addTextArea(3002, "<p align='center'><font size='15px'><a href='event:fecha1'><r>X<n>", name, 620, 124, 30, 20, 0x0e232b, 0x171717, 1, true)
- end
- if c == "fecha1" then
- ui.removeTextArea(3001, name)
- ui.removeTextArea(3002, name)
- end
- end
- function eventLoop(current, remaining)
- if modo == "espera" then
- local x = math.ceil((time - os.time())/1000)
- c = string.format("%d", x)
- for vt = 1, #mice do
- ui.addTextArea(0, mice[vt].tr.text1.." "..c.."s", mice[vt].name, 110, 390, 220, 25, 0x0e232b, 0x171717, 0, false)
- end
- if x == 0 then
- if #tabela >= 2 then
- removeText()
- maps()
- if cm == 0 then
- cm = cm + 1
- checkPlayers()
- end
- else
- time = os.time() + 15000
- tfm.exec.chatMessage (trad.text18, nil)
- end
- end
- end
- if modo == "espera2" then
- for player1, data in pairs(tfm.get.room.playerList) do
- table.insert(spec, player1)
- end
- for element1 = 1, #players do
- for element2 = 1, #spec do
- if players[element1] == spec[element2] then
- table.remove(spec, element2)
- end
- end
- end
- for element3 = 1, #spec do
- tfm.exec.killPlayer(spec[element3])
- end
- teleportPlayers()
- modo = "espera1"
- popup()
- end
- if modo == "espera1" then
- removeText()
- conts()
- maxspawn = math.random(2,3)
- for fr = 1, #mice do
- ui.addTextArea(7, mice[fr].tr.text12.." "..maxspawn.." "..mice[fr].tr.text15.."", mice[fr].v, 240, 56, 340, 25, 0x0e232b, 0x171717, 1, true)
- end
- attLife(nil)
- time = os.time() + 15000
- portais()
- checkl()
- modo = "iniciar"
- end
- if modo == "iniciar" then
- local x1 = math.ceil((time - os.time())/1000)
- c = string.format("%d", x1)
- ui.setMapName ("<rose>Cannon Spawn in "..c.."s")
- if x1 == 0 then
- system.bindMouse (player1, false)
- system.bindMouse (player2, false)
- system.bindMouse (player3, false)
- system.bindMouse (player4, false)
- system.bindMouse (player5, false)
- system.bindMouse (player6, false)
- system.bindMouse (player7, false)
- system.bindMouse (player8, false)
- for gf = 3, 6 do
- ui.removeTextArea(gf)
- end
- for gf1 = 8, 11 do
- ui.removeTextArea(gf1)
- end
- spawnCannon()
- time = os.time() + 10000
- modo = "definicao"
- end
- end
- if modo == "definicao" then
- local x2 = math.ceil((time - os.time())/1000)
- c1 = string.format("%d", x2)
- if x2 == 0 then
- spawnT()
- modo = "espera3"
- time = os.time() + 5000
- ui.setMapName ("<rose>Processing...")
- end
- end
- if modo == "espera3" then
- local x10 = math.ceil((time - os.time())/1000)
- if x10 == 0 then
- collect()
- condi = 0
- condi2 = 0
- objcoords()
- condi = condi + 1
- if condi2 == 1 then
- ui.removeTextArea(2)
- ui.removeTextArea(5)
- ui.removeTextArea(6)
- checkwin()
- end
- end
- end
- if modo == "limpar" then
- limpar()
- modo = "espera1"
- end
- if modo == "vitoria" then
- local x3 = math.ceil((time - os.time())/1000)
- c = string.format("%d", x3)
- if twin[1] == player1 then
- ui.addTextArea(5000, "<p align='center'><font size='30px'><textformat leading='150'><br><r>"..twin[1].."<n> won!!!", nil, 0, 0, 800, 400, 0x161616, 0x161616, 0.8, true)
- end
- if twin[1] == player2 then
- ui.addTextArea(5000, "<p align='center'><font size='30px'><textformat leading='150'><br><bv>"..twin[1].."<n> won!!!", nil, 0, 0, 800, 400, 0x161616, 0x161616, 0.8, true)
- end
- if twin[1] == player3 then
- ui.addTextArea(5000, "<p align='center'><font size='30px'><textformat leading='150'><br><j>"..twin[1].."<n> won!!!", nil, 0, 0, 800, 400, 0x161616, 0x161616, 0.8, true)
- end
- if twin[1] == player4 then
- ui.addTextArea(5000, "<p align='center'><font size='30px'><textformat leading='150'><br><vp>"..twin[1].."<n> won!!!", nil, 0, 0, 800, 400, 0x161616, 0x161616, 0.8, true)
- end
- if twin[1] == player5 then
- ui.addTextArea(5000, "<p align='center'><font size='30px'><textformat leading='150'><br><ce>"..twin[1].."<n> won!!!", nil, 0, 0, 800, 400, 0x161616, 0x161616, 0.8, true)
- end
- if twin[1] == player6 then
- ui.addTextArea(5000, "<p align='center'><font size='30px'><textformat leading='150'><br><rose>"..twin[1].."<n> won!!!", nil, 0, 0, 800, 400, 0x161616, 0x161616, 0.8, true)
- end
- if twin[1] == player7 then
- ui.addTextArea(5000, "<p align='center'><font size='30px'><textformat leading='150'><br><vi>"..twin[1].."<n> won!!!", nil, 0, 0, 800, 400, 0x161616, 0x161616, 0.8, true)
- end
- if twin[1] == player8 then
- ui.addTextArea(5000, "<p align='center'><font size='30px'><textformat leading='150'><br><ch>"..twin[1].."<n> won!!!", nil, 0, 0, 800, 400, 0x161616, 0x161616, 0.8, true)
- end
- if x3 == 0 then
- iniciar()
- end
- end
- if modo == "empate" then
- local x4 = math.ceil((time - os.time())/1000)
- c = string.format("%d", x4)
- ui.addTextArea(5000, "<p align='center'><font size='30px'><textformat leading='150'><br>Draw", nil, 0, 0, 800, 400, 0x161616, 0x161616, 0.8, true)
- if x4 == 0 then
- iniciar()
- end
- end
- end
- function eventMouse(jogador, x5, y5)
- if jogador == admin then
- --print("X: "..x5.." Y: "..y5.."")
- end
- if jogador == player1 then
- checkcoordsofclick1(x5, y5, id1, 118, 244)
- end
- if jogador == player2 then
- checkcoordsofclick2(x5, y5, id2, 560, 686)
- end
- if jogador == player3 then
- checkcoordsofclick3(x5, y5, id3, 1002, 1128)
- end
- if jogador == player4 then
- checkcoordsofclick4(x5, y5, id4, 1444, 1570)
- end
- if jogador == player5 then
- checkcoordsofclick5(x5, y5, id5, 1886, 2012)
- end
- if jogador == player6 then
- checkcoordsofclick6(x5, y5, id6, 2328, 2454)
- end
- if jogador == player7 then
- checkcoordsofclick7(x5, y5, id7, 2770, 2896)
- end
- if jogador == player8 then
- checkcoordsofclick8(x5, y5, id8, 3212, 3338)
- end
- end
- function checkcoordsofclick1(x, y, id, InitBorderSpawn, EndBorderSpawn)
- if cont >= 0 and cont < maxspawn then
- if x >= InitBorderSpawn and x <= EndBorderSpawn then
- if y >= 299 and y <= 362 then
- cont = cont + 1
- id1 = id1 + 1
- CheckCoordAndIdofGround(x, y, id)
- end
- end
- end
- end
- function checkcoordsofclick2(x, y, id, InitBorderSpawn, EndBorderSpawn)
- if cont2 >= 0 and cont2 < maxspawn then
- if x >= InitBorderSpawn and x <= EndBorderSpawn then
- if y >= 299 and y <= 362 then
- cont2 = cont2 + 1
- id2 = id2 + 1
- CheckCoordAndIdofGround(x, y, id)
- end
- end
- end
- end
- function checkcoordsofclick3(x, y, id, InitBorderSpawn, EndBorderSpawn)
- if cont3 >= 0 and cont3 < maxspawn then
- if x >= InitBorderSpawn and x <= EndBorderSpawn then
- if y >= 299 and y <= 362 then
- cont3 = cont3 + 1
- id3 = id3 + 1
- CheckCoordAndIdofGround(x, y, id)
- end
- end
- end
- end
- function checkcoordsofclick4(x, y, id, InitBorderSpawn, EndBorderSpawn)
- if cont4 >= 0 and cont4 < maxspawn then
- if x >= InitBorderSpawn and x <= EndBorderSpawn then
- if y >= 299 and y <= 362 then
- cont4 = cont4 + 1
- id4 = id4 + 1
- CheckCoordAndIdofGround(x, y, id)
- end
- end
- end
- end
- function checkcoordsofclick5(x, y, id, InitBorderSpawn, EndBorderSpawn)
- if cont5 >= 0 and cont5 < maxspawn then
- if x >= InitBorderSpawn and x <= EndBorderSpawn then
- if y >= 299 and y <= 362 then
- cont5 = cont5 + 1
- id5 = id5 + 1
- CheckCoordAndIdofGround(x, y, id)
- end
- end
- end
- end
- function checkcoordsofclick6(x, y, id, InitBorderSpawn, EndBorderSpawn)
- if cont6 >= 0 and cont6 < maxspawn then
- if x >= InitBorderSpawn and x <= EndBorderSpawn then
- if y >= 299 and y <= 362 then
- cont6 = cont6 + 1
- id6 = id6 + 1
- CheckCoordAndIdofGround(x, y, id)
- end
- end
- end
- end
- function checkcoordsofclick7(x, y, id, InitBorderSpawn, EndBorderSpawn)
- if cont7 >= 0 and cont7 < maxspawn then
- if x >= InitBorderSpawn and x <= EndBorderSpawn then
- if y >= 299 and y <= 362 then
- cont7 = cont7 + 1
- id7 = id7 + 1
- CheckCoordAndIdofGround(x, y, id)
- end
- end
- end
- end
- function checkcoordsofclick8(x, y, id, InitBorderSpawn, EndBorderSpawn)
- if cont8 >= 0 and cont8 < maxspawn then
- if x >= InitBorderSpawn and x <= EndBorderSpawn then
- if y >= 299 and y <= 362 then
- cont8 = cont8 + 1
- id8 = id8 + 1
- CheckCoordAndIdofGround(x, y, id)
- end
- end
- end
- end
- tc = {8, 9, 10, 3, 1}
- td = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}
- te = {3, 11, 2, 4, 8}
- function CheckCoordAndIdofGround(x, y, id)
- if y <= 316 then
- grounds(id, x, y, tc)
- elseif y >= 317 and y < 347 then
- grounds(id, x, y, td)
- elseif y >= 347 then
- grounds(id, x, y, te)
- end
- end
- function grounds(id, x, y, arg2)
- t = {10, 20}
- ang = {0, 30, 45, 60, -30, -45}
- arg1 = arg2[math.random(#arg2)]
- if arg1 == 0 then
- tfm.exec.addPhysicObject(id, x, y, {type = arg1, color = math.random(0xFFFFFF), width = t[math.random(#t)], height = 2, friction = .2, restitution = .0, miceCollision = true, angle = ang[math.random(#ang)], groundCollision = true})
- elseif arg1 == 1 then
- tfm.exec.addPhysicObject(id, x, y, {type = arg1, color = math.random(0xFFFFFF), width = t[math.random(#t)], height = 2, friction = .0, restitution = .10, miceCollision = true, angle = ang[math.random(#ang)], groundCollision = true})
- elseif arg1 == 2 then
- tfm.exec.addPhysicObject(id, x, y, {type = arg1, color = math.random(0xFFFFFF), width = t[math.random(#t)], height = 2, friction = 0, restitution = 1.2, miceCollision = true, angle = ang[math.random(#ang)], groundCollision = true})
- elseif arg1 == 3 then
- tfm.exec.addPhysicObject(id, x, y, {type = arg1, color = math.random(0xFFFFFF), width = t[math.random(#t)], height = 2, friction = 0, restitution = 5.0, miceCollision = true, angle = ang[math.random(#ang)], groundCollision = true})
- elseif arg1 == 4 then
- tfm.exec.addPhysicObject(id, x, y, {type = arg1, color = math.random(0xFFFFFF), width = t[math.random(#t)], height = 2, friction = 30, restitution = 0.2, miceCollision = true, angle = ang[math.random(#ang)], groundCollision = true})
- elseif arg1 == 5 then
- tfm.exec.addPhysicObject(id, x, y, {type = arg1, color = math.random(0xFFFFFF), width = t[math.random(#t)], height = 2, friction = 20, restitution = .1, miceCollision = true, angle = ang[math.random(#ang)], groundCollision = true})
- elseif arg1 == 6 then
- tfm.exec.addPhysicObject(id, x, y, {type = arg1, color = math.random(0xFFFFFF), width = t[math.random(#t)], height = 2, friction = 20, restitution = .1, miceCollision = true, angle = ang[math.random(#ang)], groundCollision = true})
- elseif arg1 == 7 then
- tfm.exec.addPhysicObject(id, x, y, {type = arg1, color = math.random(0xFFFFFF), width = t[math.random(#t)], height = 2, friction = 10, restitution = .0, miceCollision = true, angle = ang[math.random(#ang)], groundCollision = true})
- elseif arg1 == 8 then
- tfm.exec.addPhysicObject(id, x, y, {type = arg1, color = math.random(0xFFFFFF), width = t[math.random(#t)], height = 2, friction = 20, restitution = .1, miceCollision = false, angle = ang[math.random(#ang)], groundCollision = false})
- elseif arg1 == 9 then
- tfm.exec.addPhysicObject(id, x, y, {type = arg1, color = math.random(0xFFFFFF), width = t[math.random(#t)], height = 2, friction = 20, restitution = .1, miceCollision = false, angle = ang[math.random(#ang)], groundCollision = false})
- elseif arg1 == 10 then
- tfm.exec.addPhysicObject(id, x, y, {type = 9, color = math.random(0xFFFFFF), width = 40, height = 40, friction = 20, restitution = .1, miceCollision = false, angle = ang[math.random(#ang)], groundCollision = false})
- elseif arg1 == 11 then
- tfm.exec.addPhysicObject(id, x, y, {type = 13, color = 0xAA65C7, width = 10, height = 10, friction = .0, restitution = 1.2, miceCollision = false, angle = ang[math.random(#ang)], groundCollision = true})
- end
- end
- function checkwin()
- if lifer <= 0 then
- for el = 1, #twin, 1 do
- if twin[el] == player1 then
- table.remove(twin, el)
- player1 = "a"
- end
- end
- end
- if lifeb <= 0 then
- for ele = 1, #twin, 1 do
- if twin[ele] == player2 then
- table.remove(twin, ele)
- player2 = "b"
- end
- end
- end
- if lifey <= 0 then
- for elee = 1, #twin, 1 do
- if twin[elee] == player3 then
- table.remove(twin, elee)
- player3 = "c"
- end
- end
- end
- if lifeg <= 0 then
- for bk = 1, #twin, 1 do
- if twin[bk] == player4 then
- table.remove(twin, bk)
- player4 = "d"
- end
- end
- end
- if lifeo <= 0 then
- for bk1 = 1, #twin, 1 do
- if twin[bk1] == player5 then
- table.remove(twin, bk1)
- player5 = "e"
- end
- end
- end
- if lifero <= 0 then
- for bk2 = 1, #twin, 1 do
- if twin[bk2] == player6 then
- table.remove(twin, bk2)
- player6 = "f"
- end
- end
- end
- if lifep <= 0 then
- for bk3 = 1, #twin, 1 do
- if twin[bk3] == player7 then
- table.remove(twin, bk3)
- player7 = "g"
- end
- end
- end
- if lifec <= 0 then
- for bk4 = 1, #twin, 1 do
- if twin[bk4] == player8 then
- table.remove(twin, bk4)
- player8 = "h"
- end
- end
- end
- if #twin == 1 then
- inGame = false
- modo = "vitoria"
- time = os.time() + 5000
- limpar()
- end
- if #twin == 0 then
- inGame = false
- modo = "empate"
- time = os.time() + 5000
- limpar()
- end
- if #twin > 1 then
- modo = "limpar"
- end
- end
- function eventPlayerLeft(jogador)
- if jogador == player1 then
- lifer = 0
- for p1 = 1, #twin, 1 do
- if player1 == twin[p1] then
- table.remove(twin, p1)
- player1 = "a"
- table.insert(twin, 1, player1)
- end
- end
- tw()
- end
- if jogador == player2 then
- lifeb = 0
- for p2 = 1, #twin, 1 do
- if player2 == twin[p2] then
- table.remove(twin, p2)
- player2 = "b"
- table.insert(twin, 2, player2)
- end
- end
- tw()
- end
- if jogador == player3 then
- lifey = 0
- for p3 = 1, #twin, 1 do
- if player3 == twin[p3] then
- table.remove(twin, p3)
- player3 = "c"
- table.insert(twin, 3, player3)
- end
- end
- tw()
- end
- if jogador == player4 then
- lifeg = 0
- for p4 = 1, #twin, 1 do
- if player4 == twin[p4] then
- table.remove(twin, p4)
- player4 = "d"
- table.insert(twin, 4, player4)
- end
- end
- tw()
- end
- if jogador == player5 then
- lifeo = 0
- for p5 = 1, #twin, 1 do
- if player5 == twin[p5] then
- table.remove(twin, p5)
- player5 = "e"
- table.insert(twin, 5, player5)
- end
- end
- tw()
- end
- if jogador == player6 then
- lifero = 0
- for p6 = 1, #twin, 1 do
- if player6 == twin[p6] then
- table.remove(twin, p6)
- player6 = "f"
- table.insert(twin, 6, player6)
- end
- end
- tw()
- end
- if jogador == player7 then
- lifep = 0
- for p7 = 1, #twin, 1 do
- if player7 == twin[p7] then
- table.remove(twin, p7)
- player7 = "g"
- table.insert(twin, 7, player7)
- end
- end
- tw()
- end
- if jogador == player8 then
- lifec = 0
- for p8 = 1, #twin, 1 do
- if player8 == twin[p8] then
- table.remove(twin, p8)
- player8 = "h"
- table.insert(twin, 8, player8)
- end
- end
- tw()
- end
- if modo == "espera" then
- for sair = 1, #tabela, 1 do
- if tabela[sair].v == jogador then
- table.remove(tabela, sair)
- for tt = 1, #mice do
- ui.addTextArea(2, mice[tt].tr.text3.." "..#tabela.."/8", mice[tt].name, 30, 370, 200, 25, 0x0e232b, 0x171717, 1, true)
- end
- if #tabela < 8 then
- for tts = 1, #mice do
- ui.addTextArea(4, mice[tts].tr.text2, mice[tts].name, 250, 370, 300, 25, 0x0e232b, 0x171717, 1, true)
- end
- for vvv = 1, #tabela do
- ui.removeTextArea(4, tabela[vvv])
- end
- end
- end
- end
- end
- end
- function tw()
- if #twin <= 2 then
- checkwin()
- end
- end
- function eventNewPlayer(jogador)
- xg = false
- for vv = 1, #mice do
- if mice[vv].v == jogador then
- xg = true
- end
- end
- if xg == false then
- mice[jogador] = {v = jogador, tr = trad}
- table.insert(mice, mice[jogador])
- end
- ui.addTextArea(4000, "<p align='center'><font size='15px'><a href='event:ajuda'>?", jogador, 5, 25, 20, 20, 0x0e232b, 0x171717, 1, true)
- if modo == "espera" then
- tfm.exec.respawnPlayer(jogador)
- for vk = 1, #mice do
- if mice[vk].v == jogador then
- ui.addTextArea(2, mice[vk].tr.text3.." "..#tabela.."/8", jogador, 30, 370, 200, 25, 0x0e232b, 0x171717, 1, true)
- end
- end
- ui.addTextArea(18, mice[jogador].tr.text13, mice[jogador].v, 989, 350, 190, 90, 0x242424, 0xFFFFFF, 0, false)
- ui.addTextArea(19, mice[jogador].tr.text14, mice[jogador].v, 1745, 348, 190, 92, 0x242424, 0xFFFFFF, 0, false)
- lt = false
- if lt == false and #tabela < 8 then
- for vs = 1, #mice do
- if mice[vs].v == jogador then
- ui.addTextArea(1, mice[vs].tr.text2, jogador, 250, 370, 300, 25, 0x0e232b, 0x171717, 1, true)
- end
- end
- else
- for gx = 1, #mice do
- if mice[gx].v == jogador then
- ui.addTextArea(1, mice[gx].tr.text5, mice[gx].v, 250, 370, 300, 25, 0x0e232b, 0x171717, 1, true)
- end
- end
- end
- end
- if modo ~= "espera" then
- for lg = 1, #mice do
- if mice[lg].v == jogador then
- ui.addTextArea(7, mice[lg].tr.text12.." "..maxspawn.." "..mice[lg].tr.text15.."", jogador, 240, 56, 340, 25, 0x0e232b, 0x171717, 1, true)
- end
- end
- attLife(jogador)
- spawn()
- end
- if inGame == true then
- ui.addTextArea(3000, mice[jogador].tr.text10, mice[jogador].v, 650, 34, 145, 20, 0x0e232b, 0x171717, 1, true)
- end
- ui.addTextArea(5001, "", jogador, 0, 0, 800, 400, 0x161616, 0x161616, 0.8, true)
- ui.addPopup(0, 1, mice[jogador].tr.text11, jogador, 300, 150, 250, true)
- end
- function popup()
- times = {"<font color='#D00D0D'>Red</font>", "<font color='#1C59D9'>Blue</font>", "<font color='#FFE300'>Yellow</font>", "<font color='#19C52E'>Green</font>", "<font color='#FF8300'>Orange</font>", "<font color='#FF00F6'>Rose</font>", "<font color='#9100FF'>Purple</font>", "<font color='#00F3F3'>Cyan</font>"}
- for tt = 1, #players do
- player = players[tt]
- text = times[tt]
- lang.br.text17 = "<font size='12px'>Você é do time "..text..", <b>você deve proteger seu gol spawnando pisos na area <font color='#19C52E'>Verde</font> através do <font color='#19C52E'>click do mouse</font>.</b><br>o último a sobreviver vence, boa sorte!!!</font>"
- lang.en.text17 = "<font size='12px'>You are the "..text.." team, <b>you must protect your goal placing grounds in the <font color='#19C52E'>green</font> area by <font color='#19C52E'> pressing the left mouse button</font>.</b><br>the last survivor wins the game, good luck!!!</font>"
- checkSomePlayers(player)
- ui.addPopup(2, 0, mice[elementIndex].tr.text17, player, 200, 200, 300, true)
- end
- end
- function checkSomePlayers(player)
- for vi = 1, #mice do
- if player == mice[vi].v then
- elementIndex = vi
- end
- end
- end
- function eventChatCommand(name, message)
- if (message:sub(0,10) == "resettimer") then
- if admins[name] then
- if modo == "espera" then
- time = os.time() + 15000
- end
- end
- end
- if message:sub(1,4)=="lang" then
- v = string.lower(message:sub(6,7))
- if lang[v] then
- if v == "en" then
- mice[name].tr = lang.en
- att(name)
- elseif v == "br" then
- mice[name].tr = lang.br
- att(name)
- end
- end
- end
- end
- function att(jogador)
- if modo == "espera" then
- for vp = 1, #mice do
- if mice[vp].v == jogador then
- ui.addTextArea(2, mice[vp].tr.text3.." "..#tabela.."/8", jogador, 30, 370, 200, 25, 0x0e232b, 0x171717, 1, true)
- end
- end
- ui.addTextArea(18, mice[jogador].tr.text13, jogador, 989, 350, 190, 90, 0x242424, 0xFFFFFF, 0, false)
- ui.addTextArea(19, mice[jogador].tr.text14, jogador, 1745, 348, 190, 92, 0x242424, 0xFFFFFF, 0, false)
- t = false
- for i = 1, #tabela, 1 do
- if tabela[i] == jogador then
- t = true
- if t == true then
- ui.addTextArea(1, mice[jogador].tr.text4, jogador, 250, 370, 300, 25, 0x0e232b, 0x171717, 1, true)
- end
- end
- end
- if t == false then
- if #tabela < 8 then
- for pv = 1, #mice do
- if mice[pv].v == jogador then
- ui.addTextArea(1, mice[pv].tr.text2, mice[pv].v, 250, 370, 300, 25, 0x0e232b, 0x171717, 1, true)
- end
- end
- else
- for vt = 1, #mice do
- ui.addTextArea(4, mice[vt].tr.text5, mice[vt].v, 250, 370, 300, 25, 0x0e232b, 0x171717, 1, true)
- end
- for tb = 1, #tabela do
- ui.removeTextArea(4, tabela[tb])
- end
- end
- end
- end
- if modo ~= "espera" then
- ui.addTextArea(7, mice[jogador].tr.text12.." "..maxspawn.." "..mice[jogador].tr.text15.."", jogador, 240, 56, 340, 25, 0x0e232b, 0x171717, 1, true)
- if inGame == true then
- ui.addTextArea(3000, mice[jogador].tr.text10, jogador, 650, 34, 145, 20, 0x0e232b, 0x171717, 1, true)
- end
- end
- end
- function eventPopupAnswer(popupID, name, answer)
- if popupID == 0 then
- if answer == "yes" then
- ui.removeTextArea(5001, name)
- repita(name)
- end
- if answer == "no" then
- ui.removeTextArea(5001, name)
- end
- end
- end
- function checkPlayers()
- if #tabela > 0 then
- l = math.random(#tabela)
- player1 = tabela[l]
- table.remove(tabela, l)
- lifer = 3
- twin = {player1}
- tabela1 = {player1, player2, player3, player4, player5, player6, player7, player8}
- table.insert(players, player1)
- end
- if #tabela > 0 then
- l = math.random(#tabela)
- player2 = tabela[l]
- table.remove(tabela, l)
- twin = {player1, player2}
- tabela1 = {player1, player2, player3, player4, player5, player6, player7, player8}
- lifeb = 3
- table.insert(players, player2)
- end
- if #tabela > 0 then
- l = math.random(#tabela)
- player3 = tabela[l]
- table.remove(tabela, l)
- twin = {player1, player2, player3}
- tabela1 = {player1, player2, player3, player4, player5, player6, player7, player8}
- table.insert(players, player3)
- lifey = 3
- end
- if #tabela > 0 then
- l = math.random(#tabela)
- player4 = tabela[l]
- table.remove(tabela, l)
- twin = {player1, player2, player3, player4}
- tabela1 = {player1, player2, player3, player4, player5, player6, player7, player8}
- lifeg = 3
- table.insert(players, player4)
- end
- if #tabela > 0 then
- l = math.random(#tabela)
- player5 = tabela[l]
- table.remove(tabela, l)
- twin = {player1, player2, player3, player4, player5}
- tabela1 = {player1, player2, player3, player4, player5, player6, player7, player8}
- lifeo = 3
- table.insert(players, player5)
- end
- if #tabela > 0 then
- l = math.random(#tabela)
- player6 = tabela[l]
- table.remove(tabela, l)
- twin = {player1, player2, player3, player4, player5, player6}
- tabela1 = {player1, player2, player3, player4, player5, player6, player7, player8}
- lifero = 3
- table.insert(players, player6)
- end
- if #tabela > 0 then
- l = math.random(#tabela)
- player7 = tabela[l]
- table.remove(tabela, l)
- twin = {player1, player2, player3, player4, player5, player6, player7}
- tabela1 = {player1, player2, player3, player4, player5, player6, player7, player8}
- lifep = 3
- table.insert(players, player7)
- end
- if #tabela > 0 then
- l = math.random(#tabela)
- player8 = tabela[l]
- table.remove(tabela, l)
- twin = {player1, player2, player3, player4, player5, player6, player7, player8}
- tabela1 = {player1, player2, player3, player4, player5, player6, player7, player8}
- lifec = 3
- table.insert(players, player8)
- end
- lang.br.text16 = "<p align='center'><font size='15px'><font face='soopafresh'>Vida dos jogadores</font><p align='left'><font size='14px'><font face='arial'><br><br>Jogador: <r>"..tabela1[1].."<n> | Vida: "..lifer.."<br>Jogador: <bv>"..tabela1[2].."<n> | Vida: "..lifeb.."<br>Jogador: <j>"..tabela1[3].."<n> | Vida: "..lifey.." <br>Jogador: <vp>"..tabela1[4].."<n> | Vida: "..lifeg.." <br>Jogador: <ce>"..tabela1[5].."<n> | Vida "..lifeo.." <br>Jogador: <rose>"..tabela1[6].."<n> | Vida: "..lifero.." <br>Jogador: <vi>"..tabela1[7].."<n> | Vida: "..lifep.." <br>Jogador: <CH>"..tabela1[8].."<n> | Vida: "..lifec..""
- lang.en.text16 = "<p align='center'><font size='15px'><font face='soopafresh'>Players' lives</font><p align='left'><font size='14px'><font face='arial'><br><br>Player: <r>"..tabela1[1].."<n> | Life: "..lifer.."<br>Player: <bv>"..tabela1[2].."<n> | Life: "..lifeb.."<br>Player: <j>"..tabela1[3].."<n> | Life: "..lifey.." <br>Player: <vp>"..tabela1[4].."<n> | Life: "..lifeg.." <br>Player: <ce>"..tabela1[5].."<n> | Life: "..lifeo.." <br>Player: <rose>"..tabela1[6].."<n> | Life: "..lifero.." <br>Player: <vi>"..tabela1[7].."<n> | Life: "..lifep.." <br>Player: <CH>"..tabela1[8].."<n> | Life: "..lifec..""
- modo = "espera2"
- inGame = true
- if inGame == true then
- for pp = 1, #mice do
- ui.addTextArea(3000, mice[pp].tr.text10, mice[pp].v, 650, 34, 145, 20, 0x0e232b, 0x171717, 1, true)
- end
- end
- end
- function conts()
- if lifer > 0 then
- system.bindMouse (player1, true)
- cont = 0
- id1 = 0
- end
- if lifeb > 0 then
- system.bindMouse (player2, true)
- cont2 = 0
- id2 = 3
- end
- if lifey > 0 then
- system.bindMouse (player3, true)
- cont3 = 0
- id3 = 6
- end
- if lifeg > 0 then
- system.bindMouse (player4, true)
- cont4 = 0
- id4 = 9
- end
- if lifeo > 0 then
- system.bindMouse (player5, true)
- cont5 = 0
- id5 = 12
- end
- if lifero > 0 then
- system.bindMouse (player6, true)
- cont6 = 0
- id6 = 15
- end
- if lifep > 0 then
- system.bindMouse (player7, true)
- cont7 = 0
- id7 = 18
- end
- if lifec > 0 then
- system.bindMouse (player8, true)
- cont8 = 0
- id8 = 21
- end
- end
- function maps()
- mapas = {'<C><P D="connexion/x_forteresse/7.jpg, 600, 0, 2;connexion/x_forteresse/7.jpg, 1200, 0, 1;connexion/x_forteresse/7.jpg, 1800, 0, 1;connexion/x_forteresse/7.jpg, 2400, 0, 1;connexion/x_forteresse/7.jpg, 3000, 0, 1" L="3463" /><Z><S><S L="3000" X="1244" H="10" Y="0" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="3000" H="10" X="2321" Y="0" T="0" P="0,0,0.3,0.2,0,0,0,0" /></S><D><DS Y="316" X="-190" /></D><O /></Z></C>',
- '<C><P D="connexion/x_forteresse/10.jpg, 600, 0, 2;connexion/x_forteresse/10.jpg, 1200, 0, 1;connexion/x_forteresse/10.jpg, 1800, 0, 1;connexion/x_forteresse/10.jpg, 2400, 0, 1;connexion/x_forteresse/10.jpg, 3000, 0, 1" L="3463" /><Z><S><S L="10" o="d00d0d" X="-1" H="130" Y="205" T="12" P="0,0,0.3,0.2,-50,0,0,0" /><S P="0,0,0.3,0.2,90,0,0,0" L="10" o="d00d0d" H="800" Y="81" T="12" X="-241" /><S L="10" o="d00d0d" H="130" X="154" Y="141" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="1c59d9" X="598" Y="141" T="12" H="130" /><S L="10" o="d00d0d" X="354" H="130" Y="206" T="12" P="0,0,0.3,0.2,50,0,0,0" /><S P="0,0,0.3,0.2,-50,0,0,0" L="10" o="1c59d9" H="130" Y="206" T="12" X="446" /><S L="10" o="1c59d9" H="406" X="400" Y="81" T="12" P="0,0,0.3,0.2,90,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="d00d0d" X="201" Y="141" T="12" H="130" /><S L="10" o="ffe300" X="1042" H="130" Y="141" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,50,0,0,0" L="10" o="1c59d9" H="130" Y="206" T="12" X="799" /><S L="10" o="ffe300" H="130" X="892" Y="206" T="12" P="0,0,0.3,0.2,-50,0,0,0" /><S P="0,0,0.3,0.2,90,0,0,0" L="10" o="ffe300" X="844" Y="81" T="12" H="406" /><S L="10" o="1c59d9" X="645" H="130" Y="141" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="ffe300" H="130" N="" Y="141" T="12" X="1089" /><S L="10" o="ffe300" H="130" X="1239" Y="206" T="12" P="0,0,0.3,0.2,50,0,0,0" /><S P="0,0,0.3,0.2,-50,0,0,0" L="10" o="19c52e" X="1332" Y="206" T="12" H="130" /><S L="10" o="19c52e" X="1287" H="406" Y="81" T="12" P="0,0,0.3,0.2,90,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="19c52e" H="130" Y="141" T="12" X="1489" /><S L="10" o="19c52e" H="130" X="1533" Y="141" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,50,0,0,0" L="10" o="19c52e" X="1685" Y="206" T="12" H="130" /><S L="10" o="ff8300" X="1779" H="130" Y="206" T="12" P="0,0,0.3,0.2,-50,0,0,0" /><S P="0,0,0.3,0.2,90,0,0,0" L="10" o="ff8300" H="406" Y="81" T="12" X="1731" /><S L="10" o="ff8300" H="130" X="1931" Y="141" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="ff8300" X="1977" Y="141" T="12" H="130" /><S L="10" o="ff8300" X="2128" H="130" Y="206" T="12" P="0,0,0.3,0.2,50,0,0,0" /><S P="0,0,0.3,0.2,-50,0,0,0" L="10" o="ff00f6" H="130" Y="206" T="12" X="2223" /><S L="10" o="ff00f6" H="406" X="2175" Y="81" T="12" P="0,0,0.3,0.2,90,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="ff00f6" X="2375" Y="141" T="12" H="130" /><S L="10" o="ff00f6" X="2421" H="130" Y="141" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,50,0,0,0" L="10" o="ff00f6" H="130" Y="206" T="12" X="2576" /><S L="10" o="9100ff" H="130" X="2668" Y="206" T="12" P="0,0,0.3,0.2,-50,0,0,0" /><S P="0,0,0.3,0.2,90,0,0,0" L="10" o="9100ff" X="2619" Y="81" T="12" H="406" /><S L="10" o="9100ff" X="2819" H="130" Y="141" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="9100ff" H="130" Y="141" T="12" X="2865" /><S L="10" o="9100ff" H="130" X="3012" Y="206" T="12" P="0,0,0.3,0.2,50,0,0,0" /><S P="0,0,0.3,0.2,-50,0,0,0" L="10" o="f3f3" X="3104" Y="206" T="12" H="130" /><S L="10" o="f3f3" X="3063" H="406" Y="81" T="12" P="0,0,0.3,0.2,90,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="f3f3" H="130" Y="141" T="12" X="3263" /><S L="10" o="f3f3" H="130" X="3309" Y="141" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,50,0,0,0" L="10" o="f3f3" X="3443" Y="205" T="12" H="130" /><S L="3000" H="10" X="1244" Y="0" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="10" o="f3f3" H="800" X="3704" Y="80" T="12" P="0,0,0.3,0.2,90,0,0,0" /><S L="3000" X="2321" H="10" Y="0" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="43" X="400" H="10" Y="401" T="2" P="0,0,0,1.0,0,0,0,0" /><S L="43" H="10" X="845" Y="401" T="2" P="0,0,0,1.0,0,0,0,0" /><S L="43" X="1290" H="10" Y="401" T="2" P="0,0,0,1.0,0,0,0,0" /><S L="43" H="10" X="2180" Y="401" T="2" P="0,0,0,1.0,0,0,0,0" /><S L="43" X="1730" H="10" Y="401" T="2" P="0,0,0,1.0,0,0,0,0" /><S L="43" X="2621" H="10" Y="401" T="2" P="0,0,0,1.0,0,0,0,0" /><S L="43" H="10" X="3061" Y="402" T="2" P="0,0,0,1.0,0,0,0,0" /></S><D><DS Y="307" X="-149" /></D><O /></Z></C>',
- '<C><P L="3463" D="connexion/x_forteresse/3.jpg, 600, 0, 2;connexion/x_forteresse/3.jpg, 1200, 0, 1;connexion/x_forteresse/3.jpg, 1800, 0, 1;connexion/x_forteresse/3.jpg, 2400, 0, 1;connexion/x_forteresse/3.jpg, 3000, 0, 1" /><Z><S><S L="3000" H="10" X="1244" Y="0" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="3000" X="2321" H="10" Y="0" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="10" H="10" X="528" Y="190" T="3" P="1,0,0,100,0,0,0,0" /><S P="1,0,0,100,0,0,0,0" L="10" X="90" N="" Y="191" T="3" H="10" /><S P="1,0,0,100,0,0,0,0" L="10" X="717" N="" Y="190" T="3" H="10" /><S L="10" H="10" X="272" Y="190" T="3" P="1,0,0,100,0,0,0,0" /><S X="178" L="193" H="10" c="4" Y="191" T="8" P="1,0,0.3,0.2,0,0,0,0" /><S P="1,0,0.3,0.2,0,0,0,0" L="193" X="622" c="4" Y="190" T="8" H="10" /><S L="10" H="10" X="1161" Y="190" T="3" P="1,0,0,100,0,0,0,0" /><S L="10" X="975" H="10" Y="190" T="3" P="1,0,0,100,0,0,0,0" /><S P="1,0,0.3,0.2,0,0,0,0" L="193" X="1066" c="4" Y="190" T="8" H="10" /><S L="10" H="10" X="1417" Y="191" T="3" P="1,0,0,100,0,0,0,0" /><S L="10" X="1605" H="10" Y="191" T="3" P="1,0,0,100,0,0,0,0" /><S H="10" L="193" X="1510" c="4" Y="190" T="8" P="1,0,0.3,0.2,0,0,0,0" /><S L="10" H="10" X="2049" Y="191" T="3" P="1,0,0,100,0,0,0,0" /><S L="10" X="1860" H="10" Y="190" T="3" P="1,0,0,100,0,0,0,0" /><S P="1,0,0.3,0.2,0,0,0,0" L="193" H="10" c="4" Y="190" T="8" X="1955" /><S L="10" H="10" X="2307" Y="190" T="3" P="1,0,0,100,0,0,0,0" /><S L="10" X="2493" H="10" Y="190" T="3" P="1,0,0,100,0,0,0,0" /><S X="2398" L="193" H="10" c="4" Y="190" T="8" P="1,0,0.3,0.2,0,0,0,0" /><S L="10" X="2748" H="10" Y="190" T="3" P="1,0,0,100,0,0,0,0" /><S L="10" H="10" X="2937" Y="190" T="3" P="1,0,0,100,0,0,0,0" /><S P="1,0,0.3,0.2,0,0,0,0" L="193" X="2842" c="4" Y="190" T="8" H="10" /><S L="10" H="10" X="3192" Y="190" T="3" P="1,0,0,100,0,0,0,0" /><S L="10" X="3381" H="10" Y="190" T="3" P="1,0,0,100,0,0,0,0" /><S H="10" L="193" X="3286" c="4" Y="190" T="8" P="1,0,0.3,0.2,0,0,0,0" /></S><D><DS Y="294" X="-159" /></D><O><O C="12" Y="190" X="178" P="0" /><O C="22" Y="190" X="90" P="0" /><O C="22" Y="190" X="272" P="0" /><O C="12" Y="190" P="0" X="624" /><O C="22" Y="190" P="0" X="718" /><O C="12" Y="190" X="1066" P="0" /><O C="12" Y="190" P="0" X="1509" /><O C="22" Y="190" X="1161" P="0" /><O C="22" Y="192" P="0" X="1605" /><O C="12" Y="191" X="1955" P="0" /><O C="22" Y="192" X="2049" P="0" /><O C="22" Y="190" P="0" X="975" /><O C="22" Y="190" P="0" X="1861" /><O C="22" Y="190" P="0" X="529" /><O C="22" Y="191" X="1418" P="0" /><O C="12" Y="190" P="0" X="2398" /><O C="22" Y="191" X="2307" P="0" /><O C="22" Y="190" P="0" X="2493" /><O C="12" Y="190" X="2842" P="0" /><O C="22" Y="190" P="0" X="2748" /><O C="22" Y="190" X="2938" P="0" /><O C="12" Y="190" P="0" X="3286" /><O C="22" Y="190" X="3192" P="0" /><O C="22" Y="190" P="0" X="3381" /></O></Z></C>',
- '<C><P D="x_deadmeat/cinematique/106.jpg, 600, 0, 2;x_deadmeat/cinematique/106.jpg, 1200, 0, 1;x_deadmeat/cinematique/106.jpg, 1800, 0, 1;x_deadmeat/cinematique/106.jpg, 2400, 0, 1;x_deadmeat/cinematique/106.jpg, 3000, 0, 1" L="3463" /><Z><S><S L="3000" X="1244" H="10" Y="0" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="3000" H="10" X="2321" Y="0" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="10" o="d00d0d" X="78" H="150" Y="170" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="d00d0d" H="150" Y="170" T="12" X="278" /><S L="20" H="10" X="83" Y="246" T="2" P="0,0,0,0.5,45,0,0,0" /><S L="20" X="272" H="10" Y="246" T="2" P="0,0,0,0.5,-45,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="1c59d9" H="150" Y="170" T="12" X="522" /><S L="10" o="1c59d9" H="150" X="722" Y="170" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S L="20" X="527" H="10" Y="246" T="2" P="0,0,0,0.5,45,0,0,0" /><S L="20" H="10" X="716" Y="246" T="2" P="0,0,0,0.5,-45,0,0,0" /><S L="10" o="ffe300" H="150" X="966" Y="170" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="ffe300" X="1166" Y="170" T="12" H="150" /><S L="20" H="10" X="971" Y="246" T="2" P="0,0,0,0.5,45,0,0,0" /><S L="20" X="1160" H="10" Y="246" T="2" P="0,0,0,0.5,-45,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="19c52e" X="1410" Y="170" T="12" H="150" /><S L="10" o="19c52e" X="1610" H="150" Y="170" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S L="20" X="1415" H="10" Y="246" T="2" P="0,0,0,0.5,45,0,0,0" /><S L="20" H="10" X="1604" Y="246" T="2" P="0,0,0,0.5,-45,0,0,0" /><S L="10" o="ff8300" X="1854" H="150" Y="170" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="ff8300" H="150" Y="170" T="12" X="2054" /><S L="20" H="10" X="1859" Y="246" T="2" P="0,0,0,0.5,45,0,0,0" /><S L="20" X="2048" H="10" Y="246" T="2" P="0,0,0,0.5,-45,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="ff00f6" H="150" Y="170" T="12" X="2298" /><S L="20" X="2303" H="10" Y="246" T="2" P="0,0,0,0.5,45,0,0,0" /><S L="10" o="ff00f6" H="150" X="2498" Y="170" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S L="20" H="10" X="2492" Y="246" T="2" P="0,0,0,0.5,-45,0,0,0" /><S L="10" o="9100ff" H="150" X="2742" Y="170" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S L="20" H="10" X="2747" Y="246" T="2" P="0,0,0,0.5,45,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="9100ff" X="2942" Y="170" T="12" H="150" /><S L="20" X="2936" H="10" Y="246" T="2" P="0,0,0,0.5,-45,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="f3f3" X="3186" Y="170" T="12" H="150" /><S L="10" o="f3f3" X="3386" H="150" Y="170" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S L="20" X="3191" H="10" Y="246" T="2" P="0,0,0,0.5,45,0,0,0" /><S L="20" H="10" X="3380" Y="246" T="2" P="0,0,0,0.5,-45,0,0,0" /></S><D><DS Y="298" X="-145" /></D><O><O C="3" Y="180" P="0" X="178" /><O C="12" Y="180" P="0" X="180" /><O C="3" Y="180" X="622" P="0" /><O C="12" Y="180" X="622" P="0" /><O C="3" Y="180" P="0" X="1066" /><O C="12" Y="180" P="0" X="1066" /><O C="3" Y="180" X="1510" P="0" /><O C="12" Y="180" X="1510" P="0" /><O C="3" Y="180" P="0" X="1954" /><O C="12" Y="180" P="0" X="1954" /><O C="3" Y="180" X="2398" P="0" /><O C="12" Y="180" X="2398" P="0" /><O C="3" Y="180" P="0" X="2842" /><O C="12" Y="180" P="0" X="2842" /><O C="3" Y="180" X="3286" P="0" /><O C="12" Y="180" X="3286" P="0" /></O></Z></C>'
- }
- map = mapas[math.random(#mapas)]
- cn1 = {}
- cn2 = {}
- cn3 = {}
- cn4 = {}
- cn5 = {}
- cn6 = {}
- cn7 = {}
- cn8 = {}
- cnsy = {}
- if map == mapas[1] then
- pad()
- end
- if map == mapas[2] then
- cnsy = {179}
- cn1 = {4, 178, 345}
- cn2 = {448, 622, 789}
- cn3 = {892, 1066, 1233}
- cn4 = {1336, 1510, 1677}
- cn5 = {1780, 1954, 2121}
- cn6 = {2224, 2398, 2565}
- cn7 = {2668, 2842, 3009}
- cn8 = {3112, 3286, 3453}
- end
- if map == mapas[3] then
- pad()
- end
- if map == mapas[4] then
- cnsy = {80}
- for nc1 = 98, 258, 1 do
- table.insert(cn1, nc1)
- end
- for nc2 = 542, 702, 1 do
- table.insert(cn2, nc2)
- end
- for nc3 = 986, 1146, 1 do
- table.insert(cn3, nc3)
- end
- for nc4 = 1430, 1590, 1 do
- table.insert(cn4, nc4)
- end
- for nc5 = 1874, 2034, 1 do
- table.insert(cn5, nc5)
- end
- for nc6 = 2318, 2478, 1 do
- table.insert(cn6, nc6)
- end
- for nc7 = 2762, 2922, 1 do
- table.insert(cn7, nc7)
- end
- for nc8 = 3206, 3366, 1 do
- table.insert(cn8, nc8)
- end
- end
- tfm.exec.newGame(map)
- spawn()
- end
- function spawnCannon()
- if lifer > 0 then
- t1 = tfm.exec.addShamanObject(17, cn1[math.random(#cn1)], cnsy[math.random(#cnsy)], 0, 0, 0, false)
- table.insert(objectList, t1)
- end
- if lifeb > 0 then
- t2 = tfm.exec.addShamanObject(17, cn2[math.random(#cn2)], cnsy[math.random(#cnsy)], 0, 0, 0, false)
- table.insert(objectList, t2)
- end
- if lifey > 0 then
- t3 = tfm.exec.addShamanObject(17, cn3[math.random(#cn3)], cnsy[math.random(#cnsy)], 0, 0, 0, false)
- table.insert(objectList, t3)
- end
- if lifeg > 0 then
- t4 = tfm.exec.addShamanObject(17, cn4[math.random(#cn4)], cnsy[math.random(#cnsy)], 0, 0, 0, false)
- table.insert(objectList, t4)
- end
- if lifeo > 0 then
- t5 = tfm.exec.addShamanObject(17, cn5[math.random(#cn5)], cnsy[math.random(#cnsy)], 0, 0, 0, false)
- table.insert(objectList, t5)
- end
- if lifero > 0 then
- t6 = tfm.exec.addShamanObject(17, cn6[math.random(#cn6)], cnsy[math.random(#cnsy)], 0, 0, 0, false)
- table.insert(objectList, t6)
- end
- if lifep > 0 then
- t7 = tfm.exec.addShamanObject(17, cn7[math.random(#cn7)], cnsy[math.random(#cnsy)], 0, 0, 0, false)
- table.insert(objectList, t7)
- end
- if lifec > 0 then
- t8 = tfm.exec.addShamanObject(17, cn8[math.random(#cn8)], cnsy[math.random(#cnsy)], 0, 0, 0, false)
- table.insert(objectList, t8)
- end
- end
- function collect()
- coordX = {}
- coordY = {}
- if lifer > 0 then
- checkidx(objectList, t1)
- objX1 = tfm.get.room.objectList[objectList[v]].x
- checkidy(objectList, t1)
- objY1 = tfm.get.room.objectList[objectList[b]].y
- table.insert(coordX, objX1)
- table.insert(coordY, objY1)
- end
- if lifeb > 0 then
- checkidx(objectList, t2)
- objX2 = tfm.get.room.objectList[objectList[v]].x
- checkidy(objectList, t2)
- objY2 = tfm.get.room.objectList[objectList[b]].y
- table.insert(coordX, objX2)
- table.insert(coordY, objY2)
- end
- if lifey > 0 then
- checkidx(objectList, t3)
- objX3 = tfm.get.room.objectList[objectList[v]].x
- checkidy(objectList, t3)
- objY3 = tfm.get.room.objectList[objectList[b]].y
- table.insert(coordX, objX3)
- table.insert(coordY, objY3)
- end
- if lifeg > 0 then
- checkidx(objectList, t4)
- objX4 = tfm.get.room.objectList[objectList[v]].x
- checkidy(objectList, t4)
- objY4 = tfm.get.room.objectList[objectList[b]].y
- table.insert(coordX, objX4)
- table.insert(coordY, objY4)
- end
- if lifeo > 0 then
- checkidx(objectList, t5)
- objX5 = tfm.get.room.objectList[objectList[v]].x
- checkidy(objectList, t5)
- objY5 = tfm.get.room.objectList[objectList[b]].y
- table.insert(coordX, objX5)
- table.insert(coordY, objY5)
- end
- if lifero > 0 then
- checkidx(objectList, t6)
- objX6 = tfm.get.room.objectList[objectList[v]].x
- checkidy(objectList, t6)
- objY6 = tfm.get.room.objectList[objectList[b]].y
- table.insert(coordX, objX6)
- table.insert(coordY, objY6)
- end
- if lifep > 0 then
- checkidx(objectList, t7)
- objX7 = tfm.get.room.objectList[objectList[v]].x
- checkidy(objectList, t7)
- objY7 = tfm.get.room.objectList[objectList[b]].y
- table.insert(coordX, objX7)
- table.insert(coordY, objY7)
- end
- if lifec > 0 then
- checkidx(objectList, t8)
- objX8 = tfm.get.room.objectList[objectList[v]].x
- checkidy(objectList, t8)
- objY8 = tfm.get.room.objectList[objectList[b]].y
- table.insert(coordX, objX8)
- table.insert(coordY, objY8)
- end
- end
- function checkidx(arg1, arg2)
- for ml = 1, #arg1, 1 do
- if arg2 == arg1[ml] then
- v = ml
- end
- end
- end
- function checkidy(arg3, arg4)
- for l = 1, #arg3, 1 do
- if arg4 == arg3[l] then
- b = l
- end
- end
- end
- function attLife(nome)
- ui.addTextArea(0, "<p align='center'><font size='15px'><b>"..lifer.."", nome, 154, 56, 50, 30, 0x161616, 0x161616, 0, false)
- ui.addTextArea(1, "<p align='center'><font size='15px'><b>"..lifeb.."", nome, 598, 56, 50, 30, 0x161616, 0x161616, 0, false)
- ui.addTextArea(16, "<p align='center'><font size='15px'><b>"..lifey.."", nome, 1042, 56, 50, 30, 0x161616, 0x161616, 0, false)
- ui.addTextArea(17, "<p align='center'><font size='15px'><b>"..lifeg.."", nome, 1486, 56, 50, 30, 0x161616, 0x161616, 0, false)
- ui.addTextArea(18, "<p align='center'><font size='15px'><b>"..lifeo.."", nome, 1929, 56, 50, 30, 0x161616, 0x161616, 0, false)
- ui.addTextArea(19, "<p align='center'><font size='15px'><b>"..lifero.."", nome, 2374, 56, 50, 30, 0x161616, 0x161616, 0, false)
- ui.addTextArea(21, "<p align='center'><font size='15px'><b>"..lifep.."", nome, 2818, 56, 50, 30, 0x161616, 0x161616, 0, false)
- ui.addTextArea(22, "<p align='center'><font size='15px'><b>"..lifec.."", nome, 3262, 56, 50, 30, 0x161616, 0x161616, 0, false)
- end
- function repita(jogador)
- ui.addTextArea(4001, mice[jogador].tr.text6, jogador, 100, 50, 600, 100, 0x0e232b, 0x171717, 1, true)
- ui.addTextArea(4002, mice[jogador].tr.text7, jogador, 100, 150, 600, 200, 0x0e232b, 0x171717, 1, true)
- ui.addTextArea(4003, "<p align='center'><font size='15px'><a href='event:fecha'><r>X<n>", jogador, 650, 60, 30, 20, 0x0e232b, 0x171717, 1, true)
- end
- function removeText()
- for text = 0, 22, 1 do
- ui.removeTextArea(text)
- end
- if inGame == false then
- ui.removeTextArea(3000)
- end
- ui.removeTextArea(5000)
- end
- function limpar()
- if #objectList > 0 then
- for obj = 1, #objectList, 1 do
- tfm.exec.removeObject(objectList[obj])
- end
- end
- objectList = {}
- if #portaisid > 0 then
- for idobj = 1, #portaisid, 1 do
- tfm.exec.removeObject(portaisid[idobj])
- end
- end
- portaisid = {}
- for piso = 0, 24, 1 do
- tfm.exec.removePhysicObject(piso)
- end
- for piso3 = 98, 105, 1 do
- tfm.exec.removePhysicObject(piso3)
- end
- if fim == true then
- for piso2 = 50, 97, 1 do
- tfm.exec.removePhysicObject(piso2)
- end
- end
- end
- function spawn()
- valor = 178
- valor7 = 1
- cor = {0xD00D0D, 0x1C59D9, 0xFFE300, 0x19C52E, 0xFF8300, 0xFF00F6, 0x9100FF, 0x00F3F3}
- for h = 50, 57, 1 do
- tfm.exec.addPhysicObject(h, valor, 401, {
- type = 12,
- color = cor[valor7],
- width = 200,
- height = 10,
- friction = 5000,
- restitution = .2,
- miceCollision = false,
- groundCollision = true})
- valor = valor + 444
- valor7 = valor7 + 1
- end
- valor1 = 83
- for j = 58, 65, 1 do
- tfm.exec.addPhysicObject(j, valor1, 390, {
- type = 2,
- color = 0xFFFFFF,
- width = 10,
- height = 20,
- friction = 0,
- restitution = 1.3,
- miceCollision = false,
- groundCollision = true})
- valor1 = valor1 + 444
- end
- valor6 = 83
- valor8 = 1
- for jj = 90, 97, 1 do
- tfm.exec.addPhysicObject(jj, valor6 + 1, 391, {
- type = 12,
- color = cor[valor8],
- width = 10,
- height = 20,
- friction = 5000,
- restitution = 0,
- miceCollision = false,
- groundCollision = true})
- valor6 = valor6 + 444
- valor8 = valor8 + 1
- end
- valor2 = 273
- for q = 66, 73, 1 do
- tfm.exec.addPhysicObject(q, valor2, 390, {
- type = 2,
- color = math.random(0xFFFFFF),
- width = 10,
- height = 20,
- friction = 5000,
- restitution = 1.3,
- miceCollision = false,
- groundCollision = true})
- valor2 = valor2 + 444
- end
- valor5 = 273
- valor9 = 1
- for gg = 82, 89, 1 do
- tfm.exec.addPhysicObject(gg, valor5 - 1, 391, {
- type = 12,
- color = cor[valor9],
- width = 10,
- height = 20,
- friction = 5000,
- restitution = 0,
- miceCollision = false,
- groundCollision = true})
- valor5 = valor5 + 444
- valor9 = valor9 + 1
- end
- valor3 = 178
- valor4 = 1
- for p = 74, 81, 1 do
- tfm.exec.addPhysicObject(p, valor3, 66, {
- type = 13,
- color = cor[valor4],
- width = 20,
- height = 0,
- friction = 0,
- restitution = .2,
- miceCollision = false,
- groundCollision = false})
- valor3 = valor3 + 444
- valor4 = valor4 + 1
- end
- end
- function checkl()
- if lifer > 0 then
- ui.addTextArea(3, "", player1, 118, 302, 123, 58, 0x00FF21, 0x63EC47, 0.1, false)
- end
- if lifeb > 0 then
- ui.addTextArea(4, "", player2, 563, 302, 123, 58, 0x00FF21, 0x63EC47, 0.1, false)
- end
- if lifey > 0 then
- ui.addTextArea(5, "", player3, 1008, 302, 123, 58, 0x00FF21, 0x63EC47, 0.1, false)
- end
- if lifeg > 0 then
- ui.addTextArea(6, "", player4, 1453, 302, 123, 58, 0x00FF21, 0x63EC47, 0.1, false)
- end
- if lifeo > 0 then
- ui.addTextArea(8, "", player5, 1898, 302, 123, 58, 0x00FF21, 0x63EC47, 0.1, false)
- end
- if lifero > 0 then
- ui.addTextArea(9, "", player6, 2343, 302, 123, 58, 0x00FF21, 0x63EC47, 0.1, false)
- end
- if lifep > 0 then
- ui.addTextArea(10, "", player7, 2783, 302, 123, 58, 0x63EC47, 0x63EC47, 0.1, false)
- end
- if lifec > 0 then
- ui.addTextArea(11, "", player8, 3223, 302, 123, 58, 0x63EC47, 0x63EC47, 0.1, false)
- end
- end
- function objcoords()
- initGoalExtension = {90, 534, 978, 1422, 1866, 2310, 2754, 3198}
- endGoalExtension = {265, 709, 1153, 1597, 2041, 2485, 2929, 3373}
- for i = 1, #initGoalExtension do
- cannonCheckCoordinates(initGoalExtension[i], endGoalExtension[i])
- end
- condi2 = condi2 + 1
- end
- function cannonCheckCoordinates(InitExtensionGoal, EndExtensionGoal)
- for cn = 1, #coordX do
- if coordX[cn] >= InitExtensionGoal and coordX[cn] <= EndExtensionGoal then
- if coordY[cn] == 381 then
- lostLife(InitExtensionGoal)
- end
- end
- end
- end
- function lostLife(InitExtensionGoal)
- if lifer > 0 then
- if InitExtensionGoal == 90 then
- lifer = lifer - 1
- end
- end
- if lifeb > 0 then
- if InitExtensionGoal == 534 then
- lifeb = lifeb - 1
- end
- end
- if lifey > 0 then
- if InitExtensionGoal == 978 then
- lifey = lifey - 1
- end
- end
- if lifeg > 0 then
- if InitExtensionGoal == 1422 then
- lifeg = lifeg - 1
- end
- end
- if lifeo > 0 then
- if InitExtensionGoal == 1866 then
- lifeo = lifeo - 1
- end
- end
- if lifero > 0 then
- if InitExtensionGoal == 2310 then
- lifero = lifero - 1
- end
- end
- if lifep > 0 then
- if InitExtensionGoal == 2754 then
- lifep = lifep - 1
- end
- end
- if lifec > 0 then
- if InitExtensionGoal == 3198 then
- lifec = lifec - 1
- end
- end
- attLife(nil)
- end
- function portais()
- port1 = tfm.exec.addShamanObject(26, math.random(118, 3338), math.random(307, 345), 0, 0, 0, false)
- port2 = tfm.exec.addShamanObject(27, math.random(118, 3338), math.random(307, 345), 0, 0, 0, false)
- table.insert(portaisid, port1)
- table.insert(portaisid, port2)
- end
- function spawnT()
- valor10 = 178
- for vnb = 98, 105, 1 do
- tfm.exec.addPhysicObject(vnb, valor10, 362, {
- type = 8,
- width = 200,
- height = 10,
- miceColission = true,
- groundCollision = true})
- valor10 = valor10 + 444
- end
- end
- function teleportPlayers()
- value = 178
- for hgj = 1, #players do
- tfm.exec.movePlayer (players[hgj], value, 10000, false, 0, 0, false)
- value = value + 444
- end
- end
- function pad()
- for nc1 = 136, 212, 1 do
- table.insert(cn1, nc1)
- end
- for nc2 = 582, 658, 1 do
- table.insert(cn2, nc2)
- end
- for nc3 = 1028, 1104, 1 do
- table.insert(cn3, nc3)
- end
- for nc4 = 1474, 1550, 1 do
- table.insert(cn4, nc4)
- end
- for nc5 = 1920, 1996, 1 do
- table.insert(cn5, nc5)
- end
- for nc6 = 2366, 2442, 1 do
- table.insert(cn6, nc6)
- end
- for nc7 = 2812, 2888, 1 do
- table.insert(cn7, nc7)
- end
- for nc8 = 3258, 3334, 1 do
- table.insert(cn8, nc8)
- end
- for ncsy = 93, 254, 1 do
- table.insert(cnsy, ncsy)
- end
- end
- iniciar()
Add Comment
Please, Sign In to add comment