×

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
  • /
  • Seção Editor de Mapas e Modules
  • /
  • [Lua] Peça scripts aqui!
« ‹ 124 / 133 › »
[Lua] Peça scripts aqui!
Mariobros
« Citoyen »
1594501980000
    • Mariobros#4213
    • Profil
    • Derniers messages
    • Tribu
#2461
  0
Queria um script que quando apertava espaço 2 vezes o rato iria voar
Esthergames
« Citoyen »
1594836240000
    • Esthergames#0147
    • Profil
    • Derniers messages
#2462
  0
Jp_darkuss a dit :
Se não gostar de algo me avisa.

Esthergames a dit :
Tô precisando de um script pros dias do namorados...um script que eu selecione os mapas que eu quero, no caso vão ser só de alma gêmea e que eu possa escolher quem vai ser alma de quem nesses mapas e que não tenha sha nos mapas...

Ex: /alma1 EstherGames#0147 QualquerUm#0000
/alma2 Você#000 Eu#0183

Desde já, agradeço!

Script

Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
local _, adm= pcall(nil)
adm= adm:match("(.-#%d+)")
local souls= {}
eventChatCommand= function(player, command)
local cmd= {}
for data in command:gmatch("%S+") do
table.insert(cmd, data)
end
if (player== adm) then
if (cmd[1]=="alma") then
table.insert(souls, {cmd[2], cmd[3]})
elseif (cmd[1]=="map") then
tfm.exec.newGame(cmd[2])
elseif (cmd[1]=="reset") then
souls= {}
end
end
end
eventNewGame= function()
for _, data in next, souls do
tfm.exec.linkMice(data[1], data[2], true)
end
end
do
for _, data in next, {"AutoShaman", "AutoNewGame", "AutoTimeLeft", "MortCommand"} do
tfm.exec["disable"..data]()
end
system.disableChatCommandDisplay()
end


Atrasado, mas tá aí kkkkk

Comandos:

  • !alma name#0000 name#0000 - adiciona uma instância de alma, que é gerada quando um mapa é carregado
  • !reset - elimina as almas
  • !map code - inicia um mapa



  • Então, só queria que desse pra colocar uma áreazinha que eu possa colocar aos nps dos mapas que quero deixar rolando, e tem q arrumar pra quando todo mundo morrer acabar o mapa, e diminuir o tempo quando algumas pessoas morre (igual os das salas normais), e se der colocar !skip, mas se for muito, não precisa... :) Obrigada pelo script, dá pra fazer altos eventos kkk <3

    Dernière modification le 1594836420000
    Victorck6
    « Citoyen »
    1594857360000
      • Victorck6#6662
      • Profil
      • Derniers messages
      • Tribu
    #2463
      0
    Alguém pode fazer um script igual ao #micemon só que em 100% português
    Hallonin
    « Consul »
    1594858500000
      • Hallonin#0000
      • Profil
      • Derniers messages
      • Tribu
    #2464
      0
    Eu queria o script do mapa do barco do evento de Pesca esse que está passando agora, quem conseguir esse script por favor me avisa quero muito esse script do barco quem tiver me chama no Transformice /c Hallonin#0000
    Obrigado ❤
    Jp_darkuss
    « Citoyen »
    1594922700000
      • Jp_darkuss#4806
      • Profil
      • Derniers messages
    #2465
      0
    Lightsuit a dit :
    ola,eu queria pedir um script em que tivesse powerups e quando o rato pegasse um powerup ele ganhasse a habilidade de pular alto,ficar pequeno
    ou ganhar velocidade.

    Meu pedido é Possivel de fazer?

    script

    Code Lua

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    local _, adm= pcall(nil)
    adm= adm:match(".-#%d+")
    local x, y= 0, 0
    local count= 0
    local gaming= false
    local started= false
    local locate= {}
    local players= {}
    local tall= function()
    for player, _ in next, players do
    if players[player].isUsing and players[player].powerUp=="small" then
    tfm.exec.changePlayerSize(player, 0.5)
    else
    tfm.exec.changePlayerSize(player, 1)
    end
    end
    end
    local verify= function()
    for player, _ in next, players do
    if players[player].isUsing then
    players[player].count= players[player].count + 500
    if players[player].count>= 10000 then
    players[player].isUsing= false
    players[player].count= 0
    ui.updateTextArea(1, "Enabled: nothing", player)
    end
    end
    end
    end
    local button= function(player)
    for _, data in next, {38, 87} do
    system.bindKeyboard(player, data, true, true)
    end
    system.bindKeyboard(player, 69, false, true)
    end
    local powerUp= function()
    local available= {
    "<p align='center'><b><a href='event:p(jump)'>Super Pulo</a></b></p>",
    "<p align='center'><b><a href='event:p(speed)'>Velocidade</a></b></p>",
    "<p align='center'><b><a href='event:p(small)'>Pequenino</a></b></p>"
    }
    return available[math.random(1, 3)]
    end
    local spawn= function(n)
    for i= 5, n do
    local _x, _y= math.random(20, x), math.random(20, y)
    ui.addTextArea(i, powerUp(), nil, _x, _y)
    locate[i]= {x= _x, y= _y}
    end
    end
    eventKeyboard= function(player, code)
    if (code== 87 or code== 38) and players[player].isUsing and players[player].powerUp=="jump" then
    tfm.exec.movePlayer(player, 0, -80, true, 10, 10)
    elseif code== 69 and players[player].isUsing and players[player].powerUp=="speed" then
    if not tfm.get.room.playerList[player].isFacingRight then
    tfm.exec.movePlayer(player, -80, 0, true, 10, 10)
    else
    tfm.exec.movePlayer(player, 80, 0, true, 10, 10)
    end
    end
    end
    eventNewPlayer= function(player)
    players[player]= {
    powerUp="",
    count= 0,
    isUsing= false
    }
    button(player)
    ui.addTextArea(1, "Enabled: nothing", player, 350, 370, 103)
    end
    eventPopupAnswer= function(id, _, answer)
    if id== 0 then
    x, y= tonumber(answer:match("(%d+) %d+")), tonumber(answer:match("%d+ (%d+)"))
    started= true
    end
    end
    eventLoop= function()
    count= count + 500
    if count>= 15000 and gaming and started then
    count= 0
    spawn(math.random(5, 10))
    end
    verify()
    tall()
    end
    eventTextAreaCallback= function(id, player, callback)
    if callback:match("(p)%(.-%)") then
    local calcular= function()
    local _player= tfm.get.room.playerList[player]
    local distanciaX= ((_player.x> locate[id].x) and (_player.x + 50) - (locate[id].x + 50) or (locate[id].x + 50) - (_player.x + 50))
    local distanciaY= ((_player.y> locate[id].y) and (_player.y + 50) - (locate[id].y + 5) or (locate[id].y + 5) - (_player.y + 50))
    return (distanciaX<= 120 and distanciaY<= 120) and true or false
    end
    if calcular() and gaming then
    p= callback:match("p%((.-)%)")
    players[player].powerUp= p
    players[player].isUsing= true
    players[player].count= 0
    ui.updateTextArea(1, "Enabled: "..players[player].powerUp, player)
    ui.removeTextArea(id, nil)
    end
    elseif callback=="play" then
    ui.updateTextArea(0, "<a href='event:stop'><font color='#FF6666'>Parar</font></a>", adm)
    gaming= true
    elseif callback=="stop" then
    ui.updateTextArea(0, "<a href='event:play'><font color='#66FF66'>Jogar</font></a>", adm)
    gaming= false
    end
    end
    do
    for player, _ in next, tfm.get.room.playerList do
    players[player]= {
    powerUp="",
    count= 0,
    isUsing= false
    }
    ui.addTextArea(1, "Enabled: nothing", player, 350, 370, 103)
    button(player)
    end
    ui.addPopup(0, 2, "Insira as dimensões x e y do seu mapa (como: 600 600): ", adm, 300, 200, 200, true)
    ui.addTextArea(0, "<a href='event:play'><font color='#66FF66'>Jogar</font></a>", adm, 20, 370)
    end


    Indique as dimensões x e y do mapa no início. Para que o jogo rode, também é necessário que tenha apertado o botão "Jogar" (também tem como parar).

    Os power ups são spawnados a cada 15 segundos (são spawnados de 5 a 10 power ups).

    Para pegar os power ups, chegue perto dele e clique no botão. O efeito dura 10 segundos!

  • Efeito de Pulo: teclas W e UpArrow
  • Efeito de Velocidade: tecla E
  • Efeito do Tamanho: automático

  • Dernière modification le 1594922760000
    Lightsuit
    « Citoyen »
    1594993320000
      • Lightsuit#7572
      • Profil
      • Derniers messages
      • Tribu
    #2466
      0
    Jp_darkuss a dit :
    Lightsuit a dit :
    ola,eu queria pedir um script em que tivesse powerups e quando o rato pegasse um powerup ele ganhasse a habilidade de pular alto,ficar pequeno
    ou ganhar velocidade.

    Meu pedido é Possivel de fazer?

    script

    Code Lua

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    local _, adm= pcall(nil)
    adm= adm:match(".-#%d+")
    local x, y= 0, 0
    local count= 0
    local gaming= false
    local started= false
    local locate= {}
    local players= {}
    local tall= function()
    for player, _ in next, players do
    if players[player].isUsing and players[player].powerUp=="small" then
    tfm.exec.changePlayerSize(player, 0.5)
    else
    tfm.exec.changePlayerSize(player, 1)
    end
    end
    end
    local verify= function()
    for player, _ in next, players do
    if players[player].isUsing then
    players[player].count= players[player].count + 500
    if players[player].count>= 10000 then
    players[player].isUsing= false
    players[player].count= 0
    ui.updateTextArea(1, "Enabled: nothing", player)
    end
    end
    end
    end
    local button= function(player)
    for _, data in next, {38, 87} do
    system.bindKeyboard(player, data, true, true)
    end
    system.bindKeyboard(player, 69, false, true)
    end
    local powerUp= function()
    local available= {
    "<p align='center'><b><a href='event:p(jump)'>Super Pulo</a></b></p>",
    "<p align='center'><b><a href='event:p(speed)'>Velocidade</a></b></p>",
    "<p align='center'><b><a href='event:p(small)'>Pequenino</a></b></p>"
    }
    return available[math.random(1, 3)]
    end
    local spawn= function(n)
    for i= 5, n do
    local _x, _y= math.random(20, x), math.random(20, y)
    ui.addTextArea(i, powerUp(), nil, _x, _y)
    locate[i]= {x= _x, y= _y}
    end
    end
    eventKeyboard= function(player, code)
    if (code== 87 or code== 38) and players[player].isUsing and players[player].powerUp=="jump" then
    tfm.exec.movePlayer(player, 0, -80, true, 10, 10)
    elseif code== 69 and players[player].isUsing and players[player].powerUp=="speed" then
    if not tfm.get.room.playerList[player].isFacingRight then
    tfm.exec.movePlayer(player, -80, 0, true, 10, 10)
    else
    tfm.exec.movePlayer(player, 80, 0, true, 10, 10)
    end
    end
    end
    eventNewPlayer= function(player)
    players[player]= {
    powerUp="",
    count= 0,
    isUsing= false
    }
    button(player)
    ui.addTextArea(1, "Enabled: nothing", player, 350, 370, 103)
    end
    eventPopupAnswer= function(id, _, answer)
    if id== 0 then
    x, y= tonumber(answer:match("(%d+) %d+")), tonumber(answer:match("%d+ (%d+)"))
    started= true
    end
    end
    eventLoop= function()
    count= count + 500
    if count>= 15000 and gaming and started then
    count= 0
    spawn(math.random(5, 10))
    end
    verify()
    tall()
    end
    eventTextAreaCallback= function(id, player, callback)
    if callback:match("(p)%(.-%)") then
    local calcular= function()
    local _player= tfm.get.room.playerList[player]
    local distanciaX= ((_player.x> locate[id].x) and (_player.x + 50) - (locate[id].x + 50) or (locate[id].x + 50) - (_player.x + 50))
    local distanciaY= ((_player.y> locate[id].y) and (_player.y + 50) - (locate[id].y + 5) or (locate[id].y + 5) - (_player.y + 50))
    return (distanciaX<= 120 and distanciaY<= 120) and true or false
    end
    if calcular() and gaming then
    p= callback:match("p%((.-)%)")
    players[player].powerUp= p
    players[player].isUsing= true
    players[player].count= 0
    ui.updateTextArea(1, "Enabled: "..players[player].powerUp, player)
    ui.removeTextArea(id, nil)
    end
    elseif callback=="play" then
    ui.updateTextArea(0, "<a href='event:stop'><font color='#FF6666'>Parar</font></a>", adm)
    gaming= true
    elseif callback=="stop" then
    ui.updateTextArea(0, "<a href='event:play'><font color='#66FF66'>Jogar</font></a>", adm)
    gaming= false
    end
    end
    do
    for player, _ in next, tfm.get.room.playerList do
    players[player]= {
    powerUp="",
    count= 0,
    isUsing= false
    }
    ui.addTextArea(1, "Enabled: nothing", player, 350, 370, 103)
    button(player)
    end
    ui.addPopup(0, 2, "Insira as dimensões x e y do seu mapa (como: 600 600): ", adm, 300, 200, 200, true)
    ui.addTextArea(0, "<a href='event:play'><font color='#66FF66'>Jogar</font></a>", adm, 20, 370)
    end


    Indique as dimensões x e y do mapa no início. Para que o jogo rode, também é necessário que tenha apertado o botão "Jogar" (também tem como parar).

    Os power ups são spawnados a cada 15 segundos (são spawnados de 5 a 10 power ups).

    Para pegar os power ups, chegue perto dele e clique no botão. O efeito dura 10 segundos!

  • Efeito de Pulo: teclas W e UpArrow
  • Efeito de Velocidade: tecla E
  • Efeito do Tamanho: automático

  • Obrigado
    Jp_darkuss
    « Citoyen »
    1595002260000
      • Jp_darkuss#4806
      • Profil
      • Derniers messages
    #2467
      0
    Esthergames a dit :
    Jp_darkuss a dit :
    Se não gostar de algo me avisa.

    Esthergames a dit :
    Tô precisando de um script pros dias do namorados...um script que eu selecione os mapas que eu quero, no caso vão ser só de alma gêmea e que eu possa escolher quem vai ser alma de quem nesses mapas e que não tenha sha nos mapas...

    Ex: /alma1 EstherGames#0147 QualquerUm#0000
    /alma2 Você#000 Eu#0183

    Desde já, agradeço!

    Script

    Code Lua

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    local _, adm= pcall(nil)
    adm= adm:match("(.-#%d+)")
    local souls= {}
    eventChatCommand= function(player, command)
    local cmd= {}
    for data in command:gmatch("%S+") do
    table.insert(cmd, data)
    end
    if (player== adm) then
    if (cmd[1]=="alma") then
    table.insert(souls, {cmd[2], cmd[3]})
    elseif (cmd[1]=="map") then
    tfm.exec.newGame(cmd[2])
    elseif (cmd[1]=="reset") then
    souls= {}
    end
    end
    end
    eventNewGame= function()
    for _, data in next, souls do
    tfm.exec.linkMice(data[1], data[2], true)
    end
    end
    do
    for _, data in next, {"AutoShaman", "AutoNewGame", "AutoTimeLeft", "MortCommand"} do
    tfm.exec["disable"..data]()
    end
    system.disableChatCommandDisplay()
    end


    Atrasado, mas tá aí kkkkk

    Comandos:

  • !alma name#0000 name#0000 - adiciona uma instância de alma, que é gerada quando um mapa é carregado
  • !reset - elimina as almas
  • !map code - inicia um mapa



  • Então, só queria que desse pra colocar uma áreazinha que eu possa colocar aos nps dos mapas que quero deixar rolando, e tem q arrumar pra quando todo mundo morrer acabar o mapa, e diminuir o tempo quando algumas pessoas morre (igual os das salas normais), e se der colocar !skip, mas se for muito, não precisa... :) Obrigada pelo script, dá pra fazer altos eventos kkk <3

    Olha aí se melhorou :)


    Code Lua

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    local _, adm= pcall(nil)
    adm= adm:match("(.-#%d+)")
    local openned= true
    local souls= {}
    local maps= {}
    local length= function()
    l= 0
    for _, i in next, maps do
    l= l + 1
    end
    return l
    end
    local generate= function()
    r=""
    for _, data in next, maps do
    r= r.."<p align='left'><a href='event:set("..data.code..")'>-- "..data.name.."</a></p>"
    end
    return r
    end
    eventChatCommand= function(player, command)
    local cmd= {}
    for data in command:gmatch("%S+") do
    table.insert(cmd, data)
    end
    if (player== adm) then
    if (cmd[1]=="alma") then
    table.insert(souls, {cmd[2], cmd[3]})
    elseif (cmd[1]=="reset") then
    souls= {}
    end
    end
    end
    eventTextAreaCallback= function(_, _, callback)
    if (callback=="screen") then
    if (openned) then
    ui.addTextArea(1, "<p align='center'><b><font size='12'>Mapas</font></b></p><br/>"..generate().."<br/><p align='center'><b><a href='event:add'>Adicionar</a></b></p><p align='center'><b><a href='event:remove'>Remover</a></b></p>", adm, 300, 50, 200, 300)
    openned= false
    else
    ui.removeTextArea(1, adm)
    openned= true
    end
    elseif (callback:match("set")) then
    code= callback:match("set%((.-)%)")
    tfm.exec.newGame(code)
    elseif (callback=="add") then
    ui.addPopup(0, 2, "Digite o nome e o código do mapa (exemplo: Natal @627712): ", adm, 300, 200, 200)
    elseif (callback=="remove") then
    ui.addPopup(1, 2, "Digite o nome do mapa para remover: ", adm, 300, 200, 200)
    end
    end
    eventNewGame= function()
    for _, data in next, souls do
    tfm.exec.linkMice(data[1], data[2], true)
    end
    end
    eventPopupAnswer= function(id, _, answer)
    if (id== 0) then
    name, code= answer:match("(.-)%s.+"), answer:match(".-%s(.+)")
    if (length()<= 16) then
    table.insert(maps, {name= name, code= code})
    end
    elseif (id== 1) then
    for pos in ipairs(maps) do
    if (maps[pos].name== answer) then
    table.remove(maps, pos)
    end
    end
    end
    openned= true
    eventTextAreaCallback(nil, nil, "screen")
    end
    do
    for _, data in next, {"AutoShaman", "MortCommand"} do
    tfm.exec["disable"..data]()
    end
    system.disableChatCommandDisplay()
    ui.addTextArea(0, "<a href='event:screen'>Meu mapas</a>", adm, 20, 370)
    end


    Tem como por no máximo 16 mapas na memória, se não acaba passando da tela kkkk

    Ps: rolamento automático? Não tinha visto antes, se sim, responda a mensagem que eu edito.

    Ps2: agora o comando !map tá desabilitado, você usa aba de mapas, para adicionar e remover, e clicando no nome do mapa você o inicia.

    Dernière modification le 1595158020000
    Lightsuit
    « Citoyen »
    1595110980000
      • Lightsuit#7572
      • Profil
      • Derniers messages
      • Tribu
    #2468
      0
    Jp_darkuss a dit :
    Lightsuit a dit :
    ola,eu queria pedir um script em que tivesse powerups e quando o rato pegasse um powerup ele ganhasse a habilidade de pular alto,ficar pequeno
    ou ganhar velocidade.

    Meu pedido é Possivel de fazer?

    script

    Code Lua

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    local _, adm= pcall(nil)
    adm= adm:match(".-#%d+")
    local x, y= 0, 0
    local count= 0
    local gaming= false
    local started= false
    local locate= {}
    local players= {}
    local tall= function()
    for player, _ in next, players do
    if players[player].isUsing and players[player].powerUp=="small" then
    tfm.exec.changePlayerSize(player, 0.5)
    else
    tfm.exec.changePlayerSize(player, 1)
    end
    end
    end
    local verify= function()
    for player, _ in next, players do
    if players[player].isUsing then
    players[player].count= players[player].count + 500
    if players[player].count>= 10000 then
    players[player].isUsing= false
    players[player].count= 0
    ui.updateTextArea(1, "Enabled: nothing", player)
    end
    end
    end
    end
    local button= function(player)
    for _, data in next, {38, 87} do
    system.bindKeyboard(player, data, true, true)
    end
    system.bindKeyboard(player, 69, false, true)
    end
    local powerUp= function()
    local available= {
    "<p align='center'><b><a href='event:p(jump)'>Super Pulo</a></b></p>",
    "<p align='center'><b><a href='event:p(speed)'>Velocidade</a></b></p>",
    "<p align='center'><b><a href='event:p(small)'>Pequenino</a></b></p>"
    }
    return available[math.random(1, 3)]
    end
    local spawn= function(n)
    for i= 5, n do
    local _x, _y= math.random(20, x), math.random(20, y)
    ui.addTextArea(i, powerUp(), nil, _x, _y)
    locate[i]= {x= _x, y= _y}
    end
    end
    eventKeyboard= function(player, code)
    if (code== 87 or code== 38) and players[player].isUsing and players[player].powerUp=="jump" then
    tfm.exec.movePlayer(player, 0, -80, true, 10, 10)
    elseif code== 69 and players[player].isUsing and players[player].powerUp=="speed" then
    if not tfm.get.room.playerList[player].isFacingRight then
    tfm.exec.movePlayer(player, -80, 0, true, 10, 10)
    else
    tfm.exec.movePlayer(player, 80, 0, true, 10, 10)
    end
    end
    end
    eventNewPlayer= function(player)
    players[player]= {
    powerUp="",
    count= 0,
    isUsing= false
    }
    button(player)
    ui.addTextArea(1, "Enabled: nothing", player, 350, 370, 103)
    end
    eventPopupAnswer= function(id, _, answer)
    if id== 0 then
    x, y= tonumber(answer:match("(%d+) %d+")), tonumber(answer:match("%d+ (%d+)"))
    started= true
    end
    end
    eventLoop= function()
    count= count + 500
    if count>= 15000 and gaming and started then
    count= 0
    spawn(math.random(5, 10))
    end
    verify()
    tall()
    end
    eventTextAreaCallback= function(id, player, callback)
    if callback:match("(p)%(.-%)") then
    local calcular= function()
    local _player= tfm.get.room.playerList[player]
    local distanciaX= ((_player.x> locate[id].x) and (_player.x + 50) - (locate[id].x + 50) or (locate[id].x + 50) - (_player.x + 50))
    local distanciaY= ((_player.y> locate[id].y) and (_player.y + 50) - (locate[id].y + 5) or (locate[id].y + 5) - (_player.y + 50))
    return (distanciaX<= 120 and distanciaY<= 120) and true or false
    end
    if calcular() and gaming then
    p= callback:match("p%((.-)%)")
    players[player].powerUp= p
    players[player].isUsing= true
    players[player].count= 0
    ui.updateTextArea(1, "Enabled: "..players[player].powerUp, player)
    ui.removeTextArea(id, nil)
    end
    elseif callback=="play" then
    ui.updateTextArea(0, "<a href='event:stop'><font color='#FF6666'>Parar</font></a>", adm)
    gaming= true
    elseif callback=="stop" then
    ui.updateTextArea(0, "<a href='event:play'><font color='#66FF66'>Jogar</font></a>", adm)
    gaming= false
    end
    end
    do
    for player, _ in next, tfm.get.room.playerList do
    players[player]= {
    powerUp="",
    count= 0,
    isUsing= false
    }
    ui.addTextArea(1, "Enabled: nothing", player, 350, 370, 103)
    button(player)
    end
    ui.addPopup(0, 2, "Insira as dimensões x e y do seu mapa (como: 600 600): ", adm, 300, 200, 200, true)
    ui.addTextArea(0, "<a href='event:play'><font color='#66FF66'>Jogar</font></a>", adm, 20, 370)
    end


    Indique as dimensões x e y do mapa no início. Para que o jogo rode, também é necessário que tenha apertado o botão "Jogar" (também tem como parar).

    Os power ups são spawnados a cada 15 segundos (são spawnados de 5 a 10 power ups).

    Para pegar os power ups, chegue perto dele e clique no botão. O efeito dura 10 segundos!

  • Efeito de Pulo: teclas W e UpArrow
  • Efeito de Velocidade: tecla E
  • Efeito do Tamanho: automático

  • Seu script esta otimo porém só há um problema,quando eu pego o powerup de velocidade o rato as vezes atravessa a parede e fica preso
    a mesma coisa com o pulo alto poderia corrigir isso?
    tirando isso o script está ótimo ta de parabens!
    Player0n3
    « Citoyen »
    1595111460000
      • Player0n3#8370
      • Profil
      • Derniers messages
      • Tribu
    #2469
      0
    Olá, eu gostaria de pedir um bem simples, vocês podem fazer um que tenha como eu selecionar uns mapas, e ter poderes, tipo parkour, so que diferente, pulo duplo e kamehameha
    Player0n3
    « Citoyen »
    1595111520000
      • Player0n3#8370
      • Profil
      • Derniers messages
      • Tribu
    #2470
      0
    Ah e minha foto e fake, vou trocar pra original dps
    Jp_darkuss
    « Citoyen »
    1595164260000
      • Jp_darkuss#4806
      • Profil
      • Derniers messages
    #2471
      0
    Lightsuit a dit :
    Jp_darkuss a dit :
    Lightsuit a dit :
    ola,eu queria pedir um script em que tivesse powerups e quando o rato pegasse um powerup ele ganhasse a habilidade de pular alto,ficar pequeno
    ou ganhar velocidade.

    Meu pedido é Possivel de fazer?

    script

    Code Lua

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    local _, adm= pcall(nil)
    adm= adm:match(".-#%d+")
    local x, y= 0, 0
    local count= 0
    local gaming= false
    local started= false
    local locate= {}
    local players= {}
    local tall= function()
    for player, _ in next, players do
    if players[player].isUsing and players[player].powerUp=="small" then
    tfm.exec.changePlayerSize(player, 0.5)
    else
    tfm.exec.changePlayerSize(player, 1)
    end
    end
    end
    local verify= function()
    for player, _ in next, players do
    if players[player].isUsing then
    players[player].count= players[player].count + 500
    if players[player].count>= 10000 then
    players[player].isUsing= false
    players[player].count= 0
    ui.updateTextArea(1, "Enabled: nothing", player)
    end
    end
    end
    end
    local button= function(player)
    for _, data in next, {38, 87} do
    system.bindKeyboard(player, data, true, true)
    end
    system.bindKeyboard(player, 69, false, true)
    end
    local powerUp= function()
    local available= {
    "<p align='center'><b><a href='event:p(jump)'>Super Pulo</a></b></p>",
    "<p align='center'><b><a href='event:p(speed)'>Velocidade</a></b></p>",
    "<p align='center'><b><a href='event:p(small)'>Pequenino</a></b></p>"
    }
    return available[math.random(1, 3)]
    end
    local spawn= function(n)
    for i= 5, n do
    local _x, _y= math.random(20, x), math.random(20, y)
    ui.addTextArea(i, powerUp(), nil, _x, _y)
    locate[i]= {x= _x, y= _y}
    end
    end
    eventKeyboard= function(player, code)
    if (code== 87 or code== 38) and players[player].isUsing and players[player].powerUp=="jump" then
    tfm.exec.movePlayer(player, 0, -80, true, 10, 10)
    elseif code== 69 and players[player].isUsing and players[player].powerUp=="speed" then
    if not tfm.get.room.playerList[player].isFacingRight then
    tfm.exec.movePlayer(player, -80, 0, true, 10, 10)
    else
    tfm.exec.movePlayer(player, 80, 0, true, 10, 10)
    end
    end
    end
    eventNewPlayer= function(player)
    players[player]= {
    powerUp="",
    count= 0,
    isUsing= false
    }
    button(player)
    ui.addTextArea(1, "Enabled: nothing", player, 350, 370, 103)
    end
    eventPopupAnswer= function(id, _, answer)
    if id== 0 then
    x, y= tonumber(answer:match("(%d+) %d+")), tonumber(answer:match("%d+ (%d+)"))
    started= true
    end
    end
    eventLoop= function()
    count= count + 500
    if count>= 15000 and gaming and started then
    count= 0
    spawn(math.random(5, 10))
    end
    verify()
    tall()
    end
    eventTextAreaCallback= function(id, player, callback)
    if callback:match("(p)%(.-%)") then
    local calcular= function()
    local _player= tfm.get.room.playerList[player]
    local distanciaX= ((_player.x> locate[id].x) and (_player.x + 50) - (locate[id].x + 50) or (locate[id].x + 50) - (_player.x + 50))
    local distanciaY= ((_player.y> locate[id].y) and (_player.y + 50) - (locate[id].y + 5) or (locate[id].y + 5) - (_player.y + 50))
    return (distanciaX<= 120 and distanciaY<= 120) and true or false
    end
    if calcular() and gaming then
    p= callback:match("p%((.-)%)")
    players[player].powerUp= p
    players[player].isUsing= true
    players[player].count= 0
    ui.updateTextArea(1, "Enabled: "..players[player].powerUp, player)
    ui.removeTextArea(id, nil)
    end
    elseif callback=="play" then
    ui.updateTextArea(0, "<a href='event:stop'><font color='#FF6666'>Parar</font></a>", adm)
    gaming= true
    elseif callback=="stop" then
    ui.updateTextArea(0, "<a href='event:play'><font color='#66FF66'>Jogar</font></a>", adm)
    gaming= false
    end
    end
    do
    for player, _ in next, tfm.get.room.playerList do
    players[player]= {
    powerUp="",
    count= 0,
    isUsing= false
    }
    ui.addTextArea(1, "Enabled: nothing", player, 350, 370, 103)
    button(player)
    end
    ui.addPopup(0, 2, "Insira as dimensões x e y do seu mapa (como: 600 600): ", adm, 300, 200, 200, true)
    ui.addTextArea(0, "<a href='event:play'><font color='#66FF66'>Jogar</font></a>", adm, 20, 370)
    end


    Indique as dimensões x e y do mapa no início. Para que o jogo rode, também é necessário que tenha apertado o botão "Jogar" (também tem como parar).

    Os power ups são spawnados a cada 15 segundos (são spawnados de 5 a 10 power ups).

    Para pegar os power ups, chegue perto dele e clique no botão. O efeito dura 10 segundos!

  • Efeito de Pulo: teclas W e UpArrow
  • Efeito de Velocidade: tecla E
  • Efeito do Tamanho: automático

  • Seu script esta otimo porém só há um problema,quando eu pego o powerup de velocidade o rato as vezes atravessa a parede e fica preso
    a mesma coisa com o pulo alto poderia corrigir isso?
    tirando isso o script está ótimo ta de parabens!

    Tem como consertar.

    Na velocidade é só diminuir a força no script (o jogador vai precisar apertar E mais vezes), e no pulo acho que não tem como (posso diminuir que nem a velocidade, e melhorar o sistema, vou ver se consigo melhorar).

    Quando consertar, você verá o novo script editado nessa mensagem...

    Novo script

    Code Lua

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    local _, adm= pcall(nil)
    adm= adm:match(".-#%d+")
    local x, y= 0, 0
    local count= 0
    local gaming= false
    local started= false
    local locate= {}
    local players= {}
    local tall= function()
    for player, _ in next, players do
    if players[player].isUsing and players[player].powerUp=="small" then
    tfm.exec.changePlayerSize(player, 0.5)
    else
    tfm.exec.changePlayerSize(player, 1)
    end
    end
    end
    local verify= function()
    for player, _ in next, players do
    if players[player].isUsing then
    players[player].count= players[player].count + 500
    if players[player].count>= 10000 then
    players[player].isUsing= false
    players[player].count= 0
    ui.updateTextArea(1, "Enabled: nothing", player)
    end
    end
    end
    end
    local button= function(player)
    for _, data in next, {38, 87} do
    system.bindKeyboard(player, data, true, true)
    end
    system.bindKeyboard(player, 69, false, true)
    end
    local powerUp= function()
    local available= {
    "<p align='center'><b><a href='event:p(jump)'>Super Pulo</a></b></p>",
    "<p align='center'><b><a href='event:p(speed)'>Velocidade</a></b></p>",
    "<p align='center'><b><a href='event:p(small)'>Pequenino</a></b></p>"
    }
    return available[math.random(1, 3)]
    end
    local spawn= function(n)
    for i= 5, n do
    local _x, _y= math.random(20, x), math.random(20, y)
    ui.addTextArea(i, powerUp(), nil, _x, _y)
    locate[i]= {x= _x, y= _y}
    end
    end
    eventKeyboard= function(player, code)
    if (code== 87 or code== 38) and players[player].isUsing and players[player].powerUp=="jump" then
    tfm.exec.movePlayer(player, 0, -40, true, 10, 10)
    elseif code== 69 and players[player].isUsing and players[player].powerUp=="speed" then
    if not tfm.get.room.playerList[player].isFacingRight then
    tfm.exec.movePlayer(player, -40, 0, true, 10, 10)
    else
    tfm.exec.movePlayer(player, 40, 0, true, 10, 10)
    end
    end
    end
    eventNewPlayer= function(player)
    players[player]= {
    powerUp="",
    count= 0,
    isUsing= false
    }
    button(player)
    ui.addTextArea(1, "Enabled: nothing", player, 350, 370, 103)
    end
    eventPopupAnswer= function(id, _, answer)
    if id== 0 then
    x, y= tonumber(answer:match("(%d+) %d+")), tonumber(answer:match("%d+ (%d+)"))
    started= true
    end
    end
    eventLoop= function()
    count= count + 500
    if count>= 15000 and gaming and started then
    count= 0
    spawn(math.random(5, 10))
    end
    verify()
    tall()
    end
    eventTextAreaCallback= function(id, player, callback)
    if callback:match("(p)%(.-%)") then
    local calcular= function()
    local _player= tfm.get.room.playerList[player]
    local distanciaX= ((_player.x> locate[id].x) and (_player.x + 50) - (locate[id].x + 50) or (locate[id].x + 50) - (_player.x + 50))
    local distanciaY= ((_player.y> locate[id].y) and (_player.y + 50) - (locate[id].y + 5) or (locate[id].y + 5) - (_player.y + 50))
    return (distanciaX<= 120 and distanciaY<= 120) and true or false
    end
    if calcular() and gaming then
    p= callback:match("p%((.-)%)")
    players[player].powerUp= p
    players[player].isUsing= true
    players[player].count= 0
    ui.updateTextArea(1, "Enabled: "..players[player].powerUp, player)
    ui.removeTextArea(id, nil)
    end
    elseif callback=="play" then
    ui.updateTextArea(0, "<a href='event:stop'><font color='#FF6666'>Parar</font></a>", adm)
    gaming= true
    elseif callback=="stop" then
    ui.updateTextArea(0, "<a href='event:play'><font color='#66FF66'>Jogar</font></a>", adm)
    gaming= false
    end
    end
    do
    for player, _ in next, tfm.get.room.playerList do
    players[player]= {
    powerUp="",
    count= 0,
    isUsing= false
    }
    ui.addTextArea(1, "Enabled: nothing", player, 350, 370, 103)
    button(player)
    end
    ui.addPopup(0, 2, "Insira as dimensões x e y do seu mapa (como: 600 600): ", adm, 300, 200, 200, true)
    ui.addTextArea(0, "<a href='event:play'><font color='#66FF66'>Jogar</font></a>", adm, 20, 370)
    end

    Dernière modification le 1595271480000
    Shiryu
    « Citoyen »
    1596502020000
      • Shiryu#8794
      • Profil
      • Derniers messages
      • Tribu
    #2472
      1
    ser alguem conseguir poderiam tentar fazer um script de fazendinha para me ajudar a entender alguns coisa seria muito daora :) obrigado tipo vc plantar tipo fazendeiro memo ser for dificil d+ obrigado do mesmo jeito por tentarei :)

    Dernière modification le 1596502080000
    Avarito
    « Citoyen »
    1596637440000
      • Avarito#0000
      • Profil
      • Derniers messages
      • Tribu
    #2473
      0
    opa alguém pode me dizer se o tfm.exec.giveTransformations sobrepõe o tfm.exec.changePlayerSize?
    to tentando colocar os dois mas n consigo
    Bolodefchoco
    « Sénateur »
    1596642840000
      • Bolodefchoco#0095
      • Profil
      • Derniers messages
      • Tribu
    #2474
      0
    Avarito a dit :
    opa alguém pode me dizer se o tfm.exec.giveTransformations sobrepõe o tfm.exec.changePlayerSize?
    to tentando colocar os dois mas n consigo

    vc pode por os dois mas o objeto n vai crescer junto
    Lest
    « Citoyen »
    1596730800000
      • Lest#1387
      • Profil
      • Derniers messages
    #2475
      0
    Alguem tem algun scrip De funcorp?
    Avarito
    « Citoyen »
    1596894060000
      • Avarito#0000
      • Profil
      • Derniers messages
      • Tribu
    #2476
      0
    Alguém pode criar um script que rode os mapas p17 e mapas selecionados pelo admin, e que não seja possível usar consumíveis.
    Se possível com um comando para dar skip.
    Obs: já coloquei o local adm= {"Avarito#0000"} na primeira linha
    Desde já agradeço :)

    Dernière modification le 1596894420000
    Lest
    « Citoyen »
    1596919920000
      • Lest#1387
      • Profil
      • Derniers messages
    #2477
      0
    Alguem tem um scrip De meep Se tiver Pode me passa
    Gabriel
    « Citoyen »
    1597187280000
      • Gabriel#2962
      • Profil
      • Derniers messages
      • Tribu
    #2478
      0
    quero aquele de x1 eliminação, e aquele de x1 apenas com burlas pfvr ;-;
    Rody
    « Citoyen »
    1597700520000
      • Rody#2092
      • Profil
      • Derniers messages
    #2479
      0
    MMA, igual aos da Funcorp
    Rody
    « Citoyen »
    1597715280000
      • Rody#2092
      • Profil
      • Derniers messages
    #2480
      0
    Eu queria um script de MMA, igual aos que os FunCorps usa nas salas.
    POR FAVOR.
    • Forums
    • /
    • Transformice
    • /
    • Archives
    • /
    • Seção Editor de Mapas e Modules
    • /
    • [Lua] Peça scripts aqui!
    « ‹ 124 / 133 › »
    © Atelier801 2018

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

    Version 1.27