×

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
  • /
  • FLOODCITY
FLOODCITY
Grth_demon
« Citoyen »
1688228760000
    • Grth_demon#2154
    • Profil
    • Derniers messages
    • Tribu
#1
  0
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
local waterX = -300
local waterY = 865
local waterMaxX = 9999
local waterMaxY = 9999

local vivo = 0

local tempo = 3
local delay = 1

local flood = true
p={}



mapas={7936289}

ui.addTextArea(1,"<font color='#00CC00'> #FloodCity<N> ", nil, 363.1415926548, 53.5, nil, nil, 100, nil, 1.0, true)

function eventLoop()
tfm.exec.addShamanObject(tfm.enum.shamanObject.ball, math.random()*800, 30)
end

function time()
if (tempo > 0) then
if (delay == 0) then
tempo = tempo -1
delay = 1
else
delay = delay -1
end
else
flood = true
atu = true
end
end

function game()
tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAutoShaman(true)
tfm.exec.disableAfkDeath(true)
tfm.exec.newGame(mapas[math.random(#mapas)])
end

game()


function reset()
waterX = -300
waterY = 865
waterMaxX = 9999
waterMaxY = 9999
flood = true
tempo = 3

ui.addTextArea(-1, "", name, waterX, waterY, waterMaxX, waterMaxY, 0x2720F3, 0x0058EF, 1, false)
for i=1,100 do
for all in pairs(tfm.get.room.playerList) do
tfm.exec.respawnPlayer(all)
end
end
end


eventPlayerDied = function()
vivo = vivo -1
if (vivo <= 0) then
game()
reset()
end
end

eventNewGame = function()
for name, player in pairs(tfm.get.room.playerList) do
vivo = vivo +1
end
ui.setMapName('<VP><B> Flood City!</font>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t')
end


function almWater()
waterY = waterY -4
waterMaxY = waterMaxY +4
end

function atualizaTextArea()
ui.addTextArea(-1, "", name, waterX, waterY, waterMaxX, waterMaxY, 0x2720F3, 0x0058EF, 1, false)
end

eventPlayerWon = function()
vivo = vivo -1
if (vivo <= 0) then
game()
reset()
end
end

function kill()
for k, v in pairs(tfm.get.room.playerList) do
if (v.y >= waterY) then
tfm.exec.killPlayer(k)
end
end
end

function veri()
if (flood == true) then
almWater()
end
end

eventLoop = function()
time()
kill()
atualizaTextArea()
veri()
end
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • FLOODCITY
© Atelier801 2018

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

Version 1.27