Script Requests |
Frozenjord « Citoyen » 1408268880000
| 0 | ||
Juliantwofan a dit : If you want a command wherein you will be able to choose what map you want, for example !map 73 then use this: function eventChatCommand(name, cmd) Admin = {Juliantwofan = true} function eventChatCommand(name, cmd) local args = {} for arg in cmd:gmatch("%S+") do table.insert(args, arg) end if Admin[name] then if args[1] == "map" then map = tonumber(args[2] or 0) or 0 tfm.exec.newGame(map) end end end However if you just want separate commands for specific maps then use something like this: Admin = {Juliantwofan = true} function eventChatCommand(name, cmd) if Admin[name] then if cmd == "map1" then tfm.exec.newGame(INSERT MAP HERE) elseif cmd == "map2" then tfm.exec.newGame(INSERT MAP HERE) elseif cmd == "map3" then tfm.exec.newGame(INSERT MAP HERE) end end end |
Woebegone « Citoyen » 1408285020000
| 0 | ||
Jamesqwartz a dit : Thanks again e.e |
Safwanrockz « Censeur » 1408309560000
| 0 | ||
Jamesqwartz a dit : Admin = {Juliantwofan = true} maps = {"0","123","555555"} function eventChatCommand(name, cmd) if Admin[name] then if cmd:sub(3)=="map" then local map = cmd:match("%a+(%d+)") tfm.exec.newGame(maps[map]) end end end I was bored. |
Profmfare « Citoyen » 1408691220000
| 0 | ||
Speed Code please |
Frozenjord « Citoyen » 1408692060000
| 0 | ||
profmfare a dit : This works quite nicely: for i,p in pairs(tfm.get.room.playerList) do tfm.exec.bindKeyboard(i, 37, true, true) tfm.exec.bindKeyboard(i, 39, true, true) end function eventKeyboard(name, key, down, x, y) if key == 37 then tfm.exec.movePlayer(name, 0, 0, false, -150, 0, false) -- Keep this integer negative. elseif key == 39 then tfm.exec.movePlayer(name, 0, 0, false, 150, 0, false) -- Keep this integer positive. end end Change the red numbers to whatever you want as long as the first number stays negative and the second number stays positive. Also, use the left and right arrow keys. Dernière modification le 1408692120000 |
Profmfare « Citoyen » 1408694520000
| 0 | ||
paste.moepl.eu/view/d19b9a41 This shop code I want to add speed shop I can not add speed :( Please add speed Speed code for i,p in pairs(tfm.get.room.playerList) do tfm.exec.bindKeyboard(i, 37, true, true) tfm.exec.bindKeyboard(i, 39, true, true) end function eventKeyboard(name, key, down, x, y) if key == 37 then tfm.exec.movePlayer(name, 0, 0, false, -500, 0, false) elseif key == 39 then tfm.exec.movePlayer(name, 0, 0, false, 500, 0, false) end end please add :( |
Frozenjord « Citoyen » 1408697460000
| 0 | ||
profmfare a dit : Ok in that case use this. Change the words and numbers to what you want to use. |
Admshumaker « Citoyen » 1408739520000
| 0 | ||
Could I get a script where you can fly by pressing spacebar and teleport by clicking somewhere? Thank you c; Dernière modification le 1408739580000 |
Frozenjord « Citoyen » 1408740480000
| 0 | ||
Admshumaker a dit : Sure. playername = "PlayerName" system.bindMouse(playername, true) tfm.exec.bindKeyboard(playername, 32, true, true) function eventKeyboard(name, key, down, x, y) if key == 32 then tfm.exec.movePlayer(name, 0, 0, true, 0, -50, false) end end function eventMouse(name, x, y) tfm.exec.movePlayer(name, x, y, false) end Where it says "PlayerName" enter your username, remember to use a capital letter for the the first letter. |
Admshumaker « Citoyen » 1408744140000
| 0 | ||
Jamesqwartz a dit : Thank you so much! I have a question. How could I add two names to that? Would it be like this: playername = "PlayerName,PlayerName" system.bindMouse(playername, true) tfm.exec.bindKeyboard(playername, 32, true, true) function eventKeyboard(name, key, down, x, y) if key == 32 then tfm.exec.movePlayer(name, 0, 0, true, 0, -50, false) end end function eventMouse(name, x, y) tfm.exec.movePlayer(name, x, y, false) end Also, could someone make me a script to dash by pressing right or left. Just a simple but somewhat fast dash. |
Shamousey « Consul » 1408746240000
| 0 | ||
That wouldn't work, but you could just put the names in a table and then loop through every one. playernames = {"PlayerName","PlayerName"} for k,v in pairs(playernames) do system.bindMouse(v, true) tfm.exec.bindKeyboard(v, 32, true, true) end function eventKeyboard(name, key, down, x, y) if key == 32 then tfm.exec.movePlayer(name, 0, 0, true, 0, -50, false) end end function eventMouse(name, x, y) tfm.exec.movePlayer(name, x, y, false) end |
Cheetahkitty « Citoyen » 1408840560000
| 0 | ||
How do u do it so when u press space to a vamp they will die |
Spikeyguy « Citoyen » 1408904400000
| 0 | ||
How do you create deathmatch teams for every round in the tribehouse? |
Shakewooz « Citoyen » 1408912080000
| 0 | ||
ID of room 801 map? c; |
Frozenjord « Citoyen » 1408959420000
| 0 | ||
Spikeyguy a dit : This should work. Also, credit to Shamousey for the body of the script. cheetahkitty a dit : Can you give any further information? Do you want every vamp to die when someone presses space? Do you want only the vamps close to you to die? Can vamps also press spacebar to kill other vamps? Dernière modification le 1408960320000 |
Spikeyguy « Citoyen » 1408985340000
| 0 | ||
Jamesqwartz a dit : The overall script is perfect but how would we add offsets? |
Frozenjord « Citoyen » 1408990320000
| 0 | ||
Spikeyguy a dit : Just type !off x y x and y are the offset numbers. I also noticed that the way the script was made the offsets could be absolutely anything which is a problem, so use this script instead. |
Shakewooz « Citoyen » 1408990320000
| 0 | ||
--[[ Request for: Fireyone Author: Jordynl ]] particleParty = function() local particleList = {21,22,23,24} local rParticle = particleList[math.random(#particleList)] local xPosition = math.random(-50,1000) local yPosition = math.random(0,400) tfm.exec.displayParticle(rParticle, xPosition, yPosition, 0, 0, 0, 0, nil) end function eventChatCommand(name, line) local cmd, args = line:match('^%s*(%S+)%s*(.*)') for arg in args:gmatch('%S+') do table.insert(arg,argument) end if cmd == "live" then for i=1, 50, 1 do particleParty() end end end something similar to this. but instead of typing !live. can you fix it just when i click on J it works? ty |
Frozenjord « Citoyen » 1409040060000
| 0 | ||
For if you want only one person to be able to activate this function: pname = "Jamesqwartz" -- Replace with your name. tfm.exec.bindKeyboard(pname, 74, true, true) particleParty = function() local particleList = {21,22,23,24} local rParticle = particleList[math.random(#particleList)] local xPosition = math.random(-50,1000) local yPosition = math.random(0,400) tfm.exec.displayParticle(rParticle, xPosition, yPosition, 0, 0, 0, 0, nil) end function eventKeyboard(name, key, down, x, y) if key == 74 then for i=1, 50, 1 do particleParty() end end end However if you want the whole room to be able to use it: function eventNewPlayer(name) tfm.exec.bindKeyboard(name, 74, true, true) end particleParty = function() local particleList = {21,22,23,24} local rParticle = particleList[math.random(#particleList)] local xPosition = math.random(-50,1000) local yPosition = math.random(0,400) tfm.exec.displayParticle(rParticle, xPosition, yPosition, 0, 0, 0, 0, nil) end function eventKeyboard(name, key, down, x, y) if key == 74 then for i=1, 50, 1 do particleParty() end end end for name, players in pairs(tfm.get.room.playerList) do eventNewPlayer(name) end Note when entering your username to the first script the capital letter at the start is necessary |
Dogangun « Citoyen » 1409049060000
| 0 | ||
My shop script: players={} notices={notice=""} ui.addTextArea(7,"<p align='center'><font face='arial'><a href='event:open'><j><b>Market</a></font></p>",name,300,28,50,18,0x00001,0xEB1D51,0.9,true) function eventTextAreaCallback(id, name, callback) ui.addTextArea(0,"<p align='center'><a href='event:Doğuş'>Doğuş</a></p>",name,270,57,50,20,0x00001,0xCB546B,0.9,true) ui.addTextArea(1,"<p align='center'><a href='event:Peynir'>Peynir</a></p>",name,328,57,50,20,0x00001,0xCB546B,0.9,true) ui.addTextArea(2,"<p align='center'><a href='event:Vampir'>Vampir</a></p>",name,270,87,50,20,0x00001,0xCB546B,0.9,true) ui.addTextArea(3,"<p align='center'><a href='event:Şaman'>Şaman</a></p>",name,328,87,50,20,0x0001,0xCB546B,0.9,true) ui.addTextArea(4,"<p align='center'><a href='event:Renk'>Renk</a></p>",name,270,117,50,20,0x0001,0xCB546B,0.9,true) ui.addTextArea(5,"<p align='center'><a href='event:Yuva'>Yuva</a></p>",name, 328,117,50,20,0x0001,0xCB546B,0.9,true) ui.addTextArea(6,"<p align='center'><a href='event:Kar'>Kar</a></p>",name,270,147,50,20,0x00001,0xCB546B,0.9,true) ui.addTextArea(8,"<p align='center'><a href='event:Ölüm'>Ölüm</a></p>",name,328,147,50,20,0x00001,0xCB546B,0.9,true) ui.addTextArea(9,"<p align='center'><a href='event:Meep'>Meep</a></p>",name,385,57,50,20,0x00001,0xCB546B,0.9,true) ui.addTextArea(10,"<p align='center'><a href='event:Puan'>Puan</a></p>",name,385,87,50,20,0x00001,0xCB546B,0.9,true) if callback=="Doğuş" then tfm.exec.respawnPlayer(name) end if callback=="Vampir" then tfm.exec.setVampirePlayer(name) end if callback=="Şaman" then tfm.exec.setShaman(name) end if callback=="Renk" then tfm.exec.setNameColor(name, 0xCB546B) end if callback=="Yuva" then tfm.exec.playerVictory(name) end if callback=="Kar" then tfm.exec.snow() end if callback=="Ölüm" then tfm.exec.killPlayer(name) end if callback=="Meep" then tfm.exec.giveMeep(name) end if callback=="Puan" then tfm.exec.setPlayerScore(name, 10, true) end if callback=="Peynir" then tfm.exec.giveCheese(name) end end |