×

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
  • /
  • Modules
  • /
  • [Minigame] #AcidDeatch
[Minigame] #AcidDeatch
Gabriel
« Citoyen »
1632261480000
    • Gabriel#8201
    • Profil
    • Derniers messages
    • Tribu
#1
  0

#AcidDeatch


#AcidDeath
è um mini game que eu inventei em 2021, E hoje dia 07/12/2022 eu navegando pelo forum até que achei ele haha
fui testar ele e vi que não estava funcionando, então fui atualizar ele agora ele está funcionando denovo, não acredito que ele ficou no forum por quase 2 anos sem está funcionando, é claro que hoje em dia estou mas experiente em script do que antes né, mas ta ai o script

Atualização:

- Bug Corrigido


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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
tfm.exec.disableAutoShaman(true)
tfm.exec.disableAutoScore(true)
tfm.exec.disableMinimalistMode(true)
tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAfkDeath(true)
tfm.exec.setNameColor("Gabriel#8201", 0xF70500)
tfm.exec.setNameColor("Sklag#2552", 0xF70500)
system.disableChatCommandDisplay(startcode1, admcomand, close, desactive, scoremax, esconder)
tfm.exec.disableMortCommand(true)
tfm.exec.setGameTime(1000000, true)
tfm.exec.setRoomMaxPlayers(50)
tfm.exec.newGame('<C><P L="1500" F="0" /><Z><S><S X="750" L="1500" Y="386" H="30" P="0,0,0.3,0.2,0,0,0,0" T="6" /></S><D /><O /></Z></C>')

tfm.exec.chatMessage('<ROSE>[Servidor] Aperte espaço para atira nos outros ratos tome cuidado os tiros tem limites a cada tiro que uma pessoa da se aplica para todos da equipe')

despawnTime = 1500
fireDelay = 10000
offsetX = 0
offsetY = 0
---------------------------------

keys = {0,2,32}
_left = 0
_right = 2

facingLeft = {}
toDespawn = {}
fireTS = {}

function main()
for n in pairs(tfm.get.room.playerList) do
eventNewPlayer(n)
end
end

function eventNewPlayer(name)
facingLeft[name] = false
fireTS[name] = 0

for _,k in pairs(keys) do
system.bindKeyboard(name, k, true)
end
end

function eventLoop(t, tr)
for i,o in ipairs(toDespawn) do
if os.time() > o[2] + despawnTime then
tfm.exec.removeObject (o[1])
table.remove (toDespawn, i)
end
end
end

function eventKeyboard(name, key, down, px, py)
if key == _left then
facingLeft[name] = true

elseif key == _right then
facingLeft[name] = false

elseif key==32 and os.time() > fireTS[name] + fireDelay then
fireTS[name] = os.time()
local dx,a,id
if facingLeft[name] then
dx,dy,a = -30,0,-90
else
dx,dy,a = 30,0,90
end
id = tfm.exec.addShamanObject(17, px+dx+offsetX, py+offsetY, a)
tfm.exec.chatMessage('<ROSE>[CANHÃO BRAVÃO] Tiros disponiveis para todos os ratos: '..tiros)
print('Tiros disponiveis para todos os ratos: '..tiros)
tiros = tiros -1
table.insert(toDespawn, {id, os.time()})
end
end

main()

players = {}
jogadores = 1
tempo = 15
win = 0
recarrega = 15
tempfim = 0
tiros = 30
wait = 10
round = 1
mortes = 0


eventLoop = function()
ui.setShamanName('<ROSE>Mortes: '..mortes..'</ROSE> ||| <N2> Total de players na sala: '..jogadores)
ui.setMapName("<ROSE>Round: "..round)
tempo = tempo -1
ui.updateTextArea(1, "<font size='35'>"..tempo, nil)
if tempo == 0 then
ui.removeTextArea(1, nil)
tfm.exec.addPhysicObject(1, 750, 386, {

type = 19,
width = 1500,
height = 30,

})
tempo = 25
elseif wait == 1 then
tfm.exec.newGame('<C><P L="1500" F="0" /><Z><S><S X="750" L="1500" Y="386" H="30" P="0,0,0.3,0.2,0,0,0,0" T="6" /></S><D /><O /></Z></C>')
elseif recarrega == 31 then
recarrega = 30
elseif recarrega == 0 then
recarrega = recarrega +1
tfm.exec.chatMessage('<ROSE>[Servidor] +1 tiro vocês ganharão 1 TIRO :D')
elseif tiros == 0 then
tiros = 1
print('<ROSE>[Servidor] Os tiros acabou ;c: '..tiros)
tfm.exec.chatMessage('<ROSE>[Servidor] Os tiros acabou ;c')
tfm.exec.removeObject(id)
elseif tempo == 16 then
ui.addTextArea(1, "<font size='35'>"..tempo, nil, 400, 200, nil, nil, 0x5C5C5C, 0xf, 1, true)
tfm.exec.addPhysicObject(1, 750, 386, {

type = 6,
width = 1500,
height = 30,

})
elseif round == 15 then
round = 0
mortes = 0
tfm.exec.chatMessage('<ROSE> Placa reiniciado')
elseif tempo == 5 then
caixa1=tfm.exec.addShamanObject(1, 60, 358, 0, 0, 0, false)
caixa2=tfm.exec.addShamanObject(1, 458, 355, 0, 0, 0, false)
caixa3=tfm.exec.addShamanObject(1, 816, 355, 0, 0, 0, false)
caixa4=tfm.exec.addShamanObject(1, 1172, 355, 0, 0, 0, false)
caixa5=tfm.exec.addShamanObject(29, 458, 355, 0, 0, 0, false)
caixa11=tfm.exec.addShamanObject(29, 748, 372, 0, 0, 0, false)
caixa12=tfm.exec.addShamanObject(29, 470, 375, 0, 0, 0, false)
caixa13=tfm.exec.addShamanObject(29, 115, 370, 0, 0, 0, false)
caixa6=tfm.exec.addShamanObject(34, 816, 355, 0, 0, 0, false)
caixa7=tfm.exec.addShamanObject(29, 1172, 355, 0, 0, 0, false)
elseif tempo == 15 then
tfm.exec.removeObject(caixa11)
tfm.exec.removeObject(caixa12)
tfm.exec.removeObject(caixa13)
tfm.exec.removeObject(caixa1)
tfm.exec.removeObject(caixa2)
tfm.exec.removeObject(caixa3)
tfm.exec.removeObject(caixa4)
tfm.exec.removeObject(caixa5)
tfm.exec.removeObject(caixa6)
tfm.exec.removeObject(caixa7)
table.foreach(tfm.get.room.playerList,tfm.exec.giveMeep)
table.foreach(tfm.get.room.playerList,tfm.exec.giveCheese)
table.foreach(tfm.get.room.playerList,tfm.exec.respawnPlayer)
end
end
ui.addTextArea(1, "<font size='35'>"..tempo, nil, 400, 200, nil, nil, 0x5C5C5C, 0xf, 1, true)

function eventPlayerDied(name)
mortes = mortes +1
local i=0
local n
for pname,player in pairs(tfm.get.room.playerList) do
if not player.isDead then
i=i+1
n=pname
end
end
if i==1 then
wait = wait +1
round = round +1
tfm.exec.giveCheese(n)
tfm.exec.playerVictory(n)
tfm.exec.chatMessage('<ROSE> Restart')
end
end





eventNewPlayer = function()
jogadores = jogadores +1
end

eventPlayerLeft = function()
jogadores = jogadores -1
end

Dernière modification le 1670392320000
Sklag
1632281220000
    • Sklag#2552
    • Profil
    • Derniers messages
    • Tribu
#2
[Modéré par Bolodefchoco, raison : spam]

Dernière modification le 1632457440000
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • [Minigame] #AcidDeatch
© Atelier801 2018

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

Version 1.27