×

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!
« ‹ 106 / 133 › »
[Lua] Peça scripts aqui!
Infectsoul
1564344180000
    • Infectsoul#2048
    • Profil
    • Derniers messages
    • Tribu
#2101
[Modéré par Kiwrimai, raison : Removido a pedido do autor.]

Dernière modification le 1575919680000
Sterelized
« Citoyen »
1564407900000
    • Sterelized#0000
    • Profil
    • Derniers messages
#2102
  0
Script para deixar o rato com o pulo igual o do hack PULO ALTO (animação diferente)
Sterelized
« Citoyen »
1564412580000
    • Sterelized#0000
    • Profil
    • Derniers messages
#2103
  0
Script de votação para players na sala escolherem entre 3 coisas e eu saber no final em qual foi mais votado.
Bloonshack
« Sénateur »
1564417920000
    • Bloonshack#0000
    • Profil
    • Derniers messages
#2104
  0
Tem como fazer o modo noite (ou algo semelhante) apenas pra um player especifico?
Fly
« Citoyen »
1564436460000
    • Fly#8215
    • Profil
    • Derniers messages
    • Tribu
#2105
  0
Sterelized a dit :
Script de votação para players na sala escolherem entre 3 coisas e eu saber no final em qual foi mais votado.

^
script feito e enviado por mp
Infectsoul
1564437840000
    • Infectsoul#2048
    • Profil
    • Derniers messages
    • Tribu
#2106
[Modéré par Kiwrimai, raison : Removido a pedido do autor.]

Dernière modification le 1575919680000
Nandinhapda
« Citoyen »
1564447860000
    • Nandinhapda#0000
    • Profil
    • Derniers messages
#2107
  1
É possível a criação de um script de corrida de perguntas?
Exemplo: O antigo Breno00perguntas
Infectsoul
1564449060000
    • Infectsoul#2048
    • Profil
    • Derniers messages
    • Tribu
#2108
[Modéré par Kiwrimai, raison : Removido a pedido do autor.]

Dernière modification le 1575919680000
Lelelwyn
« Citoyen »
1564524900000
    • Lelelwyn#6937
    • Profil
    • Derniers messages
    • Tribu
#2109
  0
Ratufufu a dit :
Nandinhapda a dit :
É possível a criação de um script de corrida de perguntas?
Exemplo: O antigo Breno00perguntas

https://atelier801.com/topic?f=6&t=843865&p=80#m1583

É possível escolher o shaman ao enves de automático? Onde?
Nandinhapda
« Citoyen »
1564528080000
    • Nandinhapda#0000
    • Profil
    • Derniers messages
#2110
  1
Ratufufu a dit :
Nandinhapda a dit :
É possível a criação de um script de corrida de perguntas?
Exemplo: O antigo Breno00perguntas

https://atelier801.com/topic?f=6&t=843865&p=80#m1583

É possível escolher o shaman, no lugar de automático ?
Sabrinabot
« Citoyen »
1564537140000
    • Sabrinabot#9481
    • Profil
    • Derniers messages
    • Tribu
#2111
  0
Lelelwyn a dit :
Ratufufu a dit :
Nandinhapda a dit :
É possível a criação de um script de corrida de perguntas?
Exemplo: O antigo Breno00perguntas

https://atelier801.com/topic?f=6&t=843865&p=80#m1583

É possível escolher o shaman ao enves de automático? Onde?

Nandinhapda a dit :
Ratufufu a dit :
Nandinhapda a dit :
É possível a criação de um script de corrida de perguntas?
Exemplo: O antigo Breno00perguntas

https://atelier801.com/topic?f=6&t=843865&p=80#m1583

É possível escolher o shaman, no lugar de automático ?

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
 for _, k in next, {'AutoShaman','AutoNewGame','AutoTimeLeft','PhysicalConsumables','AfkDeath','AutoScore','MortCommand'} do
tfm.exec['disable' .. k]()
end

local player = {}
_, nickname = pcall("SeuNome#SuaHashtag")
local admin = string.match(nickname, "(.-)%.")

eventNewPlayer = function(name)
player[name] = {0,0}
tfm.exec.respawnPlayer(name)
end
table.foreach(tfm.get.room.playerList, eventNewPlayer)

eventPlayerLeft = function(name)
player[name] = nil
end

eventNewGame = function()
textBox()
tfm.exec.setGameTime(60,true)
local answer,answerButton = nil
for k,v in next, player do player[k][2] = 0 if k ~= chosen then tfm.exec.setNameColor(k,'0xC2C2DA') end end
end

memberProfiles = {nickname = "Sla#3700"}
valid = function(x)
x = string.gsub(string.lower(x), "%a", string.upper, 1)

local pattern = "^[%+%a][%w_]+#%d%d%d%d$"
for k, v in next, memberProfiles do
if v.nickname == x then
return false
end
end

return string.find(x, pattern), x
end


eventChatCommand = function(name,cmd)
local arg = {}
for i in string.gmatch(cmd, "[^" .. (s or "%s") .. "]+") do
arg[#arg + 1] = i
end
local c = arg[1]:lower()
if c == 'q' and name == chosen then ui.addPopup (1,2,'Escolha a pergunta:',name,300,150,200,false)
elseif c == 'skip' and name == chosen then tfm.exec.newGame('@7517543')
elseif (admin) and arg[2] and c == "sha" then
selection(arg[2])
end
end

eventPopupAnswer = function(id,name,r)
if id == 1 then ui.updateTextArea(7,'<p align="center"><font size="14"><b>'..r..'</b></font><p>')
ui.addPopup (2,2,'Escolha a resposta:',name,300,150,200,false)
elseif id == 2 then answer,answerButton = r:lower(),true tfm.exec.setGameTime(60,true) ui.updateTextArea(8,'<b>Podem responder!</b>') end
end

eventChatMessage = function(name,m)
if answerButton and name ~= chosen and m:lower() == answer then
answer,answerButton = nil
player[name] = {player[name][1] + 1, player[name][2] + 1}
tfm.exec.movePlayer(name,420 + (200 * player[name][2]),324) tfm.exec.setGameTime(60,true)
ui.updateTextArea(8,'<b>Aguardando o shaman!</b>')
if player[name][2] >= 5 then tfm.exec.newGame('@7517543') player[name][1] = player[name][1] + 3 end
end
end

textBox = function()
ui.addTextArea (1,'<font size="24" color="#2ecf73"><b> 1 2 3 4 5</b></font>',nil,600,180,1000,40,nil,nil,0,false)
ui.addTextArea (2,'',nil,20,30,760,50,'0x66402d','0x66402d',1,true)
ui.addTextArea (3,'',nil,21,31,758,48,'0x8a583c','0x8a583c',1,true)
ui.addTextArea (4,'',nil,23,33,754,44,'0x0d191b','0x0d191b',1,true)
ui.addTextArea (5,'',nil,25,35,750,40,'0x2d5a61','0x2d5a61',1,true)
ui.addTextArea (6,'',nil,25,36,750,38,'0x142b2e','0x142b2e',1,true)
ui.addTextArea (7,'<p align="center"><font size="14"><b>Aguardando pergunta...</b></font><p>',nil,25,36,750,38,nil,nil,0,true)
ui.addTextArea (8,'<b>Aguardando o shaman!</b>',nil,5,380,160,30,'0x243b4d','0x0e232c',1,true)
end

selection = function(k)
l = valid(k)
if l == 1 then
chosen = k
tfm.exec.setGameTime(60,true)
tfm.exec.killPlayer (chosen)
player[chosen][1] = 0 tfm.exec.setNameColor(chosen,'0xCB546B') ui.setShamanName(chosen)
end
end

eventLoop = function(tA,tR)
if tR < 0 then tfm.exec.newGame('@7517543') end
end

tfm.exec.newGame('@7517543')

words = {'q','skip','sha'}
for i = 1 , #words do
system.disableChatCommandDisplay (words[i])
print(words[i])
end

Mude a Linha 6 para seu nome e Digite !sha NomeDaPessoa#SeuNumero , para escolher a pessoa.
Victorck6
« Citoyen »
1564585380000
    • Victorck6#6662
    • Profil
    • Derniers messages
    • Tribu
#2112
  0
Quero um script que os ratos emitem o que eu faço.

Pra onde eu ir eles irem tambem
Victorck6
« Citoyen »
1564586160000
    • Victorck6#6662
    • Profil
    • Derniers messages
    • Tribu
#2113
  0
Tem tutoria ensinando como faz script? quero aprender
Infectsoul
1564587780000
    • Infectsoul#2048
    • Profil
    • Derniers messages
    • Tribu
#2114
[Modéré par Kiwrimai, raison : Removido a pedido do autor.]

Dernière modification le 1575919680000
Lelelwyn
« Citoyen »
1564590360000
    • Lelelwyn#6937
    • Profil
    • Derniers messages
    • Tribu
#2115
  0
Sabrinabot a dit :
Mude a Linha 6 para seu nome e Digite !sha NomeDaPessoa#SeuNumero , para escolher a pessoa.


Não esta funcionando...
Tem também como cada casa passada contar como 1 ponto pra jogadora que passou?
Victorck6
« Citoyen »
1564591200000
    • Victorck6#6662
    • Profil
    • Derniers messages
    • Tribu
#2116
  0
Ratufufu a dit :
Victorck6 a dit :
Quero um script que os ratos emitem o que eu faço.

Pra onde eu ir eles irem tambem

Aqui!
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
-------------------- System --------------------	

Isso bugou o cafofo

_, nickname = pcall(nil)
local admin = string.match(nickname, "(.-)%.")

for _, v in next, {'AutoShaman', 'AutoNewGame', 'AutoTimeLeft','AfkDeath'} do
tfm.exec['disable' .. v]()
end

system.disableChatCommandDisplay()

for _,keys in next, {0,1,2,3} do system.bindKeyboard(admin,keys,true,true) system.bindKeyboard(admin,keys,false,true) end

------------------------------------------------

local left,right,up,down

local force = 1

local period = 0

eventLoop = function()
period = (period + 1.9)
for name,value in next, tfm.get.room.playerList do
if name ~= admin then
tfm.exec.movePlayer(name,0,0,true,(right and force or left and -force or 0),(up and not tfm.get.room.playerList[admin].isJumping and (-force - 2) or down and force or 0),true)
end
end
if period >= 2 then period = (period - 2) eventLoop() end
end

eventEmotePlayed = function(name,norm,add)
if name == admin then
for name,value in next, tfm.get.room.playerList do if name ~= admin then tfm.exec.playEmote(name,norm,add) end end
end
end

eventKeyboard = function(name,key,press,x,y)
if key == 0 then left = press end
if key == 1 then up = press end
if key == 2 then right = press end
if key == 3 then down = press end
eventLoop()
end

Victorck6 a dit :
Tem tutoria ensinando como faz script? quero aprender

Aprendendo a programar
[Oficial] Module FAQ + Documentação Lua
Victorck6
« Citoyen »
1564591260000
    • Victorck6#6662
    • Profil
    • Derniers messages
    • Tribu
#2117
  0
Esse script bugou o cafofo
Infectsoul
1564596720000
    • Infectsoul#2048
    • Profil
    • Derniers messages
    • Tribu
#2118
[Modéré par Kiwrimai, raison : Removido a pedido do autor.]

Dernière modification le 1575919680000
Birb
« Citoyen »
1564610520000
    • Birb#2837
    • Profil
    • Derniers messages
#2119
  0
e como é que se faz um map do module?
Natsmiro
« Citoyen »
1565449860000
    • Natsmiro#0000
    • Profil
    • Derniers messages
    • Tribu
#2120
  0
Birb a dit :
e como é que se faz um map do module?

pode dar mais detalhes?
  • Forums
  • /
  • Transformice
  • /
  • Archives
  • /
  • Seção Editor de Mapas e Modules
  • /
  • [Lua] Peça scripts aqui!
« ‹ 106 / 133 › »
© Atelier801 2018

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

Version 1.27