Advertisement
Haxhhhhhhhhh

Corrida das perguntas v6.4 - 15/12/2016

Jun 25th, 2016
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 10.29 KB | None | 0 0
  1. admin="Haxhhhhhhhhh" -- coloque o seu nome aqui para usar os comandos
  2. -- comandos: !escolher, !voltar e !respawn
  3. tfm.exec.disableAutoNewGame(true)
  4. tfm.exec.disableAutoShaman(true)
  5. tfm.exec.disableAutoTimeLeft(true)
  6. tfm.exec.disableAfkDeath(true)
  7. mapa10='<C><P F="4" L="2920" /><Z><S><S L="3000" X="1600" H="30" Y="385" T="10" P="0,0,0.3,0,0,0,0,0" /><S L="40" X="600" H="370" Y="185" T="10" P="0,0,0,0,0,0,0,0" /><S L="40" H="370" X="800" Y="185" T="10" P="0,0,0,0,0,0,0,0" /><S L="40" X="1034" H="370" Y="185" T="10" P="0,0,0,0,0,0,0,0" /><S L="40" H="370" X="1257" Y="185" T="10" P="0,0,0,0,0,0,0,0" /><S L="1045" o="6a7495" H="1079" X="3454" Y="281" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S L="40" X="1516" H="370" Y="185" T="10" P="0,0,0,0,0,0,0,0" /><S L="40" H="370" X="1748" Y="185" T="10" P="0,0,0,0,0,0,0,0" /><S L="40" X="1962" H="370" Y="185" T="10" P="0,0,0,0,0,0,0,0" /><S L="40" H="370" X="2186" Y="185" T="10" P="0,0,0,0,0,0,0,0" /><S L="40" X="2419" H="370" Y="185" T="10" P="0,0,0,0,0,0,0,0" /><S L="40" H="370" X="2686" Y="186" T="10" P="0,0,0,0,0,0,0,0" /><S L="40" X="2911" H="370" Y="185" T="10" P="0,0,0,0,0,0,0,0" /><S L="40" H="370" X="3120" Y="215" T="10" P="0,0,0,0,0,0,0,0" /></S><D><DS Y="358" X="356" /></D><O /><L><VL n="Layer1" l="-1" /><JD P1="7,182" c="ffffff,2,1,0" P2="33,159" /><JD P1="30,209" c="ffffff,2,1,0" P2="7,180" /><JD P1="69,186" c="ffffff,2,1,0" P2="31,212" /><JD P1="53,144" c="ffffff,2,1,0" P2="94,183" /><JD P1="93,128" c="ffffff,2,1,0" P2="122,157" /><JD P1="55,145" c="ffffff,2,1,0" P2="93,131" /><JD P1="92,184" c="ffffff,2,1,0" P2="124,157" /><JD P1="135,146" c="ffffff,2,1,0" P2="108,121" /><JD P1="128,107" c="ffffff,2,1,0" P2="112,126" /><JD P1="147,119" c="ffffff,2,1,0" P2="126,104" /><JD P1="129,130" c="ffffff,2,1,0" P2="146,120" /><JD P1="123,136" c="ffffff,2,1,0" P2="159,135" /><JD P1="147,91" c="ffffff,2,1,0" P2="176,120" /><JD P1="173,76" c="ffffff,2,1,0" P2="203,107" /><JD P1="209,79" c="ffffff,2,1,0" P2="174,68" /><JD P1="210,79" c="ffffff,2,1,0" P2="206,111" /><JD P1="229,90" c="ffffff,2,1,0" P2="215,46" /><JD P1="258,68" c="ffffff,2,1,0" P2="220,43" /><JD P1="229,71" c="ffffff,2,1,0" P2="244,56" /><JD P1="103,218" c="ffffff,2,1,0" P2="139,243" /><JD P1="145,203" c="ffffff,2,1,0" P2="103,217" /><JD P1="148,205" c="ffffff,2,1,0" P2="142,246" /><JD P1="175,208" c="ffffff,2,1,0" P2="158,172" /><JD P1="199,182" c="ffffff,2,1,0" P2="157,167" /><JD P1="173,194" c="ffffff,2,1,0" P2="189,177" /><JD P1="215,130" c="ffffff,2,1,0" P2="199,145" /><JD P1="211,159" c="ffffff,2,1,0" P2="198,145" /><JD P1="232,142" c="ffffff,2,1,0" P2="211,162" /><JD P1="251,158" c="ffffff,2,1,0" P2="232,141" /><JD P1="227,175" c="ffffff,2,1,0" P2="253,155" /><JD P1="15,319" c="ffffff,2,1,0" P2="47,348" /><JD P1="42,300" c="ffffff,2,1,0" P2="14,314" /><JD P1="55,314" c="ffffff,2,1,0" P2="42,298" /><JD P1="33,332" c="ffffff,2,1,0" P2="57,314" /><JD P1="67,300" c="ffffff,2,1,0" P2="95,290" /><JD P1="94,326" c="ffffff,2,1,0" P2="68,301" /><JD P1="117,314" c="ffffff,2,1,0" P2="94,331" /><JD P1="105,299" c="ffffff,2,1,0" P2="81,315" /><JD P1="120,274" c="ffffff,2,1,0" P2="142,299" /><JD P1="144,261" c="ffffff,2,1,0" P2="121,273" /><JD P1="159,273" c="ffffff,2,1,0" P2="145,260" /><JD P1="131,290" c="ffffff,2,1,0" P2="160,273" /><JD P1="171,289" c="ffffff,2,1,0" P2="135,289" /><JD P1="184,232" c="ffffff,2,1,0" P2="164,246" /><JD P1="191,271" c="ffffff,2,1,0" P2="167,247" /><JD P1="210,253" c="ffffff,2,1,0" P2="191,272" /><JD P1="200,241" c="ffffff,2,1,0" P2="212,253" /><JD P1="187,248" c="ffffff,2,1,0" P2="200,242" /><JD P1="208,218" c="ffffff,2,1,0" P2="235,245" /><JD P1="230,204" c="ffffff,2,1,0" P2="251,226" /><JD P1="230,244" c="ffffff,2,1,0" P2="252,223" /><JD P1="274,206" c="ffffff,2,1,0" P2="243,182" /><JD P1="292,189" c="ffffff,2,1,0" P2="244,181" /><JD P1="272,161" c="ffffff,2,1,0" P2="296,189" /><JD P1="303,135" c="ffffff,2,1,0" P2="334,158" /><JD P1="294,143" c="ffffff,2,1,0" P2="309,126" /><JD P1="352,138" c="ffffff,2,1,0" P2="335,105" /><JD P1="371,128" c="ffffff,2,1,0" P2="336,103" /><JD P1="346,125" c="ffffff,2,1,0" P2="357,117" /><JD P1="380,64" c="ffffff,2,1,0" P2="362,80" /><JD P1="379,102" c="ffffff,2,1,0" P2="361,80" /><JD P1="397,77" c="ffffff,2,1,0" P2="379,103" /><JD P1="415,96" c="ffffff,2,1,0" P2="398,77" /><JD P1="391,117" c="ffffff,2,1,0" P2="415,98" /><JD P1="256,306" c="ffffff,6,1,0" P2="280,313" /><JD P1="279,292" c="ffffff,6,1,0" P2="283,311" /><JD P1="303,260" c="ffffff,6,1,0" P2="323,242" /><JD P1="323,242" c="ffffff,6,1,0" P2="323,243" /><JD P1="350,265" c="ffffff,6,1,0" P2="323,240" /><JD P1="329,285" c="ffffff,6,1,0" P2="350,265" /><JD P1="272,234" c="ffffff,6,1,0" P2="329,286" /><JD P1="669,143" c="ffffff,4,1,0" P2="669,198" /><JD P1="896,134" c="ffffff,4,1,0" P2="930,134" /><JD P1="930,159" c="ffffff,4,1,0" P2="932,135" /><JD P1="897,161" c="ffffff,4,1,0" P2="929,158" /><JD P1="894,187" c="ffffff,4,1,0" P2="897,161" /><JD P1="925,187" c="ffffff,4,1,0" P2="893,190" /><JD P1="1156,131" c="ffffff,4,1,0" P2="1187,134" /><JD P1="1154,186" c="ffffff,4,1,0" P2="1180,186" /><JD P1="1180,186" c="ffffff,4,1,0" P2="1188,137" /><JD P1="1157,162" c="ffffff,4,1,0" P2="1185,161" /><JD P1="1437,134" c="ffffff,4,1,0" P2="1431,186" /><JD P1="1405,158" c="ffffff,4,1,0" P2="1433,157" /><JD P1="1410,124" c="ffffff,4,1,0" P2="1401,161" /><JD P1="1653,131" c="ffffff,4,1,0" P2="1626,134" /><JD P1="1622,159" c="ffffff,4,1,0" P2="1625,134" /><JD P1="1651,167" c="ffffff,4,1,0" P2="1623,159" /><JD P1="1644,186" c="ffffff,4,1,0" P2="1652,169" /><JD P1="1621,187" c="ffffff,4,1,0" P2="1642,187" /><JD P1="1829,152" c="ffffff,4,1,0" P2="1856,152" /><JD P1="1852,172" c="ffffff,4,1,0" P2="1857,153" /><JD P1="1833,178" c="ffffff,4,1,0" P2="1852,171" /><JD P1="1828,113" c="ffffff,4,1,0" P2="1831,180" /><JD P1="2036,120" c="ffffff,4,1,0" P2="2072,122" /><JD P1="2040,181" c="ffffff,4,1,0" P2="2072,125" /><JD P1="2299,122" c="ffffff,4,1,0" P2="2296,176" /><JD P1="2340,124" c="ffffff,4,1,0" P2="2339,182" /><JD P1="2301,119" c="ffffff,4,1,0" P2="2340,124" /><JD P1="2300,150" c="ffffff,4,1,0" P2="2341,151" /><JD P1="2295,178" c="ffffff,4,1,0" P2="2338,183" /><JD P1="2571,138" c="ffffff,4,1,0" P2="2532,139" /><JD P1="2538,103" c="ffffff,4,1,0" P2="2528,140" /><JD P1="2583,102" c="ffffff,4,1,0" P2="2566,174" /><JD P1="2537,103" c="ffffff,4,1,0" P2="2583,100" /><JD P1="2820,107" c="ffffff,4,1,0" P2="2820,159" /><JD P1="2837,109" c="ffffff,4,1,0" P2="2837,157" /><JD P1="2871,107" c="ffffff,4,1,0" P2="2872,163" /><JD P1="2836,107" c="ffffff,4,1,0" P2="2871,107" /><JD P1="2838,161" c="ffffff,4,1,0" P2="2873,163" /><JD P1="3077,107" c="ffffff,4,1,0" P2="3075,157" /><JD P1="3103,109" c="ffffff,4,1,0" P2="3104,158" /><L /></L></Z></C>'
  8. tfm.exec.newGame(mapa10)
  9. tfm.exec.setShaman(admin)
  10. tfm.exec.setGameTime(36000)
  11. palavra=""
  12. data={}
  13. player=0
  14. system.disableChatCommandDisplay("escolher")
  15. system.disableChatCommandDisplay("respawn")
  16. system.disableChatCommandDisplay("voltar")
  17. for name,player in pairs(tfm.get.room.playerList) do
  18.     newData={
  19.     ["p"]=0;
  20.     }
  21.     data[name] = newData;
  22. end
  23. function eventChatCommand(name,message)
  24.         if message == "respawn" then
  25.             for name in pairs(tfm.get.room.playerList) do
  26.                 tfm.exec.respawnPlayer(name)
  27.             end
  28.         end
  29.         if message == "voltar" then
  30.             if name == admin then
  31.                 ui.addPopup(2,2,"Coloque o nome do jogador que deseja voltar 1 casa:",admin,350,175,200,true)
  32.             end
  33.         end
  34.         if message == "escolher" then
  35.             if name == admin then
  36.             ui.addPopup(0,2,"Insira a sua Pergunta:",admin,350,175,200,true)
  37.             ui.addPopup(1,2,"Insira a Resposta da sua Pergunta:",admin,350,275,200,true)
  38.             end
  39.         end
  40.         if(message:sub(1,3) == "msg") then
  41.             if name == admin then
  42.                 tfm.exec.chatMessage("<VP> [Glados] <N>"..message:sub(5).."",nil)
  43.             end
  44.         end
  45.         if message == palavra then
  46.             data[name].p=data[name].p+1
  47.             palavra=""
  48.             tfm.exec.setPlayerScore(name,1,true)
  49.             if data[name].p == 1 then
  50.                 tfm.exec.movePlayer(name,700,60,false,1,1,false)
  51.             elseif data[name].p == 2 then
  52.                 tfm.exec.movePlayer(name,920,60,false,1,1,false)
  53.             elseif data[name].p == 3 then
  54.                 tfm.exec.movePlayer(name,1140,60,false,1,1,false)
  55.             elseif data[name].p == 4 then
  56.                 tfm.exec.movePlayer(name,1360,60,false,1,1,false)
  57.             elseif data[name].p == 5 then
  58.                 tfm.exec.movePlayer(name,1580,60,false,1,1,false)
  59.             elseif data[name].p == 6 then
  60.                 tfm.exec.movePlayer(name,1800,60,false,1,1,false)
  61.             elseif data[name].p == 7 then
  62.                 tfm.exec.movePlayer(name,2020,60,false,1,1,false)
  63.             elseif data[name].p == 8 then
  64.                 tfm.exec.movePlayer(name,2240,60,false,1,1,false)
  65.             elseif data[name].p == 9 then
  66.                 tfm.exec.movePlayer(name,2460,60,false,1,1,false)
  67.             elseif data[name].p == 10 then
  68.                 tfm.exec.movePlayer(name,2680,60,false,1,1,false)
  69.             elseif data[name].p == 11 then
  70.                 tfm.exec.movePlayer(name,2900,60,false,1,1,false)
  71.             end
  72.         end
  73. end
  74. function eventPopupAnswer(id,name,answer)
  75.     if id == 0 then
  76.         ui.addPopup(2,0,"<font size='14'>"..answer.."",NIL,0,60,800,true)
  77.     end
  78.     if id == 1 then
  79.         palavra=answer;
  80.     end
  81.     if id == 2 then
  82.         if data[answer].p == 0 then
  83.             ui.addPopup(10,0,"O usuário escolhido já está na primeira casa.",admin,350,175,200,true)
  84.         else
  85.             data[answer].p=data[answer].p-1
  86.             if data[name].p == 0 then
  87.                 tfm.exec.movePlayer(name,400,60,false,1,1,false)
  88.             elseif data[name].p == 1 then
  89.                 tfm.exec.movePlayer(name,700,60,false,1,1,false)
  90.             elseif data[name].p == 2 then
  91.                 tfm.exec.movePlayer(name,920,60,false,1,1,false)
  92.             elseif data[name].p == 3 then
  93.                 tfm.exec.movePlayer(name,1140,60,false,1,1,false)
  94.             elseif data[name].p == 4 then
  95.                 tfm.exec.movePlayer(name,1360,60,false,1,1,false)
  96.             elseif data[name].p == 5 then
  97.                 tfm.exec.movePlayer(name,1580,60,false,1,1,false)
  98.             elseif data[name].p == 6 then
  99.                 tfm.exec.movePlayer(name,1800,60,false,1,1,false)
  100.             elseif data[name].p == 7 then
  101.                 tfm.exec.movePlayer(name,2020,60,false,1,1,false)
  102.             elseif data[name].p == 8 then
  103.                 tfm.exec.movePlayer(name,2240,60,false,1,1,false)
  104.             elseif data[name].p == 9 then
  105.                 tfm.exec.movePlayer(name,2460,60,false,1,1,false)
  106.             elseif data[name].p == 10 then
  107.                 tfm.exec.movePlayer(name,2680,60,false,1,1,false)
  108.             end
  109.         end
  110.     end
  111. end
  112. function eventNewPlayer(name)
  113.     tfm.exec.respawnPlayer(name)
  114.     newData={
  115.     ["p"]=0;
  116.     }
  117.     data[name] = newData;
  118. end
  119. tfm.exec.setUIMapName("Corrida das perguntas versão 6.4 (versão de 32 bits) - Script feito por Haxhhhhhhhhh")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement