Boeing747-8

Untitled

Dec 22nd, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. tfm.exec.disableAfkDeath(true)
  2. tfm.exec.disableAutoShaman(true)
  3.  
  4.  
  5.  
  6.  
  7. tfm.exec.disableAutoNewGame(true)
  8. maps={6946086,6354056,6373101,6947670,6973435}
  9.  
  10. function eventLoop(time,remaining)
  11. if remaining<=0 then
  12. tfm.exec.newGame(maps[math.random(#maps)])
  13. end
  14. end
  15.  
  16. function eventPlayerDied()
  17. local i=0
  18. for n,player in pairs(tfm.get.room.playerList) do
  19. if not player.isDead then
  20. i=i+1
  21. tfm.exec.respawnPlayer(n)
  22. end
  23. end
  24. if i==0 then
  25. tfm.exec.newGame(maps[math.random(#maps)])
  26. end
  27. end
  28.  
  29. function eventPlayerWon(name)
  30. tfm.exec.respawnPlayer(name)
  31. tfm.exec.chatMessage("<VP>You just completed the level!",name)
  32. tfm.exec.chatMessage("<VP>Your score: "..tfm.get.room.playerList[name].score,name)
  33. end
  34.  
  35. DOWN0 = string.byte("W")
  36. DOWN3 = string.byte("O")
  37. DOWN4 = 38
  38. DOWN1 = 40 --keycode of down arrow
  39. DOWN2 = string.byte("S") --keycode of S
  40.  
  41. for name, player in pairs(tfm.get.room.playerList) do
  42. system.bindKeyboard(name, DOWN1, true)
  43. system.bindKeyboard(name, DOWN2, true)
  44. system.bindKeyboard(name, DOWN4, true)
  45. system.bindKeyboard(name, DOWN3, true)
  46. system.bindKeyboard(name, DOWN0, true)
  47.  
  48. end
  49.  
  50. function eventKeyboard(name, keyCode, down, x, y)
  51. if keyCode == DOWN1 or keyCode == DOWN2 then
  52. tfm.exec.explosion(x, y + 20, 10, 60, true) -- spark(?) explosion
  53. tfm.exec.displayParticle(tfm.enum.particle.spirit, x, y + 30) -- spark(?) spirit particle
  54. elseif keyCode == DOWN3 or keyCode == DOWN4 or keyCode == DOWN0 then
  55. tfm.exec.explosion(x, y - 20, 10, 60, true) -- spark(?) explosion
  56. tfm.exec.displayParticle(tfm.enum.particle.spirit, x, y - 30) -- spark(?) spirit particle
  57. end
  58. end
  59.  
  60. for name,player in pairs(tfm.get.room.playerList) do
  61. system.bindMouse(name)
  62. end
  63.  
  64. function pythag(x1,y1,x2,y2)
  65. return math.sqrt((y2-y1)^2+(x2-x1)^2)
  66. end
  67.  
  68. function eventMouse(n,x,y)
  69. for n,p in pairs(tfm.get.room.playerList) do
  70. if pythag(x,y,p.x,p.y) <= 15 then
  71. tfm.exec.movePlayer(n,100,100,true,0,50,false)
  72. tfm.exec.addShamanObject(27,x,tfm.get.room.playerList,45,50,-20,false)
  73. end
  74. end
  75. end
  76.  
  77. ui.addTextArea(96,"<a href='event:906' align='center'><font size='11' color='#00FF57'><p'>Stats</a>",nil,5,255,70,20,0x000001,0x000001,1,true)
  78. ui.addTextArea(1,"<a href='event:example' align='center'><font size='11' color='#FF0000'><p'>Vampire</a>",nil,5,175,70,20,0x000001,0x000001,1,true)
  79. ui.addTextArea(2,"<a href='event:p' align='center'><font size='11' color='#00FF57'><p'>Help</a>",nil,5,195,70,20,0x000001,0x000001,1,true)
  80. ui.addTextArea(4,"<a href='event:4' align='center'><font size='11' color='#00FF57'><p'>Credits</a>",nil,5,215,70,20,0x000001,0x000001,1,true)
  81. ui.addTextArea(30,"<a href='event:99' align='center'><font size='11' color='#00FF57'><p'>Commands</a>",nil,5,235,70,20,0x000001,0x000001,1,true)
  82. ui.addTextArea(31,"<a href='event:59' align='center'><font size='11' color='#0000FF'><p'>Move Tabs</a>",nil,5,155,70,20,0x000001,0x000001,1,true)
  83. function eventTextAreaCallback(textAreaID, playerName, callback)
  84. if callback=="example" then
  85. tfm.exec.setVampirePlayer(playerName)
  86. elseif callback=="906" then
  87. ui.addTextArea(1000,"<a align='center'><font size='25' color='#00FF57'><p'> <a align='center'><font size='15' color='#0000FF'><p'> ",playerName,-500,-100,3000,3000,0x000001,0x000001,0.5,true)
  88. ui.addTextArea(3909,"<a align='center'><font size='25' color='#00FF57'><p'>"..playerName.."'s Stats<a align='center'><font size='20' color='#FFD000'><p'> Won: "..info[playerName].victories.." Died: "..info[playerName].deaths.." Touched Cheese: "..info[playerName].rounds.." Shot Spirits: "..info[playerName].sparks.." Number of times being a vampire: "..info[playerName].vampire,playerName,180,100,500,190,0x272727,0x000001,1,true)
  89. ui.addTextArea(7,"<a href='event:7' align='center'><font size='11' color='#00FF57'><p'>Close</a>",playerName,5,255,70,20,0x000001,0x000001,1,true)
  90. elseif callback=="999" then
  91. ui.addTextArea(1000,"<a align='center'><font size='25' color='#00FF57'><p'> <a align='center'><font size='15' color='#0000FF'><p'> ",playerName,-500,-100,3000,3000,0x000001,0x000001,0.5,true)
  92. ui.addTextArea(7,"<a href='event:7' align='center'><font size='11' color='#00FF57'><p'>Close</a>",playerName,730,235,70,20,0x000001,0x000001,1,true)
  93. ui.addTextArea(3,"<a align='center'><font size='25' color='#00FF57'><p'> Commands <a align='center'><font size='20' color='#0000FF'><p'> <J>!maps - Shows the maps that are in the rotation of #Zerogravity. !help - Gives you some of the help and then gives you a larger Help button to draw your attention.<V>",playerName,180,100,500,200,0x272727,0x000001,1,true)
  94. elseif callback=="44" then
  95. ui.addTextArea(1000,"<a align='center'><font size='25' color='#00FF57'><p'> <a align='center'><font size='15' color='#0000FF'><p'> ",playerName,-500,-100,3000,3000,0x000001,0x000001,0.5,true)
  96. ui.addTextArea(3,"<a align='center'><font size='25' color='#00FF57'><p'> Credits <a align='center'><font size='20' color='#0000FF'><p'> <J>Fuzzyfirsdog - Coding the minigame. <V>Tohpy - Working on BR translate. <VI> Bibsho - Gave ideas for the minigame. <T>Tortuegreen - Showed Fuzzyfirsdog how to use some coding stuff. <CH> Suprodo - Gave ideas for the minigame. <BV>Pinyxzyaj - Makes sure that there are no bugs. <R>Hidskills - Tests new updates and reports bugs. <N>Bolodefchoco - Helped to create the stats.",playerName,180,100,500,260,0x272727,0x000001,1,true)
  97. ui.addTextArea(7,"<a href='event:7' align='center'><font size='11' color='#00FF57'><p'>Close</a>",playerName,730,215,70,20,0x000001,0x000001,1,true)
  98. elseif callback=="p0" then
  99. ui.addTextArea(1000,"<a align='center'><font size='25' color='#00FF57'><p'> <a align='center'><font size='15' color='#0000FF'><p'> ",playerName,-500,-100,3000,3000,0x000001,0x000001,0.5,true)
  100. ui.addTextArea(3,"<a align='center'><font size='25' color='#00FF57'><p'> #Zerogravity <a align='center'><font size='15' color='#FFD000'><p'> The aim in #Zerogravity is to get through obstacles in no gravity maps. There are many easy maps, and at the same time, many hard maps! The creator of this minigame is Fuzzyfirsdog. In #Zerogravity, you can do some tricks, click next to see! ",playerName,180,100,500,190,0x272727,0x000001,1,true)
  101. ui.addTextArea(9,"<a href='event:9' align='center'><font size='11' color='#00FF57'><p'>Next</a>",playerName,300,265,70,20,0x000001,0x000001,1,true)
  102. ui.addTextArea(5,"<a href='event:5' align='center'><font size='11' color='#00FF57'><p'>Close</a>",playerName,730,195,70,20,0x000001,0x000001,1,true)
  103. elseif callback=="59" then
  104. ui.addTextArea(1,"<a href='event:example' align='center'><font size='11' color='#FF0000'><p'>Vampire</a>",playerName,730,175,70,20,0x000001,0x000001,1,true)
  105. ui.addTextArea(2,"<a href='event:p0' align='center'><font size='11' color='#00FF57'><p'>Help</a>",playerName,730,195,70,20,0x000001,0x000001,1,true)
  106. ui.addTextArea(4,"<a href='event:44' align='center'><font size='11' color='#00FF57'><p'>Credits</a>",playerName,730,215,70,20,0x000001,0x000001,1,true)
  107. ui.addTextArea(30,"<a href='event:999' align='center'><font size='11' color='#00FF57'><p'>Commands</a>",playerName,730,235,70,20,0x000001,0x000001,1,true)
  108. ui.addTextArea(31,"<a href='event:69' align='center'><font size='11' color='#0000FF'><p'>Move Tabs</a>",playerName,730,155,70,20,0x000001,0x000001,1,true)
  109. ui.addTextArea(96,"<a href='event:909' align='center'><font size='11' color='#00FF57'><p'>Stats</a>",playerName,730,255,70,20,0x000001,0x000001,1,true)
  110. elseif callback=="69" then
  111. ui.addTextArea(1,"<a href='event:example' align='center'><font size='11' color='#FF0000'><p'>Vampire</a>",playerName,5,175,70,20,0x000001,0x000001,1,true)
  112. ui.addTextArea(2,"<a href='event:p' align='center'><font size='11' color='#00FF57'><p'>Help</a>",playerName,5,195,70,20,0x000001,0x000001,1,true)
  113. ui.addTextArea(4,"<a href='event:4' align='center'><font size='11' color='#00FF57'><p'>Credits</a>",playerName,5,215,70,20,0x000001,0x000001,1,true)
  114. ui.addTextArea(30,"<a href='event:99' align='center'><font size='11' color='#00FF57'><p'>Commands</a>",playerName,5,235,70,20,0x000001,0x000001,1,true)
  115. ui.addTextArea(31,"<a href='event:59' align='center'><font size='11' color='#0000FF'><p'>Move Tabs</a>",playerName,5,155,70,20,0x000001,0x000001,1,true)
  116. ui.addTextArea(96,"<a href='event:906' align='center'><font size='11' color='#00FF57'><p'>Stats</a>",playerName,5,255,70,20,0x000001,0x000001,1,true)
  117. elseif callback=="909" then
  118. ui.addTextArea(1000,"<a align='center'><font size='25' color='#00FF57'><p'> <a align='center'><font size='15' color='#0000FF'><p'> ",playerName,-500,-100,3000,3000,0x000001,0x000001,0.5,true)
  119. ui.addTextArea(3909,"<a align='center'><font size='25' color='#00FF57'><p'>"..playerName.."'s Stats<a align='center'><font size='20' color='#FFD000'><p'> Won: "..info[playerName].victories.." Died: "..info[playerName].deaths.." Touched Cheese: "..info[playerName].rounds.." Shot Spirits: "..info[playerName].sparks.." Number of times being a vampire: "..info[playerName].vampire,playerName,180,100,500,190,0x272727,0x000001,1,true)
  120. ui.addTextArea(7,"<a href='event:7' align='center'><font size='11' color='#00FF57'><p'>Close</a>",playerName,730,255,70,20,0x000001,0x000001,1,true)
  121. elseif callback=="99" then
  122. ui.addTextArea(1000,"<a align='center'><font size='25' color='#00FF57'><p'> <a align='center'><font size='15' color='#0000FF'><p'> ",playerName,-500,-100,3000,3000,0x000001,0x000001,0.5,true)
  123. ui.addTextArea(7,"<a href='event:7' align='center'><font size='11' color='#00FF57'><p'>Close</a>",playerName,5,235,70,20,0x000001,0x000001,1,true)
  124. ui.addTextArea(3,"<a align='center'><font size='25' color='#00FF57'><p'> Commands <a align='center'><font size='20' color='#0000FF'><p'> <J>!maps - Shows the maps that are in the rotation of #Zerogravity. !help - Gives you some of the help and then gives you a larger Help button to draw your attention.<V>",playerName,180,100,500,200,0x272727,0x000001,1,true)
  125. elseif callback=="4" then
  126. ui.addTextArea(1000,"<a align='center'><font size='25' color='#00FF57'><p'> <a align='center'><font size='15' color='#0000FF'><p'> ",playerName,-500,-100,3000,3000,0x000001,0x000001,0.5,true)
  127. ui.addTextArea(3,"<a align='center'><font size='25' color='#00FF57'><p'> Credits <a align='center'><font size='20' color='#0000FF'><p'> <J>Fuzzyfirsdog - Coding the minigame. <V>Tohpy - Working on BR translate. <VI> Bibsho - Gave ideas for the minigame. <T>Tortuegreen - Showed Fuzzyfirsdog how to use some coding stuff. <CH> Suprodo - Gave ideas for the minigame. <BV>Pinyxzyaj - Makes sure that there are no bugs. <R>Hidskills - Tests new updates and reports bugs. <N>Bolodefchoco - Helped to create the stats.",playerName,180,100,500,260,0x272727,0x000001,1,true)
  128. ui.addTextArea(7,"<a href='event:7' align='center'><font size='11' color='#00FF57'><p'>Close</a>",playerName,5,215,60,20,0x000001,0x000001,1,true)
  129. elseif callback=="p" then
  130. ui.addTextArea(1000,"<a align='center'><font size='25' color='#00FF57'><p'> <a align='center'><font size='15' color='#0000FF'><p'> ",playerName,-500,-100,3000,3000,0x000001,0x000001,0.5,true)
  131. ui.addTextArea(3,"<a align='center'><font size='25' color='#00FF57'><p'> #Zerogravity <a align='center'><font size='15' color='#FFD000'><p'> The aim in #Zerogravity is to get through obstacles in no gravity maps. There are many easy maps, and at the same time, many hard maps! The creator of this minigame is Fuzzyfirsdog. In #Zerogravity, you can do some tricks, click next to see! ",playerName,180,100,500,190,0x272727,0x000001,1,true)
  132. ui.addTextArea(9,"<a href='event:9' align='center'><font size='11' color='#00FF57'><p'>Next</a>",playerName,300,265,60,20,0x000001,0x000001,1,true)
  133. ui.addTextArea(5,"<a href='event:5' align='center'><font size='11' color='#00FF57'><p'>Close</a>",playerName,5,195,60,20,0x000001,0x000001,1,true)
  134. elseif callback=="9" then
  135. ui.addTextArea(3,"<a align='center'><font size='25' color='#00FF57'><p'> #Zerogravity <a align='center'><font size='15' color='#FFD000'><p'> There are some things that you have the ability to do, for example, you can duck to spawn a spirit. You can also click Vampire to become a Vampire. Clicking O spawns a spark on top of you, rather than under you.",playerName,180,100,500,190,0x272727,0x000001,1,true)
  136. ui.addTextArea(9,"<a href='event:88' align='center'><font size='11' color='#00FF57'><p'>Back</a>",playerName,300,265,60,20,0x000001,0x000001,1,true)
  137. elseif callback=="88" then
  138. ui.addTextArea(3,"<a align='center'><font size='25' color='#00FF57'><p'> #Zerogravity <a align='center'><font size='15' color='#FFD000'><p'> The aim in #Zerogravity is to get through obstacles in no gravity maps. There are many easy maps, and at the same time, many hard maps! The creator of this minigame is Fuzzyfirsdog. In #Zerogravity, you can do some tricks, click next to see! ",playerName,180,100,500,190,0x272727,0x000001,1,true)
  139. ui.addTextArea(9,"<a href='event:9' align='center'><font size='11' color='#00FF57'><p'>Next</a>",playerName,300,265,60,20,0x000001,0x000001,1,true)
  140. elseif callback=="5" or callback=="7" then
  141. ui.removeTextArea(5,playerName)
  142. ui.removeTextArea(3,playerName)
  143. ui.removeTextArea(7,playerName)
  144. ui.removeTextArea(3909,playerName)
  145. ui.removeTextArea(9,playerName)
  146. ui.removeTextArea(1000,playerName)
  147. end
  148. end
  149.  
  150.  
  151. function eventNewGame()
  152. o=tfm.get.room.xmlMapInfo.mapCode
  153. a=tfm.get.room.xmlMapInfo.author
  154. m=tfm.get.room.currentMap.id
  155. tfm.exec.setUIMapName("<VP>@"..o.." - Creator: "..a)
  156. if m=="6946086" then
  157. tfm.exec.setUIMapName("<VP>@"..o.." - Level 1 - Creator: "..a)
  158. end
  159. end
  160.  
  161. tfm.exec.chatMessage("<ROSE>")
  162.  
  163. function eventPlayerDied(name)
  164. tfm.exec.respawnPlayer(name)
  165. end
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173. tfm.exec.setGameTime(5)
  174. tfm.exec.setRoomMaxPlayers(7)
  175.  
  176. function eventNewGame()
  177. ui.removeTextArea (945) --Remove textarea when a new round begins
  178. ui.removeTextArea (992)
  179. mouseWon = false
  180. o=tfm.get.room.xmlMapInfo.mapCode
  181. a=tfm.get.room.xmlMapInfo.author
  182. m=tfm.get.room.currentMap.id
  183. tfm.exec.setUIMapName("<J>@"..o.."<VP> - Creator: "..a)
  184. if m=="6946086" then
  185. tfm.exec.setUIMapName("<VP>@"..o.." - Level 1 - Creator: "..a)
  186. tfm.exec.chatMessage("<ROSE>[MAP INFO] <CH>@"..o.."<> - Creator: <J>"..a,name)
  187. end
  188. end
  189.  
  190. function eventPlayerWon(name)
  191. if not mouseWon then --This'll trigger only when the first mouse gets in the hole
  192. ui.addTextArea (992,"<a align='center'><font size='95' color='#E9D504'><a'> ",nil,-400,-405,9000,9000,0x000001,0x000001,0.4,true)
  193. ui.addTextArea (945,"<a align='center'><font size='90' color='#E9D504'><a'>Cheeeeeese *-* "..name.."! ",nil,65,85,790,1000,0x000001,0x000001,0,true)
  194. mouseWon = true
  195. tfm.exec.setGameTime(5)
  196. tfm.exec.chatMessage("<VP>You just completed the level!",name)
  197. tfm.exec.chatMessage("<VP>Your score: "..tfm.get.room.playerList[name].score,name)
  198. end
  199. end
  200.  
  201. tfm.exec.chatMessage("<J>The aim in #Zerogravity is to get through obstacles in no gravity maps. There are many easy maps, and at the same time, many hard maps! The creator of this minigame is Fuzzyfirsdog. Click the large help button to see more info.")
  202.  
  203. serialization = function(x)
  204. if type(x) == "table" then
  205. local t = x
  206. local str = ""
  207. for index,value in next,t do
  208. local prefix,tbOption = (type(value)=="string" and "_@" or type(value)=="boolean" and "_!" or type(value)=="number" and "_#" or type(value)=="table" and "_%" or ""),(type(value)~="table" and tostring(value) or "+&"..serialization(value):gsub(";","?").."&-")
  209. str = str .. ':' .. tostring(index) .. prefix .. tbOption .. ";"
  210. end
  211. return str
  212. elseif type(x) == "string" then
  213. local s = x
  214. local list = {}
  215. for str in s:gmatch("(.-);") do
  216. local varName,valueType,value = str:match(':(.-)_(%p)(.+)')
  217. if varName~=nil then
  218. varName = tonumber(varName) or varName
  219. if valueType == "@" then
  220. list[varName] = tostring(value)
  221. elseif valueType == "!" then
  222. list[varName] = value=="true"
  223. elseif valueType == "#" then
  224. list[varName] = tonumber(value)
  225. elseif valueType == "%" then
  226. list[varName] = serialization(value:gsub("+&",""):gsub("&-",""):gsub("%?",";"))
  227. end
  228. end
  229. end
  230. return list
  231. end
  232. end
  233.  
  234. info = {}
  235.  
  236. eventNewPlayer = function(n)
  237.  
  238. ui.addTextArea(1,"<a href='event:example' align='center'><font size='11' color='#FF0000'><p'>Vampire</a>",n,5,175,70,20,0x000001,0x000001,1,true)
  239. ui.addTextArea(2,"<a href='event:p' align='center'><font size='11' color='#00FF57'><p'>Help</a>",n,5,195,70,20,0x000001,0x000001,1,true)
  240. ui.addTextArea(4,"<a href='event:4' align='center'><font size='11' color='#00FF57'><p'>Credits</a>",n,5,215,70,20,0x000001,0x000001,1,true)
  241. ui.addTextArea(30,"<a href='event:99' align='center'><font size='11' color='#00FF57'><p'>Commands</a>",n,5,235,70,20,0x000001,0x000001,1,true)
  242. ui.addTextArea(31,"<a href='event:59' align='center'><font size='11' color='#0000FF'><p'>Move Tabs</a>",n,5,155,70,20,0x000001,0x000001,1,true)
  243. ui.addTextArea(96,"<a href='event:906' align='center'><font size='11' color='#00FF57'><p'>Stats</a>",n,5,255,70,20,0x000001,0x000001,1,true)
  244. system.bindKeyboard(n, DOWN1, true)
  245. system.bindKeyboard(n, DOWN2, true)
  246. system.bindKeyboard(n, DOWN4, true)
  247. system.bindKeyboard(n, DOWN3, true)
  248. system.bindKeyboard(n, DOWN0, true)
  249. info[n] = { -- Creates a table for the player
  250.  
  251. victories = 0,
  252. deaths = 0,
  253. vampire = 0,
  254. rounds = 0,
  255. sparks = 0
  256.  
  257.  
  258. }
  259.  
  260.  
  261. end
  262.  
  263.  
  264. table.foreach(tfm.get.room.playerList,eventNewPlayer)
  265.  
  266.  
  267.  
  268. eventPlayerWon = function(name)
  269. if not mouseWon then --This'll trigger only when the first mouse gets in the hole
  270. ui.addTextArea (992,"<a align='center'><font size='95' color='#E9D504'><a'> ",nil,-400,-405,9000,9000,0x000001,0x000001,0.4,true)
  271. ui.addTextArea (945,"<a align='center'><font size='90' color='#E9D504'><a'>Cheeeeeese *-* "..name.."! ",nil,65,85,790,1000,0x000001,0x000001,0,true)
  272. mouseWon = true
  273. tfm.exec.setGameTime(5)
  274. tfm.exec.chatMessage("<VP>You just completed the level!",name)
  275. tfm.exec.chatMessage("<VP>Your score: "..tfm.get.room.playerList[name].score,name)
  276. tfm.exec.respawnPlayer(name)
  277. info[name].victories = info[name].victories + 1
  278.  
  279. end
  280. end
  281. eventPlayerDied = function(name)
  282. tfm.exec.respawnPlayer(name)
  283. info[name].deaths = info[name].deaths + 1
  284. end
  285.  
  286. eventPlayerGetCheese = function(n)
  287. info[n].rounds = info[n].rounds + 1
  288. end
  289. function eventKeyboard(name, keyCode, down, x, y)
  290. info[name].sparks = info[name].sparks + 1
  291. if keyCode == DOWN1 or keyCode == DOWN2 then
  292. tfm.exec.explosion(x, y + 20, 10, 60, true) -- spark(?) explosion
  293. tfm.exec.displayParticle(tfm.enum.particle.spirit, x, y + 30) -- spark(?) spirit particle
  294. elseif keyCode == DOWN3 or keyCode == DOWN4 or keyCode == DOWN0 then
  295. tfm.exec.explosion(x, y - 20, 10, 60, true) -- spark(?) explosion
  296. tfm.exec.displayParticle(tfm.enum.particle.spirit, x, y - 30) -- spark(?) spirit particle
  297.  
  298. end
  299. end
  300.  
  301. eventPlayerVampire = function(name)
  302. info[name].vampire = info[name].vampire + 1
  303. end
  304.  
  305. system.disableChatCommandDisplay("help",true)
  306. system.disableChatCommandDisplay("maps",true)
  307. system.disableChatCommandDisplay("x",true)
  308. system.disableChatCommandDisplay("stats",true)
  309. function eventChatCommand(m,n)
  310. if n=="maps" then
  311. tfm.exec.chatMessage("["..#maps.." Maps]<J> MAPS: <VP>6946086, 6354056, 6373101, 6947670, 6973435",m)
  312. elseif n=="help" then
  313. tfm.exec.chatMessage("<J>The aim in #Zerogravity is to get through obstacles in no gravity maps. There are many easy maps, and at the same time, many hard maps! The creator of this minigame is Fuzzyfirsdog. Click the large help button to see more info.",m)
  314. ui.addTextArea(200,"<a href='event:p' align='center'><font size='130' color='#00FF57'><p'> Help</a>",m,250,-5,600,600,0x000001,0xFFE300,0,true)
  315. elseif n=="x" then
  316. ui.removeTextArea(200)
  317. ui.removeTextArea(3909)
  318. elseif n=="stats" then
  319. tfm.exec.chatMessage("<VP>Touched Cheese: "..info[m].rounds.." | Won: "..info[m].victories.." | Shot Spirits: "..info[m].sparks.." | Died: "..info[m].deaths,m)
  320. end
  321. end
Add Comment
Please, Sign In to add comment