Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.49 KB | None | 0 0
  1. tfm.exec.disableAutoShaman(true)
  2. tfm.exec.disableAfkDeath(true)
  3. tfm.exec.newGame("@4934445")
  4. tfm.exec.disableAutoNewGame(true)
  5.  
  6. --[[
  7.  
  8. INFO FOR DEVS:
  9.  
  10. xml: @4934445
  11. OX = 124
  12. OY = 457
  13. XX = 467
  14. XY = 799
  15.  
  16. O aria: >0 <395
  17. X aria: >405 <800
  18.  
  19. --]]
  20.  
  21. tfm.exec.setUIMapName("#OX - By Catdureazaa")
  22. oxvt={"1","2"}
  23. oxvv="0"
  24. otroro={
  25. "Există o reuniune Transformice în viața reală?",
  26. "Ai nevoie de peste 18 ani ca să aplici în Staff?",
  27. "Are Transformice grafici 2D?",
  28. "Este târnăcopul de diamant un item din Transformice?",
  29. "Are Transformice un canal de IRC?",
  30. "Are Transformice un forum?",
  31. "Fanpage-ul Cheeseformice n-are legătură cu Atelier801.",
  32. "Poți să zbori (nu să plutești) fără hack-uri?",
  33. "Poți pluti cu shaman-ul fără să ai mai mult de 30 de puncte?",
  34. "Poți pluti cu shaman-ul în Transformice?",
  35. "Este Atelier801 creatorul jocului?",
  36. "Este Pikashu un membru staff care se ocupă de Design?",
  37. "Este Catdureazaa creatorul jocului #OX?",
  38. "Este Transformice creat în 2010?",
  39. "Este Transformice creat de către Melibellule și Tigrounette?",
  40. "Este Transformice un joc cu șoareci?",
  41. "Numărul maxim de levele este peste 100."
  42.  
  43. }
  44. xtroro={
  45. "Este Atelier802 creatorul jocului?",
  46. "Este Ediz creatorul jocului?",
  47. "Este Transformice făcut în Anglia?",
  48. "Are Transformice grafici 3D?",
  49. "Cheeseformice este un forum TFM oficial.",
  50. "Poți să zbori (nu să plutești) fără hack-uri și lua?",
  51. "Poți pluti cu shaman-ul fără să ai mai mult de 15 puncte?",
  52. "Poți pluti cu shaman-ul fără să ai mai mult de 25 de puncte?",
  53. "Este Shamousey creatorul jocului #OX?",
  54. "Este Transformice creat în 2011?",
  55. "Este Transformice creat de către Melibelulle și Tigrounette?",
  56. "Este Transformice creat de către Sydoline și Tigrounette?",
  57. "Este Transformice un joc cu șobolani?",
  58. "Este creatorul jocului o fată?"
  59.  
  60. }
  61.  
  62. otenus={
  63. "Is there a Transformice real-life Reunion?",
  64. "Do you need 18+ age to can apply at Moderator/Map Maker/Sentinel section?",
  65. "Has Transformice got 2D graphics?",
  66. "Is the Diamond Pickaxe a Transformice Item?",
  67. "Does Transformice have a IRC Channel?",
  68. "Does Transformice have a Forum?",
  69. "Is Cheeseformice a Transformice fanpage not affilated with Atelier801?",
  70. "Can you fly (not glide) without hacks in Transformice?",
  71. "Can you glide as shaman In Transformice without to have more than 30 skillpoints?",
  72. "Can you glide as shaman in Transformice?",
  73. "Is Atelier801 the game Creator?",
  74. "Is Pikashu the Game Designer?",
  75. "Is Catdureazaa the Minigame #OX creator?",
  76. "Is Transformice created in 2010?",
  77. "Is Transformice created by Melibellule and Tigrounette?",
  78. "Is Transformice a game with mice?",
  79. "The maximum number of levels is above 100."
  80.  
  81. }
  82.  
  83. xtenus={
  84. "Is Atelier 802 the Game Creator?",
  85. "Is Ediz the Game Creator?",
  86. "Is Transformice made in England?",
  87. "Has Transformice got 3D graphics?",
  88. "Is Cheeseformice a Transformice Official Forum?",
  89. "Can you fly (not glide) without hacks and lua in Transformice?",
  90. "Can you glide as shaman in Transformice without to have more than 15 skillpoints?",
  91. "Can you glide as shaman In Transformice without to have more than 25 skillpoints?",
  92. "Is Shamousey the Minigame #OX creator?",
  93. "Is Transformice created in 2011?",
  94. "Is Transformice created by Melibelulle and Tigrounette?",
  95. "Is Transformice created by Sydoline and Tigrounette?",
  96. "Is Transformice a game with rats?",
  97. "Is the game creator a girl?",
  98.  
  99. }
  100.  
  101. lang="ro_RO" -- ENGLISH (en_US) or ROMANIAN (ro_RO)
  102. admin={Catdureazaa=true} -- Enter your name.
  103. OX = 124
  104. OY = 457
  105. XX = 467
  106. XY = 799
  107. palive=0
  108. status=0
  109. onox={}
  110. question=""
  111.  
  112. for name, player in pairs (tfm.get.room.playerList) do
  113. if admin[name] then
  114. system.bindKeyboard(name,32,true,true)
  115. end
  116. end
  117.  
  118. function eventNewPlayer(name)
  119. if admin[name] then
  120. system.bindKeyboard(name,32,true,true)
  121. end
  122. end
  123.  
  124. function eventKeyboard(name,key,down,x,y)
  125. if key == 32 then
  126. if oxvv=="0" then
  127. print("<J>No choice.")
  128. elseif oxvv=="1" then
  129. print("<J>O")
  130. elseif oxvv=="2" then
  131. print("<J>X")
  132. end
  133. end
  134. end
  135.  
  136. function eventChatCommand(name,c)
  137. if c == "leaveox" and onox[name] then
  138. tfm.exec.killPlayer(name)
  139. palive = palive - 1
  140. onox[name]=false
  141. elseif c == "start" and admin[name] then
  142. status=1
  143. oxvv=0
  144. palive=0
  145. for name, player in pairs (tfm.get.room.playerList) do
  146. palive = palive + 1
  147. onox[name]=true
  148. end
  149. tfm.exec.setGameTime(0)
  150. elseif c == "language en_US" and admin[name] then
  151. lang = "en_US"
  152. elseif c == "language ro_RO" and admin[name] then
  153. lang = "ro_RO"
  154. end
  155. end
  156.  
  157. function eventPlayerLeft(name)
  158. if status==2 then
  159. palive = palive - 1
  160. onox[name]=false
  161. end
  162. end
  163.  
  164.  
  165. function eventLoop(time,remaining)
  166. if palive == 1 and status == 2 then
  167. for name, player in pairs (tfm.get.room.playerList) do
  168. if onox[name] then
  169. tfm.exec.giveCheese(name)
  170. tfm.exec.playerVictory(name)
  171. end
  172. tfm.exec.respawnPlayer(name)
  173. end
  174. tfm.exec.setGameTime(100)
  175. ui.removeTextArea(1)
  176. status = 0
  177. palive = 0
  178. onox={}
  179. end
  180. if palive == 0 and status == 2 then
  181. for name, player in pairs (tfm.get.room.playerList) do
  182. if onox[name] then
  183. tfm.exec.giveCheese(name)
  184. tfm.exec.playerVictory(name)
  185. end
  186. tfm.exec.respawnPlayer(name)
  187. end
  188. tfm.exec.setGameTime(100)
  189. ui.removeTextArea(1)
  190. status = 0
  191. palive = 0
  192. onox={}
  193. end
  194. if palive == 1 and status == 1 then
  195. for name, player in pairs (tfm.get.room.playerList) do
  196. if onox[name] then
  197. tfm.exec.giveCheese(name)
  198. tfm.exec.playerVictory(name)
  199. end
  200. tfm.exec.respawnPlayer(name)
  201. end
  202. tfm.exec.setGameTime(100)
  203. ui.removeTextArea(1)
  204. status = 0
  205. palive = 0
  206. onox={}
  207. end
  208. if palive == 0 and status == 1 then
  209. for name, player in pairs (tfm.get.room.playerList) do
  210. if onox[name] then
  211. tfm.exec.giveCheese(name)
  212. tfm.exec.playerVictory(name)
  213. end
  214. tfm.exec.respawnPlayer(name)
  215. end
  216. tfm.exec.setGameTime(100)
  217. ui.removeTextArea(1)
  218. status = 0
  219. palive = 0
  220. onox={}
  221. end
  222. if remaining<=0 and status == 1 then
  223. palive = 0
  224. for name, player in pairs (tfm.get.room.playerList) do
  225. onox[name] = true
  226. palive = palive + 1
  227. end
  228.  
  229. if lang=="en_US" then
  230. oxvv = oxvt[math.random(#oxvt)]
  231. if oxvv=="1" then
  232. question = otenus[math.random(#otenus)]
  233. elseif oxvv=="2" then
  234. question = xtenus[math.random(#xtenus)]
  235. end
  236. ui.addTextArea(1,"<J><b><font size='15'><p align='center'>" .. question .. "<br></br>O if is true, X if is false</b></J>",nil,225,27,500,50,0x010101,0x010101,1,false)
  237. elseif lang=="ro_RO" then
  238. oxvv = oxvt[math.random(#oxvt)]
  239. if oxvv=="1" then
  240. question = otroro[math.random(#otroro)]
  241. elseif oxvv=="2" then
  242. question = xtroro[math.random(#xtroro)]
  243. end
  244. ui.addTextArea(1,"<J><b><font size='15'><p align='center'>" .. question .. "<br></br>O dacă e adevărat, X dacă e fals.</b></J>",nil,225,27,500,50,0x010101,0x010101,1,false)
  245. end
  246. tfm.exec.setGameTime(20)
  247. status = 2
  248.  
  249. elseif remaining<=0 and status == 2 then
  250. status = 1
  251. if oxvv=="1" then
  252. for name, player in pairs (tfm.get.room.playerList) do
  253. x = tfm.get.room.playerList[name].x
  254. y = tfm.get.room.playerList[name].y
  255. if x > 395 then
  256. tfm.exec.killPlayer(name)
  257. onox[name]=false
  258. palive = palive - 1
  259. end
  260. end
  261. elseif oxvv=="2" then
  262. for name, player in pairs (tfm.get.room.playerList) do
  263. x = tfm.get.room.playerList[name].x
  264. y = tfm.get.room.playerList[name].y
  265. if x < 405 then
  266. tfm.exec.killPlayer(name)
  267. onox[name]=false
  268. palive = palive - 1
  269. end
  270. end
  271. end
  272. end
  273. end
  274.  
  275.  
  276.  
  277.  
  278. function eventNewPlayer(name)
  279. if status == 0 then
  280. tfm.exec.respawnPlayer(name)
  281. end
  282. end
  283.  
  284. system.disableChatCommandDisplay("start")
  285. system.disableChatCommandDisplay("status")
  286. system.disableChatCommandDisplay("language")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement