![]() |
![]() « Citoyen » 1410045300000
| 0 | ||
mortadelw a dit : sendo monstrao |
![]() ![]() « Citoyen » 1410106200000
| 0 | ||
Me esprica uma coisa oq é scripts ? |
![]() ![]() « Citoyen » 1410185760000
| 0 | ||
Queria um script com mapas vanillas sem shaman tempo inicial 2:00 quando ficasse dois ratos tempo iria automaticamente para 00:20 segundos e os pontos nunca zerassem |
![]() « Citoyen » 1410186120000
| 0 | ||
Gutigusta a dit : aí menor eu fiz mas num sei se funciona n --Vanilla tfm.exec.disableAutoNewGame(true) tfm.exec.disableAutoShaman(true) mapas={1,0,3} mapa=math.random(#mapas) function newgame() tfm.exec.newGame(mapas[mapa]) end function eventLoop(time,remaining) if remaining<=0 then newgame() end end function eventPlayerDied(player) local i=0 for n,player in pairs(tfm.get.room.playerList) do if not player.isDead then i=i+1 end end if i==2 then tfm.exec.setTimeLeft(20) elseif i==0 then newgame() end end function eventPlayerLeft(player) eventPlayerDied(player) end function eventPlayerWon(player) eventPlayerDied(player) end |
![]() ![]() « Citoyen » 1410265440000
| 0 | ||
Queria um script assim Mapas: Vanillas Shaman: Sem shaman em nenhum mapa teria shaman Tempo: Começa com 02:00 minutos, após ficar apenas 2 ratos o tempo ir automaticamente para 00:20 segundos Detalhe: Quando clicasse na tela soltasse spirit em qualquer lugar do mapa sem delay E uma mensagem assim no chat após bota o minigame "Esse é o minigame do aniversário da TMC de 1 ano, clique no mapa para solta spirit. O objetivo do minigame é matar os outros jogadores e entrar na toca, após chegar a 100 pontos você recebe automaticamente o cargo especial do evento." |
![]() 1410265440000
| | ||
[Modéré par Alriy] |
![]() « Citoyen » 1410265620000
| 0 | ||
Gutigusta a dit : Muito grande. |
![]() ![]() « Citoyen » 1410267600000
| 0 | ||
Queria um script assim Mapas: Vanillas Shaman: Sem shaman em nenhum mapa teria shaman Detalhe: Quando clicasse na tela soltasse spirit em qualquer lugar do mapa sem delay E uma mensagem assim no chat após bota o minigame "Esse é o minigame do aniversário da TMC de 1 ano, clique no mapa para solta spirit. O objetivo do minigame é matar os outros jogadores e entrar na toca, após chegar a 100 pontos você recebe automaticamente o cargo especial do evento." Tirei o negócio de tempo da pra fazer? |
![]() « Citoyen » 1410268560000
| 0 | ||
Gutigusta a dit : não tem como colocar msg de chat,só aparece pra quem executa o script texto="Esse é o minigame do aniversário da TMC de 1 ano, clique no mapa para solta spirit. O objetivo do minigame é matar os outros jogadores e entrar na toca, após chegar a 100 pontos você recebe automaticamente o cargo especial do evento."; tfm.exec.disableAutoNewGame(true) tfm.exec.disableAutoShaman(true) ui.addPopup(0, 0, texto, nil, 300, 200, 320, false) mapas={1,0,3} mapa=math.random(#mapas) tfm.exec.newGame(mapas[mapa]) function newgame() tfm.exec.newGame(mapas[mapa]) end function eventLoop(time,remaining) if remaining<=0 then newgame() end end function eventPlayerDied(player) local i=0 for n,player in pairs(tfm.get.room.playerList) do if not player.isDead then i=i+1 end end if i==0 then newgame() end end function eventNewPlayer(player) system.bindMouse(player,true) end function eventPlayerLeft(player) eventPlayerDied(player) end function eventPlayerWon(player) eventPlayerDied(player) end for player in pairs(tfm.get.room.playerList) do eventNewPlayer(player) end function eventMouse(player,x,y) tfm.exec.addShamanObject(24,x,y) end |
![]() ![]() « Citoyen » 1410273120000
| 0 | ||
Carludd a dit : Vlw cara salvo o evento da minha tribo |
![]() « Citoyen » 1410275100000
| 0 | ||
Gutigusta a dit : dnd |
![]() ![]() « Citoyen » 1410312120000
| 0 | ||
Como q coloca ft de perfil?? |
![]() « Citoyen » 1410441120000
| 0 | ||
Qual a diferença entre math.ceil e math.floor?No manual aparece a mesma descrição. |
![]() ![]() « Citoyen » 1410448140000
| 0 | ||
Carludd a dit : Acredito que math.ceil arredonda o número para o menor inteiro igual ou maior ao número. Exemplo: math.ceil(3.5) = 4 O math.floor arredonda o número para o menor inteiro mais próximo menor ou igual ao número. Exeplo: math.floor(3.5) = 3 ~Robonado Dernière modification le 1410448560000 |
![]() « Citoyen » 1410448800000
| 0 | ||
yhbvgvc a dit : mt pro vlw |
![]() ![]() « Citoyen » 1410449040000
| 0 | ||
Carludd a dit : valeu |
![]() ![]() « Citoyen » 1410562020000
| 0 | ||
Carludd a dit : Não sei se é bug mais se começa no mapa 2 fica sempre no.mapa 2 se começa no mapa 4 fica só no mapa 4 bug? |
![]() « Citoyen » 1410564000000
| 0 | ||
Gutigusta a dit : Como assim? |
![]() ![]() « Consul » 1410564960000
| 0 | ||
Carludd a dit : na função newgame() precisa ter um novo sorteio de mapa |
![]() « Citoyen » 1410565140000
| 0 | ||
Ninguem a dit : atá texto="Esse é o minigame do aniversário da TMC de 1 ano, clique no mapa para solta spirit. O objetivo do minigame é matar os outros jogadores e entrar na toca, após chegar a 100 pontos você recebe automaticamente o cargo especial do evento."; tfm.exec.disableAutoNewGame(true) tfm.exec.disableAutoShaman(true) ui.addPopup(0, 0, texto, nil, 300, 200, 320, false) mapas={1,0,3} mapa=math.random(#mapas) tfm.exec.newGame(mapas[mapa]) function newgame() mapa=math.random(#mapas) tfm.exec.newGame(mapas[mapa]) end function eventLoop(time,remaining) if remaining<=0 then newgame() end end function eventPlayerDied(player) local i=0 for n,player in pairs(tfm.get.room.playerList) do if not player.isDead then i=i+1 end end if i==0 then newgame() end end function eventNewPlayer(player) system.bindMouse(player,true) end function eventPlayerLeft(player) eventPlayerDied(player) end function eventPlayerWon(player) eventPlayerDied(player) end for player in pairs(tfm.get.room.playerList) do eventNewPlayer(player) end function eventMouse(player,x,y) tfm.exec.addShamanObject(24,x,y) end |