Advertisement
CaxGames

ShamanVsMice1.0.3

Mar 20th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.71 KB | None | 0 0
  1. --- Meu jogo em desenvolvimento
  2. -- ShamanvsMices
  3.  
  4. rodada = 1
  5. timer = 5
  6. alphaMice = ""
  7. owner = "Zykgo"
  8. sha = ""
  9. tfm.exec.setGameTime(7)
  10. mapas = 7410314
  11. tfm.exec.setNameColor(owner, 0xffffff)
  12.  
  13.  for k, v in next, tfm.get.room.playerList do
  14.     if v.isShaman then
  15.         sha = k
  16.         break
  17.     end
  18. end
  19.  
  20. print("O shaman é " .. sha)
  21.  
  22. eventNewGame = function()
  23.    
  24. end
  25. if rodada == 1 then
  26.       tfm.exec.setUIMapName(string.format("%s <G> | </G>  <N>%s:</N> <V>%s</V>", "ShamanvsMices", "Rodada", "Shaman"))
  27. else
  28.       tfm.exec.setUIMapName(string.format("%s <G> | </G>  <N>%s:</N> <V>%s</V>", "ShamanvsMices", "AlphaMice" ,alphaMice))
  29. end    
  30. tfm.exec.disablePhysicalConsumables(true)
  31. tfm.exec.disableMortCommand(true)
  32. tfm.exec.disableWatchCommand(true)
  33. tfm.exec.disableDebugCommand(true)
  34. tfm.exec.disableMinimalistMode(true)
  35. tfm.exec.disableAllShamanSkills(true)
  36. tfm.exec.disableAutoScore (true)
  37. tfm.exec.disableAutoNewGame(true)
  38. system.disableChatCommandDisplay(new, true)
  39. tfm.exec.newGame (mapas,false)
  40. function eventChatCommand(adm, new)
  41.      tfm.exec.newGame (mapas,false)
  42. end
  43.  tfm.exec.setPlayerScore(name,10,true) -- adicionar pontos
  44.  
  45. function eventLoop(tempoPassado, tempoRestante)
  46.      if tempoRestante <= 0 then
  47.            tfm.exec.setGameTime(5)
  48.          if rodada ==  1 then
  49.               rodada = 2
  50.          else
  51.               rodada = 1
  52.          end      
  53.      end
  54.      if tempoRestante > 0 then
  55.           if rodada == 1 then
  56.                if tfm.get.room.playerList[sha].x > 0 and tfm.get.room.playerList[sha].x < 167 then
  57.                     ui.addTextArea(0, "<font color=\"#02FF5E\" size=\"16\">VERDE\n", nil, 355, 188, 60, 24, 0x000000, 0xffffff, 0, true)
  58.               end
  59.               if tfm.get.room.playerList[sha].x > 167 and tfm.get.room.playerList[sha].x < 403 then
  60.                     ui.addTextArea(0, "<font color=\"#FF0500\" size=\"16\">VERMELHO\n", nil, 355, 188, 89, 24, 0x000000, 0xffffff, 0, true)
  61.               end
  62.               if tfm.get.room.playerList[sha].x > 403 and tfm.get.room.playerList[sha].x < 634 then
  63.                     ui.addTextArea(0, "<font color=\"#FFC500\" size=\"16\">AMARELO\n", nil, 355, 188, 81, 24, 0x000000, 0xffffff, 0, true)
  64.              end
  65.             if tfm.get.room.playerList[sha].x > 634 and tfm.get.room.playerList[sha].x < 797 then
  66.                     ui.addTextArea(0, "<font color=\"#FF00EA\" size=\"16\">ROSA\n", nil, 355, 188, 55, 24, 0x000000, 0xffffff, 0, true)
  67.             end
  68.            end
  69.      end
  70. end
  71. eventNewGame = function()
  72.     for k, v in next, tfm.get.room.playerList do
  73.         if v.isShaman then
  74.             sha = k
  75.             break
  76.         end
  77.     end
  78.  
  79.     print("O shaman é " .. sha)
  80.    
  81. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement