[Lua] Partagez vos jeux/codes ici ! |
Alkiro « Citoyen » 1380209400000
| 0 | ||
Manacer a dit : Jcomprend rien x_x |
Varuscristal 1380209400000
| | ||
[Modéré par Nihoshi, raison : Hors-sujet] |
Rayanoche 1380209520000
| | ||
[Modéré par Nihoshi, raison : Hors-sujet] |
Manacer « Citoyen » 1380209520000
| 0 | ||
tfm.exec.giveCheese("YourName") tfm.exec.giveMeep("YourName") tfm.exec.setUIMapName("Hello") tfm.exec.setUIShamanName("Hello") tfm.exec.snow() Tu copie colle en /lua remplace yourname par ton pseudo par exemple pour le premier et t'aura le from --' |
0 | ||
Salut, est-ce que ce code est juste ou pas ? o/ if positionX>10 thenpositionX=positionX-1 (juste pour placer quelque chose)) |
Rayanoche 1380209520000
| | ||
[Modéré par Nihoshi, raison : Hors-sujet] |
Varuscristal 1380209640000
| | ||
[Modéré par Nihoshi, raison : Hors-sujet/Provocation] |
Rayanoche 1380209640000
| | ||
[Modéré par Nihoshi, raison : Hors-sujet] |
Juliiien « Citoyen » 1380210000000
| 0 | ||
J'ai une petite idée de minijeu, je m'y mettrais dans quelques jours *-* En attendant j'ai hâte de tester vos codes :DDD |
Manacer « Citoyen » 1380210000000
| 0 | ||
function eventChatCommand(playerName,command) if command=="help" then tfm.exec.chatMessage("Here's some help for you,"..playerName.."! In this game, you must dodge all cheese.") end end function eventPlayerGetCheese(playerName) tfm.exec.chatMessage("Cheese Obtained! Goodbye :3",playerName) tfm.exec.killPlayer(playerName) end function eventNewPlayer(playerName) tfm.exec.chatMessage("Welcome to <ROSE>#dodgecheese<BL>, where you have to dodge the cheese. Type <N>!help<ROSE> for help.") end function eventNewGame() tfm.exec.disableAutoNewGame(true) tfm.exec.setGameTime(50) end tfm.exec.newGame("@4272250") ----- Faut éviter les froms sinon on meurt ! :D |
Rayanoche « Citoyen » 1380210120000
| 0 | ||
Manacer a dit : Si tu l'organisais bien ? On comprends rien. |
Manacer « Citoyen » 1380210120000
| 0 | ||
Rayanoche a dit : Tu load sa en /lua --' |
Rayanoche « Citoyen » 1380210300000
| 0 | ||
Manacer a dit : Je suis pas bete. |
Manacer « Citoyen » 1380210300000
| 0 | ||
tfm.exec.newGame("@3699797") tfm.exec.setGameTime(600, true) debug.disableEventLog(true) adminNames = {"Finalnova","Shamousey"} GreenTeam = { } YellowTeam = { } RedTeam = { } BlueTeam = { } TeamDelay = os.time() TeamRound = os.time() RoundTime = 15000 TeamRs = false TeamSc = 0 --[[Question list]]-- Q = { } Q[0] = { "What colour is the sky?","Blue" } Q[1] = {"Who draws the art for Transformice?","Melibellule"} Q[2] = {"What is the chemical compound for regular water?","H20"} Q[3] = {"What year did Transformice open?","2010"} Q[4] = {"What was the predecessor game to Transformice called?","Poisson"} Q[5] = {"What\'s the name of the company that owns Transformice?","Atelier 801"} Q[6] = {"How many nipples do most people have?","2"} Q[6] = {"What\'s the name of the main developer for Transformice?","Tigrounette"} Q[7] = {"What\'s the name of Google\'s browser?","Chrome"} Q[8] = {"What physics engine is Transformice based on?","Box2D"} QMax = 8 QCurrent = math.random(0,QMax) --[[Question list end]]-- function eventNewGame() GreenTeam = { } YellowTeam = { } RedTeam = { } BlueTeam = { } TeamDelay = os.time() TeamRound = os.time() RoundTime = 15000 TeamRs = false TeamSc = math.random(1,4) tfm.exec.chatMessage("<ROSE><B>A new round has started!</B>") end function eventLoop(time) --[[ Team placer ]]-- if (TeamDelay + 5000 < os.time()) then for playerName,player in pairs(tfm.get.room.playerList) do if (player.x > 0 and player.x < 165) then tfm.exec.chatMessage("<T><b>You're on the green team.</b>",playerName) table.insert(GreenTeam,1,playerName) elseif (player.x > 165 and player.x < 365) then tfm.exec.chatMessage("<J><b>You're on the yellow team.</b>",playerName) table.insert(YellowTeam,1,playerName) elseif (player.x > 365 and player.x < 565) then tfm.exec.chatMessage("<R><b>You're on the red team.</b>",playerName) table.insert(RedTeam,1,playerName) elseif (player.x > 565 and player.x < 800) then tfm.exec.chatMessage("<BV><b>You're on the blue team.</b>",playerName) table.insert(BlueTeam,1,playerName) end end TeamDelay = os.time() + 600000 TeamRs = true end --[[ What happens each round ]]-- if TeamRs == true then if TeamSc == 1 then for index,playerName in pairs(GreenTeam) do tfm.exec.chatMessage("<T>It is your turn to answer a question.", playerName) tfm.exec.chatMessage("<ROSE><b>" ..Q[QCurrent][1].. "</b>", playerName) end elseif TeamSc == 2 then for index,playerName in pairs(YellowTeam) do tfm.exec.chatMessage("<J>It is your turn to answer a question.", playerName) tfm.exec.chatMessage("<ROSE><b>" ..Q[QCurrent][1].. "</b>", playerName) end elseif TeamSc == 3 then for index,playerName in pairs(RedTeam) do tfm.exec.chatMessage("<R>It is your turn to answer a question.", playerName) tfm.exec.chatMessage("<ROSE><b>" ..Q[QCurrent][1].. "</b>", playerName) end elseif TeamSc == 4 then for index,playerName in pairs(BlueTeam) do tfm.exec.chatMessage("<BV>It is your turn to answer a question.", playerName) tfm.exec.chatMessage("<ROSE><b>" ..Q[QCurrent][1].. "</b>", playerName) end end TeamRs = false TeamSc = TeamSc + 1 if (TeamSc == 5) then TeamSc = 1 end --[[ The time each round ]]-- elseif (TeamRound + RoundTime < os.time()) then TeamRs = true TeamRound = os.time() end end function eventChat(name , command) command=command:lower() if command == 'help' then tfm.exec.chatMessage([[<J>Welcome to Team Quiz, this is a game where you have to answer questions with your team.]], name) end for index,playerName in pairs(adminNames) do if (command == 'newgame' and playerName == name) then tfm.exec.newGame('@3699797') tfm.exec.setGameTime(600, true) end if command == 'tgreen' then tfm.exec.movePlayer(playerName,91,330,0,0,0,0) end if command == 'tyellow' then tfm.exec.movePlayer(playerName,291,330,0,0,0,0) end if command == 'tred' then tfm.exec.movePlayer(playerName,491,330,0,0,0,0) end if command == 'tblue' then tfm.exec.movePlayer(playerName,691,330,0,0,0,0) end end if command == 'test' then for index,playerName in pairs(BlueTeam) do tfm.exec.chatMessage("It is your turn to answer a question.", playerName) end end end function eventNewPlayer(name) tfm.exec.chatMessage("<J><b>Welcome to Team Quiz, type</b> <ROSE><b>!help</b> <J><b>into the chat if you're stuck. This is not complete yet, so if it seems like features are missing, they probably are.</b>", name) end ----- Code qui bug :( |
Deathmatic « Citoyen » 1380210420000
| 0 | ||
J'ai fait un petit code qui permet de charger une carte sans passer par /np. :p function eventNewPlayer(playerName) tfm.exec.bindKeyboard(playerName,80,true) ui.addTextArea(0, "Appuyez sur P pour jouer une map", playerName, 0, 20, 120, 35, 0x6A7495, 0x6A7495, 0.5f) end function eventNewGame() for p,_ in pairs(tfm.get.room.playerList) do tfm.exec.bindKeyboard(p,80,true) ui.addTextArea(0, "Appuyez sur P pour jouer une map", p, 0, 20, 120, 35, 0x6A7495, 0x6A7495, 0.5f) end end function eventKeyboard(playerName, keyCode, True, x, y) ui.addPopup(0, 2, "Entrez le code de la map que vous voulez jouer :", playerName, 300, 150, 200) end function eventPopupAnswer(popupId, playerName, answer) if popupId==0 then tfm.exec.newGame(answer) end end |
Atterisage « Citoyen » 1380210420000
| 0 | ||
Même si tu réussirais on t'attaquerai en justice pour avoir repris le jeu ^.^' (sans autorisation) |
0 | ||
Il y a un code pour faire passer des cartes p3 en maison de tribu ? (sans cham et 6min) |
Rayanoche « Citoyen » 1380210420000
| 0 | ||
J'ai une super idée... Je vais essayer de faire le jeu poisson. Atterisage a dit : Ah oui, pas faux... Mais en Maison de tribu on a le droit ? Dernière modification le 1491734640000 |
Rayanoche 1380210420000
| | ||
[Modéré par Nitenrock, raison : Double-post.] Dernière modification le 1491734640000 |
Juliiien « Citoyen » 1380210540000
| 0 | ||
Symnz a dit : Oui c'est possible. Il y a un module ou tu pouvais choisir le temps que tu voulais sur la map, il suffit juste de chercher un peu et de trouver la bonne ligne de code ! |