Advertisement
Guest User

Script Pictionary 14.0

a guest
Oct 20th, 2014
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 30.60 KB | None | 0 0
  1. palavra=""
  2. palavras = {"doca","doce","caixa","seta","meter","fogos de artificios","coluna vertebral","codigo de barras","gravata borboleta","degrau de porta","pokemon","veado","gato","pictionary","sistema","advanced henzer","gandalf","godzilla","gelo","sol","fogo","gota","underscrin","transformice","nuvem","forzaldenon","cone","texting","cliente","peixe","quem fica em pé","engrenagem","tempestade","laser","rato","queijo","disco","pikachu","bloco","minecraft","league of legends","estrela","popular","cd","fa","fas","facebook","aureola","anjo","mola","cheddar","alfabeto","diamante","rubi","globo","katana","escudo","carro","camaro amarelo","pente","otorrinolaringologista","pneumoultramicroscopicossilicovulcanoconiose","relogio","paralelepipedo","azul","onibus","rede","dormir","mal","vazio","carta","tinta","tv","computador","mouse","espada","biblia","nome","reino","livro","status","bolha","palavra","sbt","eixo","matematica","exilio","trampolim","som","musica","ajuda","forum","kombizinha","jeniiferfofa","dia","cu","bandeira"}
  3. rato=0
  4. id=0
  5. cor="1"
  6. gross=4
  7. x1 = 451
  8. y1 = 84
  9. cod=""
  10. dicas=5
  11. novo=4;
  12. logo=true;
  13. shaman=""
  14. data={}
  15. tempo=1;
  16. tfm.exec.disableAutoNewGame(true)
  17. tfm.exec.disableAutoTimeLeft(true)
  18. tfm.exec.disableAfkDeath(true)
  19. system.disableChatCommandDisplay("ver")
  20. system.disableChatCommandDisplay("escolher")
  21. system.disableChatCommandDisplay("cor")
  22. system.disableChatCommandDisplay("cmd")
  23. system.disableChatCommandDisplay("new",false)
  24. system.disableChatCommandDisplay("dica")
  25. system.disableChatCommandDisplay("cores")
  26. mapas={4677521,4006983,3810344,4173716,4000298,3815744,'<C><P F="0" L="900" /><Z><S><S X="467" L="994" o="6a7495" H="142" c="4" Y="472" 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="1020" o="6a7495" H="299" Y="-149" T="12" X="442" /><S P="0,0,0.3,0.2,0,0,0,0" L="840" H="16" N="" Y="339" T="6" X="461" /><S P="0,0,0.3,0.2,0,0,0,0" L="40" X="880" N="" Y="161" T="6" H="370" /><S L="40" X="21" H="370" N="" Y="162" T="6" P="0,0,0.3,0.2,0,0,0,0" /><S L="823" X="452" H="233" Y="226" T="8" P="0,0,0.3,0.2,0,0,0,0" /><S L="814" X="450" H="10" Y="111" T="6" P="0,0,0.3,0.2,0,0,0,0" /><S L="900" X="450" H="10" Y="405" T="4" P="0,0,20,0.2,0,0,0,0" /><S L="39" X="21" H="50" Y="373" T="1" P="0,0,0,0.2,0,0,0,0" /><S L="37" X="881" H="45" Y="374" T="1" P="0,0,0,0.2,0,0,0,0" /><S L="820" X="451" H="20" Y="-11" T="1" P="0,0,0,0.2,0,0,0,0" /></S><D><DC Y="92" X="450" /><DS Y="373" X="462" /><P X="138" Y="399" T="5" P="0,0" /><P X="720" Y="399" T="5" P="0,0" /><P X="609" Y="399" T="0" P="0,0" /><P X="270" Y="399" T="0" P="0,0" /><P X="390" Y="399" T="4" P="0,0" /><P X="510" Y="398" T="4" P="0,0" /><P C="46788e" Y="107" T="24" X="106" P="0,0" /><P C="46788e" Y="111" T="24" X="794" P="0,1" /><P X="448" Y="104" T="33" P="0,0" /></D><O /></Z></C>','<C><P F="0" L="900" /><Z><S><S P="0,0,0.3,0.2,0,0,0,0" L="994" o="6a7495" H="142" c="4" Y="472" T="12" X="467" /><S L="1020" o="6a7495" H="299" X="442" Y="-149" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S L="840" H="16" X="461" N="" Y="339" T="3" P="0,0,0.3,0.2,0,0,0,0" /><S L="40" X="881" H="400" N="" Y="200" T="3" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="40" H="400" N="" Y="199" T="3" X="20" /><S L="814" H="10" X="451" Y="103" T="3" P="0,0,0.3,0.2,0,0,0,0" /><S L="900" H="10" X="450" Y="405" T="4" P="0,0,20,0.2,0,0,0,0" /><S L="820" H="20" X="451" Y="-11" T="1" P="0,0,0,0.2,0,0,0,0" /></S><D><DC Y="84" X="451" /><DS Y="373" X="462" /><P C="800000" Y="2" T="34" X="1" P="0,0" /><P C="800000" Y="1" T="34" X="99" P="0,0" /><P X="425" Y="401" T="45" P="0,0" /><P X="460" Y="401" T="45" P="0,0" /><P X="65" Y="355" T="41" P="0,0" /><P X="93" Y="98" T="37" P="0,0" /><P X="819" Y="108" T="37" P="0,0" /><P X="297" Y="61" T="43" P="0,0" /><P X="643" Y="72" T="43" P="0,1" /><P X="450" Y="108" T="40" P="0,0" /></D><O /></Z></C>','<C><P F="5" L="900" /><Z><S><S P="0,0,0.3,0.2,0,0,0,0" L="994" o="6a7495" H="142" c="4" Y="472" T="12" X="467" /><S L="1020" o="6a7495" X="442" H="299" Y="-149" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S L="840" X="461" H="16" N="" Y="339" T="1" P="0,0,0.3,0.2,0,0,0,0" /><S L="40" H="400" X="881" N="" Y="200" T="1" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="40" X="20" N="" Y="199" T="1" H="400" /><S L="814" H="10" X="451" Y="103" T="1" P="0,0,0.3,0.2,0,0,0,0" /><S L="820" H="20" X="451" Y="-11" T="1" P="0,0,0,0.2,0,0,0,0" /><S L="901" H="10" X="450" Y="406" T="1" P="0,0,0,0.2,0,0,0,0" /></S><D><DC Y="84" X="451" /><DS Y="373" X="462" /><P X="65" Y="355" T="41" P="0,0" /><P P="0,0" Y="402" T="63" X="131" /><P P="0,0" Y="403" T="63" X="785" /><P P="0,0" Y="6" T="64" X="54" /><P P="0,0" Y="400" T="62" X="237" /><P P="0,0" Y="401" T="62" X="296" /><P P="0,0" Y="402" T="62" X="517" /><P P="0,0" Y="348" T="58" X="331" /><P P="0,0" Y="331" T="59" X="625" /><P P="0,0" C="ce4505,fcc304" Y="-7" T="56" X="339" /><P P="0,0" Y="192" T="51" X="651" /><P P="0,0" Y="188" T="51" X="267" /><P P="0,0" Y="100" T="50" X="807" /></D><O /></Z></C>','<C><P F="5" L="900" /><Z><S><S P="0,0,0.3,0.2,0,0,0,0" L="994" o="6a7495" H="142" c="4" Y="472" T="12" X="467" /><S L="1020" o="6a7495" H="299" X="442" Y="-149" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S L="840" H="16" X="461" N="" Y="339" T="10" P="0,0,0.3,0.2,0,0,0,0" /><S L="40" X="881" H="400" N="" Y="200" T="10" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="40" H="400" N="" Y="199" T="10" X="20" /><S L="814" H="10" X="451" Y="103" T="10" P="0,0,0.3,0.2,0,0,0,0" /><S L="820" H="20" X="451" Y="-11" T="10" P="0,0,0,0.2,0,0,0,0" /><S L="901" H="10" X="450" Y="406" T="10" P="0,0,0,0.2,0,0,0,0" /></S><D><DC Y="84" X="451" /><DS Y="373" X="462" /><P X="65" Y="355" T="41" P="0,0" /><P P="0,0" C="808080,808080" Y="0" T="117" X="37" /><P C="808080,808080" Y="0" T="117" X="81" P="0,0" /><P P="0,0" C="714330,23130c" Y="402" T="103" X="104" /><P P="0,0" C="cf6a27,95d9d6,665c50,e9e2da" Y="-5" T="102" X="450" /><P P="0,0" C="4d2e0f" Y="98" T="99" X="105" /><P P="0,0" C="4d2e0f" Y="99" T="99" X="817" /><P P="0,0" C="55300b,191812" Y="105" T="98" X="716" /><P P="0,1" C="55300b,191812" Y="101" T="98" X="233" /><P P="0,0" C="dbd4cb" Y="99" T="96" X="342" /><P P="0,0" C="dbd4cb" Y="100" T="96" X="587" /><P P="0,0" C="18585,c26900,10a61d,a3468e" Y="400" T="93" X="800" /><P P="0,0" C="e75082" Y="402" T="91" X="706" /><P P="0,0" C="e75082" Y="402" T="91" X="213" /><P P="0,0" C="714330,23130c" Y="403" T="103" X="341" /><P P="0,0" C="714330,23130c" Y="403" T="103" X="624" /><P P="0,0" C="18585" Y="401" T="100" X="459" /></D><O /></Z></C>','<C><P L="900" /><Z><S><S P="0,0,0.3,0.2,0,0,0,0" L="994" o="6a7495" H="142" c="4" Y="472" T="12" X="467" /><S L="1020" o="6a7495" X="442" H="299" Y="-149" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S N="" L="40" H="400" X="881" v="1" Y="200" T="10" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" N="" L="40" X="20" v="1" Y="200" T="10" H="400" /><S L="814" X="451" H="10" v="1" Y="103" T="10" P="0,0,0.3,0.2,0,0,0,0" /><S L="820" X="451" H="20" v="1" Y="-11" T="10" P="0,0,0,0.2,0,0,0,0" /><S L="901" X="450" H="10" v="1" Y="406" T="10" P="0,0,0,0.2,0,0,0,0" /><S L="820" X="450" H="10" Y="103" T="9" P="0,0,,,,0,0,0" /><S L="901" X="450" H="14" Y="395" T="9" P="0,0,,,,0,0,0" /><S L="41" X="21" H="389" Y="199" T="9" P="0,0,,,,0,0,0" /><S L="40" X="880" H="390" Y="195" T="9" P="0,0,,,,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="819" o="ffffffffff" X="450" Y="106" T="12" H="10" /><S L="819" o="ffffffffff" X="33" H="10" Y="202" 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="819" o="ffffffffff" H="10" Y="200" T="12" X="869" /><S L="820" H="10" X="450" Y="338" T="9" P="0,0,,,,0,0,0" /></S><D><DC Y="84" X="451" /><P P="0,0" C="8eff" Y="0" T="34" X="28" /><P C="8eff" Y="0" T="34" X="68" P="0,0" /><P P="0,0" Y="404" T="78" X="176" /><P P="0,0" Y="403" T="78" X="734" /><P P="0,0" Y="404" T="79" X="88" /><P P="0,0" Y="403" T="79" X="818" /><P P="0,0" Y="407" T="80" X="282" /><P P="0,0" Y="406" T="80" X="633" /><P P="0,0" Y="397" T="82" X="390" /><P P="0,0" Y="399" T="82" X="522" /><P P="0,0" Y="97" T="83" X="374" /><P P="0,0" C="bb5631" Y="96" T="86" X="110" /><P P="0,0" C="bb5631" Y="98" T="86" X="802" /><P P="0,0" Y="98" T="87" X="705" /><P P="0,0" Y="101" T="88" X="625" /><P P="0,0" Y="103" T="80" X="250" /><P P="0,0" Y="93" T="81" X="534" /><P P="0,0" Y="44" T="79" X="60" /><P P="0,0" Y="45" T="79" X="822" /></D><O /></Z></C>'}
  27. function eventMouse(name,x,y)
  28.     for name,player in pairs(tfm.get.room.playerList) do   
  29.         if name == shaman then
  30.             if x >= 95 and x <= 870 and y >= 115 and y <= 316 then
  31.                 id=id+1
  32.                 if cor == "0" then
  33.                 ui.addTextArea(id, "", nil, x, y, gross, gross, 0x000001, 0x000001)
  34.                 elseif cor == "1" then
  35.                 ui.addTextArea(id, "", nil, x, y, gross, gross, 0xff0000, 0xff0000)
  36.                 elseif cor == "2" then
  37.                 ui.addTextArea(id, "", nil, x, y, gross, gross, 0xffff00, 0xffff00)
  38.                 elseif cor == "3" then
  39.                 ui.addTextArea(id, "", nil, x, y, gross, gross, 0x0000ff, 0x0000ff)
  40.                 elseif cor == "4" then
  41.                 ui.addTextArea(id, "", nil, x, y, gross, gross, 0x008800, 0x008800)
  42.                 elseif cor == "5" then
  43.                 ui.addTextArea(id, "", nil, x, y, gross, gross, 0xffffff, 0xffffff)
  44.                 elseif cor == "6" then
  45.                 ui.addTextArea(id, "", nil, x, y, gross, gross, 0xff00ff, 0xff00ff)
  46.                 elseif cor == "7" then
  47.                 ui.addTextArea(id, "", nil, x, y, gross, gross, 0x808080, 0x808080)
  48.                 elseif cor == "8" then
  49.                 ui.addTextArea(id, "", nil, x, y, gross, gross, 0x80fffff, 0x80ffff)
  50.                 elseif cor == "9" then
  51.                 ui.addTextArea(id, "", nil, x, y, gross, gross, 0x00ffff, 0x00ffff)
  52.                 elseif cor == "10" then
  53.                 ui.addTextArea(id, "", nil, x, y, gross, gross, 0x000080, 0x000080)
  54.                 elseif cor == "11" then
  55.                 ui.addTextArea(id, "", nil, x, y, gross, gross, 0x00ff00, 0x00ff00)
  56.                 elseif cor == "12" then
  57.                 ui.addTextArea(id, "", nil, x, y, gross, gross, 0x004000, 0x004000)
  58.                 elseif cor == "13" then
  59.                 ui.addTextArea(id, "", nil, x, y, gross, gross, 0xff8000, 0xff8000)
  60.                 elseif cor == "14" then
  61.                 ui.addTextArea(id, "", nil, x, y, gross, gross, 0x0080ff, 0x0080ff)
  62.                 elseif cor == "15" then
  63.                 ui.addTextArea(id, "", nil, x, y, gross, gross, cod, cod)
  64.                 end
  65.             end
  66.         end
  67.     end
  68. end
  69. function eventChatCommand(n,m)
  70.     data[n].c=data[n].c+1
  71. data[n].p=data[n].v/data[n].c*200
  72.         if data[n].p > 100 then
  73.             data[n].p=100
  74.         end
  75.         if m == palavra then
  76.             tfm.exec.giveCheese(n)
  77.             tfm.exec.playerVictory(n)
  78.             tfm.exec.newGame(mapas[math.random(#mapas)])
  79.             ui.addPopup(5,0,"<font size='13'><ROSE>"..n.." acertou a resposta! A palavra era "..palavra.."</ROSE>",nil,0,50,800)
  80.         elseif m == "next" then
  81.         if tfm.get.room.playerList[n].isShaman then
  82.             data[n].c=data[n].c-1
  83.             ui.addPopup(1,1,"Tem certeza que deseja pular seu turno de shaman?",n,350,175,200,true) end
  84.     elseif m == "dica" then
  85.         if tfm.get.room.playerList[n].isShaman then
  86.             data[n].c=data[n].c-1
  87.             if dicas >= 1 then
  88.             ui.addPopup(13,2,"<font size='13'>Digite a dica que deseja dar:<br><br>Você ainda pode dar <b>"..dicas.."</b> dicas",n,350,175,200,true)
  89.             else
  90.             ui.addPopup(14,0,"<font size='13'><b>Você não pode mais dar dicas.",n,350,175,200,true) end end
  91.     elseif m == "ver" then
  92.         if tfm.get.room.playerList[n].isShaman then
  93.             data[n].c=data[n].c-1
  94.             ui.addPopup(2,0,"<font size='13'>A sua palavra é: <b>"..palavra.."</b><br><br>E NUNCA MAIS DIGITE ESSE COMANDO!",n,350,175,200,true) end
  95.     elseif m == "status" then
  96.             data[n].c=data[n].c-1
  97.             ui.addPopup(1,0,"<font size='13'>Seus status:<br><br>Total de chutes dados: "..data[n].c.."<br>Palavras que foram acertadas: "..data[n].v.."<br>Quantas vezes foi shaman: "..data[n].s.."<br>Proporção de acertos: "..math.floor(data[n].p).."%<br>Seu nível de experiência: "..data[n].l.."<br>Progresso: "..data[n].e.."/"..data[n].r.." pontos",n,350,175,240,true)
  98.     elseif m == "help" then
  99.             data[n].c=data[n].c-1
  100.             ui.addPopup(6,0,"<font size='28'>       Pictionary!<br><font size='13'>Você é um artista! A palavra aparecerá na tela do shaman, e ele deverá desenhar ou dar uma dica sobre a palavra, quem acertar vira o shaman! Bugs ou informações reporte a Haxhhhhhhhhh.",n,275,50,300,true)
  101.     elseif m == "cmd" then
  102.             data[n].c=data[n].c-1
  103.             ui.addPopup(857,0,"<font size='28'>           Comandos<br><font size='13'>![palavra] = chuta uma palavra ([palavra] é uma palavra)<br>!help = ver ajuda do jogo<br>!status = ver suas estatísticas<br><br>Comandos para Shaman<br>!new = escolhe uma nova palavra (limite de 3 usos)<br>!dica = dá uma dica<br>!next = pula sua vez de shaman<br>!ver = vê a palavra atual<br>!cor [número] = escolhe a cor da tinta de desenh.<br>!cores = abre uma lista de cores para escolher.<br><br>Sugestões de comandos fale com Haxhhhhhhhhh",n,275,50,400,true)
  104.     elseif m == "new" then
  105.         if tfm.get.room.playerList[n].isShaman then
  106.         data[n].c=data[n].c-1
  107.         if novo >= 1 then
  108.             novo=novo-1
  109.             sortearpalavra()
  110.         else
  111.             ui.addPopup(55,0,"<font size='13'><b>Você não pode mais mudar a palavra.",n,350,175,200,true)
  112.         end end
  113.     elseif m == "cores" then
  114.             data[n].c=data[n].c-1
  115.             ui.addPopup(857,0,"<font size='28'>   Cores disponíveis<br><font size='11'>0 = preto<br>1 = vermelho<br>2 = amarelo<br>3 = azul<br>4 = verde<br>5 = branco<br>6 = rosa<br>7 = cinza<br>8 = ciano claro<br>9 = azul claro<br>10 = azul escuro<br>11 = verde claro<br>12 = verde escuro<br>13 = laranja<br>14 = roxo<br>Sugestões para cores falar com Haxhhhhhhhhh",n,275,50,350,true)
  116.     elseif(m:sub(1,3) == "cor") then
  117.             data[n].c=data[n].c-1
  118.             if m:sub(5) == "per" then
  119.                 cor=15
  120.                 ui.addPopup(3895,2,"<font size='13'>Digite o código personalizado da cor:<br><br><b>Atenção! Use '0x' na frente do código. Exemplo: 0xffff00</b>",r,350,175,200,true)
  121.             else
  122.             cor=m:sub(5)
  123.             print(cor) end
  124.     end end
  125. function eventNewGame()
  126.     novo=4
  127.     ui.addTextArea(99999,"",nil,-3000,115,4830,210,697495,697495)
  128.     ui.removeTextArea(99999999,nil)
  129.     ui.removeTextArea(99999998,nil)
  130.     ui.removeTextArea(99999997,nil)
  131.     ui.removeTextArea(99999996,nil)
  132.     ui.removeTextArea(99999995,nil)
  133.     ui.removeTextArea(99999994,nil)
  134.     ui.removeTextArea(99999993,nil)
  135.     ui.removeTextArea(99999992,nil)
  136.     ui.removeTextArea(99999991,nil)
  137.     ui.removeTextArea(99999990,nil)
  138.     ui.removeTextArea(99999989,nil)
  139.     ui.removeTextArea(99999988,nil)
  140.     tempo=20;
  141.     dicas=4
  142.     rato=0;
  143.     new=false;
  144.     tfm.exec.setGameTime(140)
  145.     for n,l in pairs(tfm.get.room.playerList) do
  146.         system.bindMouse(n,false)
  147.         tfm.exec.setPlayerScore(n,0,false)
  148.         rato=rato+1
  149.         if tfm.get.room.playerList[n].isShaman then
  150.             shaman=n
  151.             print(n.." é o shaman")
  152.             sortearpalavra()
  153.             system.bindMouse(n,true)
  154.             ui.addTextArea(99999996, "<p align='center'><a href='event:Oi'>Apagar desenho</a></p>", n, 100, 20, 100, 20, 000001, 000001)
  155.             ui.addTextArea(99999999, "<p align='center'><a href='event:O3i'>Escolher cor</a></p>", n, 250, 20, 100, 20, 000001, 000001)
  156.             ui.addTextArea(99999994, "<p align='center'><a href='event:O5i'>Ver palavra</a></p>", n, 50, 380, 100, 20, 000001, 000001)
  157.             ui.addTextArea(99999993, "<p align='center'><a href='event:O6i'>Trocar palavra</a></p>", n, 250, 380, 100, 20, 000001, 000001)
  158.             ui.addTextArea(99999992, "<p align='center'><a href='event:O7i'>Passar vez</a></p>", n, 450, 380, 100, 20, 000001, 000001)
  159.             ui.addTextArea(99999991, "<p align='center'><a href='event:O8i'>Dar uma dica</a></p>", n, 650, 380, 100, 20, 000001, 000001)
  160.             ui.addTextArea(99999998, "<p align='center'><a href='event:O2i'>Ver ajuda</a></p>", nil, 400, 20, 100, 20, 000001, 000001)
  161.             ui.addTextArea(99999995, "<p align='center'><a href='event:O4i'>Ver comandos</a></p>", nil, 550, 20, 100, 20, 000001, 000001)
  162.             ui.addTextArea(99999997, "<p align='center'><a href='event:O1i'>Seus status</a></p>", nil, 700, 20, 100, 20, 000001, 000001)
  163.             ui.addTextArea(99999987, "<font size='13'>Grossura da tinta:", n, 0, 120, 140, 20, 000001, 000001)
  164.             ui.addTextArea(99999989, "<font size='13'><p align='center'><a href='event:O11i'>+</a></p>", n, 50, 150, 20, 20, 000001, 000001)
  165.             ui.addTextArea(99999988, "<font size='13'><p align='center'><a href='event:O12i'>-</a></p>", n, 50, 280, 20, 20, 000001, 000001)
  166.         end
  167.      end
  168. end
  169. function eventPopupAnswer(id,r,a)
  170.     if id == 1 then
  171.         if a == "yes" then
  172.         tfm.exec.setGameTime(10)
  173.         ui.addPopup(5,0,"<font size='14'>O shaman pulou seu turno.",nil,0,100,800,true)
  174.             palavra="(nao tem palavra)"
  175.         tfm.exec.setPlayerScore(r,-1000,false) end
  176.     elseif id == 3 then
  177.         palavra=a;
  178.     elseif id == 4 and new == false then
  179.         palavra=a;
  180.         new=true;
  181.     elseif id == 13 then
  182.         ui.addPopup(5,0,"<font size='14'>"..a.."",nil,0,100,800,true)
  183.         dicas=dicas-1
  184.     elseif id == 3895 then
  185.         cod=a
  186.         print(cod)
  187.     elseif id == 6000 then
  188.         if a <= "14" then
  189.         cor=a
  190.         elseif a == "per" then
  191.             ui.addPopup(3895,2,"<font size='13'>Digite o código personalizado da cor:<br><br><b>Atenção! Use '0x' na frente do código. Exemplo: 0xffff00</b>",r,350,175,200,true)
  192.             cor="15"
  193.         end
  194.         print(cor) end
  195.     end
  196. function eventLoop(p,f)
  197.     if gross == 4 then
  198.         ui.addTextArea(12345567,"",shaman,50,260,20,10,0xffff00,0xffff00,1.0)
  199.     end
  200.     if gross == 6 then
  201.         ui.addTextArea(12345567,"",shaman,50,250,20,20,0xffff00,0xffff00,1.0)
  202.     end
  203.     if gross == 8 then
  204.         ui.addTextArea(12345567,"",shaman,50,240,20,30,0xffff00,0xffff00,1.0)
  205.     end
  206.     if gross == 10 then
  207.         ui.addTextArea(12345567,"",shaman,50,230,20,40,0xffff00,0xffff00,1.0)
  208.     end
  209.     if gross == 12 then
  210.         ui.addTextArea(12345567,"",shaman,50,220,20,50,0xffff00,0xffff00,1.0)
  211.     end
  212.     if gross == 14 then
  213.         ui.addTextArea(12345567,"",shaman,50,210,20,60,0xffff00,0xffff00,1.0)
  214.     end
  215.     if gross == 16 then
  216.         ui.addTextArea(12345567,"",shaman,50,200,20,70,0xffff00,0xffff00,1.0)
  217.     end
  218.     if gross == 18 then
  219.         ui.addTextArea(12345567,"",shaman,50,190,20,80,0xffff00,0xffff00,1.0)
  220.     end
  221.     if gross == 20 then
  222.         ui.addTextArea(12345567,"",shaman,50,180,20,90,0xffff00,0xffff00,1.0)
  223.     end
  224.     ui.addTextArea(99999987, "<font size='13'>Grossura da tinta:", shaman, 0, 120, 140, 20, 000001, 000001)
  225.     ui.addTextArea(99999989, "<font size='13'><p align='center'><a href='event:O11i'>+</a></p>", shaman, 50, 150, 20, 20, 000001, 000001)
  226.     ui.addTextArea(99999988, "<font size='13'><p align='center'><a href='event:O12i'>-</a></p>", shaman, 50, 280, 20, 20, 000001, 000001)
  227.     if f <= 135000 then
  228.         ui.removeTextArea(1200000,nil)
  229.         ui.removeTextArea(1200001,nil)
  230.     end
  231.     if f >= 130000 and logo == true then
  232.         ui.addTextArea(8359,"<br><font size='15'><font face='Friz Quadrata'><font color='0x808080'>Atualizações da versão 13.0<br>- Adição de comandos de baixo<br>- Melhoria de bugs internos<br>- Adição do nível de grossura<br>Sugestões fale para Haxhhhhhhhhh",nil,000,015,400,100,0xff,0xff,1.0,true)
  233.     else
  234.         logo=false
  235.         ui.removeTextArea(8359,nil)
  236.     end
  237.     tfm.exec.setUIMapName("<VP>Pictionary versão 14.0")
  238.     local shaman=""
  239.     for name,player in pairs(tfm.get.room.playerList) do
  240.         if tfm.get.room.playerList[name].isShaman then
  241.             shaman=name;
  242.         end
  243.     end
  244.     if f <= 1 then
  245.         tfm.exec.newGame(mapas[math.random(#mapas)])
  246.     elseif f <= 7000 then
  247.         ui.addPopup(5,0,"<font size='14'>Acabou o tempo! A palavra era "..palavra.."",nil,0,100,800,true)
  248.     elseif f >= 119000 and f <= 120000 then
  249.         move=true  
  250.         if move == true then
  251.         for pn, p in pairs(tfm.get.room.playerList) do
  252.             if tfm.get.room.playerList[pn].isShaman then
  253.                 if p.x >= x1 - 20 and p.x <= x1 + 20 then
  254.                     if p.y >= y1- 20 and p.y <= y1 + 20 then
  255.                         tfm.exec.killPlayer(pn)
  256.                         tfm.exec.newGame(mapas[math.random(#mapas)])
  257.                         ui.addPopup(46,0,"<font size='14'>O shaman está ausente ou esqueceu de se mover.",nil,0,100,800,true)
  258.                         move=false;
  259.                     end
  260.                 end
  261.             end
  262.         end
  263.     end end
  264. end
  265. function eventNewPlayer(n)
  266.     system.bindMouse(n,false)
  267.     rato=rato+1
  268.     newData={
  269.         ["v"]=0;
  270.         ["e"]=0;
  271.         ["r"]=20;
  272.         ["l"]=1;
  273.         ["s"]=0;
  274.         ["c"]=0;
  275.         ["p"]=0;
  276.         };
  277.         data[n] = newData;
  278.     tfm.exec.respawnPlayer(n) end
  279. for name,player in pairs(tfm.get.room.playerList) do
  280.     eventNewPlayer(name)
  281.     tfm.exec.setPlayerScore(name,0,false)
  282. end
  283. function eventPlayerDied(n)
  284.     tfm.exec.respawnPlayer(n) end
  285. function eventPlayerWon(name)
  286.     data[name].s = data[name].s + 1
  287.     data[name].e = data[name].e + 10
  288.         data[name].v = data[name].v + 1
  289.     if data[name].e == data[name].r then
  290.         data[name].l = data[name].l + 1
  291.         if data[name].l >= 10 then
  292.             data[name].l=9
  293.         else
  294.             data[name].e = 0
  295.             data[name].r = data[name].r + 10
  296.         end
  297.         if data[name].e >= 110 then
  298.             data[name].e=100
  299.         end
  300.     end
  301.     ui.addTextArea(1200000,"<font size='13'>Seu level atual: "..data[name].l.."",name,50,147,650,32,0x000001,0x000001,1.0,true)
  302.     if data[name].l == 1 then
  303.         if data[name].e == 10 then
  304.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>10 / 20",name,50,177,325,25,0xff0000,0xff0000,1.0,true)
  305.         end
  306.     end if data[name].l == 2 then
  307.         if data[name].e == 0 then
  308.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>20 / 20",name,50,177,650,25,0xff0000,0xff0000,1.0,true)
  309.         elseif data[name].e == 10 then
  310.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>10 / 30",name,50,177,260,25,0xff0000,0xff0000,1.0,true)
  311.         elseif data[name].e == 20 then
  312.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>20 / 30",name,50,177,480,25,0xff0000,0xff0000,1.0,true)
  313.         end
  314.     end if data[name].l == 3 then
  315.         if data[name].e == 0 then
  316.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>30 / 30",name,50,177,650,25,0xff0000,0xff0000,1.0,true)
  317.         elseif data[name].e == 10 then
  318.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>10 / 40",name,50,177,150,25,0xff0000,0xff0000,1.0,true)
  319.         elseif data[name].e == 20 then
  320.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>20 / 40",name,50,177,320,25,0xff0000,0xff0000,1.0,true)
  321.         elseif data[name].e == 30 then
  322.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>30 / 40",name,50,177,480,25,0xff0000,0xff0000,1.0,true)
  323.         end
  324.     end if data[name].l == 4 then
  325.         if data[name].e == 0 then
  326.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>40 / 40",name,50,177,650,25,0xff0000,0xff0000,1.0,true)
  327.         elseif data[name].e == 10 then
  328.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>10 / 50",name,50,177,140,25,0xff0000,0xff0000,1.0,true)
  329.         elseif data[name].e == 20 then
  330.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>20 / 50",name,50,177,260,25,0xff0000,0xff0000,1.0,true)
  331.         elseif data[name].e == 30 then
  332.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>30 / 50",name,50,177,400,25,0xff0000,0xff0000,1.0,true)
  333.         elseif data[name].e == 40 then
  334.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>40 / 50",name,50,177,530,25,0xff0000,0xff0000,1.0,true)
  335.         end
  336.     end if data[name].l == 5 then
  337.         if data[name].e == 0 then
  338.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>50 / 50",name,50,177,650,25,0xff0000,0xff0000,1.0,true)
  339.         elseif data[name].e == 10 then
  340.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>10 / 60",name,50,177,110,25,0xff0000,0xff0000,1.0,true)
  341.         elseif data[name].e == 20 then
  342.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>20 / 60",name,50,177,220,25,0xff0000,0xff0000,1.0,true)
  343.         elseif data[name].e == 30 then
  344.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>30 / 60",name,50,177,330,25,0xff0000,0xff0000,1.0,true)
  345.         elseif data[name].e == 40 then
  346.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>40 / 60",name,50,177,440,25,0xff0000,0xff0000,1.0,true)
  347.         elseif data[name].e == 50 then
  348.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>50 / 60",name,50,177,550,25,0xff0000,0xff0000,1.0,true)
  349.         end
  350.     end if data[name].l == 6 then
  351.         if data[name].e == 0 then
  352.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>60 / 60",name,50,177,650,25,0xff0000,0xff0000,1.0,true)
  353.         elseif data[name].e == 10 then
  354.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>10 / 70",name,50,177,90,25,0xff0000,0xff0000,1.0,true)
  355.         elseif data[name].e == 20 then
  356.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>20 / 70",name,50,177,180,25,0xff0000,0xff0000,1.0,true)
  357.         elseif data[name].e == 30 then
  358.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>30 / 70",name,50,177,270,25,0xff0000,0xff0000,1.0,true)
  359.         elseif data[name].e == 40 then
  360.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>40 / 70",name,50,177,360,25,0xff0000,0xff0000,1.0,true)
  361.         elseif data[name].e == 50 then
  362.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>50 / 70",name,50,177,460,25,0xff0000,0xff0000,1.0,true)
  363.         elseif data[name].e == 60 then
  364.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>60 / 70",name,50,177,555,25,0xff0000,0xff0000,1.0,true)
  365.         end
  366.     end if data[name].l == 7 then
  367.         if data[name].e == 0 then
  368.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>70 / 70",name,50,177,650,25,0xff0000,0xff0000,1.0,true)
  369.         elseif data[name].e == 10 then
  370.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>10 / 80",name,50,177,85,25,0xff0000,0xff0000,1.0,true)
  371.         elseif data[name].e == 20 then
  372.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>20 / 80",name,50,177,180,25,0xff0000,0xff0000,1.0,true)
  373.         elseif data[name].e == 30 then
  374.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>30 / 80",name,50,177,270,25,0xff0000,0xff0000,1.0,true)
  375.         elseif data[name].e == 40 then
  376.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>40 / 80",name,50,177,320,25,0xff0000,0xff0000,1.0,true)
  377.         elseif data[name].e == 50 then
  378.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>50 / 80",name,50,177,390,25,0xff0000,0xff0000,1.0,true)
  379.         elseif data[name].e == 60 then
  380.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>60 / 80",name,50,177,470,25,0xff0000,0xff0000,1.0,true)
  381.         elseif data[name].e == 70 then
  382.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>70 / 80",name,50,177,560,25,0xff0000,0xff0000,1.0,true)
  383.         end
  384.     end if data[name].l == 8 then
  385.         if data[name].e == 0 then
  386.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>80 / 80",name,50,177,650,25,0xff0000,0xff0000,1.0,true)
  387.         elseif data[name].e == 10 then
  388.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>10 / 90",name,50,177,70,25,0xff0000,0xff0000,1.0,true)
  389.         elseif data[name].e == 20 then
  390.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>20 / 90",name,50,177,140,25,0xff0000,0xff0000,1.0,true)
  391.         elseif data[name].e == 30 then
  392.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>30 / 90",name,50,177,210,25,0xff0000,0xff0000,1.0,true)
  393.         elseif data[name].e == 40 then
  394.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>40 / 90",name,50,177,280,25,0xff0000,0xff0000,1.0,true)
  395.         elseif data[name].e == 50 then
  396.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>50 / 90",name,50,177,350,25,0xff0000,0xff0000,1.0,true)
  397.         elseif data[name].e == 60 then
  398.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>60 / 90",name,50,177,420,25,0xff0000,0xff0000,1.0,true)
  399.         elseif data[name].e == 70 then
  400.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>70 / 90",name,50,177,490,25,0xff0000,0xff0000,1.0,true)
  401.         elseif data[name].e == 80 then
  402.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>80 / 90",name,50,177,570,25,0xff0000,0xff0000,1.0,true)
  403.         end
  404.     end if data[name].l == 9 then
  405.         if data[name].e == 0 then
  406.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>90 / 90",name,50,177,650,25,0xff0000,0xff0000,1.0,true)
  407.         elseif data[name].e == 10 then
  408.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>10 / 100",name,50,177,65,25,0xff0000,0xff0000,1.0,true)
  409.         elseif data[name].e == 20 then
  410.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>20 / 100",name,50,177,130,25,0xff0000,0xff0000,1.0,true)
  411.         elseif data[name].e == 30 then
  412.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>30 / 100",name,50,177,195,25,0xff0000,0xff0000,1.0,true)
  413.         elseif data[name].e == 40 then
  414.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>40 / 100",name,50,177,260,25,0xff0000,0xff0000,1.0,true)
  415.         elseif data[name].e == 50 then
  416.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>50 / 100",name,50,177,325,25,0xff0000,0xff0000,1.0,true)
  417.         elseif data[name].e == 60 then
  418.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>60 / 100",name,50,177,390,25,0xff0000,0xff0000,1.0,true)
  419.         elseif data[name].e == 70 then
  420.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>70 / 100",name,50,177,455,25,0xff0000,0xff0000,1.0,true)
  421.         elseif data[name].e == 80 then
  422.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>80 / 100",name,50,177,520,25,0xff0000,0xff0000,1.0,true)
  423.         elseif data[name].e == 90 then
  424.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>90 / 100",name,50,177,585,25,0xff0000,0xff0000,1.0,true)
  425.         elseif data[name].e >= 100 then
  426.             ui.addTextArea(1200001,"<font size='15'><font color='#000001'>100 / 100",name,50,177,650,25,0xff0000,0xff0000,1.0,true)
  427.         end
  428.     end
  429. end
  430. function eventPlayerLeft()
  431.     rato=rato-1
  432. end
  433. function sortearpalavra()
  434.     palavra=palavras[math.random(#palavras)]
  435.     for n,p in pairs(tfm.get.room.playerList) do
  436.         if tfm.get.room.playerList[n].isShaman then
  437.             if novo >= 1 then
  438.                 ui.addPopup(55,0,"<font size='14'>A sua palavra é <b>"..palavra.."</b><br><br>Você ainda tem <b>"..novo.."</b> palavras novas para escolher.",n,350,175,200,true)
  439.             else
  440.                 ui.addPopup(55,0,"<font size='14'>A sua palavra é <b>"..palavra.."</b><br><br><b>Você não pode mais mudar a palavra.",n,350,175,200,true)
  441.             end
  442.         end
  443.     end
  444. end
  445. function eventTextAreaCallback(id, name, callback)
  446.     if callback == "Oi" then
  447.         ui.addTextArea(99999,"",nil,-3000,115,4830,210,697495,697495)
  448.     end
  449.     if callback == "O2i" then
  450.         eventChatCommand(name,"help")
  451.     end
  452.     if callback == "O1i" then
  453.         eventChatCommand(name,"status")
  454.     end
  455.     if callback == "O4i" then
  456.         eventChatCommand(name,"cmd")
  457.     end
  458.     if callback == "O5i" then
  459.         eventChatCommand(name,"ver")
  460.     end
  461.     if callback == "O6i" then
  462.         eventChatCommand(name,"new")
  463.     end
  464.     if callback == "O7i" then
  465.         eventChatCommand(name,"next")
  466.     end
  467.     if callback == "O8i" then
  468.         eventChatCommand(name,"dica")
  469.     end
  470.     if callback == "O11i" then
  471.         gross=gross+2
  472.         if gross >= 20 then
  473.             gross=20
  474.         end
  475.     end
  476.     if callback == "O12i" then
  477.         gross=gross-2
  478.         if gross <= 4 then
  479.             gross=4
  480.         end
  481.     end
  482.     if callback == "O3i" then
  483.         ui.addPopup(6000,2,"Escolha o número referente a cor: <br>0 = preto<br>1 = vermelho<br>2 = amarelo<br>3 = azul<br>4 = verde<br>5 = branco<br>6 = rosa<br>7 = cinza<br>8 = ciano claro<br>9 = azul claro<br>10 = azul escuro<br>11 = verde claro<br>12 = verde escuro<br>13 = laranja<br>14 = roxo<br><br>Ou digite 'per' para escolher uma cor personalizada.",name,350,75,200,true)
  484.     end
  485. end
  486. tfm.exec.newGame(mapas[math.random(#mapas)])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement