Advertisement
Travonrodfer

Jailbreak

Mar 25th, 2020
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 11.34 KB | None | 0 0
  1. function eventLoop(time)
  2.     itr = itr+1
  3.     xa = xa + 15
  4.     if big == true then
  5.         luzi()
  6.         bigg = bigg + 1
  7.     end
  8.     if bigg == 3 then
  9.         lgs = math.random(5)
  10.         tfm.exec.addShamanObject(1003, 1940, 325, 90, -20)
  11.     elseif bigg == 6 then
  12.         lgs = math.random(5)
  13.         tfm.exec.addShamanObject(1003, 1940, 175, 90, -20)
  14.     elseif bigg == 9 then
  15.         lgs = math.random(5)
  16.         tfm.exec.addShamanObject(1003, 1890, -300, 890)
  17.     elseif bigg == 12 then
  18.         lgs = math.random(5)
  19.         tfm.exec.addShamanObject(1003, 21425, 125, 90, -30)
  20.     elseif bigg == 15 then
  21.         lgs = math.random(5)
  22.         tfm.exec.addShamanObject(1003, 1940, 280, 90, -20)
  23.         tfm.exec.addShamanObject(1003, 1940, 222, 90, -20)
  24.         bigg = 0
  25.     end
  26.     if itr == 32 then
  27.         tfm.exec.addPhysicObject(0,400,300,{type=12,height=200, width=19,friction=0,restitution=0,color=0xafafaf,foreground=true, miceCollision=true, groundCollision=false})
  28.         elseif itr < 40 then
  29.             tfm.exec.addPhysicObject(1,1012,200,{type=12,height=800, width=400,friction=0,restitution=0,color=0x6A7495,foreground=true, miceCollision=true})
  30.         for all in pairs(tfm.get.room.playerList) do
  31.             tfm.exec.movePlayer(all, xa, 325)
  32.         end
  33.  
  34.         elseif itr == 40 then
  35.             ui.addTextArea(1, "", nil, -400, -200, 2000, 1000, 0x000001, 0x000000, 1, true)
  36.             ui.addTextArea(2, "<font size=\"100\" color=\"#F8FF00\">Jailbreak", nil, math.random(350.10), math.random(295.0), 477, 109, 0x324650, 0x000000, 0, true)
  37.  
  38.         elseif itr == 41 then
  39.             ui.addTextArea(2, "<font size=\"100\" color=\"#FF0019\">Jailbreak", nil, math.random(350.10), math.random(295.0), 477, 109, 0x324650, 0x000000, 0, true)
  40.  
  41.         elseif itr == 42 then
  42.             ui.addTextArea(2, "<font size=\"100\" color=\"#0D78F6\">Jailbreak", nil, math.random(350.10), math.random(295.0), 477, 109, 0x324650, 0x000000, 0, true)
  43.  
  44.         elseif itr == 43 then
  45.             ui.addTextArea(2, "<font size=\"100\" color=\"#00FF1B\">Jailbreak", nil, math.random(350.10), math.random(295.0), 477, 109, 0x00FF1B, 0x000000, 0, true)
  46.  
  47.         elseif itr == 44 then
  48.             ui.addTextArea(2, "<font size=\"100\" color=\"#FFA100\">Jailbreak", nil, math.random(350.10), math.random(295.0), 477, 109, 0xFFA100, 0x000000, 0, true)
  49.  
  50.         elseif itr == 45 then
  51.             ui.addTextArea(2, "<font size=\"100\" color=\"#FF00EA\">Jailbreak", nil, math.random(350.10), math.random(295.0), 477, 109, 0xFF00EA, 0x000000, 0, true)
  52.  
  53.         elseif itr == 46 then
  54.             ui.addTextArea(2, "<font size=\"100\" color=\"#B900FC\">Jailbreak", nil, math.random(350.10), math.random(295.0), 477, 109, B900FC, 0x000000, 0, true)
  55.  
  56.         elseif itr == 48 then
  57.             ui.addTextArea(3, "<font size=\"30\">welcome to", nil, 100, 100, 180, 40, 0x324650, 0x000000, 0, true)
  58.             ui.addTextArea(2, "<font size=\"180\" color=\"#FFFFFF\">Jailbreak", nil, -1, 95, 811, 322, 0x324650, 0x000000, 0, true)
  59.  
  60.         elseif itr == 52 then
  61.             for id = 0,3 do
  62.                 ui.removeTextArea(id,all)
  63.                 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)
  64.             end
  65.         elseif itr == 58 then
  66.             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)
  67.  
  68.         elseif itr == 65 then
  69.             for name in pairs(tfm.get.room.playerList) do
  70.                 ui.addTextArea(4, ("<font color=\"#C72535\">Delegado:<font color=\"#C2C2DA\"> Você " .. name .. ", é um criminoso especial"), name, 500, 150, x, 300, 0x324650, 0x000000, 1, false)
  71.             end
  72.         elseif itr == 70 then
  73.             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)
  74.         elseif itr == 76 then
  75.             ui.removeTextArea(4,nil)
  76.         elseif itr == 90 then
  77.             ui.addTextArea(4, "<font color=\"#ACACAC\">????:<font color=\"#C2C2DA\"> Hey", nil, 500, 150, x, 300, 0x324650, 0x000000, 1, false)
  78.         elseif itr == 92 then
  79.             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)
  80.         elseif itr == 98 then
  81.             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)
  82.         elseif itr == 105 then
  83.             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)
  84.             tfm.exec.removePhysicObject(1)
  85.             big = true
  86.  
  87.         elseif itr == 110 then
  88.         ui.removeTextArea(4,all)
  89.     end
  90. end
  91.  
  92. function luzi()
  93.     x=0
  94.     y=0
  95.     piso = 0
  96.     joint = 0
  97.     tfm.exec.addPhysicObject(piso + 1, x, y, {type = 14, width = 10, height = 10, miceCollision = false, groundCollision = false})
  98.     tfm.exec.addPhysicObject(piso + 2, x, y, {type = 14, width = 10, height = 10, miceCollision = false, groundCollision = false})
  99.     for playerName,i in pairs(tfm.get.room.playerList) do
  100.         if lgs == 1 then
  101.             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})
  102.             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
  103.                 tfm.exec.movePlayer(playerName, 600, 350, false)
  104.             end
  105.         elseif lgs == 2 then
  106.             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})
  107.             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
  108.                 tfm.exec.movePlayer(playerName, 600, 350, false)
  109.             end
  110.         elseif lgs == 3 then
  111.             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})
  112.             if i.x > 1350 and i.x < 1400 and i.y > 0 and i.y < 400 then
  113.                 tfm.exec.movePlayer(playerName, 600, 350, false)
  114.             end
  115.         elseif lgs == 4 then
  116.             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})
  117.             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
  118.                 tfm.exec.movePlayer(playerName, 600, 350, false)
  119.             end
  120.         elseif lgs == 5 then
  121.             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})
  122.             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
  123.                 tfm.exec.movePlayer(playerName, 600, 350, false)
  124.             end
  125.         end
  126.     end
  127. end
  128.  
  129. function eventNewPlayer(name)
  130.     tfm.exec.respawnPlayer(name)
  131.     ui.setMapName("#Jailbreak")
  132.     tfm.exec.movePlayer(name, 600, 350, false)
  133. end
  134.  
  135. function initial()
  136.     dia = math.random(8)
  137.     if dia == 1 or dia == 2 or dia == 3 or dia == 5 or dia == 7 or dia == 8 then
  138.         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>')
  139.         xa = 0
  140.         itr = 0
  141.         big = false
  142.         bigg = 0
  143.         tfm.exec.disableAutoShaman(true)
  144.         tfm.exec.newGame(xml)
  145.         tfm.exec.disableAutoTimeLeft(true)
  146.         tfm.exec.disableAutoNewGame(true)
  147.         tfm.exec.setGameTime(99999)
  148.         tfm.exec.disableAfkDeath(true)
  149.         tfm.exec.disablePhysicalConsumables(true)
  150.         ui.setMapName("#Jailbreak")
  151.         for playerName,i in pairs(tfm.get.room.playerList) do
  152.             lg = (i.x > 1350 and i.x < 1400 and i.y > 0 and i.y < 400)
  153.         end
  154.     elseif dia == 4 or dia == 6 then
  155.         initial()
  156.     end
  157. end
  158.  
  159. initial()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement