×

Langue

Fermer
Atelier 801
  • Forums
  • Dev Tracker
  • Connexion
    • English Français
      Português do Brasil Español
      Türkçe Polski
      Magyar Română
      العربية Skandinavisk
      Nederlands Deutsch
      Bahasa Indonesia Русский
      中文 Filipino
      Lietuvių kalba 日本語
      Suomi עברית
      Italiano Česky
      Hrvatski Slovensky
      Български Latviešu
      Estonian
  • Langue
  • Forums
  • /
  • Transformice
  • /
  • Archives
  • /
  • Hilos pasados
  • /
  • ¡Comparte tus códigos /lua!
« ‹ 17 / 19 › »
¡Comparte tus códigos /lua!
Eliaseeg
« Citoyen »
1415562840000
    • Eliaseeg#0000
    • Profil
    • Derniers messages
#321
  0
bracomg a dit :
eliaseeg a dit :
Días sin publicar por acá :').

Hice un pequeño código con Alemoide para colocar imágenes en mapas. El único comando que tiene es !img idImagen x y foreground. Su uso podría ser: !img FFTUwm5.png 200 200 true.

Script.
Aquí un ejemplo a parte, sin utilizar comandos.

Créditos a Eshkation :)

Verdaderamente es un increíble scrip. Pero hay una parte mala, alguien podría darle mal uso a ese scrip y podría poner imágenes no tan bonitas (+18).

Ahí ya es decisión de cada quién cómo usarlo, pero creo que solo se pueden imágenes de imgur, así que si hostean esas imágenes en imgur, las borra imgur.
Quesoyquesos
1415564820000
    • Quesoyquesos#0000
    • Profil
    • Derniers messages
    • Tribu
#322
[Modéré par Jacktrain]

Dernière modification le 1415566860000
Jomanges
« Citoyen »
1415653740000
    • Jomanges#0000
    • Profil
    • Derniers messages
    • Tribu
#323
  0
eliaseeg a dit :
bracomg a dit :
eliaseeg a dit :
Días sin publicar por acá :').

Hice un pequeño código con Alemoide para colocar imágenes en mapas. El único comando que tiene es !img idImagen x y foreground. Su uso podría ser: !img FFTUwm5.png 200 200 true.

Script.
Aquí un ejemplo a parte, sin utilizar comandos.

Créditos a Eshkation :)

Verdaderamente es un increíble scrip. Pero hay una parte mala, alguien podría darle mal uso a ese scrip y podría poner imágenes no tan bonitas (+18).

Ahí ya es decisión de cada quién cómo usarlo, pero creo que solo se pueden imágenes de imgur, así que si hostean esas imágenes en imgur, las borra imgur.

Me dice que ha sido eliminado...
Ltoo
« Citoyen »
1416000240000
    • Ltoo#0507
    • Profil
    • Derniers messages
#324
  0
en el principio dice que para poner objetos con click:

system.bindMouse("Playername");

function eventMouse(playerName, x, y)
tfm.exec.addShamanObject("X", x, y);
end

hay uno que es poniendo 68 en donde dice X y podras poner cajas triangulares owo

En nuestra Tribu las llamamos Las cajas INNOMBRABLES

PD: Si invocas demaciadas de petará del lag

Dernière modification le 1416001200000
Nicksplat
« Citoyen »
1417379280000
    • Nicksplat#5442
    • Profil
    • Derniers messages
    • Tribu
#325
  0
no me sale algunos ¿como hago eso? por ejemplo el de las mansanas en todas partes no me funciona
Meekymoose
« Citoyen »
1417383060000
    • Meekymoose#0000
    • Profil
    • Derniers messages
    • Tribu
#326
  0
chamansicoli a dit :
no me sale algunos ¿como hago eso? por ejemplo el de las mansanas en todas partes no me funciona

Prueba con este
Manzanas por todo el lugar a dit :
removeob=0

function eventChatCommand (player, c)
if c == "apples" then

size = 29;
width = 5;
height = 5;

x0 = tfm.get.room.playerList[player].x + 30 + size;
y0 = tfm.get.room.playerList[player].y + 30 - size;

for j=0, size*(height-1), size do
for i=0, size*(width-1), size do
tfm.exec.addShamanObject (39, x0+i, y0-j);
end
end

end

if c=="clear" then
if removeob then
remove = {}
for i,o in pairs(tfm.get.room.objectList) do
table.insert(remove, i)
end
for _,n in pairs(remove) do
tfm.exec.removeObject(n)
end
end
end

end

!apple = invocar manzanas
!clear = borra las manzanas
Bracomg
« Citoyen »
1417397160000
    • Bracomg#0000
    • Profil
    • Derniers messages
    • Tribu
#327
  0
Nose si alguien ya lo publico pero igual (?)

Una simple explosión.
Bracomg a dit :
tfm.exec.explosion(200, 200, 200, 200, 200)
tfm.exec.newGame ('0')
Turqka
« Citoyen »
1419984300000
    • Turqka#0000
    • Profil
    • Derniers messages
#328
  0
"Pantalla de carga"

http://i.imgur.com/7mCP5fR.png

tfm.exec.newGame ('<C><P D="deesse.png,140,15" /><Z><S><S L="798" H="18" X="401" Y="408" T="0" P="0,0,0.3,0.2,0,0,0,0" /></S><D /><O /></Z></C>')
text=[[<font face="Lucida Console">• <font color="#bfc42e">Transformice</font> <font color="#595e74">v1.213</font>
• Flash version : WIN 15,0,0,223
• Changement de serveur satellite
• Serveur satellite [<font color="#647492">154.45.216.110:6112</font>]</font>]]

ui.addTextArea(1, "", nil, 259, 292, 293, 50, 0x323747, 0x323747, 1, true)
ui.addTextArea(2, text, nil, 260, 293, 293, 50, 0x323747, 0x323747, 1, true)

Dernière modification le 1419984360000
Ratfoxy
1419985800000
    • Ratfoxy#0000
    • Profil
    • Derniers messages
    • Tribu
#329
[Modéré par Jacktrain, raison : Fuera de tema]
Minstens
« Censeur »
1421440200000
    • Minstens#0000
    • Profil
    • Derniers messages
    • Tribu
#330
  0
Estúpido y sencillo radar/sonar con physic object.


a dit :
-- Desactivar cosas y el mapa base.
tfm.exec.disableAutoShaman(true)
tfm.exec.disableAutoTimeLeft(true)
tfm.exec.newGame('<C><P /><Z><S><S P="0,0,0.3,0.2,0,0,0,0" L="200" o="3c1717" X="400" c="4" Y="200" T="13" H="10" /><S X="400" L="190" o="0" H="10" c="4" Y="200" T="13" P="0,0,0.3,0.2,0,0,0,0" /><S L="800" o="324650" X="400" H="10" Y="405" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="150" o="3c1717" X="400" c="4" Y="200" T="13" H="10" /><S c="4" L="140" o="0" X="400" H="10" Y="200" T="13" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="100" o="3c1717" H="10" c="4" Y="200" T="13" X="400" /><S X="400" L="90" o="0" H="10" c="4" Y="200" T="13" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="50" o="3c1717" H="10" c="4" Y="200" T="13" X="400" /><S X="400" L="40" o="0" H="10" c="4" Y="200" T="13" P="0,0,0.3,0.2,0,0,0,0" /><S L="10" o="3c1717" H="10" X="400" Y="200" T="13" P="0,0,0.3,0.2,0,0,0,0" /><S c="4" L="10" o="3c1717" H="400" X="400" Y="200" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="400" o="3c1717" X="400" c="4" Y="200" T="12" H="10" /><S H="10" L="400" o="3c1717" X="400" c="4" Y="200" T="12" P="0,0,0.3,0.2,45,0,0,0" /><S P="0,0,0.3,0.2,-45,0,0,0" L="400" o="3c1717" X="400" c="4" Y="200" T="12" H="10" /></S><D /><O /></Z></C>')
tfm.exec.disableAutoNewGame(true)

-- Tablas con datos.
x=0
x2=-4

-- EventLoop.
function eventLoop()
-- Propiedades del palo 1.
palo = {type=12,width=1,height=380,foreground=false,friction=0,restitution=0,angle=x,color=0x966322,miceCollision=false,groundCollision=false}
-- Propiedades del palo 2-
palo2 = {type=12,width=20,height=380,foreground=false,friction=0,restitution=0,angle=x2,color=0xC7914C,miceCollision=false,groundCollision=false}
-- No tocar hasta siguiente indicación.
tfm.exec.removePhysicObject(1)
x=x+5
x2=x2+5
tfm.exec.addPhysicObject(2,400,200,palo2)
tfm.exec.addPhysicObject(1,400,200,palo)
xp=400
yp=200
radiusX=80
radiusY=40
tfm.exec.displayParticle(22,math.random(400-radiusX*2,400+radiusX*2),math.random(210-radiusY*2,190+radiusY*2),0,0,0,0,name)
end

-- EventNewGame.
function eventNewGame()
tfm.exec.setUIMapName("Sonar/Radar by Minstens")
tfm.exec.setUIShamanName("")
tfm.exec.disableAfkDeath(true)
tfm.exec.disableAutoTimeLeft(true)
end

Me reservo el derecho de creación, puedes editarlo si me incluyes en los créditos.
Haku
« Sénateur »
1422391320000
    • Haku#0807
    • Profil
    • Derniers messages
#331
  0
http://pastebin.com/k5PeLv9g

Reloj RGB
(horriblemente programado)
Mimiceriotfm
« Citoyen »
1424018340000
    • Mimiceriotfm#0000
    • Profil
    • Derniers messages
    • Tribu
#332
  0
me dicen cual es el codigo para el minijuego ahorcado? me llamo mimiceriotfm en transformice y estoy en la tribu The Kings Of Anime,les agradeceria si me darian el codigo,lo unico que se de el es que es largo asique les agradeceria si me lo mandan
Magurv
« Citoyen »
1424124780000
    • Magurv#0000
    • Profil
    • Derniers messages
#333
  0
mimiceriotfm a dit :
me dicen cual es el codigo para el minijuego ahorcado? me llamo mimiceriotfm en transformice y estoy en la tribu The Kings Of Anime,les agradeceria si me darian el codigo,lo unico que se de el es que es largo asique les agradeceria si me lo mandan

Es muy largo pero aqui lo tienes:

tfm.exec.disableAfkDeath(true)
tfm.exec.disableAutoShaman(true)
tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAutoScore(true)
tfm.exec.disableAutoTimeLeft(true)

chars = {"&","é","~","\"","{","|","è","`","_","à","@","]","+","=","}","¨","ë","ä","ü","ö","£","<",">","0","1","2","3","4","5","6","7","8","9"}

lang = {}

lang.fr = {
ask_word = "Définir le mot à trouver",
choose_word = "Choisissez un mot : (entre 2 et 12 caractères inclus, aucun accent)",
more_players = "Vous devez être au moins <font color='#FF0000'>2</font> joueurs pour jouer au pendu.",
next_turn_1 = "Le prochain tour débutera dans ",
next_turn_2 = " seconde(s).",
turn_of_1 = "C'est le tour de ",
turn_of_2 = " ! ",
patientez = "Patientez pendant qu'il choisir son mot...",
word_found = "Le mot a été trouvé !",
word_not_found = "Pas de chance ! Le mot était ",
time_out = "Temps écoulé !",
pass_turn = "Le maître du jeu a passé son tour !",
quit = "Le maître du jeu a quitté !"
}

lang.es = {
ask_word = "Elige una palabra a buscar!",
choose_word = "Elige una palabra (entre 2 y 12 carácteres)",
more_players = "Deben haber por lo menos <font color='#FF0000'>2</font> usuarios para jugar al Ahorcado.",
next_turn_1 = "Siguiente turno en ",
next_turn_2 = " segundos(s)",
turn_of_1 = "¡ ",
turn_of_2 = " te toca ! ",
patientez = "Esperemos mientras él elige una palabra!",
word_found = "La palabra fue encontrada !",
word_not_found = "Mala suerte :( la palabra era ",
time_out = "Se acabó el tiempo !",
pass_turn = "El jugador ^ ha saltado su turno !",
quit = "El jugador ^ se ha ido ): ."
}

lang.en = {
ask_word = "Define the word to find",
choose_word = "Choose a word : (between 2 and 12 characters)",
more_players = "You have to be at least <font color='#FF0000'>2</font> players to play Hangman.",
next_turn_1 = "Next turn in ",
next_turn_2 = " second(s).",
turn_of_1 = "It's ",
turn_of_2 = "'s turn ! ",
patientez = "Wait while he's choosing a word...",
word_found = "The word was found !",
word_not_found = "No luck! The word was ",
time_out = "Time out !",
pass_turn = "The game master has passed his turn !",
quit = "The game master has quit."
}

text = lang.es

players = {}
master = ""

letters = {}
invertLetters = {}

word = ""
hasDefinedWord = false

timer = 0
bestPlayer = ""
pendu_level = 0

beginReset = false
hasToReset = false
resetTimer = 0

isTimeOut = false
hasWon = false
hasLost = false
hasSkipped = false
hasQuit = false

lettersEntered = {}

id = {}

id["ask_word_main"] = 1
id["ask_word_button"] = 2
id["ask_word_popup"] = 3
id["pendu"] = 4
id["reset_timer"] = 5
id["reset_timer_label"] = 6
id["turn"] = 7
id["turn_label"] = 8
id["one_player"] = 9
id["one_player_label"] = 10

function eventNewGame()
updatePlayersList()

ui.removeTextArea(id["one_player"])
ui.removeTextArea(id["one_player_label"])

letters = {}
invertLetters = {}
word = ""
hasDefinedWord = false
timer = 0

if getNbPlayers() > 1 then
master = randomPlayer()
tfm.exec.movePlayer(master, 400, 90, false, 0, 0, false)

askWord()
drawPendu()
else
removeAll()

ui.addTextArea(id["one_player"], "", nil, 5, 110, 790, 25, 0xC0C0C0, 0x595959, 1f)
ui.addTextArea(id["one_player_label"], "<p align='center'><BL><font color='#000000'>"..text.more_players.."</font></p>", nil, 25, 115, 750, 30, 0xC0C0C0, 0xC0C0C0, 0f)

drawWord()
drawPendu()
end
end

function eventPlayerDied(playerName)
tfm.exec.respawnPlayer(playerName)
end

function eventNewPlayer(playerName)
table.insert(players, playerName)

if getNbPlayers() == 2 then
tfm.exec.newGame("@4488917")
else
tfm.exec.respawnPlayer(playerName)
drawWord()
drawPendu()
end
end

function eventPlayerLeft(playerName)
local toRemove = 0

for i,p in pairs(players) do
if p==playerName then
toRemove = i
end
end

table.remove(players, toRemove)

if getNbPlayers() == 1 then
tfm.exec.newGame("@4488917")
else
if playerName==master then
hasQuit = true
reset()
end
end
end

function eventLoop(currentTime, timeRemaining)
timer = timer + 0.5
if beginReset then
ui.removeTextArea(id["ask_word_main"])
ui.removeTextArea(id["ask_word_button"])

resetTimer = resetTimer + 0.5

ui.addTextArea(id["reset_timer"], "", nil, 5, 110, 790, 25, 0xC0C0C0, 0x595959, 1f)
if isTimeOut then ui.addTextArea(id["reset_timer_label"], "<p align='center'><BL>"..text.time_out.." <font color='#000000'>"..text.next_turn_1.."<font color='#FF0000'>"..math.floor(10 - resetTimer).."</font>"..text.next_turn_2.."</font></p>", nil, 25, 115, 750, 30, 0xC0C0C0, 0xC0C0C0, 0f) end
if hasWon then ui.addTextArea(id["reset_timer_label"], "<p align='center'><BL>"..text.word_found.." <font color='#000000'>"..text.next_turn_1.."<font color='#FF0000'>"..math.floor(10 - resetTimer).."</font>"..text.next_turn_2.."</font></p>", nil, 25, 115, 750, 30, 0xC0C0C0, 0xC0C0C0, 0f) end
if hasLost then ui.addTextArea(id["reset_timer_label"], "<p align='center'><font color='#000000'>"..text.word_not_found.."</font><BL>"..word:gsub("^%l", string.upper).."<font color='#000000'> ! "..text.next_turn_1.."<font color='#FF0000'>"..math.floor(10 - resetTimer).."</font>"..text.next_turn_2.."</font></p>", nil, 25, 115, 750, 30, 0xC0C0C0, 0xC0C0C0, 0f) end
if hasSkiped then ui.addTextArea(id["reset_timer_label"], "<p align='center'><BL>"..text.pass_turn.."<font color='#000000'> "..text.next_turn_1.."<font color='#FF0000'>"..math.floor(10 - resetTimer).."</font>"..text.next_turn_2.."</font></p>", nil, 25, 115, 750, 30, 0xC0C0C0, 0xC0C0C0, 0f) end
if hasQuit then ui.addTextArea(id["reset_timer_label"], "<p align='center'><BL>"..text.quit.."<font color='#000000'> "..text.next_turn_1.."<font color='#FF0000'>"..math.floor(10 - resetTimer).."</font>"..text.next_turn_2.."</font></p>", nil, 25, 115, 750, 30, 0xC0C0C0, 0xC0C0C0, 0f) end
end

checkBestPlayer()

if timer==25 and not hasDefinedWord and getNbPlayers() > 1 then
isTimeOut = true
reset()
end

if resetTimer==10 then
isTimeOut = false
hasWon = false
hasLost = false
hasSkiped = false
hasQuit = false

hasToReset = true

reset()
end
end

function eventChatCommand(playerName, message)
local args = {}

for arg in message:gmatch("[^%s]+") do
table.insert(args, arg:lower())
end

if not hasLost and not hasSkiped and not hasQuit and args[1] ~= nil then
if args[1]==word and playerName ~= master and not hasWon then
local score = 0

for _,letter in pairs(letters) do
if letter=="_" then score = score + 1 end
end

tfm.exec.setPlayerScore(playerName, score, true)

local i = 1

while i <= word:len() do
if letters~="_" then
invertLetters = letters
letters = "_"
end

i = i + 1
end

drawWord()
hasWon = true
reset()
end

if args[1]=="skip" and playerName==master and not hasWon and not hasLost and not isTimeOut then
hasSkiped = true
reset()
end

if args[1]:len()==1 and hasDefinedWord and args[1]~= "_" and args[1]~="-" and args[1]~="'" and playerName ~= master then
local isEntered = false

for _,letter in pairs(lettersEntered) do
if letter==args[1] then
isEntered = true
end
end

if not isEntered then
local score = 0
local idsToRemove = {}
local isFalse = true

table.insert(lettersEntered, args[1])

for id,letter in pairs(letters) do
if letter==args[1] then
table.insert(idsToRemove, id)
isFalse = false
end
end

for _,idToRemove in pairs(idsToRemove) do
invertLetters[idToRemove] = letters[idToRemove]
letters[idToRemove] = "_"
end

score = #idsToRemove

if isFalse then
if tfm.get.room.playerList[playerName].score > 0 then score = -1 end
pendu_level = pendu_level + 1
end

tfm.exec.setPlayerScore(playerName, score, true)

drawWord()
drawPendu()
end
end
end
end

function eventTextAreaCallback(textAreaId, playerName, callback)
if callback=="callbackAskWord" then
ui.addPopup(id["ask_word_popup"], 2, text.choose_word, master, 300, 175, 200)
end
end

function eventPopupAnswer(popupId, playerName, answer)
if popupId==id["ask_word_popup"] and not isTimeOut and master==playerName then
local choosedWord = tostring(answer)

if checkWord(choosedWord) then
defineWord(choosedWord)
hasDefinedWord = true

askWord()

ui.removeTextArea(id["turn"])
ui.removeTextArea(id["turn_label"])
end
end
end

function askWord()
ui.removeTextArea(id["reset_timer"])
ui.removeTextArea(id["reset_timer_label"])
ui.removeTextArea(id["ask_word_main"])
ui.removeTextArea(id["ask_word_button"])

if not hasDefinedWord then
ui.addTextArea(id["ask_word_main"], "", master, 5, 110, 790, 35, 0xC0C0C0, 0x595959, 1f)
ui.addTextArea(id["ask_word_button"], "<p align='center'><a href='event:callbackAskWord'>"..text.ask_word.."</a></p>", master, 300, 120, 190, 16, 0x595959, 0x595959, 1f)

for p,_ in pairs(tfm.get.room.playerList) do
if p~=master then
ui.addTextArea(id["turn"], "", p, 5, 110, 790, 25, 0xC0C0C0, 0x595959, 1f)
ui.addTextArea(id["turn_label"], "<p align='center'><font color='#000000'>"..text.turn_of_1.."</font><BL>"..master.."<font color='#000000'>"..text.turn_of_2..text.patientez.."</font></p>", p, 25, 115, 750, 30, 0xC0C0C0, 0xC0C0C0, 0f)
end
end
end
end

function defineWord(new_word)
word = string.lower(string.gsub(new_word, " ", "-"))

letters = {}

local i = 36

while i < 50 do
ui.removeTextArea(i)
i = i + 1
end

for letter in new_word:gmatch"." do
if letter==" " or letter=="-" then
table.insert(invertLetters, "-")
table.insert(letters, "_")
elseif letter=="'" then
table.insert(invertLetters, "'")
table.insert(letters, "_")
else
table.insert(letters, letter:lower())
table.insert(invertLetters, "_")
end
end

drawWord()
drawPendu()
end

function drawWord()
local textId = 36
local i = 1
local ancreX = 40

if #word==0 then
local i = 36

while i < 50 do
ui.removeTextArea(i)
i = i + 1
end
else
while i <= word:len() do
ui.addTextArea(textId, "<p align='center'><font size='40' color='#000000'>"..invertLetters:upper().."</font></p>", nil, ancreX, 150, 40, 60, 0xC0C0C0, 0xC0C0C0, 1f)
ancreX = ancreX + 60
textId = textId + 1
i = i + 1
end

local finished = true
local j = 1

while j <= word:len() do
if invertLetters[j]=="_" then finished = false end
j = j + 1
end

if finished then
hasWon = true
reset()
end
end
end

function drawPendu()
local pendu = ""

if pendu_level==1 then
pendu = pendu.."<br /><br /><br /><br /><br /><br /><br /><br /><br /> _________"

elseif pendu_level==2 then
pendu = pendu.."<br />"
pendu = pendu.." |<br />"
pendu = pendu.." |<br />"
pendu = pendu.." |<br />"
pendu = pendu.." |<br />"
pendu = pendu.." |<br />"
pendu = pendu.." |<br />"
pendu = pendu.." |<br />"
pendu = pendu.." |<br />"
pendu = pendu.." ____|____"

elseif pendu_level==3 then
pendu = pendu.." __________.__<br />"
pendu = pendu.." |<br />"
pendu = pendu.." |<br />"
pendu = pendu.." |<br />"
pendu = pendu.." |<br />"
pendu = pendu.." |<br />"
pendu = pendu.." |<br />"
pendu = pendu.." |<br />"
pendu = pendu.." |<br />"
pendu = pendu.." ____|____"

elseif pendu_level==4 then
pendu = pendu.." __________.__<br />"
pendu = pendu.." | /<br />"
pendu = pendu.." |/<br />"
pendu = pendu.." |<br />"
pendu = pendu.." |<br />"
pendu = pendu.." |<br />"
pendu = pendu.." |<br />"
pendu = pendu.." |<br />"
pendu = pendu.." |<br />"
pendu = pendu.." ____|____"

elseif pendu_level==5 then
pendu = pendu.." __________.__<br />"
pendu = pendu.." | / |<br />"
pendu = pendu.." |/<br />"
pendu = pendu.." |<br />"
pendu = pendu.." |<br />"
pendu = pendu.." |<br />"
pendu = pendu.." |<br />"
pendu = pendu.." |<br />"
pendu = pendu.." |<br />"
pendu = pendu.." ____|____"

elseif pendu_level==6 then
pendu = pendu.." __________.__<br />"
pendu = pendu.." | / |<br />"
pendu = pendu.." |/ O<br />"
pendu = pendu.." |<br />"
pendu = pendu.." |<br />"
pendu = pendu.." |<br />"
pendu = pendu.." |<br />"
pendu = pendu.." |<br />"
pendu = pendu.." |<br />"
pendu = pendu.." ____|____"

elseif pendu_level==7 then
pendu = pendu.." __________.__<br />"
pendu = pendu.." | / |<br />"
pendu = pendu.." |/ O<br />"
pendu = pendu.." | /|<br />"
pendu = pendu.." |<br />"
pendu = pendu.." |<br />"
pendu = pendu.." |<br />"
pendu = pendu.." |<br />"
pendu = pendu.." |<br />"
pendu = pendu.." ____|____"

elseif pendu_level==8 then
pendu = pendu.." __________.__<br />"
pendu = pendu.." | / |<br />"
pendu = pendu.." |/ O<br />"
pendu = pendu.." | /|\<br />"
pendu = pendu.." |<br />"
pendu = pendu.." |<br />"
pendu = pendu.." |<br />"
pendu = pendu.." |<br />"
pendu = pendu.." |<br />"
pendu = pendu.." ____|____"

elseif pendu_level==9 then
pendu = pendu.." __________.__<br />"
pendu = pendu.." | / |<br />"
pendu = pendu.." |/ O<br />"
pendu = pendu.." | /|\\<br />"
pendu = pendu.." | |<br />"
pendu = pendu.." |<br />"
pendu = pendu.." |<br />"
pendu = pendu.." |<br />"
pendu = pendu.." |<br />"
pendu = pendu.." ____|____"

elseif pendu_level==10 then
pendu = pendu.." __________.__<br />"
pendu = pendu.." | / |<br />"
pendu = pendu.." |/ O<br />"
pendu = pendu.." | /|\\<br />"
pendu = pendu.." | |<br />"
pendu = pendu.." | /<br />"
pendu = pendu.." |<br />"
pendu = pendu.." |<br />"
pendu = pendu.." |<br />"
pendu = pendu.." ____|____"

elseif pendu_level==11 then
pendu = pendu.." __________.__<br />"
pendu = pendu.." | / | <br />"
pendu = pendu.." |/ O <br />"
pendu = pendu.." | /|\\ <br />"
pendu = pendu.." | | <br />"
pendu = pendu.." | / \\ <br />"
pendu = pendu.." | <br />"
pendu = pendu.." | <br />"
pendu = pendu.." | <br />"
pendu = pendu.." ____|____"

hasLost = true
reset()
end

ui.addTextArea(id["pendu"], pendu, nil, 323, 235, 135, 138, 0x010101, 0xFFFFFF, 0.5f)
end

function reset()
beginReset = true

if hasToReset then
if getNbPlayers() < 2 then
tfm.exec.newGame("@4488917")
else
letters = {}
invertLetters = {}
word = ""
hasDefinedWord = false
pendu_level = 0
beginReset = false
hasToReset = false
resetTimer = 0
lettersEntered = {}

drawWord()
drawPendu()

local randX = math.random(799)
tfm.exec.movePlayer(master, randX, 385, false, 0, 0, false)

local oldMaster = master

if getNbPlayers()~=1 then
if bestPlayer==oldMaster then
while master==oldMaster do
master = randomPlayer()
end
else
master = bestPlayer
end
else
master = bestPlayer
end

randX = math.random(799)

tfm.exec.movePlayer(master, randX, 90, false, 0, 0, false)
tfm.exec.setPlayerScore(master, 0, false)

timer = 0

askWord()
end
end
end

function removeAll()
ui.removeTextArea(id["ask_word_main"])
ui.removeTextArea(id["ask_word_button"])
ui.removeTextArea(id["ask_word_popup"])
ui.removeTextArea(id["pendu"])
ui.removeTextArea(id["reset_timer"])
ui.removeTextArea(id["reset_timer_label"])
ui.removeTextArea(id["turn"])
ui.removeTextArea(id["turn_label"])
ui.removeTextArea(id["one_player"])
ui.removeTextArea(id["one_player_label"])
end

function checkWord(word_arg)
if word_arg:len() >= 2 and word_arg:len() <= 12 then
for _,c in pairs(chars) do
if string.match(word_arg, c) then
return false
end
end

return true
else
return false
end
end

function checkBestPlayer()
topScore = 0
bestPlayer = randomPlayer()

for name,player in pairs(tfm.get.room.playerList) do
if player.score >= topScore then
topScore = player.score
bestPlayer = name
end
end
end

function getNbPlayers()
return #players
end

function updatePlayersList()
players = {}

for p,_ in pairs(tfm.get.room.playerList) do
table.insert(players, p)
end
end

function randomPlayer()
return players[math.random(1,#players)]
end

for name,player in pairs(tfm.get.room.playerList) do
tfm.exec.setPlayerScore(name, 0, false)
end

updatePlayersList()
bestPlayer = randomPlayer()
tfm.exec.newGame("@4488917")

[#][/#]
Mimiceriotfm
« Citoyen »
1424218200000
    • Mimiceriotfm#0000
    • Profil
    • Derniers messages
    • Tribu
#334
  0
lol es larguisimo pero igualmente gracias magurv!
Magurv
« Citoyen »
1424544060000
    • Magurv#0000
    • Profil
    • Derniers messages
#335
  0
De nada!
Tocutoeltuco
« Censeur »
1424800200000
    • Tocutoeltuco#0000
    • Profil
    • Derniers messages
#336
  0
248 renglones de rotaciones de mapas, solo le puse rotaciones de: Vanilla, P1, P4, P5, P6, P7, P8 & P9. Además de una rotación de todas esas categorias juntas.
Comandos:
!sinrotacion - Sin rotación alguna
!rotacionvanilla - Rotación de vanilla
!rotacionnormal - Rotación mesclada
!rotacionp1 - Rotación P1
!rotacionp4 - Rotación P4
!rotacionp5 - Rotación P5
!rotacionp6 - Rotación P6
!rotacionp7 - Rotación P7
!rotacionp8 - Rotación P8
!rotacionp9 - Rotación P9

He de decir, que no tiene todos los mapas, pero puedes agregarlos si quieres.
Script
Minstensxd
« Citoyen »
1424808960000
    • Minstensxd#0000
    • Profil
    • Derniers messages
    • Tribu
#337
  0
Tocutoeltuco a dit :
248 renglones de rotaciones de mapas, solo le puse rotaciones de: Vanilla, P1, P4, P5, P6, P7, P8 &amp; P9. Además de una rotación de todas esas categorias juntas.
Comandos:
!sinrotacion - Sin rotación alguna
!rotacionvanilla - Rotación de vanilla
!rotacionnormal - Rotación mesclada
!rotacionp1 - Rotación P1
!rotacionp4 - Rotación P4
!rotacionp5 - Rotación P5
!rotacionp6 - Rotación P6
!rotacionp7 - Rotación P7
!rotacionp8 - Rotación P8
!rotacionp9 - Rotación P9

He de decir, que no tiene todos los mapas, pero puedes agregarlos si quieres.
Script

http://pastebin.com/jcry4PfK
Te he mejorado un poco el script, es más ligero y solo se usa un comando.
!m
    sinrotacion - Sin rotación
    vanilla - Rotación de vanilla
    p0 - Rotación aleatoria
    p1 - Rotación P1
    p4 - Rotación P4
    p5 - Rotación P5
    p6 - Rotación P6
    p7 - Rotación P7
    p8 - Rotación P8
    p9 - Rotación P9
Narradorg
1424824020000
    • Narradorg#0000
    • Profil
    • Derniers messages
#338
[Modéré par Jacktrain, raison : Fuera de tema]
Magurv
« Citoyen »
1424919000000
    • Magurv#0000
    • Profil
    • Derniers messages
#339
  0
Thetroz a dit :
He creado un script que es acerca rayos, ya por que por ahí lo pidieron

No están tan bien hechos, pero algo es algo xD

Además tiene un efecto de que cuando cae un rayo se pone la pantalla negra.

Enjoy!

http://trospaste.skn1.com/htdocs/view/5a616150

No puedo ver el scrip TTnTT ponlo denuevo plz , lo necesito
Piczetos
« Citoyen »
1426307700000
    • Piczetos#0000
    • Profil
    • Derniers messages
    • Tribu
#340
  0
Hola alguien sabe cual es para los eventos?
si sabes me dicen?
porfavor
  • Forums
  • /
  • Transformice
  • /
  • Archives
  • /
  • Hilos pasados
  • /
  • ¡Comparte tus códigos /lua!
« ‹ 17 / 19 › »
© Atelier801 2018

Equipe Conditions Générales d'Utilisation Politique de Confidentialité Contact

Version 1.27