Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- palavra=""
- 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"}
- rato=0
- id=0
- cor="1"
- gross=4
- x1 = 451
- y1 = 84
- cod=""
- dicas=5
- novo=4;
- logo=true;
- shaman=""
- data={}
- tempo=1;
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.disableAutoTimeLeft(true)
- tfm.exec.disableAfkDeath(true)
- system.disableChatCommandDisplay("ver")
- system.disableChatCommandDisplay("escolher")
- system.disableChatCommandDisplay("cor")
- system.disableChatCommandDisplay("cmd")
- system.disableChatCommandDisplay("new",false)
- system.disableChatCommandDisplay("dica")
- system.disableChatCommandDisplay("cores")
- 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>'}
- function eventMouse(name,x,y)
- for name,player in pairs(tfm.get.room.playerList) do
- if name == shaman then
- if x >= 95 and x <= 870 and y >= 115 and y <= 316 then
- id=id+1
- if cor == "0" then
- ui.addTextArea(id, "", nil, x, y, gross, gross, 0x000001, 0x000001)
- elseif cor == "1" then
- ui.addTextArea(id, "", nil, x, y, gross, gross, 0xff0000, 0xff0000)
- elseif cor == "2" then
- ui.addTextArea(id, "", nil, x, y, gross, gross, 0xffff00, 0xffff00)
- elseif cor == "3" then
- ui.addTextArea(id, "", nil, x, y, gross, gross, 0x0000ff, 0x0000ff)
- elseif cor == "4" then
- ui.addTextArea(id, "", nil, x, y, gross, gross, 0x008800, 0x008800)
- elseif cor == "5" then
- ui.addTextArea(id, "", nil, x, y, gross, gross, 0xffffff, 0xffffff)
- elseif cor == "6" then
- ui.addTextArea(id, "", nil, x, y, gross, gross, 0xff00ff, 0xff00ff)
- elseif cor == "7" then
- ui.addTextArea(id, "", nil, x, y, gross, gross, 0x808080, 0x808080)
- elseif cor == "8" then
- ui.addTextArea(id, "", nil, x, y, gross, gross, 0x80fffff, 0x80ffff)
- elseif cor == "9" then
- ui.addTextArea(id, "", nil, x, y, gross, gross, 0x00ffff, 0x00ffff)
- elseif cor == "10" then
- ui.addTextArea(id, "", nil, x, y, gross, gross, 0x000080, 0x000080)
- elseif cor == "11" then
- ui.addTextArea(id, "", nil, x, y, gross, gross, 0x00ff00, 0x00ff00)
- elseif cor == "12" then
- ui.addTextArea(id, "", nil, x, y, gross, gross, 0x004000, 0x004000)
- elseif cor == "13" then
- ui.addTextArea(id, "", nil, x, y, gross, gross, 0xff8000, 0xff8000)
- elseif cor == "14" then
- ui.addTextArea(id, "", nil, x, y, gross, gross, 0x0080ff, 0x0080ff)
- elseif cor == "15" then
- ui.addTextArea(id, "", nil, x, y, gross, gross, cod, cod)
- end
- end
- end
- end
- end
- function eventChatCommand(n,m)
- data[n].c=data[n].c+1
- data[n].p=data[n].v/data[n].c*200
- if data[n].p > 100 then
- data[n].p=100
- end
- if m == palavra then
- tfm.exec.giveCheese(n)
- tfm.exec.playerVictory(n)
- tfm.exec.newGame(mapas[math.random(#mapas)])
- ui.addPopup(5,0,"<font size='13'><ROSE>"..n.." acertou a resposta! A palavra era "..palavra.."</ROSE>",nil,0,50,800)
- elseif m == "next" then
- if tfm.get.room.playerList[n].isShaman then
- data[n].c=data[n].c-1
- ui.addPopup(1,1,"Tem certeza que deseja pular seu turno de shaman?",n,350,175,200,true) end
- elseif m == "dica" then
- if tfm.get.room.playerList[n].isShaman then
- data[n].c=data[n].c-1
- if dicas >= 1 then
- 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)
- else
- ui.addPopup(14,0,"<font size='13'><b>Você não pode mais dar dicas.",n,350,175,200,true) end end
- elseif m == "ver" then
- if tfm.get.room.playerList[n].isShaman then
- data[n].c=data[n].c-1
- 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
- elseif m == "status" then
- data[n].c=data[n].c-1
- 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)
- elseif m == "help" then
- data[n].c=data[n].c-1
- 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)
- elseif m == "cmd" then
- data[n].c=data[n].c-1
- 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)
- elseif m == "new" then
- if tfm.get.room.playerList[n].isShaman then
- data[n].c=data[n].c-1
- if novo >= 1 then
- novo=novo-1
- sortearpalavra()
- else
- ui.addPopup(55,0,"<font size='13'><b>Você não pode mais mudar a palavra.",n,350,175,200,true)
- end end
- elseif m == "cores" then
- data[n].c=data[n].c-1
- 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)
- elseif(m:sub(1,3) == "cor") then
- data[n].c=data[n].c-1
- if m:sub(5) == "per" then
- cor=15
- 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)
- else
- cor=m:sub(5)
- print(cor) end
- end end
- function eventNewGame()
- novo=4
- ui.addTextArea(99999,"",nil,-3000,115,4830,210,697495,697495)
- ui.removeTextArea(99999999,nil)
- ui.removeTextArea(99999998,nil)
- ui.removeTextArea(99999997,nil)
- ui.removeTextArea(99999996,nil)
- ui.removeTextArea(99999995,nil)
- ui.removeTextArea(99999994,nil)
- ui.removeTextArea(99999993,nil)
- ui.removeTextArea(99999992,nil)
- ui.removeTextArea(99999991,nil)
- ui.removeTextArea(99999990,nil)
- ui.removeTextArea(99999989,nil)
- ui.removeTextArea(99999988,nil)
- tempo=20;
- dicas=4
- rato=0;
- new=false;
- tfm.exec.setGameTime(140)
- for n,l in pairs(tfm.get.room.playerList) do
- system.bindMouse(n,false)
- tfm.exec.setPlayerScore(n,0,false)
- rato=rato+1
- if tfm.get.room.playerList[n].isShaman then
- shaman=n
- print(n.." é o shaman")
- sortearpalavra()
- system.bindMouse(n,true)
- ui.addTextArea(99999996, "<p align='center'><a href='event:Oi'>Apagar desenho</a></p>", n, 100, 20, 100, 20, 000001, 000001)
- ui.addTextArea(99999999, "<p align='center'><a href='event:O3i'>Escolher cor</a></p>", n, 250, 20, 100, 20, 000001, 000001)
- ui.addTextArea(99999994, "<p align='center'><a href='event:O5i'>Ver palavra</a></p>", n, 50, 380, 100, 20, 000001, 000001)
- ui.addTextArea(99999993, "<p align='center'><a href='event:O6i'>Trocar palavra</a></p>", n, 250, 380, 100, 20, 000001, 000001)
- ui.addTextArea(99999992, "<p align='center'><a href='event:O7i'>Passar vez</a></p>", n, 450, 380, 100, 20, 000001, 000001)
- ui.addTextArea(99999991, "<p align='center'><a href='event:O8i'>Dar uma dica</a></p>", n, 650, 380, 100, 20, 000001, 000001)
- ui.addTextArea(99999998, "<p align='center'><a href='event:O2i'>Ver ajuda</a></p>", nil, 400, 20, 100, 20, 000001, 000001)
- ui.addTextArea(99999995, "<p align='center'><a href='event:O4i'>Ver comandos</a></p>", nil, 550, 20, 100, 20, 000001, 000001)
- ui.addTextArea(99999997, "<p align='center'><a href='event:O1i'>Seus status</a></p>", nil, 700, 20, 100, 20, 000001, 000001)
- ui.addTextArea(99999987, "<font size='13'>Grossura da tinta:", n, 0, 120, 140, 20, 000001, 000001)
- ui.addTextArea(99999989, "<font size='13'><p align='center'><a href='event:O11i'>+</a></p>", n, 50, 150, 20, 20, 000001, 000001)
- ui.addTextArea(99999988, "<font size='13'><p align='center'><a href='event:O12i'>-</a></p>", n, 50, 280, 20, 20, 000001, 000001)
- end
- end
- end
- function eventPopupAnswer(id,r,a)
- if id == 1 then
- if a == "yes" then
- tfm.exec.setGameTime(10)
- ui.addPopup(5,0,"<font size='14'>O shaman pulou seu turno.",nil,0,100,800,true)
- palavra="(nao tem palavra)"
- tfm.exec.setPlayerScore(r,-1000,false) end
- elseif id == 3 then
- palavra=a;
- elseif id == 4 and new == false then
- palavra=a;
- new=true;
- elseif id == 13 then
- ui.addPopup(5,0,"<font size='14'>"..a.."",nil,0,100,800,true)
- dicas=dicas-1
- elseif id == 3895 then
- cod=a
- print(cod)
- elseif id == 6000 then
- if a <= "14" then
- cor=a
- elseif a == "per" then
- 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)
- cor="15"
- end
- print(cor) end
- end
- function eventLoop(p,f)
- if gross == 4 then
- ui.addTextArea(12345567,"",shaman,50,260,20,10,0xffff00,0xffff00,1.0)
- end
- if gross == 6 then
- ui.addTextArea(12345567,"",shaman,50,250,20,20,0xffff00,0xffff00,1.0)
- end
- if gross == 8 then
- ui.addTextArea(12345567,"",shaman,50,240,20,30,0xffff00,0xffff00,1.0)
- end
- if gross == 10 then
- ui.addTextArea(12345567,"",shaman,50,230,20,40,0xffff00,0xffff00,1.0)
- end
- if gross == 12 then
- ui.addTextArea(12345567,"",shaman,50,220,20,50,0xffff00,0xffff00,1.0)
- end
- if gross == 14 then
- ui.addTextArea(12345567,"",shaman,50,210,20,60,0xffff00,0xffff00,1.0)
- end
- if gross == 16 then
- ui.addTextArea(12345567,"",shaman,50,200,20,70,0xffff00,0xffff00,1.0)
- end
- if gross == 18 then
- ui.addTextArea(12345567,"",shaman,50,190,20,80,0xffff00,0xffff00,1.0)
- end
- if gross == 20 then
- ui.addTextArea(12345567,"",shaman,50,180,20,90,0xffff00,0xffff00,1.0)
- end
- ui.addTextArea(99999987, "<font size='13'>Grossura da tinta:", shaman, 0, 120, 140, 20, 000001, 000001)
- ui.addTextArea(99999989, "<font size='13'><p align='center'><a href='event:O11i'>+</a></p>", shaman, 50, 150, 20, 20, 000001, 000001)
- ui.addTextArea(99999988, "<font size='13'><p align='center'><a href='event:O12i'>-</a></p>", shaman, 50, 280, 20, 20, 000001, 000001)
- if f <= 135000 then
- ui.removeTextArea(1200000,nil)
- ui.removeTextArea(1200001,nil)
- end
- if f >= 130000 and logo == true then
- 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)
- else
- logo=false
- ui.removeTextArea(8359,nil)
- end
- tfm.exec.setUIMapName("<VP>Pictionary versão 14.0")
- local shaman=""
- for name,player in pairs(tfm.get.room.playerList) do
- if tfm.get.room.playerList[name].isShaman then
- shaman=name;
- end
- end
- if f <= 1 then
- tfm.exec.newGame(mapas[math.random(#mapas)])
- elseif f <= 7000 then
- ui.addPopup(5,0,"<font size='14'>Acabou o tempo! A palavra era "..palavra.."",nil,0,100,800,true)
- elseif f >= 119000 and f <= 120000 then
- move=true
- if move == true then
- for pn, p in pairs(tfm.get.room.playerList) do
- if tfm.get.room.playerList[pn].isShaman then
- if p.x >= x1 - 20 and p.x <= x1 + 20 then
- if p.y >= y1- 20 and p.y <= y1 + 20 then
- tfm.exec.killPlayer(pn)
- tfm.exec.newGame(mapas[math.random(#mapas)])
- ui.addPopup(46,0,"<font size='14'>O shaman está ausente ou esqueceu de se mover.",nil,0,100,800,true)
- move=false;
- end
- end
- end
- end
- end end
- end
- function eventNewPlayer(n)
- system.bindMouse(n,false)
- rato=rato+1
- newData={
- ["v"]=0;
- ["e"]=0;
- ["r"]=20;
- ["l"]=1;
- ["s"]=0;
- ["c"]=0;
- ["p"]=0;
- };
- data[n] = newData;
- tfm.exec.respawnPlayer(n) end
- for name,player in pairs(tfm.get.room.playerList) do
- eventNewPlayer(name)
- tfm.exec.setPlayerScore(name,0,false)
- end
- function eventPlayerDied(n)
- tfm.exec.respawnPlayer(n) end
- function eventPlayerWon(name)
- data[name].s = data[name].s + 1
- data[name].e = data[name].e + 10
- data[name].v = data[name].v + 1
- if data[name].e == data[name].r then
- data[name].l = data[name].l + 1
- if data[name].l >= 10 then
- data[name].l=9
- else
- data[name].e = 0
- data[name].r = data[name].r + 10
- end
- if data[name].e >= 110 then
- data[name].e=100
- end
- end
- ui.addTextArea(1200000,"<font size='13'>Seu level atual: "..data[name].l.."",name,50,147,650,32,0x000001,0x000001,1.0,true)
- if data[name].l == 1 then
- if data[name].e == 10 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>10 / 20",name,50,177,325,25,0xff0000,0xff0000,1.0,true)
- end
- end if data[name].l == 2 then
- if data[name].e == 0 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>20 / 20",name,50,177,650,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 10 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>10 / 30",name,50,177,260,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 20 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>20 / 30",name,50,177,480,25,0xff0000,0xff0000,1.0,true)
- end
- end if data[name].l == 3 then
- if data[name].e == 0 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>30 / 30",name,50,177,650,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 10 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>10 / 40",name,50,177,150,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 20 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>20 / 40",name,50,177,320,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 30 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>30 / 40",name,50,177,480,25,0xff0000,0xff0000,1.0,true)
- end
- end if data[name].l == 4 then
- if data[name].e == 0 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>40 / 40",name,50,177,650,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 10 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>10 / 50",name,50,177,140,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 20 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>20 / 50",name,50,177,260,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 30 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>30 / 50",name,50,177,400,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 40 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>40 / 50",name,50,177,530,25,0xff0000,0xff0000,1.0,true)
- end
- end if data[name].l == 5 then
- if data[name].e == 0 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>50 / 50",name,50,177,650,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 10 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>10 / 60",name,50,177,110,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 20 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>20 / 60",name,50,177,220,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 30 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>30 / 60",name,50,177,330,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 40 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>40 / 60",name,50,177,440,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 50 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>50 / 60",name,50,177,550,25,0xff0000,0xff0000,1.0,true)
- end
- end if data[name].l == 6 then
- if data[name].e == 0 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>60 / 60",name,50,177,650,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 10 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>10 / 70",name,50,177,90,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 20 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>20 / 70",name,50,177,180,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 30 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>30 / 70",name,50,177,270,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 40 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>40 / 70",name,50,177,360,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 50 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>50 / 70",name,50,177,460,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 60 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>60 / 70",name,50,177,555,25,0xff0000,0xff0000,1.0,true)
- end
- end if data[name].l == 7 then
- if data[name].e == 0 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>70 / 70",name,50,177,650,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 10 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>10 / 80",name,50,177,85,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 20 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>20 / 80",name,50,177,180,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 30 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>30 / 80",name,50,177,270,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 40 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>40 / 80",name,50,177,320,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 50 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>50 / 80",name,50,177,390,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 60 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>60 / 80",name,50,177,470,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 70 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>70 / 80",name,50,177,560,25,0xff0000,0xff0000,1.0,true)
- end
- end if data[name].l == 8 then
- if data[name].e == 0 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>80 / 80",name,50,177,650,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 10 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>10 / 90",name,50,177,70,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 20 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>20 / 90",name,50,177,140,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 30 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>30 / 90",name,50,177,210,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 40 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>40 / 90",name,50,177,280,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 50 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>50 / 90",name,50,177,350,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 60 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>60 / 90",name,50,177,420,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 70 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>70 / 90",name,50,177,490,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 80 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>80 / 90",name,50,177,570,25,0xff0000,0xff0000,1.0,true)
- end
- end if data[name].l == 9 then
- if data[name].e == 0 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>90 / 90",name,50,177,650,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 10 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>10 / 100",name,50,177,65,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 20 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>20 / 100",name,50,177,130,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 30 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>30 / 100",name,50,177,195,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 40 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>40 / 100",name,50,177,260,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 50 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>50 / 100",name,50,177,325,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 60 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>60 / 100",name,50,177,390,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 70 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>70 / 100",name,50,177,455,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 80 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>80 / 100",name,50,177,520,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e == 90 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>90 / 100",name,50,177,585,25,0xff0000,0xff0000,1.0,true)
- elseif data[name].e >= 100 then
- ui.addTextArea(1200001,"<font size='15'><font color='#000001'>100 / 100",name,50,177,650,25,0xff0000,0xff0000,1.0,true)
- end
- end
- end
- function eventPlayerLeft()
- rato=rato-1
- end
- function sortearpalavra()
- palavra=palavras[math.random(#palavras)]
- for n,p in pairs(tfm.get.room.playerList) do
- if tfm.get.room.playerList[n].isShaman then
- if novo >= 1 then
- 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)
- else
- 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)
- end
- end
- end
- end
- function eventTextAreaCallback(id, name, callback)
- if callback == "Oi" then
- ui.addTextArea(99999,"",nil,-3000,115,4830,210,697495,697495)
- end
- if callback == "O2i" then
- eventChatCommand(name,"help")
- end
- if callback == "O1i" then
- eventChatCommand(name,"status")
- end
- if callback == "O4i" then
- eventChatCommand(name,"cmd")
- end
- if callback == "O5i" then
- eventChatCommand(name,"ver")
- end
- if callback == "O6i" then
- eventChatCommand(name,"new")
- end
- if callback == "O7i" then
- eventChatCommand(name,"next")
- end
- if callback == "O8i" then
- eventChatCommand(name,"dica")
- end
- if callback == "O11i" then
- gross=gross+2
- if gross >= 20 then
- gross=20
- end
- end
- if callback == "O12i" then
- gross=gross-2
- if gross <= 4 then
- gross=4
- end
- end
- if callback == "O3i" then
- 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)
- end
- end
- tfm.exec.newGame(mapas[math.random(#mapas)])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement