Advertisement
Guest User

Untitled

a guest
Jul 16th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. system.bindKeyboard(n, 3, true, true)
  2. end
  3.  
  4. table.foreach(tfm.get.room.playerList, eventNewPlayer)
  5.  
  6. function eventPlayerDied(playerName)
  7. print(playerName.."Died ):")
  8. end
  9.  
  10. function eventNewPlayer(playerName)
  11. print(playerName.."Hi")
  12. end
  13.  
  14. function eventPlayerLeft(playerName)
  15. print(playerName.." bye ")
  16. end
  17.  
  18. tfm.exec.setUIMapName("Snow War")
  19.  
  20. function eventNewPlayer(n)
  21. system.bindKeyboard(n, 3, true, true)
  22. end
  23.  
  24. table.foreach(tfm.get.room.playerList, eventNewPlayer)
  25.  
  26. function eventKeyboard(n,key,down,Px,Py)
  27. if key == 3 then
  28. if tfm.get.room.playerList[n].isFacingRight then
  29. tfm.exec.addShamanObject(10, Px+5, Py-3, 0, 20, 0)
  30. else
  31. tfm.exec.addShamanObject(10, Px-5, Py-3, 0, -20, 0)
  32. end
  33. end
  34. end
  35.  
  36. function eventSummoningEnd(playerName, 34, xPosition, yPosition, angle, 50, 50, other)
  37. if objectType==10 then
  38. print(playerName.." has spawned an anvil! Let's remove it.")
  39. tfm.exec.removeObject(other.id)
  40. end
  41. end
  42.  
  43. tfm.exec.snow(999999999,45)
  44.  
  45. ui.addTextArea(1,"Kill your anime.",nil,350,180,100,40,0x6C77C1,0x6C77C1,0.8,true)
  46.  
  47. function eventSummoningEnd(playerName, 17, 50, 50, angle, xSpeed, ySpeed, other)
  48. if objectType==10 then
  49. print(playerName.." has spawned an anvil! Let's remove it.")
  50. tfm.exec.removeObject(other.id)
  51. end
  52. end
  53.  
  54. maps={"@7478080","@CODE","@CODE"}
  55.  
  56. function toStart()
  57. local i=0
  58. for n,p in pairs(tfm.get.room.playerList) do
  59. if not p.isDead then
  60. i=i+1
  61. end
  62. end
  63. if i==0 then
  64. tfm.exec.newGame(maps[math.random(#maps)])
  65. end
  66. end
  67.  
  68. eventPlayerDied=toStart
  69. eventPlayerWon=toStart
  70.  
  71. function eventLoop(time,remaining)
  72. if remaining <= 0 then
  73. tfm.exec.newGame(maps[math.random(#maps)])
  74. end
  75. end
  76.  
  77. tfm.exec.disableAutoShaman()
  78. tfm.exec.disableAutoNewGame()
  79. tfm.exec.setGameTime(100,true)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement