Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- Meu jogo em desenvolvimento
- -- ShamanvsMices
- rodada = 1
- timer = 5
- alphaMice = ""
- owner = "Zykgo"
- sha = ""
- tfm.exec.setGameTime(7)
- mapas = 7410314
- tfm.exec.setNameColor(owner, 0xffffff)
- for k, v in next, tfm.get.room.playerList do
- if v.isShaman then
- sha = k
- break
- end
- end
- print("O shaman é " .. sha)
- eventNewGame = function()
- end
- if rodada == 1 then
- tfm.exec.setUIMapName(string.format("%s <G> | </G> <N>%s:</N> <V>%s</V>", "ShamanvsMices", "Rodada", "Shaman"))
- else
- tfm.exec.setUIMapName(string.format("%s <G> | </G> <N>%s:</N> <V>%s</V>", "ShamanvsMices", "AlphaMice" ,alphaMice))
- end
- tfm.exec.disablePhysicalConsumables(true)
- tfm.exec.disableMortCommand(true)
- tfm.exec.disableWatchCommand(true)
- tfm.exec.disableDebugCommand(true)
- tfm.exec.disableMinimalistMode(true)
- tfm.exec.disableAllShamanSkills(true)
- tfm.exec.disableAutoScore (true)
- tfm.exec.disableAutoNewGame(true)
- system.disableChatCommandDisplay(new, true)
- tfm.exec.newGame (mapas,false)
- function eventChatCommand(adm, new)
- tfm.exec.newGame (mapas,false)
- end
- tfm.exec.setPlayerScore(name,10,true) -- adicionar pontos
- function eventLoop(tempoPassado, tempoRestante)
- if tempoRestante <= 0 then
- tfm.exec.setGameTime(5)
- if rodada == 1 then
- rodada = 2
- else
- rodada = 1
- end
- end
- if tempoRestante > 0 then
- if rodada == 1 then
- if tfm.get.room.playerList[sha].x > 0 and tfm.get.room.playerList[sha].x < 167 then
- ui.addTextArea(0, "<font color=\"#02FF5E\" size=\"16\">VERDE\n", nil, 355, 188, 60, 24, 0x000000, 0xffffff, 0, true)
- end
- if tfm.get.room.playerList[sha].x > 167 and tfm.get.room.playerList[sha].x < 403 then
- ui.addTextArea(0, "<font color=\"#FF0500\" size=\"16\">VERMELHO\n", nil, 355, 188, 89, 24, 0x000000, 0xffffff, 0, true)
- end
- if tfm.get.room.playerList[sha].x > 403 and tfm.get.room.playerList[sha].x < 634 then
- ui.addTextArea(0, "<font color=\"#FFC500\" size=\"16\">AMARELO\n", nil, 355, 188, 81, 24, 0x000000, 0xffffff, 0, true)
- end
- if tfm.get.room.playerList[sha].x > 634 and tfm.get.room.playerList[sha].x < 797 then
- ui.addTextArea(0, "<font color=\"#FF00EA\" size=\"16\">ROSA\n", nil, 355, 188, 55, 24, 0x000000, 0xffffff, 0, true)
- end
- end
- end
- end
- eventNewGame = function()
- for k, v in next, tfm.get.room.playerList do
- if v.isShaman then
- sha = k
- break
- end
- end
- print("O shaman é " .. sha)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement