Advertisement
Guest User

#OXV2 By Catdureazaa

a guest
Aug 31st, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.70 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. elseif palive == 0 and status == 2 then
  180. for name, player in pairs (tfm.get.room.playerList) do
  181. if onox[name] then
  182. tfm.exec.giveCheese(name)
  183. tfm.exec.playerVictory(name)
  184. end
  185. tfm.exec.respawnPlayer(name)
  186. end
  187. tfm.exec.setGameTime(100)
  188. ui.removeTextArea(1)
  189. status = 0
  190. palive = 0
  191. onox={}
  192. elseif remaining<=0 and status == 1 then
  193.    
  194.  
  195. if lang=="en_US" then
  196.             oxvv = oxvt[math.random(#oxvt)]
  197.                 if oxvv=="1" then
  198.                     question = otenus[math.random(#otenus)]
  199.                 elseif oxvv=="2" then
  200.                     question = xtenus[math.random(#xtenus)]
  201.                 end
  202.             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)
  203.             elseif lang=="ro_RO" then
  204.                 oxvv = oxvt[math.random(#oxvt)]
  205.                     if oxvv=="1" then
  206.                         question = otroro[math.random(#otroro)]
  207.                     elseif oxvv=="2" then
  208.                         question = xtroro[math.random(#xtroro)]
  209.                     end
  210.                 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)
  211.             end
  212. tfm.exec.setGameTime(20)   
  213. status = 2
  214.  
  215. elseif remaining<=0 and status == 2 then
  216. status = 1
  217. if oxvv=="1" then
  218. for name, player in pairs (tfm.get.room.playerList) do
  219. x = tfm.get.room.playerList[name].x
  220. y = tfm.get.room.playerList[name].y
  221. if x > 395 then
  222. tfm.exec.killPlayer(name)
  223. onox[name]=false
  224. palive = palive - 1
  225. end
  226. end
  227. elseif oxvv=="2" then
  228. for name, player in pairs (tfm.get.room.playerList) do
  229. x = tfm.get.room.playerList[name].x
  230. y = tfm.get.room.playerList[name].y
  231. if x < 405 then
  232. tfm.exec.killPlayer(name)
  233. onox[name]=false
  234. palive = palive - 1
  235. end
  236. end
  237. end
  238. end
  239. end
  240.  
  241.  
  242. system.disableChatCommandDisplay("start")
  243. system.disableChatCommandDisplay("status")
  244. system.disableChatCommandDisplay("language")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement