Advertisement
Travonrodfer

Super Mouse World

Mar 25th, 2020
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 22.68 KB | None | 0 0
  1. pena = '<C><P defilante="0,0,0,1" L="6000" G="0,5" H="800" /><Z><S><S P="0,0,0.3,0.2,0,0,0,0" L="3000" o="f8e0b0" X="1501" c="4" Y="401" T="12" H="800" /><S L="50" o="9e1ce1" X="805" H="50" Y="812" T="12" P="0,0,0,0.5,25,0,0,0" /><S P="0,0,0,0.5,-25,0,0,0" L="50" o="9e1ce1" X="305" Y="812" T="12" H="50" /><S H="800" L="3000" o="f8e0b0" X="4501" c="4" Y="400" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0,0,0,0,0,0" L="480" o="6701" X="555" Y="463" T="12" H="686" /><S P="0,0,0.3,0.2,0,0,0,0" L="91" o="9e1ce1" X="173" Y="800" T="12" H="10" /><S L="480" X="555" H="20" Y="129" T="6" P="0,0,0.3,0.2,0,0,0,0" /><S L="91" o="9e1ce1" X="934" H="10" Y="800" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.1,0.2,0,0,0,0" L="1880" H="523" N="" Y="997" T="7" X="2085" /><S X="2107" L="360" H="125" c="4" Y="681" T="7" P="0,0,0.1,0.2,0,0,0,0" /><S P="0,0,0.1,0.2,0,0,0,0" L="360" X="1928" c="4" Y="711" T="7" H="56" /><S P="0,0,0.3,0.2,0,0,0,0" L="1880" H="20" N="" Y="746" T="6" X="2084" /><S L="360" H="20" X="2107" Y="614" T="6" P="0,0,0.3,0.2,0,0,0,0" /><S L="360" X="1929" H="20" Y="673" T="6" P="0,0,0.3,0.2,0,0,0,0" /><S L="200" H="200" X="2528" Y="702" T="6" P="0,0,0.3,0.2,0,0,0,0" /><S H="180" L="240" X="2849" c="4" Y="650" T="7" P="0,0,0.1,0.2,0,0,0,0" /><S L="240" X="2850" H="20" Y="567" T="6" P="0,0,0.3,0.2,0,0,0,0" /><S L="240" H="200" X="3285" Y="823" 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="76" o="2e1eee" X="3282" Y="502" T="12" H="200" /><S L="120" o="1509a9" X="3281" H="35" Y="611" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S L="100" X="3282" H="40" Y="401" T="10" P="0,0,0.3,0,0,0,0,0" /><S L="120" X="3465" H="200" Y="752" T="6" P="0,0,0.3,0.2,0,0,0,0" /><S H="200" L="400" X="4917" c="3" Y="648" T="7" P="0,0,0.1,0.2,0,0,0,0" /><S P="0,0,0.1,0.2,180,0,0,0" L="240" H="120" c="3" Y="688" T="7" X="4962" /><S L="240" X="3644" H="400" Y="706" T="6" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.1,0.2,0,0,0,0" L="2200" X="4864" c="4" Y="914" T="7" H="300" /><S L="2200" H="20" X="4863" Y="755" T="6" P="0,0,0.3,0.2,0,0,0,0" /><S L="240" H="150" X="4366" Y="673" T="6" P="0,0,0.3,0.2,0,0,0,0" /><S H="50" L="240" X="4897" c="3" Y="723" T="7" P="0,0,0.1,0.2,0,0,0,0" /><S L="240" X="4898" H="20" Y="697" T="6" P="0,0,0.3,0.2,0,0,0,0" /><S L="240" H="20" X="4962" Y="627" T="6" P="0,0,0.3,0.2,0,0,0,0" /><S L="400" X="4917" H="20" Y="545" T="6" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0,0,0,0,0,0" L="75" o="1a711b" H="311" Y="591" T="12" X="5230" /><S L="115" o="d520e" H="30" X="5228" Y="430" T="12" P="0,0,0,0,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="30" o="ffffff" X="5843" c="2" Y="526" T="12" H="434" /><S P="0,0,,,,0,0,0" L="73" X="5895" v="0001" Y="528" T="9" H="441" /><S H="434" L="30" o="ffffff" X="5947" c="2" N="" Y="528" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S P="1,0,0.3,0.2,0,1,3,3" L="75" o="e1e1e1" X="5895" c="2" Y="679" T="12" H="21" /><S P="0,0,0,0,90,0,0,0" L="10" o="0" X="1499" Y="-5" T="14" H="3000" /><S L="80" o="6701" X="1066" H="100" Y="748" T="12" P="0,0,00.1,0,0,0,0,0" /><S L="10" o="0" X="4454" H="3000" Y="-5" T="14" P="0,0,0,0,90,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="300" o="f4fa40" H="35" Y="177" T="12" X="5587" /><S L="300" o="f4fa40" H="35" X="5512" Y="99" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0,9999,90,0,0,0" L="10" o="0" X="5891" c="2" Y="305" T="14" H="100" /><S L="1160" H="400" X="562" N="" Y="998" T="6" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0,0,0,0,0,0" L="10" o="0" X="-3" Y="491" T="14" H="1000" /><S L="300" o="f4fa40" H="35" X="5754" Y="149" T="12" P="0,0,0.3,0.2,90,0,0,0" /><S P="0,0,0.3,0.2,90,0,0,0" L="200" o="1a711b" X="5301" Y="102" T="12" H="35" /><S L="120" o="74808" X="1066" H="30" Y="686" T="12" P="0,0,00.1,0,0,0,0,0" /><S L="10" o="0" X="1139" H="1000" Y="302" T="14" P="0,0,0,0,0,0,0,0" /></S><D><T Y="642" X="56" /><DS Y="727" X="1166" /></D><O><O C="32" Y="780" X="903" P="0" /><O C="32" Y="781" X="903" P="0" /><O C="32" Y="778" X="205" P="0" /><O C="32" Y="778" X="205" P="0" /><O C="6" Y="697" P="0" X="1325" /><O C="6" Y="655" P="0" X="1558" /><O C="6" Y="581" P="0" X="4577" /><O C="6" Y="696" P="0" X="1727" /><O C="6" Y="548" P="10" X="1433" /><O C="6" Y="369" P="0" X="1452" /><O C="6" Y="369" P="0" X="1425" /><O C="6" Y="88" P="0" X="1400" /><O C="6" Y="144" P="0" X="1903" /><O C="6" Y="50" P="0" X="1771" /><O C="6" Y="89" P="0" X="1342" /><O C="6" Y="248" P="0" X="1530" /><O C="6" Y="242" P="0" X="5349" /><O C="6" Y="183" P="0" X="4199" /><O C="6" Y="197" P="0" X="1668" /><O C="6" Y="286" P="0" X="1788" /><O C="6" Y="170" P="0" X="3945" /><O C="6" Y="369" P="0" X="1399" /><O C="6" Y="108" P="0" X="3602" /><O C="6" Y="76" P="0" X="1596" /><O C="6" Y="57" P="0" X="2002" /><O C="6" Y="86" P="0" X="2002" /><O C="6" Y="115" P="0" X="2003" /><O C="6" Y="144" P="0" X="2005" /><O C="6" Y="173" P="0" X="2011" /><O C="6" Y="189" P="0" X="2029" /><O C="6" Y="191" P="0" X="2055" /><O C="6" Y="176" P="0" X="2078" /><O C="6" Y="144" P="0" X="2084" /><O C="6" Y="114" P="0" X="2088" /><O C="6" Y="84" P="0" X="2088" /><O C="6" Y="55" P="0" X="2087" /><O C="6" Y="48" P="0" X="2140" /><O C="6" Y="76" P="0" X="2139" /><O C="6" Y="114" P="0" X="2140" /><O C="6" Y="146" P="0" X="2140" /><O C="6" Y="183" P="0" X="2143" /><O C="6" Y="91" P="0" X="4310" /><O C="6" Y="231" P="0" X="4734" /><O C="6" Y="45" P="0" X="2164" /><O C="6" Y="47" P="0" X="2186" /><O C="6" Y="67" P="0" X="2203" /><O C="6" Y="94" P="0" X="2211" /><O C="6" Y="113" P="0" X="2191" /><O C="6" Y="123" P="0" X="2167" /><O C="6" Y="97" P="0" X="3163" /><O C="6" Y="150" P="0" X="2882" /><O C="6" Y="268" P="0" X="4133" /><O C="6" Y="181" P="0" X="4172" /><O C="6" Y="149" P="0" X="2904" /><O C="6" Y="572" P="0" X="3093" /><O C="6" Y="84" P="10" X="4129" /><O C="6" Y="96" P="0" X="3439" /><O C="6" Y="145" P="0" X="2863" /><O C="6" Y="95" P="0" X="3414" /><O C="6" Y="631" P="0" X="4178" /><O C="6" Y="318" P="0" X="3097" /><O C="6" Y="28" P="0" X="4616" /><O C="6" Y="428" P="0" X="1634" /><O C="6" Y="479" P="0" X="2465" /><O C="6" Y="640" P="0" X="2039" /><O C="6" Y="145" P="0" X="2841" /><O C="6" Y="82" P="0" X="2347" /><O C="6" Y="359" P="0" X="3507" /><O C="6" Y="138" P="0" X="5513" /><O C="6" Y="362" P="0" X="3281" /><O C="6" Y="336" P="0" X="3746" /><O C="6" Y="217" P="0" X="3278" /><O C="6" Y="95" P="0" X="3386" /><O C="6" Y="92" P="0" X="4890" /><O C="6" Y="29" P="0" X="2535" /><O C="6" Y="483" P="0" X="5036" /><O C="6" Y="77" P="0" X="3812" /><O C="6" Y="65" P="0" X="5226" /><O C="6" Y="94" P="0" X="3357" /><O C="6" Y="675" P="0" X="4910" /><O C="6" Y="441" P="0" X="3649" /><O C="6" Y="198" P="0" X="1725" /><O C="6" Y="199" P="0" X="1781" /><O C="6" Y="368" P="0" X="1480" /><O C="6" Y="657" P="0" X="1612" /><O C="6" Y="461" P="20" X="4343" /><O C="6" Y="704" P="0" X="4044" /><O C="6" Y="207" P="0" X="2532" /><O C="6" Y="88" P="0" X="1315" /><O C="6" Y="88" P="0" X="1287" /><O C="6" Y="220" P="0" X="3686" /><O C="6" Y="441" P="0" X="1899" /><O C="6" Y="89" P="0" X="1371" /><O C="6" Y="440" P="0" X="1984" /><O C="6" Y="326" P="0" X="5514" /><O C="6" Y="440" P="0" X="1954" /><O C="6" Y="703" P="0" X="4016" /><O C="6" Y="425" P="0" X="4141" /><O C="6" Y="199" P="0" X="1753" /><O C="6" Y="359" P="0" X="3453" /><O C="6" Y="215" P="0" X="1330" /><O C="6" Y="357" P="0" X="3423" /><O C="6" Y="360" P="0" X="3481" /><O C="6" Y="553" P="0" X="1756" /><O C="6" Y="440" P="0" X="1926" /><O C="6" Y="714" P="0" X="2278" /><O C="6" Y="656" P="0" X="1584" /><O C="6" Y="197" P="0" X="1696" /><O C="6" Y="550" P="10" X="3434" /><O C="6" Y="570" P="0" X="1208" /><O C="6" Y="405" P="0" X="1241" /><O C="6" Y="300" P="10" X="1998" /><O C="6" Y="550" P="30" X="1946" /><O C="6" Y="654" P="0" X="1528" /><O C="6" Y="657" P="0" X="1642" /><O C="6" Y="706" P="0" X="5602" /><O C="6" Y="315" P="0" X="2183" /><O C="6" Y="184" P="0" X="4089" /><O C="6" Y="469" P="0" X="2152" /><O C="6" Y="576" P="0" X="5740" /><O C="6" Y="703" P="0" X="3987" /><O C="6" Y="576" P="0" X="2354" /><O C="6" Y="442" P="0" X="2982" /><O C="6" Y="715" P="0" X="1951" /><O C="6" Y="429" P="0" X="2283" /><O C="6" Y="356" P="0" X="2370" /><O C="6" Y="539" P="0" X="2813" /><O C="6" Y="357" P="0" X="2346" /><O C="6" Y="363" P="0" X="2595" /><O C="6" Y="343" P="0" X="4907" /><O C="6" Y="355" P="0" X="3393" /><O C="6" Y="364" P="0" X="3920" /><O C="6" Y="198" P="0" X="3029" /><O C="6" Y="369" P="0" X="2794" /><O C="6" Y="276" P="0" X="3488" /><O C="6" Y="355" P="0" X="2428" /><O C="6" Y="226" P="0" X="2402" /><O C="6" Y="189" P="0" X="5098" /><O C="6" Y="41" P="0" X="2739" /><O C="6" Y="184" P="0" X="4118" /><O C="6" Y="145" P="0" X="2824" /><O C="6" Y="40" P="0" X="2961" /><O C="6" Y="183" P="0" X="4143" /><O C="6" Y="263" P="0" X="2888" /><O C="6" Y="178" P="0" X="2628" /><O C="6" Y="354" P="0" X="2459" /><O C="6" Y="356" P="0" X="2399" /><O C="6" Y="778" P="0" X="206" /><O C="6" Y="778" P="0" X="206" /><O C="6" Y="778" P="0" X="206" /><O C="6" Y="782" P="0" X="904" /><O C="6" Y="782" P="0" X="904" /><O C="6" Y="530" P="0" X="5475" /><O C="6" Y="652" P="0" X="5325" /><O C="6" Y="488" P="0" X="2672" /><O C="6" Y="391" P="0" X="5228" /><O C="6" Y="207" P="0" X="4500" /><O C="6" Y="717" P="0" X="4658" /><O C="6" Y="671" P="0" X="3828" /><O C="6" Y="299" P="0" X="4335" /><O C="6" Y="132" P="0" X="5825" /><O C="6" Y="640" P="0" X="3284" /><O C="6" Y="677" P="0" X="2857" /><O C="6" Y="763" P="0" X="3104" /><O C="6" Y="526" P="0" X="3977" /><O C="6" Y="511" P="10" X="4793" /><O C="6" Y="325" P="0" X="5710" /><O C="6" Y="410" P="-10" X="4615" /><O C="6" Y="573" P="0" X="4346" /><O C="6" Y="49" P="0" X="334" /><O C="6" Y="104" P="0" X="379" /><O C="6" Y="48" P="0" X="422" /><O C="6" Y="104" P="0" X="459" /><O C="6" Y="48" P="0" X="501" /><O C="6" Y="701" P="0" X="3959" /><O C="6" Y="46" P="0" X="615" /><O C="6" Y="98" P="0" X="671" /><O C="6" Y="51" P="0" X="715" /><O C="6" Y="102" P="0" X="757" /><O C="6" Y="50" P="0" X="795" /><O C="32" Y="781" P="0" X="904" /><O C="32" Y="778" P="0" X="206" /><O C="32" Y="778" P="0" X="206" /><O C="32" Y="781" P="0" X="904" /><O C="32" Y="778" P="0" X="206" /><O C="32" Y="781" P="0" X="904" /><O C="32" Y="778" P="0" X="205" /><O C="32" Y="781" P="0" X="904" /></O></Z></C>'
  2. troca = 0
  3. jus1time = 0
  4. jusowntime = {}
  5. winners = 0
  6. total = 0
  7. red = 0
  8. fly = false
  9. comoss = false
  10. as = 0
  11. bossa = 0
  12. co1n = {}
  13. co2n = {}
  14. co3n = {}
  15.  
  16. function localidade()
  17.     for name,i in pairs(tfm.get.room.playerList) do
  18.         if troca == 0 and i.x > 4690 and i.x < 4800 and i.y > 130 and i.y < 511 and not i.isDead then
  19.             tfm.exec.giveCheese(name)
  20.             tfm.exec.playerVictory(name)
  21.             tfm.exec.respawnPlayer(name)
  22.             winners = winners + 1
  23.         elseif troca == 1 and i.x > 4690 and i.x < 4800 and i.y > 130 and i.y < 511 and not i.isDead then
  24.             tfm.exec.giveCheese(name)
  25.             tfm.exec.playerVictory(name)
  26.             tfm.exec.respawnPlayer(name)
  27.             winners = winners + 1
  28.         elseif troca == 2 and i.x > 4372 and i.y < 400 and not i.isDead then
  29.             tfm.exec.giveCheese(name)
  30.             tfm.exec.playerVictory(name)
  31.             tfm.exec.respawnPlayer(name)
  32.             winners = winners + 1
  33.         elseif troca == 3 and i.x > 3990 and i.y < 590 and not i.isDead then
  34.             tfm.exec.giveCheese(name)
  35.             tfm.exec.playerVictory(name)
  36.             tfm.exec.respawnPlayer(name)
  37.             winners = winners + 1
  38.  
  39.         elseif troca == 4 and i.x > (195 - 30) and i.x < (195 + 30) and i.y > (753 - 30) and i.y < (753 + 10) and not i.isDead then
  40.             tfm.exec.movePlayer(name, 0, 0, false, 0, -80)
  41.         elseif troca == 4 and i.x > (3167 - 30) and i.x < (3167 + 30) and i.y > (720 - 30) and i.y < (720 + 10) and not i.isDead then
  42.             tfm.exec.movePlayer(name, 0, 0, false, 0, -150)
  43.         elseif troca == 4 and i.x < 80 and i.y > 280 and i.y < 350 then
  44.             tfm.exec.movePlayer(name, 0, 260)
  45.             tfm.exec.movePlayer(name, 0, 0, false, 0, -180)
  46.         elseif troca == 4 and i.y < 0 then
  47.             tfm.exec.movePlayer(name, 0, 0, false, 150)
  48.         elseif troca == 4 and i.x > 3800 and jusowntime[name] == 0 then
  49.             comoss = true
  50.             jusowntime = 1
  51.  
  52.         elseif troca == 5 and i.x > 5846 and i.y > 315 and not i.isDead then
  53.             tfm.exec.giveCheese(name)
  54.             tfm.exec.playerVictory(name)
  55.             tfm.exec.respawnPlayer(name)
  56.             winners = winners + 1
  57.         elseif troca == 5 and i.x > 3235 and i.x < 3324 and i.y > 550 and i.y < 650 then
  58.             ui.addTextArea(4, "", name, 1140, -300, 1440, 1600, 0x6A7495, 0, 1, false)
  59.             tfm.exec.movePlayer(name, 30, 2, false, 0, 50)
  60.             comoss = true
  61.         elseif troca == 5 and i.x > 1030 and i.x < 1098 and i.y > 647 and i.y < 677 then
  62.             tfm.exec.movePlayer(name, 1220, 730, false)
  63.             ui.addTextArea(4, "", name, -300, -300, 1440, 1600, 0x6A7495, 0, 1, false)
  64.             fly = true
  65.         elseif troca == 6 and i.x > 3990 and i.y < 590 and not i.isDead then
  66.             tfm.exec.giveCheese(name)
  67.             tfm.exec.playerVictory(name)
  68.             tfm.exec.respawnPlayer(name)
  69.             winners = winners + 1
  70.         end
  71.     end
  72. end
  73.  
  74. function eventKeyboard(name, key, d, x, y)
  75.     if key == 32 and x > (440 - 30) and x < (440 + 30) and y > (260 - 30) and y < (260 + 30) and co1n[name] and troca == 0 then
  76.         ui.removeTextArea(1, name)
  77.         co1n[name] = false
  78.     elseif key == 32 and x > (1220 - 30) and x < (1220 + 30) and y > (490 - 30) and y < (490 + 30) and co2n[name] and troca == 0 then
  79.         ui.removeTextArea(2, name)
  80.         co2n[name] = false
  81.     elseif key == 32 and x > (3063 - 30) and x < (3063 + 30) and y > (40 - 30) and y < (40 + 30) and co3n[name] and troca == 0 then
  82.         ui.removeTextArea(3, name)
  83.         co3n[name] = false
  84.  
  85.     elseif key == 32 and x > (70 - 30) and x < (70 + 30) and y > (30 - 30) and y < (30 + 30) and co1n[name] and troca == 1 then
  86.         ui.removeTextArea(1, name)
  87.         co1n[name] = false
  88.     elseif key == 32 and x > (1160 - 30) and x < (1160 + 30) and y > (765 - 30) and y < (765 + 30) and co2n[name] and troca == 1 then
  89.         ui.removeTextArea(2, name)
  90.         co2n[name] = false
  91.     elseif key == 32 and x > (3790 - 30) and x < (3790 + 30) and y > (791 - 30) and y < (791 + 30) and co3n[name] and troca == 1 then
  92.         ui.removeTextArea(3, name)
  93.         co3n[name] = false
  94.  
  95.     elseif key == 32 and x > (1090 - 30) and x < (1090 + 30) and y > (270 - 30) and y < (270 + 30) and co1n[name] and troca == 2 then
  96.         ui.removeTextArea(1, name)
  97.         co1n[name] = false
  98.     elseif key == 32 and x > (2565 - 30) and x < (2565 + 30) and y > (326 - 30) and y < (326 + 30) and co2n[name] and troca == 2 then
  99.         ui.removeTextArea(2, name)
  100.         co2n[name] = false
  101.     elseif key == 32 and x > (3180 - 30) and x < (3180 + 30) and y > (760 - 30) and y < (760 + 30) and co3n[name] and troca == 2 then
  102.         ui.removeTextArea(3, name)
  103.         tfm.exec.movePlayer(name, 0, 300)
  104.         co3n[name] = false
  105.  
  106.     elseif key == 32 and x > (110 - 30) and x < (110 + 30) and y > (75 - 30) and y < (75 + 30) and co1n[name] and troca == 3 then
  107.         ui.removeTextArea(1, name)
  108.         co1n[name] = false
  109.     elseif key == 32 and x > (1187 - 30) and x < (1187 + 30) and y > (353 - 30) and y < (353 + 30) and co2n[name] and troca == 3 then
  110.         ui.removeTextArea(2, name)
  111.         co2n[name] = false
  112.     elseif key == 32 and x > (4670 - 30) and x < (4670 + 30) and y > (670 - 30) and y < (670 + 30) and co3n[name] and troca == 3 then
  113.         ui.removeTextArea(3, name)
  114.         co3n[name] = false
  115.  
  116.     elseif key == 32 and x > (406 - 30) and x < (406 + 30) and y > (257 - 30) and y < (257 + 30) and co1n[name] and troca == 4 then
  117.         ui.removeTextArea(1, name)
  118.         co1n[name] = false
  119.     elseif key == 32 and x > (767 - 30) and x < (767 + 30) and y > (641 - 30) and y < (641 + 30) and co2n[name] and troca == 4 then
  120.         ui.removeTextArea(2, name)
  121.         co2n[name] = false
  122.     elseif key == 32 and x > (1910 - 30) and x < (1910 + 30) and y > (668 - 30) and y < (668 + 30) and co3n[name] and troca == 4 then
  123.         ui.removeTextArea(3, name)
  124.         co3n[name] = false
  125.  
  126.     elseif key == 32 and x > (568 - 30) and x < (568 + 30) and y > (50 - 30) and y < (50 + 30) and co1n[name] and troca == 5 then
  127.         ui.removeTextArea(1, name)
  128.         co1n[name] = false
  129.     elseif key == 32 and x > (2162 - 30) and x < (2162 + 30) and y > (65 - 30) and y < (65 + 30) and co2n[name] and troca == 5 then
  130.         ui.removeTextArea(2, name)
  131.         co2n[name] = false
  132.     elseif key == 32 and x > (5700 - 30) and x < (5700 + 30) and y > (67 - 30) and y < (67 + 30) and co3n[name] and troca == 5 then
  133.         ui.removeTextArea(3, name)
  134.         co3n[name] = false
  135.  
  136.     elseif key == 32 and x > (885 - 30) and x < (885 + 30) and y > (460 - 30) and y < (460 + 30) and co1n[name] and troca == 6 then
  137.         ui.removeTextArea(1, name)
  138.         co1n[name] = false
  139.     elseif key == 32 and x > (2142 - 30) and x < (2142 + 30) and y > (631 - 30) and y < (631 + 30) and co2n[name] and troca == 6 then
  140.         ui.removeTextArea(2, name)
  141.         co2n[name] = false
  142.     elseif key == 32 and x > (3969 - 30) and x < (3969 + 30) and y > (561 - 30) and y < (561 + 30) and co3n[name] and troca == 6 then
  143.         ui.removeTextArea(3, name)
  144.         co3n[name] = false
  145.  
  146.     elseif key == 32 and fly and tfm.get.room.playerList[name].isFacingRight then
  147.         tfm.exec.movePlayer(name, 0, 0, false, 80, -60)
  148.     elseif key == 32 and fly and not tfm.get.room.playerList[name].isFacingRight then
  149.         tfm.exec.movePlayer(name, 0, 0, false, -80, -60)
  150.     end
  151. end
  152.  
  153. for name in pairs(tfm.get.room.playerList) do
  154.     system.bindKeyboard(name, 32, true, true)
  155. end
  156.  
  157. function moedinhas(name)
  158.     if troca == 0 then
  159.         ui.addTextArea(1, "<font color=\"#FFBF00\" size=\"100\">°", name, 410, 230, x, y, 0x000000, 0x000000, 0, false)
  160.         ui.addTextArea(2, "<font color=\"#FFBF00\" size=\"100\">°", name, 1190, 465, x, y, 0x000000, 0x000000, 0, false)
  161.         ui.addTextArea(3, "<font color=\"#FFBF00\" size=\"100\">°", name, 3033, 10, x, y, 0x000000, 0x000000, 0, false)
  162.         ui.setMapName("Bola de Canhão")
  163.     elseif troca == 1 then
  164.         ui.addTextArea(1, "<font color=\"#FFBF00\" size=\"100\">°", name, 40, 0, x, y, 0x000000, 0x000000, 0, false)
  165.         ui.addTextArea(2, "<font color=\"#FFBF00\" size=\"100\">°", name, 1130, 735, x, y, 0x000000, 0x000000, 0, false)
  166.         ui.addTextArea(3, "<font color=\"#FFBF00\" size=\"100\">°", name, 3750, 731, x, y, 0x000000, 0x000000, 0, false)
  167.         ui.setMapName("Arbustos")
  168.     elseif troca == 2 then
  169.         ui.addTextArea(1, "<font color=\"#FFBF00\" size=\"100\">°", name, 1060, 240, x, y, 0x000000, 0x000000, 0, false)
  170.         ui.addTextArea(2, "<font color=\"#FFBF00\" size=\"100\">°", name, 2535, 296, x, y, 0x000000, 0x000000, 0, false)
  171.         ui.addTextArea(3, "<font color=\"#FFBF00\" size=\"100\">°", name, 3120, 720, x, y, 0x000000, 0x000000, 0, false)
  172.         ui.setMapName("Hélice")
  173.     elseif troca == 3 then
  174.         ui.addTextArea(1, "<font color=\"#FFBF00\" size=\"100\">°", name, 80, 45, x, y, 0x000000, 0x000000, 0, false)
  175.         ui.addTextArea(2, "<font color=\"#FFBF00\" size=\"100\">°", name, 1157, 323, x, y, 0x000000, 0x000000, 0, false)
  176.         ui.addTextArea(3, "<font color=\"#FFBF00\" size=\"100\">°", name, 4640, 640, x, y, 0x000000, 0x000000, 0, false)
  177.         ui.setMapName("Vitoria Regia")
  178.     elseif troca == 4 then
  179.         tfm.exec.addPhysicObject(1, 4322, 542, {type=12, width=500, height=62, color=0x70C781, groundCollision=true, miceCollision = true, angle = bossa})
  180.         tfm.exec.addPhysicObject(2, 4322, 612, {type=10, width=500, height=120, groundCollision=true, miceCollision = true, angle = bossa})
  181.         tfm.exec.addPhysicObject(3, 4320, 700, {type=12, width=600, height=10, color=0x70C781, groundCollision=true, miceCollision = false})
  182.         tfm.exec.addPhysicObject(4, 4047, 522, {type=12, width=10, height=600, color=0x70C781, groundCollision=true, miceCollision = false})
  183.         tfm.exec.addPhysicObject(5, 4600, 522, {type=12, width=10, height=60, color=0x70C781, groundCollision=true, miceCollision = false})
  184.  
  185.         ui.addTextArea(1, "<font color=\"#FFBF00\" size=\"100\">°", name, 376, 227, x, y, 0x000000, 0x000000, 0, false)
  186.         ui.addTextArea(2, "<font color=\"#FFBF00\" size=\"100\">°", name, 737, 611, x, y, 0x000000, 0x000000, 0, false)
  187.         ui.addTextArea(3, "<font color=\"#FFBF00\" size=\"100\">°", name, 1880, 638, x, y, 0x000000, 0x000000, 0, false)
  188.         ui.setMapName("Boss Iggy")
  189.     elseif troca == 5 then
  190.         fly = true
  191.         ui.addTextArea(1, "<font color=\"#FFBF00\" size=\"100\">°", name, 538, 20, x, y, 0x000000, 0x000000, 0, false)
  192.         ui.addTextArea(2, "<font color=\"#FFBF00\" size=\"100\">°", name, 2132, 35, x, y, 0x000000, 0x000000, 0, false)
  193.         ui.addTextArea(3, "<font color=\"#FFBF00\" size=\"100\">°", name, 5670, 37, x, y, 0x000000, 0x000000, 0, false)
  194.         ui.addTextArea(4, "", name, -300, -300, 1440, 1600, 0x6A7495, 0, 1, false)
  195.         ui.setMapName("Pena")
  196.     elseif troca == 6 then
  197.         ui.addTextArea(1, "<font color=\"#FFBF00\" size=\"100\">°", name, 885, 460, x, y, 0x000000, 0x000000, 0, false)
  198.         ui.addTextArea(2, "<font color=\"#FFBF00\" size=\"100\">°", name, 2142, 631, x, y, 0x000000, 0x000000, 0, false)
  199.         ui.addTextArea(3, "<font color=\"#FFBF00\" size=\"100\">°", name, 3969, 561, x, y, 0x000000, 0x000000, 0, false)
  200.         ui.setMapName("Caverna Preta")
  201.     end
  202. end
  203.  
  204. function eventLoop(ct, tr)
  205.     red = red + .5
  206.     if red == 1 then
  207.         localidade()
  208.         if troca == 0 and jus1time == 0 then
  209.             tfm.exec.newGame(5528843)
  210.             moedinhas()
  211.             jus1time = 1
  212.         elseif troca == 1 and jus1time == 1 then
  213.             tfm.exec.newGame(5529147)
  214.             moedinhas()
  215.             jus1time = 2
  216.         elseif troca == 2 and jus1time == 2 then
  217.             tfm.exec.newGame(5530214)
  218.             moedinhas()
  219.             jus1time = 3
  220.         elseif troca == 3 and jus1time == 3 then
  221.             tfm.exec.newGame(5535287)
  222.             moedinhas()
  223.             jus1time = 4
  224.         elseif troca == 4 and jus1time == 4 then
  225.             tfm.exec.newGame(5540495)
  226.             moedinhas()
  227.             jus1time = 5
  228.         elseif troca == 5 and jus1time == 5 then
  229.             tfm.exec.newGame(pena)
  230.             moedinhas()
  231.             jus1time = 6
  232.         elseif troca == 6 and jus1time == 6 then
  233.             tfm.exec.newGame(5537853)
  234.             moedinhas()
  235.             jus1time = 7
  236.         elseif troca == 7 and jus1time == 7 then
  237.             tfm.exec.newGame(5543029)
  238.             moedinhas()
  239.             jus1time = 8
  240.         end
  241.         if winners > total then
  242.             troca = troca + 1
  243.             winners = 0
  244.         end
  245.         red = 0
  246.     end
  247.     if comoss == true then
  248.         as = math.random(5)
  249.     end
  250.     if as == 5 then
  251.         bossa = 45
  252.         tfm.exec.addPhysicObject(1, 4322, 542, {type=10, width=500, height=62, color=0x70C781, groundCollision=true, miceCollision = true, angle = bossa})
  253.         tfm.exec.addPhysicObject(2, 4322, 612, {type=12, width=500, height=120, groundCollision=true, miceCollision = true, angle = bossa})
  254.     elseif as == 4 then
  255.         bossa = -45
  256.         tfm.exec.addPhysicObject(1, 4322, 542, {type=12, width=500, height=62, color=0x70C781, groundCollision=true, miceCollision = true, angle = bossa})
  257.         tfm.exec.addPhysicObject(2, 4322, 612, {type=10, width=500, height=120, groundCollision=true, miceCollision = true, angle = bossa})
  258.     end
  259. end
  260.  
  261. function eventNewGame()
  262.     fly = false
  263.     ui.removeTextArea(4)
  264.     tfm.exec.setGameTime(99999)
  265.     local winners = 0
  266.     local total = 0
  267.     for name,player in pairs(tfm.get.room.playerList) do
  268.         if not player.isDead then
  269.             total = total + 1
  270.         end
  271.     end
  272.     for name in pairs(tfm.get.room.playerList) do
  273.         moedinhas(name)
  274.         co1n[name] = true
  275.         co2n[name] = true
  276.         co3n[name] = true
  277.     end
  278. end
  279.  
  280. function eventPlayerDied(name)
  281.     moedinhas(name)
  282.     co1n[name] = true
  283.     co2n[name] = true
  284.     co3n[name] = true
  285.     tfm.exec.respawnPlayer(name)
  286. end
  287.  
  288. tfm.exec.disableAfkDeath(true)
  289. tfm.exec.disableAutoNewGame(true)
  290. tfm.exec.disableAutoShaman(true)
  291. tfm.exec.disableAutoTimeLeft(true)
  292. tfm.exec.setGameTime(99999)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement