Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function eventLoop(time)
- itr = itr+1
- xa = xa + 15
- if big == true then
- luzi()
- bigg = bigg + 1
- end
- if bigg == 3 then
- lgs = math.random(5)
- tfm.exec.addShamanObject(1003, 1940, 325, 90, -20)
- elseif bigg == 6 then
- lgs = math.random(5)
- tfm.exec.addShamanObject(1003, 1940, 175, 90, -20)
- elseif bigg == 9 then
- lgs = math.random(5)
- tfm.exec.addShamanObject(1003, 1890, -300, 890)
- elseif bigg == 12 then
- lgs = math.random(5)
- tfm.exec.addShamanObject(1003, 21425, 125, 90, -30)
- elseif bigg == 15 then
- lgs = math.random(5)
- tfm.exec.addShamanObject(1003, 1940, 280, 90, -20)
- tfm.exec.addShamanObject(1003, 1940, 222, 90, -20)
- bigg = 0
- end
- if itr == 32 then
- tfm.exec.addPhysicObject(0,400,300,{type=12,height=200, width=19,friction=0,restitution=0,color=0xafafaf,foreground=true, miceCollision=true, groundCollision=false})
- elseif itr < 40 then
- tfm.exec.addPhysicObject(1,1012,200,{type=12,height=800, width=400,friction=0,restitution=0,color=0x6A7495,foreground=true, miceCollision=true})
- for all in pairs(tfm.get.room.playerList) do
- tfm.exec.movePlayer(all, xa, 325)
- end
- elseif itr == 40 then
- ui.addTextArea(1, "", nil, -400, -200, 2000, 1000, 0x000001, 0x000000, 1, true)
- ui.addTextArea(2, "<font size=\"100\" color=\"#F8FF00\">Jailbreak", nil, math.random(350.10), math.random(295.0), 477, 109, 0x324650, 0x000000, 0, true)
- elseif itr == 41 then
- ui.addTextArea(2, "<font size=\"100\" color=\"#FF0019\">Jailbreak", nil, math.random(350.10), math.random(295.0), 477, 109, 0x324650, 0x000000, 0, true)
- elseif itr == 42 then
- ui.addTextArea(2, "<font size=\"100\" color=\"#0D78F6\">Jailbreak", nil, math.random(350.10), math.random(295.0), 477, 109, 0x324650, 0x000000, 0, true)
- elseif itr == 43 then
- ui.addTextArea(2, "<font size=\"100\" color=\"#00FF1B\">Jailbreak", nil, math.random(350.10), math.random(295.0), 477, 109, 0x00FF1B, 0x000000, 0, true)
- elseif itr == 44 then
- ui.addTextArea(2, "<font size=\"100\" color=\"#FFA100\">Jailbreak", nil, math.random(350.10), math.random(295.0), 477, 109, 0xFFA100, 0x000000, 0, true)
- elseif itr == 45 then
- ui.addTextArea(2, "<font size=\"100\" color=\"#FF00EA\">Jailbreak", nil, math.random(350.10), math.random(295.0), 477, 109, 0xFF00EA, 0x000000, 0, true)
- elseif itr == 46 then
- ui.addTextArea(2, "<font size=\"100\" color=\"#B900FC\">Jailbreak", nil, math.random(350.10), math.random(295.0), 477, 109, B900FC, 0x000000, 0, true)
- elseif itr == 48 then
- ui.addTextArea(3, "<font size=\"30\">welcome to", nil, 100, 100, 180, 40, 0x324650, 0x000000, 0, true)
- ui.addTextArea(2, "<font size=\"180\" color=\"#FFFFFF\">Jailbreak", nil, -1, 95, 811, 322, 0x324650, 0x000000, 0, true)
- elseif itr == 52 then
- for id = 0,3 do
- ui.removeTextArea(id,all)
- ui.addTextArea(4, "<font color=\"#C72535\">Delegado:<font color=\"#C2C2DA\"> Ora, ora, ora\no que temos aqui?", nil, 500, 150, x, y, 0x324650, 0x000000, 1, false)
- end
- elseif itr == 58 then
- ui.addTextArea(4, "<font color=\"#C72535\">Delegado:<font color=\"#C2C2DA\"> Não sou de recordar nomes de \ngentinha como você, mas...", nil, 500, 150, x, 300, 0x324650, 0x000000, 1, false)
- elseif itr == 65 then
- for name in pairs(tfm.get.room.playerList) do
- ui.addTextArea(4, ("<font color=\"#C72535\">Delegado:<font color=\"#C2C2DA\"> Você " .. name .. ", é um criminoso especial"), name, 500, 150, x, 300, 0x324650, 0x000000, 1, false)
- end
- elseif itr == 70 then
- ui.addTextArea(4, "<font color=\"#C72535\">Delegado:<font color=\"#C2C2DA\"> garantirei que você passe o resto da \nsua vida miseravél preso aqui, verme!", nil, 500, 150, x, 300, 0x324650, 0x000000, 1, false)
- elseif itr == 76 then
- ui.removeTextArea(4,nil)
- elseif itr == 90 then
- ui.addTextArea(4, "<font color=\"#ACACAC\">????:<font color=\"#C2C2DA\"> Hey", nil, 500, 150, x, 300, 0x324650, 0x000000, 1, false)
- elseif itr == 92 then
- ui.addTextArea(4, "<font color=\"#ACACAC\">????:<font color=\"#C2C2DA\"> Você, preso ai,\n olha aqui em cima!", nil, 500, 150, x, 300, 0x324650, 0x000000, 1, false)
- elseif itr == 98 then
- ui.addTextArea(4, "<font color=\"#ACACAC\">????:<font color=\"#C2C2DA\"> Eu sou a faxineira desse lugar deploravel\n e posso te ajudar a sair!", nil, 500, 150, x, 300, 0x324650, 0x000000, 1, false)
- elseif itr == 105 then
- ui.addTextArea(4, "<font color=\"#ACACAC\">Faxineira:<font color=\"#C2C2DA\"> Vou abrir essa porta e você sai,\nmas se você for pego, nunca nos vimos antes, ok?", nil, 500, 150, x, 300, 0x324650, 0x000000, 1, false)
- tfm.exec.removePhysicObject(1)
- big = true
- elseif itr == 110 then
- ui.removeTextArea(4,all)
- end
- end
- function luzi()
- x=0
- y=0
- piso = 0
- joint = 0
- tfm.exec.addPhysicObject(piso + 1, x, y, {type = 14, width = 10, height = 10, miceCollision = false, groundCollision = false})
- tfm.exec.addPhysicObject(piso + 2, x, y, {type = 14, width = 10, height = 10, miceCollision = false, groundCollision = false})
- for playerName,i in pairs(tfm.get.room.playerList) do
- if lgs == 1 then
- tfm.exec.addJoint(joint + 1, piso + 2, piso + 2,{type = 0, point1 = ''..(x + 1350)..','..(y + 0)..'', point2 = ''..(x + 1000)..','..(y + 400)..'', color = '0xFFFB00', line = 50, alpha = 0.5, foreground = true})
- if i.x > 1000 and i.x < 1030 and i.y > 385 and i.y < 415 or i.x > 1030 and i.x < 1060 and i.y > 350 and i.y < 385 or i.x > 1060 and i.x < 1090 and i.y > 315 and i.y < 350 or i.x > 1090 and i.x < 1120 and i.y > 280 and i.y < 315 or i.x > 1120 and i.x < 1150 and i.y > 245 and i.y < 280 or i.x > 1150 and i.x < 1180 and i.y > 210 and i.y < 245 or i.x > 1180 and i.x < 1210 and i.y > 175 and i.y < 210 or i.x > 1210 and i.x < 1240 and i.y > 140 and i.y < 175 or i.x > 1240 and i.x < 1270 and i.y > 105 and i.y < 140 or i.x > 1270 and i.x < 1300 and i.y > 70 and i.y < 105 or i.x > 1300 and i.x < 1330 and i.y > 35 and i.y < 70 or i.x > 1330 and i.x < 1360 and i.y > 0 and i.y < 35 then
- tfm.exec.movePlayer(playerName, 600, 350, false)
- end
- elseif lgs == 2 then
- tfm.exec.addJoint(joint + 1, piso + 2, piso + 2,{type = 0, point1 = ''..(x + 1350)..','..(y + 0)..'', point2 = ''..(x + 1200)..','..(y + 400)..'', color = '0xFFFB00', line = 50, alpha = 0.5, foreground = true})
- if i.x > 1200 and i.x < 1220 and i.y > 350 and i.y < 400 or i.x > 1220 and i.x < 1240 and i.y > 300 and i.y < 350 or i.x > 1240 and i.x < 1260 and i.y > 250 and i.y < 300 or i.x > 1260 and i.x < 1280 and i.y > 200 and i.y < 250 or i.x > 1280 and i.x < 1300 and i.y > 150 and i.y < 200 or i.x > 1300 and i.x < 1320 and i.y > 100 and i.y < 150 or i.x > 1320 and i.x < 1340 and i.y > 50 and i.y < 100 or i.x > 1340 and i.x < 1360 and i.y > 0 and i.y < 50 then
- tfm.exec.movePlayer(playerName, 600, 350, false)
- end
- elseif lgs == 3 then
- tfm.exec.addJoint(joint + 1, piso + 2, piso + 2,{type = 0, point1 = ''..(x + 1350)..','..(y + 0)..'', point2 = ''..(x + 1350)..','..(y + 400)..'', color = '0xFFFB00', line = 50, alpha = 0.5, foreground = true})
- if i.x > 1350 and i.x < 1400 and i.y > 0 and i.y < 400 then
- tfm.exec.movePlayer(playerName, 600, 350, false)
- end
- elseif lgs == 4 then
- tfm.exec.addJoint(joint + 1, piso + 2, piso + 2,{type = 0, point1 = ''..(x + 1350)..','..(y + 0)..'', point2 = ''..(x + 1500)..','..(y + 400)..'', color = '0xFFFB00', line = 50, alpha = 0.5, foreground = true})
- if i.x > 1350 and i.x < 1400 and i.y > 0 and i.y < 40 or i.x > 1370 and i.x < 1420 and i.y > 40 and i.y < 80 or i.x > 1390 and i.x < 1450 and i.y > 80 and i.y < 120 or i.x > 1410 and i.x < 1470 and i.y > 120 and i.y < 260 or i.x > 1430 and i.x < 1490 and i.y > 160 and i.y < 300 or i.x > 1450 and i.x < 1510 and i.y > 200 and i.y < 340 or i.x > 1470 and i.x < 1530 and i.y > 200 and i.y < 380 or i.x > 1490 and i.x < 1550 and i.y > 200 and i.y < 420 then
- tfm.exec.movePlayer(playerName, 600, 350, false)
- end
- elseif lgs == 5 then
- tfm.exec.addJoint(joint + 1, piso + 2, piso + 2,{type = 0, point1 = ''..(x + 1350)..','..(y + 0)..'', point2 = ''..(x + 1700)..','..(y + 400)..'', color = '0xFFFB00', line = 50, alpha = 0.5, foreground = true})
- if i.x > 1350 and i.x < 1380 and i.y > 0 and i.y < 35 or i.x > 1380 and i.x < 1410 and i.y > 35 and i.y < 70 or i.x > 1410 and i.x < 1440 and i.y > 70 and i.y < 105 or i.x > 1440 and i.x < 1470 and i.y > 105 and i.y < 140 or i.x > 1470 and i.x < 1500 and i.y > 140 and i.y < 175 or i.x > 1500 and i.x < 1530 and i.y > 175 and i.y < 210 or i.x > 1530 and i.x < 1560 and i.y > 210 and i.y < 245 or i.x > 1560 and i.x < 1590 and i.y > 245 and i.y < 280 or i.x > 1590 and i.x < 1620 and i.y > 280 and i.y < 315 or i.x > 1620 and i.x < 1650 and i.y > 315 and i.y < 350 or i.x > 1650 and i.x < 1680 and i.y > 350 and i.y < 385 or i.x > 1680 and i.x < 1710 and i.y > 385 and i.y < 415 then
- tfm.exec.movePlayer(playerName, 600, 350, false)
- end
- end
- end
- end
- function eventNewPlayer(name)
- tfm.exec.respawnPlayer(name)
- ui.setMapName("#Jailbreak")
- tfm.exec.movePlayer(name, 600, 350, false)
- end
- function initial()
- dia = math.random(8)
- if dia == 1 or dia == 2 or dia == 3 or dia == 5 or dia == 7 or dia == 8 then
- xml = ('<C><P F="' .. dia .. '" Ca="" L="5000" /><Z><S><S H="400" L="3000" o="d9d9d9" X="1892" c="4" Y="200" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S H="300" L="19" o="afafaf" X="400" c="3" N="" Y="151" T="12" P="0,0,0,0,0,0,0,0" /><S X="400" L="800" H="60" c="3" Y="371" T="6" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="19" o="afafaf" X="443" c="4" N="" Y="201" T="12" H="400" /><S H="400" L="19" o="afafaf" X="483" c="4" N="" Y="201" 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="19" o="afafaf" X="523" c="4" N="" Y="201" T="12" H="400" /><S H="400" L="19" o="afafaf" X="563" c="4" N="" Y="201" 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="19" o="afafaf" X="603" c="4" N="" Y="201" T="12" H="400" /><S H="400" L="19" o="afafaf" X="643" c="4" N="" Y="201" 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="19" o="afafaf" X="683" c="4" N="" Y="201" T="12" H="400" /><S H="400" L="19" o="afafaf" X="723" c="4" N="" Y="201" 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="19" o="afafaf" X="763" c="4" N="" Y="201" T="12" H="400" /><S L="25" H="25" X="1940" Y="341" T="0" P="0,0,0.3,0.2,45,0,0,0" /><S L="25" X="1940" H="25" Y="305" T="0" P="0,0,0.3,0.2,45,0,0,0" /><S H="60" L="2000" o="2f2f2f" X="1801" c="3" Y="370" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S L="25" H="25" X="1940" Y="159" T="0" P="0,0,0.3,0.2,45,0,0,0" /><S L="25" X="1940" H="25" Y="196" T="0" P="0,0,0.3,0.2,45,0,0,0" /><S H="400" L="19" o="afafaf" X="803" c="4" N="" Y="201" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S L="30" H="30" X="1940" Y="248" T="0" P="0,0,0.3,0.2,45,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="2000" o="2f2f2f" X="1283" c="3" N="" Y="0" T="12" H="60" /><S L="500" H="200" X="2190" Y="241" T="0" P="0,0,0.3,0.2,0,0,0,0" /></S><D><T Y="342" X="47" /></D><O /></Z></C>')
- xa = 0
- itr = 0
- big = false
- bigg = 0
- tfm.exec.disableAutoShaman(true)
- tfm.exec.newGame(xml)
- tfm.exec.disableAutoTimeLeft(true)
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.setGameTime(99999)
- tfm.exec.disableAfkDeath(true)
- tfm.exec.disablePhysicalConsumables(true)
- ui.setMapName("#Jailbreak")
- for playerName,i in pairs(tfm.get.room.playerList) do
- lg = (i.x > 1350 and i.x < 1400 and i.y > 0 and i.y < 400)
- end
- elseif dia == 4 or dia == 6 then
- initial()
- end
- end
- initial()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement