Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tfm.exec.disableAutoShaman(true)
- tfm.exec.disableAfkDeath(true)
- tfm.exec.newGame("@4934445")
- tfm.exec.disableAutoNewGame(true)
- --[[
- INFO FOR DEVS:
- xml: @4934445
- OX = 124
- OY = 457
- XX = 467
- XY = 799
- O aria: >0 <395
- X aria: >405 <800
- --]]
- tfm.exec.setUIMapName("#OX - By Catdureazaa")
- oxvt={"1","2"}
- oxvv="0"
- otroro={
- "Există o reuniune Transformice în viața reală?",
- "Ai nevoie de peste 18 ani ca să aplici în Staff?",
- "Are Transformice grafici 2D?",
- "Este târnăcopul de diamant un item din Transformice?",
- "Are Transformice un canal de IRC?",
- "Are Transformice un forum?",
- "Fanpage-ul Cheeseformice n-are legătură cu Atelier801.",
- "Poți să zbori (nu să plutești) fără hack-uri?",
- "Poți pluti cu shaman-ul fără să ai mai mult de 30 de puncte?",
- "Poți pluti cu shaman-ul în Transformice?",
- "Este Atelier801 creatorul jocului?",
- "Este Pikashu un membru staff care se ocupă de Design?",
- "Este Catdureazaa creatorul jocului #OX?",
- "Este Transformice creat în 2010?",
- "Este Transformice creat de către Melibellule și Tigrounette?",
- "Este Transformice un joc cu șoareci?",
- "Numărul maxim de levele este peste 100."
- }
- xtroro={
- "Este Atelier802 creatorul jocului?",
- "Este Ediz creatorul jocului?",
- "Este Transformice făcut în Anglia?",
- "Are Transformice grafici 3D?",
- "Cheeseformice este un forum TFM oficial.",
- "Poți să zbori (nu să plutești) fără hack-uri și lua?",
- "Poți pluti cu shaman-ul fără să ai mai mult de 15 puncte?",
- "Poți pluti cu shaman-ul fără să ai mai mult de 25 de puncte?",
- "Este Shamousey creatorul jocului #OX?",
- "Este Transformice creat în 2011?",
- "Este Transformice creat de către Melibelulle și Tigrounette?",
- "Este Transformice creat de către Sydoline și Tigrounette?",
- "Este Transformice un joc cu șobolani?",
- "Este creatorul jocului o fată?"
- }
- otenus={
- "Is there a Transformice real-life Reunion?",
- "Do you need 18+ age to can apply at Moderator/Map Maker/Sentinel section?",
- "Has Transformice got 2D graphics?",
- "Is the Diamond Pickaxe a Transformice Item?",
- "Does Transformice have a IRC Channel?",
- "Does Transformice have a Forum?",
- "Is Cheeseformice a Transformice fanpage not affilated with Atelier801?",
- "Can you fly (not glide) without hacks in Transformice?",
- "Can you glide as shaman In Transformice without to have more than 30 skillpoints?",
- "Can you glide as shaman in Transformice?",
- "Is Atelier801 the game Creator?",
- "Is Pikashu the Game Designer?",
- "Is Catdureazaa the Minigame #OX creator?",
- "Is Transformice created in 2010?",
- "Is Transformice created by Melibellule and Tigrounette?",
- "Is Transformice a game with mice?",
- "The maximum number of levels is above 100."
- }
- xtenus={
- "Is Atelier 802 the Game Creator?",
- "Is Ediz the Game Creator?",
- "Is Transformice made in England?",
- "Has Transformice got 3D graphics?",
- "Is Cheeseformice a Transformice Official Forum?",
- "Can you fly (not glide) without hacks and lua in Transformice?",
- "Can you glide as shaman in Transformice without to have more than 15 skillpoints?",
- "Can you glide as shaman In Transformice without to have more than 25 skillpoints?",
- "Is Shamousey the Minigame #OX creator?",
- "Is Transformice created in 2011?",
- "Is Transformice created by Melibelulle and Tigrounette?",
- "Is Transformice created by Sydoline and Tigrounette?",
- "Is Transformice a game with rats?",
- "Is the game creator a girl?",
- }
- lang="ro_RO" -- ENGLISH (en_US) or ROMANIAN (ro_RO)
- admin={Catdureazaa=true} -- Enter your name.
- OX = 124
- OY = 457
- XX = 467
- XY = 799
- palive=0
- status=0
- onox={}
- question=""
- for name, player in pairs (tfm.get.room.playerList) do
- if admin[name] then
- system.bindKeyboard(name,32,true,true)
- end
- end
- function eventNewPlayer(name)
- if admin[name] then
- system.bindKeyboard(name,32,true,true)
- end
- end
- function eventKeyboard(name,key,down,x,y)
- if key == 32 then
- if oxvv=="0" then
- print("<J>No choice.")
- elseif oxvv=="1" then
- print("<J>O")
- elseif oxvv=="2" then
- print("<J>X")
- end
- end
- end
- function eventChatCommand(name,c)
- if c == "leaveox" and onox[name] then
- tfm.exec.killPlayer(name)
- palive = palive - 1
- onox[name]=false
- elseif c == "start" and admin[name] then
- status=1
- oxvv=0
- palive=0
- for name, player in pairs (tfm.get.room.playerList) do
- palive = palive + 1
- onox[name]=true
- end
- tfm.exec.setGameTime(0)
- elseif c == "language en_US" and admin[name] then
- lang = "en_US"
- elseif c == "language ro_RO" and admin[name] then
- lang = "ro_RO"
- end
- end
- function eventPlayerLeft(name)
- if status==2 then
- palive = palive - 1
- onox[name]=false
- end
- end
- function eventLoop(time,remaining)
- if palive == 1 and status == 2 then
- for name, player in pairs (tfm.get.room.playerList) do
- if onox[name] then
- tfm.exec.giveCheese(name)
- tfm.exec.playerVictory(name)
- end
- tfm.exec.respawnPlayer(name)
- end
- tfm.exec.setGameTime(100)
- ui.removeTextArea(1)
- status = 0
- palive = 0
- onox={}
- end
- if palive == 0 and status == 2 then
- for name, player in pairs (tfm.get.room.playerList) do
- if onox[name] then
- tfm.exec.giveCheese(name)
- tfm.exec.playerVictory(name)
- end
- tfm.exec.respawnPlayer(name)
- end
- tfm.exec.setGameTime(100)
- ui.removeTextArea(1)
- status = 0
- palive = 0
- onox={}
- end
- if palive == 1 and status == 1 then
- for name, player in pairs (tfm.get.room.playerList) do
- if onox[name] then
- tfm.exec.giveCheese(name)
- tfm.exec.playerVictory(name)
- end
- tfm.exec.respawnPlayer(name)
- end
- tfm.exec.setGameTime(100)
- ui.removeTextArea(1)
- status = 0
- palive = 0
- onox={}
- end
- if palive == 0 and status == 1 then
- for name, player in pairs (tfm.get.room.playerList) do
- if onox[name] then
- tfm.exec.giveCheese(name)
- tfm.exec.playerVictory(name)
- end
- tfm.exec.respawnPlayer(name)
- end
- tfm.exec.setGameTime(100)
- ui.removeTextArea(1)
- status = 0
- palive = 0
- onox={}
- end
- if remaining<=0 and status == 1 then
- palive = 0
- for name, player in pairs (tfm.get.room.playerList) do
- onox[name] = true
- palive = palive + 1
- end
- if lang=="en_US" then
- oxvv = oxvt[math.random(#oxvt)]
- if oxvv=="1" then
- question = otenus[math.random(#otenus)]
- elseif oxvv=="2" then
- question = xtenus[math.random(#xtenus)]
- end
- 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)
- elseif lang=="ro_RO" then
- oxvv = oxvt[math.random(#oxvt)]
- if oxvv=="1" then
- question = otroro[math.random(#otroro)]
- elseif oxvv=="2" then
- question = xtroro[math.random(#xtroro)]
- end
- 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)
- end
- tfm.exec.setGameTime(20)
- status = 2
- elseif remaining<=0 and status == 2 then
- status = 1
- if oxvv=="1" then
- for name, player in pairs (tfm.get.room.playerList) do
- x = tfm.get.room.playerList[name].x
- y = tfm.get.room.playerList[name].y
- if x > 395 then
- tfm.exec.killPlayer(name)
- onox[name]=false
- palive = palive - 1
- end
- end
- elseif oxvv=="2" then
- for name, player in pairs (tfm.get.room.playerList) do
- x = tfm.get.room.playerList[name].x
- y = tfm.get.room.playerList[name].y
- if x < 405 then
- tfm.exec.killPlayer(name)
- onox[name]=false
- palive = palive - 1
- end
- end
- end
- end
- end
- function eventNewPlayer(name)
- if status == 0 then
- tfm.exec.respawnPlayer(name)
- end
- end
- system.disableChatCommandDisplay("start")
- system.disableChatCommandDisplay("status")
- system.disableChatCommandDisplay("language")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement