View difference between Paste ID: MLhmWjrT and brr4zkYf
SHOW: | | - or go back to the newest paste.
1-
--[[ Script contendo o module #anvilwar, #mestre, #falltest e #true_false. Compilado às 16h21 (UTC) 12/11/2018. ]]--
1+
--[[ Script contendo o module #anvilwar, #mestre, #pistas e #true_false. Compilado às 17h46 (UTC) 17/11/2018. ]]--
2
3
local modulo = {
4
	_NOME = "anvilwar",
5-
	_VERSION = "1.21",
5+
	_VERSION = "1.22",
6
	_AUTHOR = "Jessiewind26#2546"
7
}
8
9
system.disableChatCommandDisplay("pw")
10
11
active = ""
12
admin = ""
13
14
roomAdmin = function()
15
	for name,player in pairs(tfm.get.room.playerList) do
16
		if string.find(tfm.get.room.name,name) then
17
			admin=name
18
		else
19
			admin="Jessiewind26#2546"
20
		end
21
	end
22
end
23
24
initAnvilwar = function()
25
for _,f in next,{"AutoShaman","AutoScore","AutoNewGame","AutoTimeLeft","PhysicalConsumables","DebugCommand","AfkDeath"} do
26
	tfm.exec["disable"..f](true)
27
end
28
tfm.exec.setRoomMaxPlayers(35)
29
powerups={double=false,chuva=false,count=0,choosed="",bomba=false,objeto=false,explosion=false,triple=false,selective=false,r_azul=false,r_vermelho=false,multiple=false,multi_count=0}
30
play_azul={}
31
players_table={}
32
objetos={1,2,3,4,6,7,10,23,28,29,30,31,32,33,34,35,39,40,45,46,54,59,60,61,62,65,67,68,69,80,89,90,95,201,202,203,301,302,303,401,402,403,601,604,2806}
33
caps={azul="",vermelho=""}
34
play_vermelho={}
35
avs_list={}
36
mods_list={}
37
managers_list={"Nasus_assassin#1534","Jarvanfender#0000"}
38
admins_list={"Jessiewind26#2546","Zed#9431"}
39-
level6_list={"Varusofeyzan#0000","Forzaldenon#0000"}
39+
level6_list={"Varusofeyzan#0000","Forzaldenon#0000","Skyrectarrow#0000"}
40
scoreloop=0
41
sudden_death=false
42
local temp_name=""
43
local temp_name2=""
44
local temp_name3=""
45
local skips=0
46
actual_player=""
47
tempo=0
48
players=0
49
time_limit=10
50
team=1
51
kills=0
52
data={}
53
ratos=0
54
loop=8
55
power=5
56
valendo=false
57
anvil_launched=false
58
set=false
59
object=10
60
set_name=""
61
reset=false
62
count=0
63
count_azul=0
64
count_vermelho=0
65
for _,f in next,{"help","powerups","set","tc","p","rank","data_score","score","kill","tt","rv","cap","cmd","acmd","ban","unban","skip","rodar"} do
66
	system.disableChatCommandDisplay(f)
67
end
68
anvils={10,1002,1003,1004,1005}
69
mapas={"@7467262","@7463118","@7436867","@7412348","@7467977","@7470456","@7480017","@7433435","@7483583","@7485139","@7485233","@7486518","@7486596","@7486946","@7487828","@7488212","@7487008","@7493478","@7493568","@7375714","@7495501","@7495286","@7495744","@7497388","@7499355","@7501996","@7511352","@7522536","@7522330"}
70
lang = {}
71
lang.br = {
72
	win_vermelho = "<R><b>GG Time Vermelho!</b><br>A próxima partida será iniciada em 15 segundos.",
73
	win_azul = "<BL><b>GG Time Azul!</b><br>A próxima partida será iniciada em 15 segundos.",
74
	sudden_death = "<VP><b>Morte Súbita!</b><br>A equipe que conseguir eliminar qualquer um adversário será declarada a vencedora.",
75
	empate_text = "<J><b>Houve um empate!</b><br>A próxima partida será iniciada em 15 segundos.",
76
	instructions = "Use as teclas de 1 a 9 para alterar a potência da bigorna e barra de espaço para atirar. Para ajuda digite !help. Para ver poderes especiais digite !powerups.",
77
	turn = "<VP>É a vez de",
78
	timeout = "<J>Tempo esgotado! O atirador será alterado.",
79
	enter_vermelho = "Entrar no time vermelho",
80
	enter_azul = "Entrar no time azul",
81
	exit = "Sair do time",
82
	double = "acionou o powerup Bigorna Dupla!",
83
	double2 = "<br>Neste powerup, você atira 2 bigornas de uma vez.",
84
	triple = "acionou o powerup Bigorna Tripla!",
85
	triple2 = "<br>Neste powerup, você atira 3 bigornas de uma vez.",
86
	bomba1 = "acionou o powerup Bomba Relógio!",
87
	bomba2 = "<br>Neste powerup, uma explosão em um lugar aleatório do time adversário ocorrerá.",
88
	objeto1 = "acionou o powerup Tiro Aleatório!",
89
	objeto2 = "<br>Neste powerup, ao pressionar a barra de espaço, você vai atirar um objeto aleatório de shaman. Caso você tenha usado a habilidade Bigorna Dupla, você irá atirar 2 objetos ao invés de um.",
90
	exp1 = "acionou o powerup Olha a Explosão!",
91
	exp2 = "<br>Neste powerup, você pode gerar uma explosão clicando em um local do time inimigo.<br>Você possui 5 segundos para explodir!",
92
	chuva1 = "acionou o powerup Chuva de Objetos!",
93
	chuva2 = "<br>Neste powerup, ao atirar uma bigorna, irão aparecer diversos objetos continuamente até a troca de jogador.",
94
	fly1 = "acionou o powerup Rato Pequeno!",
95
	fly2 = "<br>Neste powerup, seu rato diminuirá 50% de tamanho. Esta habilidade só pode ser usada uma vez por jogador.",
96
	inv1 = "acionou o powerup Modo Imortal!",
97
	inv2 = "<br>Neste powerup, você ficará imortal durante 4 turnos do seu time. Esta habilidade só pode ser utilizada uma vez por partida.",
98
	inv3 = "Sua habilidade Modo Imortal expirou.",
99
	invi1 = "acionou o powerup Lançamento Múltiplo!",
100
	invi2 = "<br>Neste powerup, você pode atirar 3 bigornas em seu turno.<br>Este powerup não pode ser usado com as bigornas duplas e triplas.",
101
	selec1 = "acionou o powerup Objeto Seletivo!",
102
	selec2 = "<br>Neste powerup, você pode escolher um objeto para atirar ao invés de uma bigorna. Os preços variam de acordo com o objeto selecionado.",
103
	bar = "#anvilwar - Compilação RTM 7442.077",
104
	intensity = "Intensidade",
105
	your_turn = "<J>É a sua vez de jogar. Pressione ESPAÇO para atirar e use as teclas de 1 a 9 para alterar a potência da bigorna. Use as teclas F1 a F10 para usar poderes especiais.",
106
	help = "Pressione ESPAÇO para atirar e use as teclas de 1 a 9 para alterar a potência da bigorna. Use as teclas de F1 a F10 para usar poderes especiais (para saber quais são, digite !powerups). A equipe que conseguir eliminar todos do time adversário vencerá a partida.<br><br>Digite !cmd para ver todos os comandos do jogo.<br><br><b>Créditos:</b><br>Desenvolvimento: Jessiewind26#2546 e Zed#9431<br>Powerups: Jhinsword350#0000 e Vidaloka9999#0000<br>Tradução: Nasus_assassin#1534 (EN), Alexsaky#7307 + Vigo#4765 (AR), Dejavu#2242 (ES) e Puiguirata#0000 (DE)",
107
	teamkill1 = "Oh não! ",
108
	teamKill2 = "matou um companheiro de equipe",
109
	ajuda = "Ajuda",
110
	credits = "Créditos",
111
	mostrar = "Mostrar",
112
	seconds = "<ROSE>Faltam 60 segundos!",
113
	seconds30 = "<ROSE>Faltam 30 segundos!",
114
	seconds10 = "<ROSE>Faltam 10 segundos!",
115
	powerups1 = "F1 = Bigorna Dupla<br>F2 = Bigorna Tripla<br>F3 = Bomba Relógio<br>F4 = Tiro Aleatório<br>F5 = Olha a Explosão<br>F6 = Chuva de Objetos<br>F7 = Rato Pequeno<br>F8 = Modo Imortal<br>F9 = Lançamento Múltiplo<br>F10 = Objeto Seletivo",
116
	powerups2 = "6pts<br>12pts<br>5pts<br>6pts<br>12pts<br>15pts<br>15pts<br>20pts<br>10pts<br>5pts",
117
	powerups3 = "<a href='event:power1'>Mostrar</a><br><a href='event:power2'>Mostrar</a><br><a href='event:power3'>Mostrar</a><br><a href='event:power4'>Mostrar</a><br><a href='event:power5'>Mostrar</a><br><a href='event:power6'>Mostrar</a><br><a href='event:power7'>Mostrar</a><br><a href='event:power8'>Mostrar</a><br><a href='event:power9'>Mostrar</a><br><a href='event:power10'>Mostrar</a>",
118
	powerups4 = "1<br>2<br>2<br>2<br>3<br>4<br>3<br>5<br>4<br>3",
119
	teamchat = "<J>Você pode usar o comando !tc [mensagem] para falar apenas com o seu time.<br><br>Você pode ver seu perfil no jogo digitando !p e o ranking temporário digitando !rank.",
120
	menu_bar = "<p align='center'><a href='event:help'>Ajuda</a>  |  <a href='event:powerups'>Powerups</a>  |  <a href='event:profile'>Perfil</a>  |  <a href='event:ranking'>Ranking</a>  |  <a href='event:cap'>Capitão</a>  |  <a href='event:cmd'>Comandos</a>",
121
	powerupslist = "Lista de Poderes",
122
	profile = "Use o comando !p para ver o seu perfil. Use !p [nome] para ver o perfil de outra pessoa.",
123
	starting = "<VP>A partida está prestes a começar. Preparem-se!",
124
	suicide = "O seguinte jogador cometeu suicídio: ",
125
	ban = " foi banido da sala #anvilwar por ",
126
	unban = " teve seu banimento removido da sala.",
127
	caps = " foi escolhido para ser o capitão da equipe.",
128
	cap = "Este tipo de jogador (escolhido aleatoriamente) receberá 50% a mais de pontuação que os outros e poderá transferir seus pontos para outro jogador de sua equipe usando o comando !tt [nome].<br>Você também poderá utilizar o comando !rv [nome] para reviver UM membro morto de sua equipe.",
129
	cap_text = "<br><VP>Você é o capitão da sua equipe.<br><br>Você irá receber 50% mais pontos por tempo vivo e poderá transferir pontos para outros jogadores usando o comando !tt [nome].<br>Você também poderá utilizar o comando !rv [nome] para reviver UM membro morto de sua equipe.",
130
	score30 = "<R>Você precisa de 30 pontos para usar isto.",
131
	advanced = "<VP>Você acaba de avançar para o nível ",
132
	tag_text = "<J>Não se esqueça de colocar a #tag no final do nome desejado! Caso contrário, o comando não irá funcionar!",
133
	revivetext = "<J>O seguinte jogador reviveu: ",
134
	yturn = "É a vez de: ",
135
	level_error = "<R>Você não possível nível suficiente para usar isto.",
136
	funct = "Função não permitida. (Você colocou a #tag no nome?)",
137
	cmds = "Comandos do Jogo",
138
	commands = "• !help = Exibe as instruções de como jogar.<br>• !p [jogador] = Exibe o perfil do jogador escolhido. Digite !p sem argumentos para ver o seu perfil.<br>• !rank = Exibe o ranking temporário de quem está na sala.<br>• !tc [mensagem] = Fala apenas com os jogadores do seu time.<br>• !skip = Envia um voto para pular o mapa atual. Este comando só pode ser usado quando a partida ainda não tiver começado.<br><ROSE>* <N>!rv [jogador] = Revive um jogador morto de sua equipe.<br><ROSE>* <N>!tt [jogador] = Transfere seus pontos para outro jogador<br><br>Os comandos marcados com <ROSE>* <N>são de uso exclusivo do capitão da equipe. Para saber mais sobre isso, digite !cap.",
139
	admin_commands = "<BL>• <N>!skip = Pula o mapa atual.<br><BL>• <N>!pw [texto] = Adiciona uma senha na sala.<br><BL>• <N>!rodar [mapa] = Executa o mapa especificado.<br><J>• <N>!kill [nome] = Mata o jogador especificado.<br><R>• <N>!limit [número] = Limita a quantidade de ratos na sala.<br><br>Você só pode usar os comandos correspondentes a cor do seu nome.<br><br>Por motivos de segurança e estabilidade, nem todos os comandos especiais foram adicionados aqui.",
140
	playingmap = "Rodando mapa",
141
	created = "criado por"
142
}
143
lang.en = {
144
	win_vermelho = "<R><b>The RED team wins!</b><br>The next match will start in 15 seconds.",
145
	win_azul = "<BL><b>The BLUE team wins!</b><br>The next match will start in 15 seconds.",
146
	sudden_death = "<VP><b>SUDDEN DEATH!</b><br>The team that kill anyone of other team will won the match.",
147
	empate_text = "<J><b>There was a draw!</b><br>The next match will start in 15 seconds.",
148
	instructions = "Use the 1 to 9 keys to change the intensity of anvil and SPACEBAR to throw a anvil.",
149
	turn = "<VP>It's turn of",
150
	timeout = "<J>Time is over! The shooter will be changed.",
151
	enter_vermelho = "Enter on RED team",
152
	enter_azul = "Enter on BLUE team",
153
	exit = "Leave this team",
154
	double = "used the powerup Double Anvil!",
155
	triple = "used the powerup Triple Anvil!",
156
	bomba1 = "used the powerup Time Bomb!",
157
	bomba2 = "<br>On this powerup, a explosion will occur on a random place of enemy area.",
158
	objeto1 = "used the powerup Random Shoot!",
159
	objeto2 = "<br>On this powerup, you will shoot a random shaman object instead of a anvil. If you have used the Double Anvil powerup, you can shoot 2 objects instead of one.",
160
	exp1 = "used the powerup Explosion!",
161
	exp2 = "<br>On this powerup, you can cause a explosion clicking on enemy area with your mouse.<br>You have 5 seconds to cause your explosion.",
162
	chuva1 = "used the powerup Anvil Rain!",
163
	chuva2 = "<br>On this powerup, you will shoot several anvils",
164
	fly1 = "used the powerup Small Mice!",
165
	fly2 = "<br>On this powerup, the size of your mice will be reduced at 50%. This powerup can be used only 1 time per player.",
166
	inv1 = "used the powerup Immortal Mode!",
167
	inv2 = "<br>On this powerup, you be immortal during the next 4 turns. This powerup only can be used 1 time per game.",
168
	inv3 = "Your immortality has ended.",
169
	invi1 = "used the powerup Multiple Anvil!",
170
	invi2 = "<br>On this powerup, you can shoot up to 3 anvils on your turn. This ability can't be used with double and triple anvils.",
171
	selec1 = "used the powerup Selective Object!",
172
	selec2 = "<br>On this powerup, you can select a shaman object to shoot instead of a anvil. This ability can't be used with double and triple anvils.",
173
	bar = "#anvilwar - Compilation RTM 7442.077",
174
	intensity = "Intensity",
175
	your_turn = "<J>It's your turn to shoot. Press SPACEBAR to throw a anvil and use the 1 to 9 keys to change the intensity of anvil. Use the F1 to F10 keys to use powerups.",
176
	help = "Press SPACEBAR to throw a anvil and use the 1 to 9 keys to change the intensity of anvil. Use the F1 to F10 keys to use powerups (type !powerups). The team that eliminates the enemy team wons the game.<br><br>Type !cmd to show all the game commands.<br><br><b>Credits:</b><br>Development: Jessiewind26#2546 and Zed#9431<br>Powerups: Jhinsword350#0000 and Vidaloka9999#0000<br>Translations: Nasus_assassin#1534 (EN), Alexsaky#7307 + Vigo#4765 (AR), Dejavu#2242 (ES) and Puiguirata#0000 (DE)",
177
	teamkill1 = "Oh no! ",
178
	teamKill2 = "has killed a player of her team",
179
	ajuda = "Help",
180
	credits = "Credits",
181
	mostrar = "Show",
182
	seconds = "<ROSE>60 seconds remaining!",
183
	seconds30 = "<ROSE>30 seconds remaining!",
184
	seconds10 = "<ROSE>10 seconds remaining!",
185
	powerups1 = "F1 = Double Anvil<br>F2 = Triple Anvil<br>F3 = Time Bomb<br>F4 = Random Shoot<br>F5 = Explosion<br>F6 = Anvil Rain<br>F7 = Small Mice<br>F8 = Immortal Mode<br>F9 = Multiple Anvil<BR>F10 = Selective Object",
186
	powerups2 = "6pt<br>12pt<br>5pt<br>6pt<br>12pt<br>15pt<br>15pt<br>20pt<br>10pt<br>5pt",
187
	powerups3 = "<a href='event:power1'>Show</a><br><a href='event:power2'>Show</a><br><a href='event:power3'>Show</a><br><a href='event:power4'>Show</a><br><a href='event:power5'>Show</a><br><a href='event:power6'>Show</a><br><a href='event:power7'>Show</a><br><a href='event:power8'>Show</a><br><a href='event:power9'>Show</a><br><a href='event:power10'>Show</a>",
188
	powerups4 = "1<br>2<br>2<br>2<br>3<br>4<br>3<br>5<br>4<br>3",
189
	teamchat = "<J>You can use the command !tc [message] to speak with your team.<br><br>You can see your profile typing !p and the temporary tanking typing !rank.",
190
	menu_bar = "<p align='center'><a href='event:help'>Help</a>  |  <a href='event:powerups'>Powerups</a>  |  <a href='event:profile'>Profile</a>  |  <a href='event:ranking'>Ranking</a>  |  <a href='event:cap'>Capitain</a>  |  <a href='event:cmd'>Commands</a>",
191
	powerupslist = "Powerups List",
192
	profile = "Use the !p command to view your profile and use !p [username] to view the profile of another user.",
193
	starting = "<VP>The match will start on a few seconds. Get ready!",
194
	suicide = "The following player committed suicide: ",
195
	ban = " was banned of room by ",
196
	unban = " was unbanned of room.",
197
	caps = " was choosed to be the team capitain.",
198
	cap = "This type of player (that is choosed randomly) will receive 50% more points and will get the ability of transfer your points to other players alive on the match using the !tt [name] command. You can use the !rv [name] command to revive ONE team player dead.",
199
	cap_text = "<br><VP>You are the team capitain.<br><br>You will receive 50% more points than other team players and can transfer your points to other team players using the !tt [name] command. You can use the !rv [name] command to revive ONE team player dead.",
200
	score30 = "<R>You need 30 points to use this.",
201
	advanced = "<VP>You reached the level ",
202
	tag_text = "<J>Don't forget to insert the #tag on the target nickname, else this command don't will work!",
203
	revivetext = "<J>The following player has been revived: ",
204
	yturn = "Actual player: ",
205
	level_error = "<R>You don't have level to use this. To view your level use the !p command.",
206
	funct = "Function not allowed",
207
	cmds = "Game commands",
208
	commands = "• !help = Show the game help.<br>• !p [player] = Show the profile of selected player. Type !p without arguments to show your profile.<br>• !rank = Show the temporary room ranking.<br>• !tc [message] = Chat with other members of your team.<br>• !skip = Send a vote to skip the actual map. This command cannot be used during the match.<br><ROSE>* <N>!rv [player] = Revive a dead player of your team.<br><ROSE>* <N>!tt [player] = Transfer your points to another team member.<br><br>The commands marked with <ROSE>* <N>are of exclusive use of the team capitains. To see more info about this, use the !cap command.",
209
	admin_commands = "<BL>• <N>!skip = Skip the actual map.<br><BL>• <N>!pw [texto] = Add a password on the room. Type only !pw to remove the password.<br><BL>• <N>!rodar [mapa] = Run the specified map.<br><J>• <N>!kill [nome] = Kill the specified player.<br><R>• <N>!limit [número] = Set a limit of mices on this room.<br><br>You only can use the commands that match with your name color.",
210
	playingmap = "Playing map",
211
	created = "created by"
212
}
213
lang.ar = {
214
	win_vermelho = "<R><b>فاز الفريق الأحمر!</b><br>ستبدأ المباراة التالية في غضون 15 ثانية!",
215
win_azul = "<BL><b>فاز الفريق الأزرق!</b><br>ستبدأ المعركة التالية في غضون 15 ثانية!",
216
sudden_death = "<VP><b>المعركة النهائية!</b><br>إذا قام أي أحد بقتل عضو في أي فريق أخر، سوف يفوز الفريق الذي قتل!",
217
empate_text = "<J><b>تعادل!</b><br>ستبدأ المباراة التالية في غضون 15 ثانية!",
218
instructions = "إستخدم مفاتيح لوحة التحكم من 1 الى 9 للتحكم في سرعة وقوة السندان.",
219
turn = "<VP>إنه دور",
220
timeout = "<J>إنتهى الوقت! سيتم تغيير الضارب",
221
enter_vermelho = "قم بالدخول للفريق الأحمر",
222
enter_azul = "قم بالدخول للفريق الأزرق",
223
exit = "قم بالخروج من هذا الفريق",
224
double = "إستخدم السندان المزدوج!",
225
triple = "إستخدم السندان الثلاثي، إحترس!",
226
bomba1 = "إستخدم فرقعة الزمن، إحترس من الإنفجار!",
227
bomba2 = "<br>في هذه القوة، سوف يحدث إنفجار في بقعة مختلفة في مكان العدو",
228
objeto1 = "إستخدم الضربة العشوائية! قد يقوم بضرب أي شيئ الأن!",
229
objeto2 = "<br>في هذه القوة، يمكنك ضرب أداة شامان بدلآ من السندان، إذا قمت بإختيار السندان المزدوج، سيتم ضرب اداتان شامان بدلآ من سندان",
230
exp1 = "قام بإستخدام قوة الإنفجار!",
231
exp2 = "<br>بإستخدام هذه القوة، يمكنك إحداث إنفجار في منطقة العدو بإستخدام الفأرة (الماوس)، لديك 5 ثوانٍ فقط للقيام بإنفجار",
232
chuva1 = "إستخدم قوة مَطر السندان! إحتمي!",
233
chuva2 = "<br>في هذه القوة، يمكنك ضرب العديد من السندان",
234
fly1 = "used the powerup Small Mice!",
235
fly2 = "<br>On this powerup, the size of your mice will be reduced at 50%. This powerup can be used only 1 time per player.",
236
inv1 = "إستخدم قوة عدم الموت",
237
inv2 = "<br>بإستخدام هذه القوة، لن يمكنك الموت لمدة 4 جولات من الضرب، يمكنك إستخدامها مرة واحدة فقط في الجولة الواحدة",
238
inv3 = "قوة عدم موتك قد إنتهت، أصبحت قابلآ للموت الأن!.",
239
invi1 = "إستخدم قوة السندان مضاعف حذارِ!",
240
invi2 = "<br>في تلك القوة يمكنك إستخدام ثلاث سندان، لا تعمل في حالات السندان المزدوج أو الثلاثي.",
241
selec1 = "إستخدم قوة إختيار أداة شامان للضرب!",
242
selec2 = "<br>في هذه القوة، يمكنك إختيار أداة شامان للإطلاق بدلآ من سندان ثلاثي",
243
bar = "#anvilwar - Compilation RTM 7442.077",
244
intensity = "قوة الضرب وسرعته",
245
your_turn = "<J>إنه دورك للضرب! إضغط زر المسافة لإطلاق سندان مع استخدام الزر من 1 الى 9 للتحكم في سرعة السندان لتغيير قوة ضرب السندان، . إستخدم المفتاح إف 1 حتى إف 9 لإطلاق ضربات مختلفة! إكتشف!",
246
help = "إضغط زر المسافة لإطلاق سندان وللتحكم بسرعته يمكنك الضغط على زر الوجوه من 1 الى 9 ، إستخدم المفتاح من إف1 حتى إف9 لإطلاق ضربات القوة (أكتب !powerups) الفريق الذي يحطم العدو يفوز بالجولة <br><br>Type لترى جميع إيعازات اللعبة !cmds أكتب<br><br><b>Credits:</b><br>البرمجة والتطوير Jessiewind26#2546 and Zed#9431<br>نظام القوة: Jhinsword350#0000 and Vidaloka9999#0000<br>الترجمة: Nasus_assassin#1534 (EN), Alexsaky#7307 + Vigo#4765 (AR), Dejavu#2242 (ES) and Puiguirata#0000 (DE)",
247
teamkill1 = "أوه لا!! ",
248
teamKill2 = "قام بقتل عضو من فريقه!",
249
ajuda = "المساعدة",
250
credits = "Credits",
251
mostrar = "أظهر",
252
seconds = "<ROSE>60 ثانية متبقية",
253
seconds30 = "<ROSE>30 ثانية متبقية!",
254
seconds10 = "<ROSE>10 ثوانٍ متبقية!",
255
powerups1 = "F1 = سندان مزدوج<br>F2 =سندان ثلاثي <br>F3 =فرقعة بالفأرة<br>F4 = ضربة أداة شامان عشوائية<br>F5 = تفجير!<br>F6 =مطر السندان!<br>F7 = Small Mice<br>F8 = وضع عديم الموت<br>F9 =سندان مختفي<BR>F10 = إختيار أداة شامان لإطلاقها.",
256
powerups2 = "6pt<br>12pt<br>5pt<br>6pt<br>12pt<br>15pt<br>15pt<br>20pt<br>10pt<br>5pt",
257
powerups3 = "<a href='event:power1'>Show</a><br><a href='event:power2'>Show</a><br><a href='event:power3'>Show</a><br><a href='event:power4'>Show</a><br><a href='event:power5'>Show</a><br><a href='event:power6'>Show</a><br><a href='event:power7'>Show</a><br><a href='event:power8'>Show</a><br><a href='event:power9'>Show</a><br><a href='event:power10'>Show</a>",
258
powerups4 = "1<br>2<br>2<br>2<br>3<br>4<br>3<br>5<br>4<br>3",
259
teamchat = "<J>إستخم الإيعاز !tc [msg] للتكلم مع أعضاء فريقك<br><br>You can see your profile typing !p and the temporary tanking typing !rank.",
260
menu_bar = "<p align='center'><a href='event:help'>Help</a> | <a href='event:powerups'>Powerups</a> | <a href='event:profile'>Profile</a> | <a href='event:ranking'>Ranking</a> | <a href='event:cap'>Capitain</a> | <a href='event:cmd'>Commands</a>",
261
powerupslist = "Powerups List",
262
profile = "إستخدم !p لرؤية ملفك وأستخدم !p name لرؤية ملف لاعب أخر ",
263
starting = "<VP>ستبدأ المباراة غي غضون بضعة ثواني، إستعد!",
264
suicide = "قام بالإنتحار ",
265
ban = " تم حظره من الغرفة من قبل ",
266
unban = " تم فك حظره من الغرفة من قبل",
267
caps = " تم إختياره ليصبح قائد الفريق. لرؤية المزيد عن هذا أكتب !cap أو استخدم قسم القائد في القائمة, ",
268
cap = "الكابتن هو قائد الفريق، يتم إختياره عشوائيآ، سوف يحصل على نقاط بنسبة 50% أكثر من اللاعبين، اي جَني النقاط بسرعة!يمكنه تحويل النقاط للاعب أخر عن طريق الإيعاز ويمكنه إحياء لاعب مات من فريقه بإستخدام !rv [name] ولكن يتطلب 30 نقطة لذلك",
269
cap_text = "<br><VP>أنت قائد الفريق<br><br>سوف تحصل على نقاط زائدة بنسبة 50% ويمكنك نق لنقاطك للاعب أخر بإستخدام !tt name أو إحياء لاعب أخر بإستخدام !rv name يتطلب الإحياء 30 نقطة",
270
score30 = "<R>تحتاج 30 نقطة للقيام بهذا",
271
advanced = "<VP>وصلت للستوى ",
272
tag_text = "<J>لا تنسى بوضع الهاشتاج على الإسم الذي تم إختياره, أو لن يعمل هذا الإيعاز",
273
revivetext = "<J>هذا اللاعب قام بإستقبال : ",
274
yturn = "اللاعب الحالي: ",
275
level_error = "<R>لا تملك المستوى المطلوب لفعل هذا، لترى مستواك إكتب !p",
276
funct = "الإيعاز غير مسموح",
277
cmds = "إيعازات اللعبة : ",
278
commands = "• !help لرؤية المساعدة<br>• !p [player] = لرؤية ملف لاعب، أكتب !p بدون أي شيئ لرؤية ملفك<br>• !rank لرؤية الرتبة الحالية.<br>• !tc [message] = المحادثة مع أعضاء فريقك<br>• !skip = إرسال تصويت لتخطي الجولة الحالية هذا الإيعاز لن يتم إستخدامه في الجولات التي تم بدأها، فقط في الجولات التي لم تبدأ بعد (في وضع إختيار الفرق) فقط<br><ROSE>* <N>!rv [player] = إحياء لاعب مات من فريقك، تطلب ان تكون القائد ومعك 30 نقطة<br><ROSE>* <N>!tt [player] = تقوم بنقل نقاطك للاعب أخر في الغرفة<br><br>الإيعازات المُعلمة بـ <ROSE>* <N> إيعازات فقط للقائد، لرؤية المزيد أكتب !cap",
279
admin_commands = "<BL>• <N>!skip =تخطي الجولة الحالية map.<br><BL>• <N>!pw [text] = وضع كلمة سر للغرفة أكتب !pw لإزالة الباسورد<br><BL>• <N>!set_map [map] = تشغيل الخريطة المحددة<br><J>• <N>!kill [name] = قتل اللاعب المختار<br><R>• <N>!limit [number] = وضع حد للفئران في الغرفة<br><br>يمكنك إستخدام هذه الإيعازات عندما يكون إسمك باللون :.",
280
playingmap = "Playing map",
281
created = "created by"
282
}
283
lang.es = {
284
	win_vermelho = "<R><b>¡Ha ganado el equipo ROJO!</b><br>La próxima ronda comenzará en 15 segundos.",
285
win_azul = "<BL><b>¡Ha ganado el equipo AZUL!</b><br>La próxima ronda comenzará en 15 segundos.",
286
	sudden_death = "<VP><b>MUERTE SÚBITA!</b><br>El equipo que mate a alguien del otro equipo ganará esta ronda.",
287
	empate_text = "<J><b>Hubo un empate!</b><br>La próxima ronda comenzará en 15 segundos.",
288
	instructions = "Usa las teclas 1 al 9 para cambiar la intensidad del yunque y ESPACIO para lanzarlo.",
289
	turn = "<VP>Es el turno de",
290
	timeout = "<J>El tiempo ha terminado. El tirador será cambiado.",
291
	enter_vermelho = "Unirse al equipo ROJO",
292
	enter_azul = "Unirse al equipo AZUL",
293
	exit = "Abandonar este equipo",
294
	double = "usó el powerup Doble Yunque!",
295
	triple = "usó el powerup Triple Yunque!",
296
	bomba1 = "usó el powerup Bomba de Tiempo!",
297
	bomba2 = "<br>Con este powerup se producirá una explosión en un lugar aleatorio del área enemigo.",
298
	objeto1 = "usó el de powerup Tiro Aleatorio!",
299
	objeto2 = "<br>Con este powerup lanzarás un objeto de chamán aleatorio en lugar de un yunque. Si has usado el powerup Doble Yunque puedes lanzar 2 objetos en vez de 1.",
300
	exp1 = "usó el powerup Explosión!",
301
	exp2 = "<br>Con este powerup puedes provocar una explosión clicando en área enemigo con tu ratón.<br>Tienes 5 segundos para provocar la explosión.",
302
	chuva1 = "usó el powerup Lluvia de Yunques!",
303
	chuva2 = "<br>Con este powerup lanzarás varios yunques.",
304
	fly1 = "used the powerup Small Mice!",
305
	fly2 = "<br>On this powerup, the size of your mice will be reduced at 50%. This powerup can be used only 1 time per player.",
306
	inv1 = "usó el powerup Modo Inmortal!",
307
	inv2 = "<br>Con este powerup serás inmortal durante los próximos 4 turnos. Solo puedes usarlo 1 vez por ronda.",
308
	inv3 = "Tu inmortalidad ha terminado.",
309
	invi1 = "usó el powerup Múltiple Yunque!",
310
	invi2 = "<br>Con este powerup vas a lanzar 3 yunques. Esto no puede ser usado con doble o triple yunque.",
311
	selec1 = "usó el powerup Objeto Selectivo!",
312
	selec2 = "<br>Con este powerup puedes seleccionar un objeto de chamán para lanzar en vez de un yunque. Esto no puede ser usado con doble o triple yunque.",
313
	bar = "#anvilwar - Compilación RTM 7442.077",
314
	intensity = "Intensidad",
315
	your_turn = "<J>Es tu turno de lanzar. Presiona ESPACIO para lanzar un yunque y usa las teclas 1 al 9 para cambiar la intensidad de este. Usa las teclas F1 al F10 para usar los powerups.",
316
	help = "Presiona ESPACIO para lanzar un yunque y usa las teclas 1 al 9 para cambiar la intensidad de este. Usa las teclas F1 al F10 para usar los powerups (escribe !powerups). El equipo que elimine al enemigo ganará la ronda.<br><br>Escribe !cmd para mostrar todos los comandos del juego.<br><br><b>Créditos:</b><br>Desarrollo: Jessiewind26#2546 y Zed#9431<br>Powerups: Jhinsword350#0000 y Vidaloka9999#0000<br>Traducciones: Nasus_assassin#1534 (EN), Alexsaky#7307 + Vigo#4765 (AR), Dejavu#2242 (ES) y Puiguirata#0000 (DE)",
317
	teamkill1 = "¡Oh no! ",
318
	teamKill2 = "ha matado a un jugador de su equipo",
319
	ajuda = "Ayuda",
320
	credits = "Créditos",
321
	mostrar = "Mostrar",
322
	seconds = "<ROSE>¡Quedan 60 segundos!",
323
	seconds30 = "<ROSE>¡Quedan 30 segundos!",
324
	seconds10 = "<ROSE>¡Quedan 10 segundos!",
325
	powerups1 = "F1 = Doble Yunque<br>F2 = Triple Yunque<br>F3 = Bomba de Tiempo<br>F4 = Tiro Aleatorio<br>F5 = Explosión<br>F6 = Lluvia de Yunques<br>F7 = Small Mice<br>F8 = Modo Inmortal<br>F9 = Invisible Anvil<BR>F10 = Objeto Selectivo",
326
	powerups2 = "6pt<br>12pt<br>5pt<br>6pt<br>12pt<br>15pt<br>15pt<br>20pt<br>10pt<br>5pt",
327
	powerups3 = "<a href='event:power1'>Mostrar</a><br><a href='event:power2'>Mostrar</a><br><a href='event:power3'>Mostrar</a><br><a href='event:power4'>Mostrar</a><br><a href='event:power5'>Mostrar</a><br><a href='event:power6'>Mostrar</a><br><a href='event:power7'>Mostrar</a><br><a href='event:power8'>Mostrar</a><br><a href='event:power9'>Mostrar</a><br><a href='event:power10'>Mostrar</a>",
328
	powerups4 = "1<br>2<br>2<br>2<br>3<br>4<br>3<br>5<br>4<br>3",
329
	teamchat = "<J>Puedes usar el comando !tc [mensaje] para hablar con tu equipo.<br><br>Puedes ver tu perfil escribiendo !p y el ranking temporal escribiendo !rank.",
330
	menu_bar = "<p align='center'><a href='event:help'>Ayuda</a>  |  <a href='event:powerups'>Powerups</a>  |  <a href='event:profile'>Perfil</a>  |  <a href='event:ranking'>Ranking</a>  |  <a href='event:cap'>Capitán</a>  |  <a href='event:cmd'>Comandos</a>",
331
	powerupslist = "Lista de Powerups",
332
	profile = "Usa el comando !p para ver tu perfil y usa !p [apodo] para ver el de otra persona.",
333
	starting = "<VP>La ronda comenzará en unos segundos. ¡Prepárate!",
334
	suicide = "El siguiente jugador cometió suicidio: ",
335
	ban = " fue baneado de la sala por ",
336
	unban = " fue desbaneado de la sala.",
337
	caps = " fue elegido para ser el capitán del equipo. Para ver más información acerca de esto, escribe el comando !cap o usa la sección de Capitán en el menú.",
338
	cap = "En esta compilación fue incluido la funcionalidad de jugador capitán. Este tipo de jugador (es elegido aleatoriamente) recibirá un 50% más de puntos y la posibilidad de transferir tus puntos a otros jugadores vivos en la ronda usando el comando !tt [apodo]. Puedes usar el comando !rv [apodo] para revivir UN jugador muerto del equipo.",
339
	cap_text = "<br><VP>Eres el capitán del equipo.<br><br>Recibirás un 50% más de puntos y la posibilidad de transferir tus puntos a otros jugadores del equipo usando el comando !tt [apodo]. Puedes usar el comando !rv [apodo] command para revivir UN jugador muerto del equipo.",
340
	score30 = "<R>Necesitas 30 puntos para usar esto.",
341
	advanced = "<VP>Has alcanzado el nivel ",
342
	tag_text = "<J>No te olvides de colocar el #tag en el apodo del objetivo, o este comando no funcionará.",
343
	revivetext = "<J>El siguiente jugador ha sido revivido: ",
344
	yturn = "Jugador actual: ",
345
	level_error = "<R>No tienes el nivel para usar esto. Para ver tu nivel usa el comando !p.",
346
	funct = "Función no permitido",
347
	cmds = "Comandos del juego",
348
	commands = "• !help = Mostrar la ayuda del juego.<br>• !p [apodo] = Mostrar el perfil de un determinado jugador. Escribe !p solamente para mostrar tu perfil.<br>• !rank = Mostrar el ranking temporal de la sala.<br>• !tc [mensaje] = Hablar con otros miembros de tu equipo.<br>• !skip = Votar para saltar el mapa actual. Esto no puede ser usado durante la ronda.<br><ROSE>* <N>!rv [apodo] = Revivir a un jugador muerto de tu equipo.<br><ROSE>* <N>!tt [apodo] = Transferir tus puntos a otro miembro de tu equipo.<br><br>Los comandos marcados con <ROSE>* <N>son de uso exclusivo para capitanes de equipos. Para saber más de esto, usa el comando !cap.",
349
	admin_commands = "<BL>• <N>!skip = Saltar el mapa actual.<br><BL>• <N>!pw [texto] = Agregar una contraseña a la sala. Escribe !pw nuevamente para remover la contraseña.<br><BL>• <N>!set_map [mapa] = Cargar un mapa en específico.<br><J>• <N>!kill [apodo] = Matar a un jugador en específico.<br><R>• <N>!limit [número] = Limitar el número de ratones en la sala.<br><br>Solo puedes utilizar los comandos que coincidan con el color de tu nombre.",
350
	playingmap = "Jugando mapa",
351
	created = "creado por"
352
}
353
lang.de = {
354
    win_vermelho = "<R><b>Das ROTE Team gewinnt!</b><br>Das nächste Spiel beginnt in 15 Sekunden.",
355
    win_azul = "<BL><b>Das BLAUE Team gewinnt!</b><br>Das nächste Spiel beginnt in 15 Sekunden.",
356
    sudden_death = "<VP><b>PLÖTZLICHER TOD!</b><br>Das Team, das jemanden aus einem anderen Team tötet, gewinnt das Spiel.",
357
    empate_text = "<J><b>Es gab ein Unentschieden!</b><br>Das nächste Spiel beginnt in 15 Sekunden.",
358
    instructions = "Verwenden Sie die Tasten 1 bis 9, um die Intensität des Ambosses zu ändern und die Leertaste, um einen Amboss zu werfen.",
359
    turn = "<VP>Es ist die Wende von",
360
    timeout = "<J>Die Zeit ist vorbei! Der Schütze wird gewechselt.",
361
    enter_vermelho = "Betreten Sie das ROTE Team",
362
    enter_azul = "Betreten Sie das BLAUE Team",
363
    exit = "Dieses Team verlassen",
364
    double = "benutzte den Powerup Double Anvil!.",
365
    triple = "benutzte den Powerup Triple Anvil!",
366
	bomba1 = "benutzte den Powerup Time Bomb!",
367
	bomba2 = "<br>Bei diesem Powerup kommt es zu einer Explosion an einem beliebigen Ort im feindlichen Gebiet.",
368
	objeto1 = "benutzte den Powerup Random Shoot!",
369
	objeto2 = "<br>Bei diesem Powerup schießt du ein zufälliges Schamanenobjekt anstelle eines Ambosses. Wenn du das Double Anvil Powerup benutzt hast, kannst du 2 Objekte anstelle von einem aufnehmen.",
370
	exp1 = "benutzte den Powerup Explosion!",
371
	exp2 = "<br>Bei diesem Powerup kannst du eine Explosion verursachen, indem du mit der Maus auf den gegnerischen Bereich klickst.<br>Sie haben 5 Sekunden Zeit, um deine Explosion zu verursachen.",
372
	chuva1 = "benutzte den Powerup Anvil Rain!",
373
	chuva2 = "<br>Bei diesem Powerup schießt du mehrere Ambosse.",
374
	fly1 = "used the powerup Small Mice!",
375
	fly2 = "<br>On this powerup, the size of your mice will be reduced at 50%. This powerup can be used only 1 time per player.",
376
	inv1 = "benutzte den Powerup Immortal Mode!",
377
	inv2 = "<br>Bei diesem Powerup bist du in den nächsten 4 Runden unsterblich. Dieses Powerup kann nur einmal pro Spiel verwendet werden.",
378
	inv3 = "Deine Unsterblichkeit ist vorbei.",
379
	invi1 = "benutzte den Powerup Multiple Anvil!",
380
	invi2 = "<br>Bei diesem Powerup kannst du bis zu 3 Ambosse schießen, wenn du an der Reihe bist. Diese Fähigkeit kann nicht bei Doppel- und Dreifachambossen eingesetzt werden.",
381
	selec1 = "benutzte den Powerup Selective Object!",
382
	selec2 = "<br>Bei diesem Powerup kannst du ein Schamanenobjekt auswählen, das du anstelle eines Ambosses aufnehmen möchtest. Diese Fähigkeit kann nicht bei Doppel- und Dreifachambossen eingesetzt werden.",
383
	bar = "#anvilwar - Compilation RTM 7442.077",
384
	intensity = "Intensität",
385
	your_turn = "<J>Du bist dran mit dem Schießen. Drücken Sie die LEERTASTE, um einen Amboss zu werfen, und verwenden Sie die Tasten 1 bis 9, um die Intensität des Ambosses zu ändern. Verwenden Sie die Tasten F1 bis F10, um Powerups zu verwenden.",
386
	help = "Drücken Sie die LEERTASTE, um einen Amboss zu werfen, und verwenden Sie die Tasten 1 bis 9, um die Intensität des Ambosses zu ändern. Verwenden Sie die Tasten F1 bis F10, um Powerups zu verwenden (Typ !powerups). Das Team, das das gegnerische Team eliminiert, gewinnt das Spiel.<br><br>Geben Sie !cmd ein, um alle Spielbefehle anzuzeigen.<br><br><b>Credits:</b><br>Entwicklung: Jessiewind26#2546 und Zed#9431<br>Powerups: Jhinsword350#0000 und Vidaloka9999#0000<br>Übersetzungen: Nasus_assassin#1534 (EN) Alexsaky#7307 + Vigo#4765 (AR) Dejavu#2242 (ES) und Puiguirata#0000 (DE)",
387
	teamkill1 = "Oh nein! ",
388
	teamKill2 = "hat einen Spieler ihrer Mannschaft getötet.",
389
	ajuda = "Hilfe",
390
	credits = "Credits",
391
	mostrar = "Zeigen",
392
	seconds = "<ROSE>Noch 60 Sekunden!",
393
	seconds30 = "<ROSE>Noch 30 Sekunden!",
394
	seconds10 = "<ROSE>Noch 10 Sekunden!",
395
	powerups1 = "F1 = Double Anvil<br>F2 = Triple Anvil<br>F3 = Time Bomb<br>F4 = Random Shoot<br>F5 = Explosion<br>F6 = Anvil Rain<br>F7 = Small Mice<br>F8 = Immortal Mode<br>F9 = Invisible Anvil<BR>F10 = Selective Object",
396
	powerups2 = "6pt<br>12pt<br>5pt<br>6pt<br>12pt<br>15pt<br>15pt<br>20pt<br>10pt<br>5pt",
397
	powerups3 = "<a href='event:power1'>Show</a><br><a href='event:power2'>Show</a><br><a href='event:power3'>Show</a><br><a href='event:power4'>Show</a><br><a href='event:power5'>Show</a><br><a href='event:power6'>Show</a><br><a href='event:power7'>Show</a><br><a href='event:power8'>Show</a><br><a href='event:power9'>Show</a><br><a href='event:power10'>Show</a>",
398
	powerups4 = "1<br>2<br>2<br>2<br>3<br>4<br>3<br>5<br>4<br>3",
399
	teamchat = "<J>Du kannst den Befehl !tc [message] um mit Ihrem Team zu sprechen.<br><br>Du kannst deine Profiltypisierung sehen !p und die Typisierung des temporären Tankens !rank.",
400
	menu_bar = "<p align='center'><a href='event:help'>Help</a>  |  <a href='event:powerups'>Powerups</a>  |  <a href='event:profile'>Profile</a>  |  <a href='event:ranking'>Ranking</a>  |  <a href='event:cap'>Capitain</a>  |  <a href='event:cmd'>Commands</a>",
401
	powerupslist = "Powerups List",
402
	profile = "Verwenden Sie die !p Befehl, um Ihr Profil anzusehen und zu verwenden !p [username] um das Profil eines anderen Benutzers anzuzeigen.",
403
	starting = "<VP>Das Spiel beginnt in wenigen Sekunden. Macht euch bereit!",
404
	suicide = "Der folgende Spieler beging Selbstmord: ",
405
	ban = " wurde aus dem Zimmer verbannt von ",
406
	unban = " wurde nicht aus dem Zimmer verbannt.",
407
	caps = " wurde als Teamchef ausgewählt. Um mehr Informationen darüber zu erhalten, geben Sie Folgendes ein !cap Befehl oder verwenden Sie den Abschnitt Capitain im Menü des Moduls.",
408
	cap = "Auf dieser Zusammenstellung wurde die Funktionalität eines Capitain-Players integriert. Diese Art von Spieler (die zufällig ausgewählt wird) erhält 50% mehr Punkte und die Möglichkeit, Ihre Punkte auf andere Spieler zu übertragen, die im Spiel leben. !tt [name] Befehl. Sie können die Funktion !rv [name] Befehl, EINE Teamspielerin wiederzubeleben, die tot is.",
409
	cap_text = "<br><VP>Du bist der Teamchef.<br><br>Du bekommst 50% mehr Punkte als andere Teammitglieder und kannst deine Punkte auf andere Teammitglieder übertragen !tt [name] Befehl. Sie können die Funktion !rv [name] Befehl, EINE Teamspielerin wiederzubeleben, die tot is.",
410
	score30 = "<R>Du brauchst 30 Punkte, um das zu benutzen.",
411
	advanced = "<VP>Du hast das Level erreicht ",
412
	tag_text = "<J>Vergiss nicht, das #Tag auf dem Ziel-Nicknamen einzufügen, sonst funktioniert dieser Befehl nicht!",
413
	revivetext = "<J>Der folgende Spieler wurde wiederbelebt: ",
414
	yturn = "Aktueller Spieler: ",
415
	level_error = "<R>Du hast kein Level, um das hier zu benutzen. Um dein Level zu sehen, benutze den !p Befehl.",
416
	funct = "Funktion nicht erlaubt",
417
	cmds = "Spielbefehle",
418
	commands = "• !help = Zeigen Sie die Spielhilfe an.<br>• !p [player] = Zeigt das Profil des ausgewählten Spielers an. Typ !p ohne Argumente, um Ihr Profil anzuzeigen.<br>• !rank = Anzeige der Rangfolge der temporären Zimmer.<br>• !tc [message] = Chat Sie mit anderen Mitgliedern Ihres Teams.<br>• !skip = Senden Sie eine Abstimmung, um die aktuelle Karte zu überspringen. Dieser Befehl kann während des Spiels nicht verwendet werden.<br><ROSE>* <N>!rv [player] = Erwecke einen toten Spieler deines Teams zum Leben.<br><ROSE>* <N>!tt [player] = Übertragen Sie Ihre Punkte auf ein anderes Teammitglied.<br><br>Die * mit gekennzeichneten Befehle  <ROSE>* <N>sind ausschließlich für die Teammitglieder bestimmt. Um weitere Informationen dazu zu erhalten, verwenden Sie die Option !cap Befehl.",
419
	admin_commands = "<BL>• <N>!skip = Überspringen der aktuellen Karte.<br><BL>• <N>!pw [text] = Füge ein Passwort für den Zimmer hinzu. Geben Sie nur !pw ein, um das Passwort zu entfernen.<br><BL>• <N>!set_map [map] = Ausführen der angegebenen Karte.<br><J>• <N>!kill [name] = Töten des angegebenen Spielers.<br><R>• <N>!limit [number] = Setzen Sie ein Limit für Mäuse in diesem Zimmer.<br><br>Du kannst nur die Befehle verwenden, die mit deiner Namensfarbe übereinstimmen.",
420
	playingmap = "Wiedergabekarte",
421
	created = "erstellt von"
422
}
423
424
if tfm.get.room.community == "br" then
425
	text = lang.br
426
elseif tfm.get.room.community == "ar" then
427
	text = lang.ar
428
elseif tfm.get.room.community == "es" then
429
	text = lang.es
430
elseif tfm.get.room.community == "de" then
431
	text = lang.de
432
else
433
	text = lang.en
434
end
435
function changeMap()
436
	tfm.exec.newGame(mapas[math.random(#mapas)])
437
end
438
function resetPowers()
439
	ui.removeTextArea(701,nil)
440
	powerups.double=false
441
	powerups.objeto=false
442
	powerups.count=2
443
	kills=0
444
	powerups.bomba=false
445
	powerups.explosion=false
446
	powerups.chuva=false
447
	powerups.fly=false
448
	anvil_launched=false
449
	powerups.triple=false
450
	powerups.selective=false
451
	powerups.r_vermelho=false
452
	powerups.r_azul=false
453
	powerups.multi_count=2
454
	powerups.multiple=false
455
	set=false
456
	advanceLevel()
457
	skips=0
458
end
459
changeMap()
460
function split(t,s)
461
	local a={}
462
	for i,v in string.gmatch(t,string.format("[^%s]+",s or "%s")) do
463
		table.insert(a,i)
464
	end
465
	return a
466
end
467
function eventRanking(name)
468
	local sc = {}
469
	for id, name in pairs(players_table) do
470
		sc[#sc+1] = {n=name,s=data[name].score,f=data[name].kills,l=data[name].nivel}
471
	end
472
473
	table.sort(sc,function(a,b) return a.s>b.s end)
474
475
	str1 = ''
476
	str2 = ''
477
	str3 = ''
478
	str4 = ''
479
	str5 = ''
480
	for k,v in pairs(sc) do
481
		if k < 11 then
482
			if str ~= '' then
483
				str1=str1.."<br><N>"..k.."° | <VP>"..v.n..""
484
				str2=str2.."<br><b><N>"..v.s.."</b>"
485
				str3=str3.."<br><N>"..v.f..""
486
				str5=str5.."<br><N>"..v.l..""
487
			else
488
				str1="<J>"..k.."° | <VP>"..v.n..""
489
				str2="<J><b>"..v.s.."</b>"
490
				str3="<J>"..v.f..""
491
				str5="<J>"..v.l..""
492
			end
493
		end
494
	end
495
	ui.addTextArea(8000,'<B><J><font size="13"><p align="center">Temporary Ranking',name,100,100,600,30,nil,0x2e424d,nil,true)
496
	ui.addTextArea(8001,"<B><font size='13'><font face='Consolas'>#      Name                                 Score       Kills               Level",name,110,110,580,20,0x0e232b,0x0e232b,nil,true)
497
	ui.addTextArea(8002,"<B><font size='16'><font face='Consolas'>"..str1,name,110,130,580,220,0x0e232b,0x0e232b,nil,true)
498
	ui.addTextArea(8003,"<p align='right'><font size='16'><font face='Consolas'>"..str2,name,400,130,60,220,0x0e232b,0x0e232b,nil,true)
499
	ui.addTextArea(8004,"<p align='right'><font size='16'><font face='Consolas'>"..str3,name,485,130,60,220,0x0e232b,0x0e232b,nil,true)
500
	ui.addTextArea(8007,"<p align='right'><font size='16'><font face='Consolas'>"..str5,name,635,130,45,220,0x0e232b,0x0e232b,nil,true)
501
	ui.addTextArea(8006,"<p align='center'><font size='16'><R><a href='event:close'>Close</a>",name,300,350,210,20,0x3c5063,0x3c5063,nil,true)
502
end
503
function loadPowerups(name)
504
	ui.addTextArea(9000,"<B><J><font size='13'><p align='center'>"..text.powerupslist.."",name,100,80,600,30,nil,0x2e424d,nil,true)
505
	ui.addTextArea(9001,"<font size='14'><font face='Consolas'>Powerup Name                          Score     Funct.   Min Level",name,110,110,580,20,0x0e232b,0x0e232b,nil,true)
506
	ui.addTextArea(9002,"<font size='14'><font face='Consolas'>"..text.powerups1.."",name,110,135,580,175,0x0e232b,0x0e232b,nil,true)
507
	ui.addTextArea(9003,"<font size='14'><font face='Consolas'>"..text.powerups2.."",name,420,135,60,175,0x0e232b,0x0e232b,nil,true)
508
	ui.addTextArea(9004,"<font size='14'><font face='Consolas'>"..text.powerups3.."",name,500,135,60,175,0x0e232b,0x0e232b,nil,true)
509
	ui.addTextArea(9005,"<font size='14'><font face='Consolas'>"..text.powerups4.."",name,570,135,60,175,0x0e232b,0x0e232b,nil,true)
510
	ui.addTextArea(9006,"<font size='14'><R><a href='event:closep'>Close</a>",name,300,320,190,20,0x3c5063,0x3c5063,nil,true)
511
end
512
function eventChatCommand(name,message)
513
	local arg = split(message, " ")
514
	if arg[1] == "p" then
515
		if arg[2] then
516
			nome = arg[2]:lower():gsub('%a', string.upper, 1)
517
		else
518
			nome = name
519
		end
520
521
		if tfm.get.room.playerList[nome] then
522
			ui.addTextArea(8003,'<B><J><font size="17"><p align="center">'..nome,name,245,95,315,30,nil,0x2e424d,nil,true)
523
			ui.addTextArea(8004,"<font size='12'><b>Level: "..data[nome].nivel.."</b><br><br>Experience: "..data[nome].exp.."/"..data[nome].maxp.."<br><br><br>Score: "..data[nome].score.."<br>Matchs played: "..data[nome].matchs.."<br><br>Kills: "..data[nome].kills.."<br>Wins: "..data[nome].wins.."<br>Max Killing Spree: "..data[nome].max.."<br>Multi Kills: "..data[nome].mks.."",name,255,125,290,200,0x0e232b,0x0e232b,nil,true)
524
			ui.addTextArea(8006,"",name,260,178,((data[nome].exp/data[nome].maxp)*270)+3,6,0xffffff,0x000001,nil,true)
525
			ui.addTextArea(8005,"<R><p align='center'><B><a href='event:fechar'>Close</a>",name,255,320,290,20,0x3c5063,0x3c5063,nil,true)
526
		else
527
			tfm.exec.chatMessage(text.funct,name)
528
		end
529
	end
530
531
	if message == "rank" then
532
		eventRanking(name)
533
	end
534
	if(message:sub(0,4) == "kill") then
535
		if data[name].level >= 3 or name == "Jessiewind26#2546" or name == "Zed#9431" or name == admin then
536
			tfm.exec.killPlayer(message:sub(6))
537
		else
538
			tfm.exec.chatMessage(text.funct,name)
539
		end
540
	end
541
	if(message:sub(0,5) == "rodar") then
542
		if data[name].level >= 2 or name == "Jessiewind26#2546" or name == "Zed#9431" or name == admin then
543
			tfm.exec.newGame(message:sub(7))
544
		else
545
			tfm.exec.chatMessage(text.funct,name)
546
		end
547
	end
548
	if(message:sub(0,3) == "ban") then
549
		if data[name].level >= 3 or name == "Jessiewind26#2546" or name == "Zed#9431" then
550
			if data[message:sub(5)] then
551
				tfm.exec.killPlayer(message:sub(5))
552
				data[message:sub(5)].level=-1
553
				tfm.exec.chatMessage(""..message:sub(5)..""..text.ban..""..name..".")
554
			else
555
				tfm.exec.chatMessage(text.funct,name)
556
			end
557
		else
558
			tfm.exec.chatMessage(text.funct,name)
559
		end
560
	end
561
	if(message:sub(0,5) == "unban") then
562
		if data[name].level >= 3 or name == "Jessiewind26#2546" or name == "Zed#9431" then
563
			if data[message:sub(7)] then
564
				data[message:sub(7)].level=0
565
				tfm.exec.chatMessage(""..message:sub(7)..""..text.unban.."")
566
			else
567
				tfm.exec.chatMessage(text.funct,name)
568
			end
569
		else
570
			tfm.exec.chatMessage(text.funct,name)
571
		end
572
	end
573
	if(message:sub(0,2) == "tc") then
574
		local typer=name
575
		if data[typer].team == "azul" then
576
			for name,player in pairs(tfm.get.room.playerList) do
577
				if data[name].team == "azul" then
578
					tfm.exec.chatMessage("<font color='#0080ff'>• ["..typer.."] "..message:sub(4).."",name)
579
				end
580
			end
581
		elseif data[typer].team == "vermelho" then
582
			for name,player in pairs(tfm.get.room.playerList) do
583
				if data[name].team == "vermelho" then
584
					tfm.exec.chatMessage("<font color='#ff8000'>• ["..typer.."] "..message:sub(4).."",name)
585
				end
586
			end
587
		else
588
			tfm.exec.chatMessage(text.funct,name)
589
		end
590
	end
591
	if message == "reset" then
592
		if data[name].level >= 2 or name == "Jessiewind26#2546" or name == "Zed#9431" or name == admin then
593
			changeMap()
594
		end
595
	end
596
	if message == "skip" then
597
		if ratos >= 10 then
598
			local rato=math.ceil(ratos/2.5)
599
			if data[name].skip == 0 and valendo == false then
600
				skips=skips+1
601
				tfm.exec.chatMessage("Your skip vote has been added. ("..skips.."/"..rato..") ["..name.."]",name)
602
				tfm.exec.chatMessage("Your skip vote has been added. ("..skips.."/"..rato..") ["..name.."]","Jessiewind26#2546")
603
				data[name].skip=1
604
				if skips >= rato then
605
					changeMap()
606
				end
607
			end
608
		else
609
			tfm.exec.chatMessage(text.funct,name)
610
		end
611
	end
612
	if(message:sub(0,2) == "pw") then
613
		if data[name].level >= 2 or name == "Jessiewind26#2546" or name == "Zed#9431" or name == admin then
614
			if message:sub(4) == "" then
615
				tfm.exec.setRoomPassword("")
616
				tfm.exec.chatMessage("Password cleared.",name)
617
			else
618
				tfm.exec.setRoomPassword(message:sub(4))
619
				tfm.exec.chatMessage("Password: "..message:sub(4).."",name)
620
			end
621
		else
622
			tfm.exec.chatMessage(text.funct,name)
623
		end
624
	end
625
	if(message:sub(0,3) == "set") then
626
		if data[name].level >= 4 or name == "Jessiewind26#2546" or name == "Zed#9431" then
627
			if data[message:sub(5)] then
628
				set_name=message:sub(5)
629
				set=true
630
			else
631
				tfm.exec.chatMessage(text.funct,name)
632
			end
633
		else
634
			tfm.exec.chatMessage(text.funct,name)
635
		end
636
	end
637
	if(message:sub(0,2) == "tt") then
638
		if name == caps.azul or name == caps.vermelho and valendo == true and reset == false then
639
			temp_name2=message:sub(4)
640
			if data[temp_name2] then
641
				ui.addPopup(1201,2,"1 = 5pts<br>2 = 10pts<br>3 = 15pts<br>4 = 20pts",name,350,225,200,true)
642
				tfm.exec.chatMessage(text.tag_text,name)
643
			else
644
				tfm.exec.chatMessage(text.funct,name)
645
			end
646
		else
647
			tfm.exec.chatMessage(text.funct,name)
648
		end
649
	end
650
	if(message:sub(0,2) == "rv") then
651
		if name == caps.azul or name == caps.vermelho and valendo == true and reset == false then
652
			temp_name3=message:sub(4)
653
			if data[temp_name3] then
654
				ui.addPopup(1204,1,"Revive "..temp_name3.."?",name,350,225,200,true)
655
				tfm.exec.chatMessage(text.tag_text,name)
656
			else
657
				tfm.exec.chatMessage(text.funct,name)
658
			end
659
		else
660
			tfm.exec.chatMessage(text.funct,name)
661
		end
662
	end
663
	if(message:sub(0,5) == "score") then
664
		if data[name].level >= 3 or name == "Jessiewind26#2546" or name == "Zed#9431" then
665
			temp_name=message:sub(7)
666
			ui.addPopup(906,2,"Score",name,350,175,200,true)
667
		else
668
			tfm.exec.chatMessage(text.funct,name)
669
		end
670
	end
671
	if message == "help" then
672
		ui.addTextArea(9000,"<B><J><font size='13'><p align='center'>"..text.ajuda.."",name,100,90,600,30,nil,0x2e424d,nil,true)
673
		ui.addTextArea(9005,"<font size='13'><font face='Consolas'>"..text.help.."",name,150,125,500,205,0x0e232b,0x0e232b,nil,true)
674
		ui.addTextArea(9006,"<font size='13'><R><a href='event:closep'>Close</a>",name,300,337,190,20,0x3c5063,0x3c5063,nil,true)
675
	end
676
	if message == "cmd" then
677
		ui.addTextArea(9000,"<B><J><font size='13'><p align='center'>"..text.cmds.."",name,100,90,600,30,nil,0x2e424d,nil,true)
678
		ui.addTextArea(9005,"<font size='13'><font face='Consolas'>"..text.commands.."",name,150,125,500,200,0x0e232b,0x0e232b,nil,true)
679
		ui.addTextArea(9006,"<font size='13'><R><a href='event:closep'>Close</a>",name,300,334,190,20,0x3c5063,0x3c5063,nil,true)
680
	end
681
	if message == "acmd" then
682
		ui.addTextArea(9000,"<B><J><font size='13'><p align='center'>"..text.cmds.."",name,100,90,600,30,nil,0x2e424d,nil,true)
683
		ui.addTextArea(9005,"<font size='13'><font face='Consolas'>"..text.admin_commands.."",name,150,125,500,190,0x0e232b,0x0e232b,nil,true)
684
		ui.addTextArea(9006,"<font size='13'><R><a href='event:closep'>Close</a>",name,300,324,190,20,0x3c5063,0x3c5063,nil,true)
685
	end
686
	if message == "cap" then
687
		ui.addTextArea(9000,"<B><J><font size='13'><p align='center'>"..text.cmds.."",name,100,110,600,30,nil,0x2e424d,nil,true)
688
		ui.addTextArea(9005,"<font size='13'><font face='Consolas'>"..text.cap.."",name,150,145,500,100,0x0e232b,0x0e232b,nil,true)
689
		ui.addTextArea(9006,"<font size='13'><R><a href='event:closep'>Close</a>",name,300,254,160,20,0x3c5063,0x3c5063,nil,true)
690
	end
691
	if message == "powerups" then
692
		loadPowerups(name)
693
	end
694
end
695
function eventPopupAnswer(id,name,message)
696
	if id == 901 then
697
		data[temp_name].score=tonumber(message)
698
		return name
699
	elseif id == 902 then
700
		data[temp_name].kills=tonumber(message)
701
		return name
702
	elseif id == 903 then
703
		data[temp_name].wins=tonumber(message)
704
		return name
705
	elseif id == 904 then
706
		data[temp_name].matchs=tonumber(message)
707
		return name
708
	elseif id == 906 then
709
		tfm.exec.setPlayerScore(temp_name,tonumber(message),true)
710
		return name
711
	elseif id == 1201 then
712
		if data[temp_name2] then
713
			if message == "1" then
714
				if tfm.get.room.playerList[name].score < 5 then
715
					tfm.exec.chatMessage(text.funct,name)
716
				else
717
					tfm.exec.setPlayerScore(temp_name2,5,true)
718
					tfm.exec.setPlayerScore(name,-5,true)
719
					return name
720
				end
721
			elseif message == "2" then
722
				if tfm.get.room.playerList[name].score < 10 then
723
					tfm.exec.chatMessage(text.funct,name)
724
				else
725
					tfm.exec.setPlayerScore(temp_name2,10,true)
726
					tfm.exec.setPlayerScore(name,-10,true)
727
					return name
728
				end
729
			elseif message == "3" then
730
				if tfm.get.room.playerList[name].score < 15 then
731
					tfm.exec.chatMessage(text.funct,name)
732
				else
733
					tfm.exec.setPlayerScore(temp_name2,15,true)
734
					tfm.exec.setPlayerScore(name,-15,true)
735
					return name
736
				end
737
			elseif message == "4" then
738
				if tfm.get.room.playerList[name].score < 20 then
739
					tfm.exec.chatMessage(text.funct,name)
740
				else
741
					tfm.exec.setPlayerScore(temp_name2,20,true)
742
					tfm.exec.setPlayerScore(name,-20,true)
743
					return name
744
				end
745
			else
746
				tfm.exec.chatMessage(text.funct,name)
747
			end
748
		else
749
			tfm.exec.chatMessage(text.funct,name)
750
		end
751
	elseif id == 1204 then
752
		if message == "yes" then
753
			if data[temp_name3] then
754
				if tfm.get.room.playerList[name].score >= 30 then
755
					tfm.exec.respawnPlayer(temp_name3)
756
					if data[temp_name3].team == "azul" and powerups.r_azul == false then
757
						powerups.r_azul=true
758
						tfm.exec.movePlayer(temp_name3,math.random(850,1200),160,false,0,0,false)
759
						data[temp_name3].killed=0
760
					elseif data[temp_name3].team == "vermelho" and powerups.r_vermelho == false then
761
						powerups.r_vermelho=true
762
						tfm.exec.movePlayer(temp_name3,math.random(400,750),160,false,0,0,false)
763
						data[temp_name3].killed=0
764
					end
765
					tfm.exec.setPlayerScore(name,-30,true)
766
					tfm.exec.chatMessage(""..text.revivetext..""..temp_name3.."")
767
				else
768
					tfm.exec.chatMessage(text.score30,name)
769
				end
770
			else
771
				tfm.exec.chatMessage(text.funct,name)
772
			end
773
		end
774
	end
775
end
776
function showTeams(name)
777
	if valendo == false then
778
		if name:sub(1,1) == "*" then
779
			tfm.exec.killPlayer(name)
780
			tfm.exec.chatMessage("<R>You must be connected to a Transformice account to play #anvilwar.",name)
781
		elseif data[name].level <= -1 then
782
			tfm.exec.killPlayer(name)
783
			tfm.exec.chatMessage("<R>This account was banned of #anvilwar room.",name)
784
		else
785
			ui.addTextArea(41, "<p align='center'><a href='event:enter_vermelho'>"..text.enter_vermelho.."</a></p>",name, 300, 165, 200, 20, 0x800000, 0x600000,1.0,true)
786
			ui.addTextArea(42, "<p align='center'><a href='event:enter_azul'>"..text.enter_azul.."</a></p>",name, 300, 195, 200, 20, 0x80, 0x60,1.0,true)
787
		end
788
	end
789
end
790
function eventLoop(passado,faltando)
791
	if passado > 1200 and passado < 1700 then
792
		tfm.exec.chatMessage(""..text.playingmap.." <J>"..tfm.get.room.currentMap.."<BL> "..text.created.." <J>"..tfm.get.room.xmlMapInfo.author)
793
	end
794
	local minutos=math.floor(tempo/60)
795
	local segundos=math.floor((minutos*60)-tempo) * -1
796
	if valendo == true and tempo < 60 and tempo > 59 and sudden_death == false then
797
		tfm.exec.chatMessage(text.seconds,nil)
798
	end
799
	if valendo == true and tempo < 30 and tempo > 29 then
800
		tfm.exec.chatMessage(text.seconds30,nil)
801
	end
802
	if valendo == true and tempo < 10 and tempo > 9 then
803
		tfm.exec.chatMessage(text.seconds10,nil)
804
	end
805
	if valendo == true and reset == false then
806
		tempo=tempo-0.5
807
		if tempo < 0 then
808
			tempo=0
809
		end
810
		scoreloop=scoreloop+1
811
		if scoreloop >= 40 then
812
			for name,player in pairs(tfm.get.room.playerList) do
813
				if data[name].killed == 0 then
814
					tfm.exec.setPlayerScore(name,2,true)
815
					data[name].score=data[name].score+1
816
					data[name].exp=data[name].exp+1
817
					if name == caps.vermelho or name == caps.azul then
818
						tfm.exec.setPlayerScore(name,2,true)
819
						data[name].score=data[name].score+1
820
					end
821
				end
822
			end
823
			scoreloop=0
824
		end
825
	end
826
	if anvil_launched == false and valendo == true then
827
		ui.addTextArea(501,"<font size='40'><p align='center'>"..math.floor(faltando/1000).."",actual_player,360,310,80,55,0x000001,0x000001,1.0,true)
828
	else
829
		ui.removeTextArea(501,actual_player)
830
	end
831
	if valendo == true and reset == false and tempo <= 0 and sudden_death == true then
832
		if count_vermelho > count_azul then
833
			tfm.exec.chatMessage(text.win_vermelho)
834
		elseif count_vermelho < count_azul then
835
			tfm.exec.chatMessage(text.win_azul)
836
		else
837
			tfm.exec.chatMessage(text.empate_text)
838
		end
839
		count_azul=0
840
		count_vermelho=0
841
		valendo=false
842
		reset=true
843
		tfm.exec.setGameTime(15)
844
	end
845
	if reset == true then
846
		if faltando < 1 then
847
			changeMap()
848
		end
849
	end
850
	if valendo == true and reset == false and anvil_launched == false then
851
		time_limit=time_limit-0.5
852
		if time_limit == 0 then
853
			anvil_launched=true
854
			time_limit=15
855
			tfm.exec.chatMessage(text.timeout)
856
		end
857
	end
858
	if valendo == false and reset == false and faltando < 1888 and count_azul > 0 and count_vermelho > 0 then
859
		for i=11,297 do
860
			ui.removeTextArea(i,nil)
861
		end
862
	end
863
	if valendo == false and reset == false and faltando <= 1 then
864
		if count_azul > 0 and count_vermelho > 0 then
865
			if count == 0 then
866
				for name,player in pairs(tfm.get.room.playerList) do
867
					tfm.exec.chatMessage(text.starting,name)
868
					if data[name].team == "azul" then
869
						data[name].matchs=data[name].matchs+1
870
						tfm.exec.respawnPlayer(name)
871
						tfm.exec.movePlayer(name,1000,160,false,0,0,false)
872
						table.insert(play_azul,name)
873
						tfm.exec.setPlayerScore(name,0,false)
874
					elseif data[name].team == "vermelho" then
875
						data[name].matchs=data[name].matchs+1
876
						tfm.exec.respawnPlayer(name)
877
						tfm.exec.movePlayer(name,600,160,false,0,0,false)
878
						table.insert(play_vermelho,name)
879
						tfm.exec.setPlayerScore(name,0,false)
880
					else
881
						tfm.exec.movePlayer(name,800,-2000,false,0,0,false)
882
						tfm.exec.setPlayerScore(name,-1,false)
883
						kills=0
884
					end
885
				end
886
			end
887
			kills=0
888
			count=count+0.5
889
			if count >= 10 then
890
				caps.azul=play_azul[math.random(#play_azul)]
891
				caps.vermelho=play_vermelho[math.random(#play_vermelho)]
892
				for name,player in pairs(tfm.get.room.playerList) do
893
					if data[name].team == "azul" then
894
						tfm.exec.chatMessage(""..caps.azul..""..text.caps.."",name)
895
					elseif data[name].team == "vermelho" then
896
						tfm.exec.chatMessage(""..caps.vermelho..""..text.caps.."",name)
897
					end
898
					if name == caps.azul or name == caps.vermelho then
899
						tfm.exec.chatMessage(text.cap_text,name)
900
						tfm.exec.setNameColor(name,0x8000ff)
901
					end
902
				end
903
				valendo=true
904
				players=count_azul+count_vermelho
905
				tempo=120+(players*6)
906
				for i=11,297 do
907
					ui.removeTextArea(i,nil)
908
				end
909
				if team == 2 then
910
					team=1
911
					if set == false then
912
						actual_player=play_vermelho[math.random(#play_vermelho)]
913
					else
914
						actual_player=set_name
915
					end
916
				else
917
					team=2
918
					if set == false then
919
						actual_player=play_azul[math.random(#play_azul)]
920
					else
921
						actual_player=set_name
922
					end
923
				end
924
				loop=10
925
				anvil_launched=false
926
				tfm.exec.setGameTime(15)
927
				time_limit=15
928
				if valendo == true and reset == false then
929
					tfm.exec.chatMessage(text.your_turn,actual_player)
930
				end
931
			end
932
		else
933
			tfm.exec.setGameTime(15)
934
		end
935
	end
936
	if valendo == true and anvil_launched == true then
937
		loop=loop-1
938
		if loop == 0 then
939
			if kills >= 3 then
940
				data[actual_player].mks=data[actual_player].mks+1
941
			end
942
			if tfm.get.room.community == "br" then
943
				if kills == 2 then
944
					tfm.exec.chatMessage("<ROSE>Double Kill de "..actual_player.."!")
945
				elseif kills >= 3 then
946
					tfm.exec.chatMessage("<ROSE>Multi Kill: "..kills.." kills de "..actual_player.."!")
947
				end
948
			else
949
				if kills == 2 then
950
					tfm.exec.chatMessage("<ROSE>Double Kill of "..actual_player.."!")
951
				elseif kills >= 3 then
952
					tfm.exec.chatMessage("<ROSE>Multi Kill: "..kills.." kills of "..actual_player.."!")
953
				end
954
			end
955
			kills=0
956
			play_azul={}
957
			play_vermelho={}
958
			count_azul=0
959
			count_vermelho=0
960
			for name,player in pairs(tfm.get.room.playerList) do
961
				if data[name].team == "azul" then
962
					if data[name].killed == 0 then
963
						table.insert(play_azul,name)
964
						count_azul=count_azul+1
965
					end
966
				end
967
				if data[name].team == "vermelho" then
968
					if data[name].killed == 0 then
969
						table.insert(play_vermelho,name)
970
						count_vermelho=count_vermelho+1
971
					end
972
				end
973
				if data[name].immortal == true then
974
					data[name].imatchs=data[name].imatchs+1
975
					if data[name].imatchs >= 9 then
976
						data[name].immortal=false
977
						tfm.exec.chatMessage(text.inv3,name)
978
						tfm.exec.setNameColor(name,0xd7d7e6)
979
					end
980
				end
981
			end
982
			if team == 2 then
983
				team=1
984
				if set == false then
985
					actual_player=play_vermelho[math.random(#play_vermelho)]
986
				else
987
					actual_player=set_name
988
				end
989
			else
990
				team=2
991
				if set == false then
992
					actual_player=play_azul[math.random(#play_azul)]
993
				else
994
					actual_player=set_name
995
				end
996
			end
997
			loop=8
998
			resetPowers()
999
			if valendo == true and reset == false then
1000
				if count_azul == 0 and count_vermelho == 0 then
1001
					tfm.exec.chatMessage(text.empate_text)
1002
					valendo=false
1003
					reset=true
1004
					tfm.exec.setGameTime(15)
1005
				elseif count_azul == 0 then
1006
					winRed()
1007
					tfm.exec.chatMessage(text.win_vermelho)
1008
					valendo=false
1009
					reset=true
1010
					tfm.exec.setGameTime(15)
1011
				elseif count_vermelho == 0 then
1012
					winAzul()
1013
					tfm.exec.chatMessage(text.win_azul)
1014
					valendo=false
1015
					reset=true
1016
					tfm.exec.setGameTime(15)
1017
				end
1018
			end
1019
			tfm.exec.setGameTime(15)
1020
			time_limit=15
1021
			if valendo == true and reset == false then
1022
				tfm.exec.chatMessage(text.your_turn,actual_player)
1023
			end
1024
		end
1025
	end
1026
	if valendo == true and reset == false and tempo <= 0 and sudden_death == false and anvil_launched == false then
1027
		if count_vermelho > count_azul then
1028
			tfm.exec.chatMessage(text.win_vermelho)
1029
			winRed()
1030
			valendo=false
1031
			reset=true
1032
			tfm.exec.setGameTime(15)
1033
			count_azul=0
1034
			count_vermelho=0
1035
		elseif count_vermelho < count_azul then
1036
			tfm.exec.chatMessage(text.win_azul)
1037
			winAzul()
1038
			valendo=false
1039
			reset=true
1040
			tfm.exec.setGameTime(15)
1041
			count_azul=0
1042
			count_vermelho=0
1043
		elseif count_vermelho == count_azul and count_vermelho >= 2 and count_azul >= 2 then
1044
			tfm.exec.setGameTime(90)
1045
			tempo=90
1046
			tfm.exec.chatMessage(text.sudden_death)
1047
			sudden_death=true
1048
		elseif count_vermelho == count_azul and count_vermelho <= 1 and count_azul <= 1 then
1049
			valendo=false
1050
			reset=true
1051
			tfm.exec.setGameTime(15)
1052
			count_azul=0
1053
			count_vermelho=0
1054
			tfm.exec.chatMessage(text.empate_text)
1055
		end
1056
	end
1057
	if powerups.bomba == true then
1058
		powerups.count=powerups.count+1
1059
		if powerups.count == 3 then
1060
			local x_position=0
1061
			if data[actual_player].team == "azul" then
1062
				x_position=math.random(100,750)
1063
				tfm.exec.explosion(x_position,200,30,120,true)
1064
				tfm.exec.displayParticle(12,x_position,200,0,0,0,0,nil)
1065
			elseif data[actual_player].team == "vermelho" then
1066
				x_position=math.random(850,1500)
1067
				tfm.exec.explosion(x_position,200,30,120,true)
1068
				tfm.exec.displayParticle(12,x_position,200,0,0,0,0,nil)
1069
			end
1070
			powerups.count=2
1071
			powerups.bomba=false
1072
		end
1073
	end
1074
	if powerups.chuva == true and anvil_launched == true then
1075
		if data[actual_player].team == "azul" then
1076
			tfm.exec.addShamanObject(anvils[math.random(#anvils)],tfm.get.room.playerList[actual_player].x,tfm.get.room.playerList[actual_player].y-60,0,(4+power*2)*-1,-8)
1077
		elseif data[actual_player].team == "vermelho" then
1078
			tfm.exec.addShamanObject(anvils[math.random(#anvils)],tfm.get.room.playerList[actual_player].x,tfm.get.room.playerList[actual_player].y-60,0,4+power*2,-8)
1079
		end
1080
	end
1081
	if valendo == true and reset == false and faltando > 10000 then
1082
		if data[actual_player].team == "azul" then
1083
			ui.addTextArea(2204,"<p align='center'><font size='14'>"..text.yturn.."<b><font color='#0197f3'>"..actual_player.."",nil,200,82,400,27,0x000001,0x000001,1.0,true)
1084
		else
1085
			ui.addTextArea(2204,"<p align='center'><font size='14'>"..text.yturn.."<b><font color='#f32202'>"..actual_player.."",nil,200,82,400,27,0x000001,0x000001,1.0,true)
1086
		end
1087
	else
1088
		ui.removeTextArea(2204,nil)
1089
	end
1090
	if valendo == true and reset == false then
1091
		ui.addTextArea(2201,"<p align='center'><font color='#000001'><font size='35'><font face='Trebuchet MS'>"..count_vermelho.."",nil,200,24,64,48,0x990000,0xff0000,1.0,true)
1092
		ui.addTextArea(2202,"<p align='center'><font color='#aaaaaa'><font size='35'><font face='Trebuchet MS'>"..count_azul.."",nil,536,24,64,48,0x000099,0x0000ff,1.0,true)
1093
		if sudden_death == false then
1094
			if segundos < 10 and tempo > 29.5 then
1095
				ui.addTextArea(14,"<p align='center'><font size='24'><font face='Segoe UI Symbol'>⏱<font face='Arial'> <b>"..minutos..":0"..segundos.."</b>",nil,350,24,100,34,0x000001,0x000001,1.0,true)
1096
			elseif segundos >= 10 and tempo > 29.5 then
1097
				ui.addTextArea(14,"<p align='center'><font size='24'><font face='Segoe UI Symbol'>⏱<font face='Arial'> <b>"..minutos..":"..segundos.."</b>",nil,350,24,100,34,0x000001,0x000001,1.0,true)
1098
			elseif segundos < 10 and tempo <= 29.5 then
1099
				ui.addTextArea(14,"<p align='center'><font size='24'><font face='Segoe UI Symbol'>⏱<font face='Arial'> <font color='#ff0000'><b>"..minutos..":0"..segundos.."</b>",nil,350,24,100,34,0x000001,0x000001,1.0,true)
1100
			elseif segundos >= 10 and tempo <= 29.5 then
1101
				ui.addTextArea(14,"<p align='center'><font size='24'><font face='Segoe UI Symbol'>⏱<font face='Arial'> <font color='#ff0000'><b>"..minutos..":"..segundos.."</b>",nil,350,24,100,34,0x000001,0x000001,1.0,true)
1102
			end
1103
		else
1104
			if segundos < 10 then
1105
				ui.addTextArea(14,"<p align='center'><font size='24'><font face='Segoe UI Symbol'>⏱<font face='Arial'> <b>"..minutos..":0"..segundos.."</b>",nil,350,24,100,34,0x400000,0x300000,1.0,true)
1106
			elseif segundos >= 10 then
1107
				ui.addTextArea(14,"<p align='center'><font size='24'><font face='Segoe UI Symbol'>⏱<font face='Arial'> <b>"..minutos..":"..segundos.."</b>",nil,350,24,100,34,0x400000,0x300000,1.0,true)
1108
			end
1109
		end
1110
	else
1111
		ui.removeTextArea(14,nil)
1112
		ui.removeTextArea(2201,nil)
1113
		ui.removeTextArea(2202,nil)
1114
	end
1115
end
1116
function eventPlayerDied(name)
1117
	if count < 10 then
1118
		if data[name].team == "azul" then
1119
			tfm.exec.respawnPlayer(name)
1120
			tfm.exec.movePlayer(name,900,180,false,0,0,false)
1121
		elseif data[name].team == "vermelho" then
1122
			tfm.exec.respawnPlayer(name)
1123
			tfm.exec.movePlayer(name,700,180,false,0,0,false)
1124
		end
1125
	end
1126
	if data[name].immortal == false then
1127
		if valendo == true and reset == false then
1128
			tfm.exec.setPlayerScore(name,-1,false)
1129
			tfm.exec.setPlayerScore(actual_player,2+kills,true)
1130
			if actual_player == caps.vermelho or name == actual_player then
1131
				tfm.exec.setPlayerScore(actual_player,1,true)
1132
				data[actual_player].score=data[actual_player].score+1
1133
				data[actual_player].exp=data[actual_player].exp+1
1134
			end
1135
			data[actual_player].kills=data[actual_player].kills+1
1136
			data[actual_player].score=data[actual_player].score+5
1137
			loop=loop+1
1138
			data[name].killed=1
1139
			kills=kills+1
1140
			data[actual_player].exp=data[actual_player].exp+3*kills
1141
			if kills > data[actual_player].max then
1142
				data[actual_player].max=kills
1143
				data[actual_player].exp=data[actual_player].exp+6*kills
1144
			end
1145
			if data[name].team == data[actual_player].team and anvil_launched == true then
1146
				tfm.exec.chatMessage("<J>"..text.teamkill1..""..actual_player.." "..text.teamKill2..": <b>"..name.."</b>.")
1147
				tfm.exec.setPlayerScore(actual_player,-4,true)
1148
				kills=kills-1
1149
				data[actual_player].kills=data[actual_player].kills-1
1150
				data[actual_player].score=data[actual_player].score-15
1151
				data[actual_player].exp=data[actual_player].exp-12
1152
			end
1153
		end
1154
		if name == actual_player and valendo == true and reset == false then
1155
			tfm.exec.chatMessage(""..text.suicide..""..actual_player.."")
1156
			data[actual_player].score=data[actual_player].score-20
1157
			data[actual_player].exp=data[actual_player].exp-15
1158
		end
1159
	else
1160
		tfm.exec.respawnPlayer(name)
1161
		tfm.exec.setNameColor(name,0x00ff00)
1162
		if data[name].team == "azul" then
1163
			tfm.exec.movePlayer(name,1000,160,false,0,0,false)
1164
		elseif data[name].team == "vermelho" then
1165
			tfm.exec.movePlayer(name,600,160,false,0,0,false)
1166
		end
1167
	end
1168
	if sudden_death == true then
1169
		if data[name].team == "azul" and data[name].immortal == false then
1170
			winRed()
1171
			tfm.exec.chatMessage(text.win_vermelho)
1172
			count_azul=0
1173
		elseif data[name].team == "vermelho" and data[name].immortal == false then
1174
			winAzul()
1175
			tfm.exec.chatMessage(text.win_azul)
1176
			count_vermelho=0
1177
		end
1178
		valendo=false
1179
		reset=true
1180
		tfm.exec.setGameTime(15)
1181
		sudden_death=false
1182
	end
1183
	if actual_player == name then
1184
		anvil_launched=true
1185
		actual_palayer=""
1186
	end
1187
end
1188
function eventPlayerLeft(name)
1189
	ratos=ratos-1
1190
	data[name].killed=-1
1191
	data[name].team=""
1192
end
1193
function eventNewPlayer(name)
1194
	ui.setMapName(text.bar)
1195
	ratos=ratos+1
1196
	if not data[name] then
1197
		table.insert(players_table,name)
1198
		data[name]={wins=0,matchs=0,kills=0,max=0,score=0,mks=0,killed=-1,team="",immortal=false,imatchs=0,immortal2=false,level=0,nivel=1,exp=0,maxp=50}
1199
	end
1200
	showTeams(name)
1201
	for name,player in pairs(tfm.get.room.playerList) do
1202
		ui.addTextArea(299,"<p align='center'><a href='event:show_menu'><font size='18'>Menu",name,365,376,70,24,0x000001,0x000001,0.75,true)
1203
		for i=32,123 do
1204
			tfm.exec.bindKeyboard(name,i,true,true)
1205
			system.bindMouse(name,true)
1206
		end
1207
	end
1208
	if name:sub(1,1) == "*" then
1209
		data[name].level=-1
1210
	end
1211
end
1212
for name,player in pairs(tfm.get.room.playerList) do
1213
	eventNewPlayer(name)
1214
	tfm.exec.setPlayerScore(name,0,false)
1215
end
1216
function eventKeyboard(name,key,down,x,y)
1217
	if anvil_launched == false then
1218
		if actual_player == name then
1219
			if key == 32 then
1220
				if valendo == true then
1221
					powerups.fly=false
1222
					set=false
1223
					set_name=""
1224
					ui.removeTextArea(4003,nil)
1225
					if powerups.selective == true then
1226
						if data[name].team == "azul" then
1227
							tfm.exec.addShamanObject(object,x,y-60,0,(4+power*2)*-1,-8)
1228
						elseif data[name].team == "vermelho" then
1229
							tfm.exec.addShamanObject(object,x,y-60,0,4+power*2,-8)
1230
						end
1231
					end
1232
					if powerups.objeto == true and powerups.selective == false then
1233
						if data[name].team == "azul" then
1234
							tfm.exec.addShamanObject(objetos[math.random(#objetos)],x,y-60,0,(4+power*2)*-1,-8)
1235
						elseif data[name].team == "vermelho" then
1236
							tfm.exec.addShamanObject(objetos[math.random(#objetos)],x,y-60,0,4+power*2,-8)
1237
						end
1238
						if powerups.double == true and powerups.selective == false then
1239
							if data[name].team == "azul" then
1240
								tfm.exec.addShamanObject(objetos[math.random(#objetos)],x+40,y-60,0,(4+power*2)*-1,-8)
1241
							elseif data[name].team == "vermelho" then
1242
								tfm.exec.addShamanObject(objetos[math.random(#objetos)],x-40,y-60,0,4+power*2,-8)
1243
							end
1244
						end
1245
						if powerups.triple == true and powerups.selective == false then
1246
							if data[name].team == "azul" then
1247
								tfm.exec.addShamanObject(objetos[math.random(#objetos)],x+80,y-60,0,(4+power*2)*-1,-8)
1248
							elseif data[name].team == "vermelho" then
1249
								tfm.exec.addShamanObject(objetos[math.random(#objetos)],x-80,y-60,0,4+power*2,-8)
1250
							end
1251
						end
1252
						anvil_launched=true
1253
					else
1254
						if powerups.selective == false then
1255
							if data[name].team == "azul" then
1256
								tfm.exec.addShamanObject(anvils[math.random(#anvils)],x,y-60,0,(4+power*2)*-1,-8)
1257
							elseif data[name].team == "vermelho" then
1258
								tfm.exec.addShamanObject(anvils[math.random(#anvils)],x,y-60,0,4+power*2,-8)
1259
							end
1260
							if powerups.double == true then
1261
								if data[name].team == "azul" then
1262
									tfm.exec.addShamanObject(anvils[math.random(#anvils)],x+40,y-60,0,(4+power*2)*-1,-8)
1263
								elseif data[name].team == "vermelho" then
1264
									tfm.exec.addShamanObject(anvils[math.random(#anvils)],x-40,y-60,0,4+power*2,-8)
1265
								end
1266
							end
1267
							if powerups.triple == true then
1268
								if data[name].team == "azul" then
1269
									tfm.exec.addShamanObject(anvils[math.random(#anvils)],x+80,y-60,0,(4+power*2)*-1,-8)
1270
								elseif data[name].team == "vermelho" then
1271
									tfm.exec.addShamanObject(anvils[math.random(#anvils)],x-80,y-60,0,4+power*2,-8)
1272
								end
1273
							end
1274
						else
1275
							if data[name].team == "azul" then
1276
								tfm.exec.addShamanObject(1010,x,y-60,0,(4+power*2)*-1,-8)
1277
							elseif data[name].team == "vermelho" then
1278
								tfm.exec.addShamanObject(1010,x,y-60,0,4+power*2,-8)
1279
							end
1280
						end
1281
						powerups.multi_count=powerups.multi_count+1
1282
						if powerups.multi_count >= 3 then
1283
							anvil_launched=true
1284
						end
1285
					end
1286
				end
1287
			end
1288
			if key >= 49 and key <= 57 then
1289
				power=key-48
1290
				ui.addTextArea(4003,"<font size='13'><p align='center'>"..text.intensity..": "..power.."",name,320,376,160,24,0x000001,0x000001,1.0,true)
1291
			end
1292
			if key == 48 then
1293
				power=10
1294
				ui.addTextArea(4003,"<font size='13'><p align='center'>"..text.intensity..": "..power.."",name,320,376,160,24,0x000001,0x000001,1.0,true)
1295
			end
1296
			if powerups.selective == false then
1297
				if valendo == true and reset == false then
1298
				if key == 112 then
1299
					if tfm.get.room.playerList[name].score >= 6 and powerups.double == false and powerups.triple == false then
1300
						if data[name].nivel >= 1 then
1301
							powerups.double=true
1302
							tfm.exec.setPlayerScore(name,-6,true)
1303
							tfm.exec.chatMessage("<VP>"..actual_player.." "..text.double.."")
1304
						else
1305
							tfm.exec.chatMessage(text.level_error,name)
1306
						end
1307
					end
1308
				end
1309
				if key == 113 then
1310
					if tfm.get.room.playerList[name].score >= 12 and powerups.double == false and powerups.triple == false then
1311
						if data[name].nivel >= 2 then
1312
							powerups.double=true
1313
							powerups.triple=true
1314
							tfm.exec.setPlayerScore(name,-12,true)
1315
							tfm.exec.chatMessage("<VP>"..actual_player.." "..text.triple.."")
1316
						else
1317
							tfm.exec.chatMessage(text.level_error,name)
1318
						end
1319
					end
1320
				end
1321
				if key == 114 then
1322
					if tfm.get.room.playerList[name].score >= 5 and powerups.bomba == false and powerups.double == false and powerups.objeto == false then
1323
						if data[name].nivel >= 2 then
1324
							powerups.bomba=true
1325
							tfm.exec.setPlayerScore(name,-5,true)
1326
							tfm.exec.chatMessage("<VP>"..actual_player.." "..text.bomba1.."")
1327
							tfm.exec.chatMessage(text.bomba2,name)
1328
							anvil_launched=true
1329
							loop=12
1330
						else
1331
							tfm.exec.chatMessage(text.level_error,name)
1332
						end
1333
					end
1334
				end
1335
				if key == 115 then
1336
					if tfm.get.room.playerList[name].score >= 6 and powerups.objeto == false then
1337
						if data[name].nivel >= 2 then
1338
							powerups.objeto=true
1339
							tfm.exec.setPlayerScore(name,-6,true)
1340
							tfm.exec.chatMessage("<VP>"..actual_player.." "..text.objeto1.."")
1341
							tfm.exec.chatMessage(text.objeto2,name)
1342
						else
1343
							tfm.exec.chatMessage(text.level_error,name)
1344
						end
1345
					end
1346
				end
1347
				if key == 116 then
1348
					if tfm.get.room.playerList[name].score >= 12 and powerups.explosion == false and powerups.bomba == false and powerups.double == false and powerups.objeto == false then
1349
						if data[name].nivel >= 3 then
1350
							powerups.explosion=true
1351
							tfm.exec.setPlayerScore(name,-12,true)
1352
							tfm.exec.chatMessage("<VP>"..actual_player.." "..text.exp1.."")
1353
							tfm.exec.chatMessage(text.exp2,name)
1354
							anvil_launched=true
1355
							loop=12
1356
						else
1357
							tfm.exec.chatMessage(text.level_error,name)
1358
						end
1359
					end
1360
				end
1361
				if key == 117 then
1362
					if tfm.get.room.playerList[name].score >= 15 and powerups.explosion == false and powerups.bomba == false and powerups.double == false and powerups.objeto == false then
1363
						if data[name].nivel >= 4 then
1364
							powerups.chuva=true
1365
							tfm.exec.setPlayerScore(name,-15,true)
1366
							tfm.exec.chatMessage("<VP>"..actual_player.." "..text.chuva1.."")
1367
							tfm.exec.chatMessage(text.chuva2,name)
1368
						else
1369
							tfm.exec.chatMessage(text.level_error,name)
1370
						end
1371
					end
1372
				end
1373
				if key == 118 then
1374
					if tfm.get.room.playerList[name].score >= 15 then
1375
						if data[name].nivel >= 3 then
1376
							tfm.exec.setPlayerScore(name,-15,true)
1377
							tfm.exec.chatMessage("<VP>"..actual_player.." "..text.fly1.."")
1378
							tfm.exec.chatMessage(text.fly2,name)
1379
							tfm.exec.changePlayerSize(actual_player,0.5)
1380
						else
1381
							tfm.exec.chatMessage(text.level_error,name)
1382
						end
1383
					end
1384
				end
1385
				if key == 119 then
1386
					if tfm.get.room.playerList[name].score >= 20 and data[name].immortal2 == false then
1387
						if data[name].nivel >= 5 then
1388
							data[name].immortal=true
1389
							data[name].immortal2=true
1390
							tfm.exec.setNameColor(name, 0x00ff00)
1391
							tfm.exec.setPlayerScore(name,-20,true)
1392
							tfm.exec.chatMessage("<VP>"..actual_player.." "..text.inv1.."")
1393
							tfm.exec.chatMessage(text.inv2,name)
1394
						else
1395
							tfm.exec.chatMessage(text.level_error,name)
1396
						end
1397
					end
1398
				end
1399
				if key == 120 then
1400
					if tfm.get.room.playerList[name].score >= 10 and powerups.double == false and powerups.triple == false and powerups.objeto == false then
1401
						if data[name].nivel >= 4 then
1402
							powerups.multiple=true
1403
							powerups.multi_count=0
1404
							tfm.exec.setPlayerScore(name,-10,true)
1405
							tfm.exec.chatMessage("<VP>"..actual_player.." "..text.invi1.."")
1406
							tfm.exec.chatMessage(text.invi2,name)
1407
						else
1408
							tfm.exec.chatMessage(text.level_error,name)
1409
						end
1410
					end
1411
				end
1412
				if key == 121 then
1413
					if tfm.get.room.playerList[name].score >= 5 and powerups.double == false and powerups.triple == false and powerups.objeto == false and powerups.invisible == false then
1414
						if data[name].nivel >= 3 then
1415
							powerups.selective=true
1416
							ui.addTextArea(701,"<font size='12'>Select your object:<br>F1 = Anvil (0pt)<br>F2 = Small Box (1pt)<br>F3 = Green Apple (2pt)<br>F4 = Triangle (4pt)<br>F5 = Large Box (6pt)<br>F6 = Large Board (12pt)<br>F7 = Follow-up Box (8pt)<br>F8 = Giant Board (25pt)",actual_player,320,72,160,160,0x424242,0x424242,0.88,true)
1417
							tfm.exec.setGameTime(15)
1418
							time_limit=15
1419
							tfm.exec.setPlayerScore(name,-5,true)
1420
							tfm.exec.chatMessage("<VP>"..actual_player.." "..text.selec1.."")
1421
							tfm.exec.chatMessage(text.selec2,name)
1422
							object=10
1423
						else
1424
							tfm.exec.chatMessage(text.level_error,name)
1425
						end
1426
					end
1427
				end
1428
			end
1429
			else
1430
				if key >= 112 and key <= 119 and object == 10 then
1431
					if key == 112 then
1432
						object=10
1433
					elseif key == 113 then
1434
						if tfm.get.room.playerList[name].score > 1 then
1435
							object=1
1436
							tfm.exec.setPlayerScore(name,-1,true)
1437
							ui.removeTextArea(701,nil)
1438
						end
1439
					elseif key == 114 then
1440
						if tfm.get.room.playerList[name].score > 2 then
1441
							object=39
1442
							tfm.exec.setPlayerScore(name,-2,true)
1443
							ui.removeTextArea(701,nil)
1444
						end
1445
					elseif key == 115 then
1446
						if tfm.get.room.playerList[name].score > 4 then
1447
							object=68
1448
							tfm.exec.setPlayerScore(name,-4,true)
1449
							ui.removeTextArea(701,nil)
1450
						end
1451
					elseif key == 116 then
1452
						if tfm.get.room.playerList[name].score > 6 then
1453
							object=2
1454
							tfm.exec.setPlayerScore(name,-6,true)
1455
							ui.removeTextArea(701,nil)
1456
						end
1457
					elseif key == 117 then
1458
						if tfm.get.room.playerList[name].score > 12 then
1459
							object=4
1460
							tfm.exec.setPlayerScore(name,-12,true)
1461
							ui.removeTextArea(701,nil)
1462
						end
1463
					elseif key == 118 then
1464
						if tfm.get.room.playerList[name].score > 8 then
1465
							object=61
1466
							tfm.exec.setPlayerScore(name,-8,true)
1467
							ui.removeTextArea(701,nil)
1468
						end
1469
					elseif key == 119 then
1470
						if tfm.get.room.playerList[name].score > 25 then
1471
							object=67
1472
							tfm.exec.setPlayerScore(name,-25,true)
1473
							ui.removeTextArea(701,nil)
1474
						end
1475
					end
1476
				end
1477
			end
1478
		end
1479
	end
1480
end
1481
function eventMouse(name,x,y)
1482
	if powerups.explosion == true and actual_player == name then
1483
		tfm.exec.explosion(x,y,30,120,true)
1484
		tfm.exec.displayParticle(12,x,y,0,0,0,0,nil)
1485
		powerups.explosion=false
1486
	end
1487
	if powerups.fly == true and actual_player == name and anvil_launched == false then
1488
		if data[name].team == "vermelho" then
1489
			if x < 790 and x > 200 then
1490
				tfm.exec.movePlayer(name,x,190,false,0,0,false)
1491
			end
1492
		end
1493
		if data[name].team == "azul" then
1494
			if x > 810 and x < 1400 then
1495
				tfm.exec.movePlayer(name,x,190,false,0,0,false)
1496
			end
1497
		end
1498
	end
1499
end
1500
function eventNewGame()
1501
	advanceLevel()
1502
	for i=11,297 do
1503
		ui.removeTextArea(i,nil)
1504
	end
1505
	sudden_death=false
1506
	if tfm.get.room.community == "br" then
1507-
		tfm.exec.chatMessage("<J>Confiram os sub-modos disponíveis da sala #anvilwar:<br><br>/sala #anvilwar0true_false = Verdadeiro ou Falso<br>/sala #anvilwar0mestre = Mestre Mandou<br>/sala #anvilwar0falltest = Queda Livre de Veloidade<br>")
1507+
		tfm.exec.chatMessage("<J>Confiram os sub-modos disponíveis da sala #anvilwar:<br><br>/sala #anvilwar0true_false = Verdadeiro ou Falso<br>/sala #anvilwar0mestre = Mestre Mandou<br>/sala #anvilwar0pistas = Jogo das 3 pistas<br>")
1508
	end
1509
	time_limit=15
1510
	reset=false
1511
	count_azul=0
1512
	count_vermelho=0
1513
	tempo=0
1514
	power=5
1515
	count=0
1516
	kills=0
1517
	play_azul={}
1518
	play_vermelho={}
1519
	valendo=false
1520
	loop=8
1521
	resetPowers()
1522
	for name,player in pairs(tfm.get.room.playerList) do
1523
		if data[name] then
1524
			tfm.exec.changePlayerSize(name,1)
1525
			data[name].killed=-1
1526
			data[name].team=""
1527
			data[name].immortal=false
1528
			data[name].immortal2=false
1529
			data[name].imatchs=0
1530
			data[name].skip=0
1531
			tfm.exec.setNameColor(name,0xd7d7e6)
1532
			giveCargos(name,data[name].level)
1533
			for i=32,123 do
1534
				tfm.exec.bindKeyboard(name,i,true,true)
1535
			end
1536
			showTeams(name)
1537
			for id,name in pairs(avs_list) do
1538
				if data[name] then
1539
					giveCargos(name,2)
1540
				end
1541
			end
1542
			for id,name in pairs(mods_list) do
1543
				if data[name] then
1544
					giveCargos(name,3)
1545
				end
1546
			end
1547
			for id,name in pairs(managers_list) do
1548
				if data[name] then
1549
					giveCargos(name,4)
1550
				end
1551
			end
1552
			for id,name in pairs(level6_list) do
1553
				if data[name] then
1554
					giveCargos(name,5)
1555
				end
1556
			end
1557
			for id,name in pairs(admins_list) do
1558
				if data[name] then
1559
					giveCargos(name,6)
1560
				end
1561
			end
1562
		end
1563
	end
1564
	tfm.exec.setGameTime(30)
1565
end
1566
function eventTextAreaCallback(id,name,callback)
1567
	if callback == "show_menu" then
1568
		ui.addTextArea(299,"<p align='center'><a href='event:hide_menu'><font size='18'>Menu",name,365,376,70,24,0x000001,0x000001,0.75,true)
1569
		ui.addTextArea(298,text.menu_bar,name,200,345,400,20,0x000001,0x000001,0.80,true)
1570
	end
1571
	if callback == "hide_menu" then
1572
		ui.addTextArea(299,"<p align='center'><a href='event:show_menu'><font size='18'>Menu",name,365,376,70,24,0x000001,0x000001,0.75,true)
1573
		ui.removeTextArea(298,name)
1574
	end
1575
	if callback == "ranking" then
1576
		eventChatCommand(name,"rank")
1577
	end
1578
	if callback == "cap" then
1579
		eventChatCommand(name,"cap")
1580
	end
1581
	if callback == "cmd" then
1582
		eventChatCommand(name,"cmd")
1583
	end
1584
	if callback == "powerups" then
1585
		loadPowerups(name)
1586
	end
1587
	if callback == "power1" then
1588
		tfm.exec.chatMessage(text.double2,name)
1589
	end
1590
	if callback == "help" then
1591
		eventChatCommand(name,"help")
1592
	end
1593
	if callback == "power2" then
1594
		tfm.exec.chatMessage(text.triple2,name)
1595
	end
1596
	if callback == "power3" then
1597
		tfm.exec.chatMessage(text.bomba2,name)
1598
	end
1599
	if callback == "power4" then
1600
		tfm.exec.chatMessage(text.objeto2,name)
1601
	end
1602
	if callback == "power5" then
1603
		tfm.exec.chatMessage(text.exp2,name)
1604
	end
1605
	if callback == "power6" then
1606
		tfm.exec.chatMessage(text.chuva2,name)
1607
	end
1608
	if callback == "power7" then
1609
		tfm.exec.chatMessage(text.fly2,name)
1610
	end
1611
	if callback == "power8" then
1612
		tfm.exec.chatMessage(text.inv2,name)
1613
	end
1614
	if callback == "power9" then
1615
		tfm.exec.chatMessage(text.invi2,name)
1616
	end
1617
	if callback == "power10" then
1618
		tfm.exec.chatMessage(text.selec2,name)
1619
	end
1620
	if callback == "profile" then
1621
		tfm.exec.chatMessage(text.profile,name)
1622
	end
1623
	if callback == "fechar" then
1624
		for id=8000,8010 do
1625
			ui.removeTextArea(id,name)
1626
		end
1627
	end
1628
	if callback == "close" then
1629
		for id=8000,8010 do
1630
			ui.removeTextArea(id,name)
1631
			ui.removeTextArea(6969+id,name)
1632
			ui.removeTextArea(7979+id,name)
1633
		end
1634
	end
1635
	if callback == "closep" then
1636
		for id=9000,9010 do
1637
			ui.removeTextArea(id,name)
1638
		end
1639
	end
1640
	if callback == "enter_vermelho" then
1641
		if data[name].killed == -1 and data[name].team == "" then
1642
			data[name].team="vermelho"
1643
			data[name].killed=0
1644
			tfm.exec.respawnPlayer(name)
1645
			tfm.exec.movePlayer(name,700,180,false,0,0,false)
1646
			count_vermelho=count_vermelho+1
1647
			ui.removeTextArea(41,name)
1648
			ui.removeTextArea(42,name)
1649
			ui.addTextArea(51,"<p align='center'><a href='event:sair_vermelho'>"..text.exit.."",name,300,180,200,20,0x505050,0x323232,1.0,true)
1650
		end
1651
	end
1652
	if callback == "enter_azul" then
1653
		if data[name].killed == -1 and data[name].team == "" then
1654
			data[name].team="azul"
1655
			data[name].killed=0
1656
			tfm.exec.respawnPlayer(name)
1657
			tfm.exec.movePlayer(name,900,180,false,0,0,false)
1658
			count_azul=count_azul+1
1659
			ui.removeTextArea(41,name)
1660
			ui.removeTextArea(42,name)
1661
			ui.addTextArea(52,"<p align='center'><a href='event:sair_azul'>"..text.exit.."",name,300,180,200,20,0x505050,0x323232,1.0,true)
1662
		end
1663
	end
1664
	if callback == "sair_azul" then
1665
		data[name].team=""
1666
		data[name].killed=-1
1667
		tfm.exec.killPlayer(name)
1668
		count_azul=count_azul-1
1669
		ui.removeTextArea(52,name)
1670
		ui.addTextArea(41, "<p align='center'><a href='event:enter_vermelho'>"..text.enter_vermelho.."</a></p>", name, 300, 165, 200, 20, 0x800000, 0x600000,1.0,true)
1671
		ui.addTextArea(42, "<p align='center'><a href='event:enter_azul'>"..text.enter_azul.."</a></p>", name, 300, 195, 200, 20, 0x80, 0x60,1.0,true)
1672
	end
1673
	if callback == "sair_vermelho" then
1674
		data[name].team=""
1675
		data[name].killed=-1
1676
		tfm.exec.killPlayer(name)
1677
		count_vermelho=count_vermelho-1
1678
		ui.removeTextArea(51,name)
1679
		ui.addTextArea(41, "<p align='center'><a href='event:enter_vermelho'>"..text.enter_vermelho.."</a></p>", name, 300, 165, 200, 20, 0x800000, 0x600000,1.0,true)
1680
		ui.addTextArea(42, "<p align='center'><a href='event:enter_azul'>"..text.enter_azul.."</a></p>", name, 300, 195, 200, 20, 0x80, 0x60,1.0,true)
1681
	end
1682
end
1683
function winRed()
1684
	for name,player in pairs(tfm.get.room.playerList) do
1685
		if data[name].team == "vermelho" then
1686
			data[name].exp=data[name].exp+20
1687
			data[name].wins=data[name].wins+1
1688
			data[name].score=data[name].score+15
1689
			tfm.exec.respawnPlayer(name)
1690
			tfm.exec.movePlayer(name,math.random(225,775),170,false,0,0,false)
1691
			tfm.exec.playEmote(name,0)
1692
		end
1693
	end
1694
	advanceLevel()
1695
end
1696
function winAzul()
1697
	for name,player in pairs(tfm.get.room.playerList) do
1698
		if data[name].team == "azul" then
1699
			data[name].exp=data[name].exp+20
1700
			data[name].wins=data[name].wins+1
1701
			data[name].score=data[name].score+15
1702
			tfm.exec.respawnPlayer(name)
1703
			tfm.exec.movePlayer(name,math.random(825,1375),170,false,0,0,false)
1704
			tfm.exec.playEmote(name,0)
1705
		end
1706
	end
1707
	advanceLevel()
1708
end
1709
function advanceLevel()
1710
	for name,player in pairs(tfm.get.room.playerList) do
1711
		if data[name] then
1712
			if data[name].exp >= data[name].maxp then
1713
				data[name].exp=data[name].exp-data[name].maxp
1714
				data[name].maxp=data[name].maxp+50
1715
				data[name].nivel=data[name].nivel+1
1716
				tfm.exec.chatMessage(""..text.advanced..""..data[name].nivel.."!",name)
1717
			end
1718
		end
1719
	end
1720
end
1721
function giveCargos(name,type)
1722
	if type == 2 and data[name] then
1723
		data[name].level=2
1724
		tfm.exec.setNameColor(name,0x0076FF)
1725
	elseif type == 3 and data[name] then
1726
		data[name].level=3
1727
		tfm.exec.setNameColor(name,0xFFFB00)
1728
	elseif type == 4 and data[name] then
1729
		data[name].level=4
1730
		tfm.exec.setNameColor(name,0xFF7100)
1731
	elseif type == 5 and data[name] then
1732
		data[name].level=5
1733
	elseif type == 6 and data[name] then
1734
		data[name].level=6
1735
		tfm.exec.setNameColor(name,0xFF0000)
1736
	end
1737
end
1738
end
1739
initTrue = function()
1740
for _,f in next,{"AutoScore","AutoNewGame","AutoTimeLeft","AllShamanSkills","PhysicalConsumables","AfkDeath"} do
1741
	tfm.exec["disable"..f](true)
1742
end
1743
tfm.exec.setRoomMaxPlayers(35)
1744
t=false;
1745
f=false;
1746
tempa=20	
1747
ratos=0
1748
loop=0
1749
temp2=3
1750
resposta="0"
1751
players={}
1752
votos=0
1753
rcount=0
1754
vivo=0;
1755
min1=0
1756
seg1=0
1757
seg2=0
1758
lt=0
1759
segundos=0
1760
lock=false;
1761
pergunta=""
1762
shaman=""
1763
lock=false
1764
minutos=6;
1765
modo="desativado"
1766
for _,f in next,{"admin77","admin78","limite","return"} do
1767
    system.disableChatCommandDisplay(f)
1768
end
1769
mapa="@7417328"
1770
lang = {}
1771
1772
lang.br = {
1773
  textFalse = "A resposta era FALSO!",
1774
  textTrue = "A resposta era VERDADEIRO!",
1775
  textRandom = "Um shaman aleatório foi escolhido.",
1776
  textSkip = "O shaman passou a vez.",
1777
  textPergunta = "Insira a sua pergunta:<br><br>NÃO USE SÍMBOLOS ESPECIAIS NA PERGUNTA!",
1778
  textTime = "Tempo esgotado!",
1779
  textNothingWins = "Ninguém venceu esta partida. :(",
1780
  textWinner = " venceu a partida!",
1781
  textNothing = "Não tivemos vencedor nessa partida.",
1782
  textTimeOut = "O tempo da partida acabou! Outro shaman será escolhido.",
1783
  textTimeLeave = "Tempo esgotado! Outro shaman será escolhido.",
1784
  textTrueFalse = "Envie SIM se a resposta for verdadeira ou NÃO se a resposta for falsa.",
1785
  textEnter = "<b>Bem-vindo ao module True or False!</b><br><BL>Para maiores informações sobre o jogo, digite !help.<br><br><VP>Atualização RTM 1.128:<br>- Correção de pequenos bugs",
1786
  textHelp = "<J>Quando o shaman fizer uma pergunta, você deverá ir no campo TRUE se a resposta for verdadeira ou no campo FALSE se a resposta for falsa. Aqueles que errarem serão eliminados da partida. O processo continua até que sobre um vencedor, que será o novo shaman.<br>Se você for o shaman, digite !per para fazer uma pergunta.<br><br>- Script desenvolvido atualmente por Forzaldenon#0000, ideia original por Haxhhhhhhhhh.",
1787
  textGotShaman = "<J>Você é o shaman. Digite <b>!per</b> para fazer uma pergunta.<br>Você tem 1 minuto para fazer sua pergunta, ou outro shaman entrará em seu lugar.<br><br>Digite <b>!skip</b> para pular sua vez de shaman.",
1788
  textLowTime = "O tempo da partida está acabando.",
1789
  mices = "São necessários pelo menos 3 jogadores para jogar True or False",
1790
  textArea1 = "Tempo da partida:",
1791
  textArea2 = "Ratos vivos:",
1792
  textArea3 = "Limite de tempo:",
1793
  textLongQuestion = "Sua pergunta é muito longa. Tente usar uma pergunta menor.",
1794
  textShortQuestion = "Sua pergunta é muito curta ou não é permitida.",
1795
  textCmd = "<VP>Comandos do jogo:<br><br>!per = faz uma pergunta (quando você é shaman)<br>!skip = pula a sua vez (quando você é shaman)",
1796
  textLt = "<J>Use o comando /ban [nome] para reportar alguém que esteja infrigindo as regras da sala.",
1797
}
1798
lang.en = {
1799
  textFalse = "The answer was FALSE!",
1800
  textTrue = "The answer was TRUE!",
1801
  textRandom = "A random shaman has been choosed.",
1802
  textSkip = "The shaman skipped your turn.",
1803
  textPergunta = "Type your question here:",
1804
  textTime = "Time is up!",
1805
  textNothingWins = "Nothing wins the game. :(",
1806
  textWinner = " wons the game!",
1807
  textNothing = "Aren't winners on this game.",
1808
  textTimeOut = "The game time is gone! Other shaman has been choosed.",
1809
  textTimeLeave = "Time is up! Other shaman has been choosed.",
1810
  textTrueFalse = "Send YES if the answer is TRUE or send NO if the answer is FALSE.",
1811
  textEnter = "<b>Welcome to module True or False!</b><br><V>For more information of the game, type !help.<br><br><VP>Update RTM 1.128:<br>- Small bug correction",
1812
  textHelp = "<J>When the shaman make the question, You must go to the TRUE side if the answer is true or go to the FALSE side if the answer is false. If you err the answer, you will be eliminated of the game. The process continue until someone win the game, which will be the new shaman.<br>If you are the shaman, type !per to make a question.<br><br>Suggestions and problems report to Forzaldenon#0000.",
1813
  textGotShaman = "<J>You are the shaman. Type <b>!per</b> to make a question.<br>You have 1 minute to make the question, or other shaman will enter in your place.<br><br>Type <b>!skip</b> to skip your shaman turn.",
1814
  textLowTime = "The match time is ending.",
1815
  mices = "Are needed at least 3 players to play True or False.",
1816
  textArea1 = "Match time:",
1817
  textArea2 = "Mices alive:",
1818
  textArea3 = "Time limit:",
1819
  textLongQuestion = "Your question is very long. Try to use a short question.",
1820
  textShortQuestion = "Your question is very short or isn't allowed.",
1821
  textCmd = "<VP>Game commands:<br><br>!per = make a question (only for shaman)<br>!skip = skip your shaman turn (only for shaman)",
1822
  textLt = ""
1823
}
1824
if tfm.get.room.community == "br" then
1825
	text = lang.br
1826
else
1827
	text = lang.en
1828
end
1829
function obterJogadores()
1830
    players={}
1831
    for name,player in pairs(tfm.get.room.playerList) do
1832
	if not tfm.get.room.playerList[name].isDead then
1833
		table.insert(players,name)
1834
	end
1835
    end
1836
end
1837
function eventNewPlayer(name)
1838
	ratos=ratos+1;
1839
	tfm.exec.chatMessage("<J>"..text.textEnter.."",name)
1840
	obterJogadores()
1841
end
1842
for name,player in pairs(tfm.get.room.playerList) do
1843
	tfm.exec.setPlayerScore(name,0,false)
1844
	eventNewPlayer(name)
1845
end
1846
function eventPlayerLeft(name)
1847
	ratos=ratos-1;
1848
	obterJogadores()
1849
end
1850
function eventChatCommand(name,message)
1851
	if tfm.get.room.currentMap == "@7417328" then
1852
	if message == "f5" then
1853
		if name == "Forzaldenon#0000" then
1854
			t=true;
1855
			tfm.exec.chatMessage("<R>"..text.textFalse.."",nil)
1856
			modo="desativado" end
1857
	elseif message == "skip" then
1858
            if tfm.get.room.playerList[name].isShaman then
1859
			obterJogadores()
1860
			tfm.exec.chatMessage("<R>"..text.textSkip.."",nil)
1861
			eventChatCommand("Forzaldenon#0000","admin77") end			
1862
	elseif message == "v5" then
1863
		if name == "Forzaldenon#0000" then
1864
			f=true;
1865
			tfm.exec.chatMessage("<VP>"..text.textTrue.."",nil)
1866
			modo="desativado" end
1867
	elseif message == "per" then
1868
		if tfm.get.room.playerList[name].isShaman then
1869
			if modo == "desativado" then
1870
				ui.removeTextArea(27,nil)
1871
				ui.addPopup(1,2,""..text.textPergunta.."",name,250,125,350,true)
1872
			end
1873
		end
1874
	elseif message == "admin77" then
1875
		if modo == "desativado" then
1876
		if name == "Forzaldenon#0000" or name == "Jessiewind26#2546" then
1877
			changeMap()
1878
			tfm.exec.setShaman(message:sub(50))
1879
		end end
1880
	elseif message == "return" then
1881
		if modo == "pergunta" then
1882
		if name == "Forzaldenon#0000" or name == "Jessiewind26#2546" then
1883
			tempa=20
1884
			temp2=3
1885
			modo="desativado"
1886
			tfm.exec.setGameTime(63)
1887
			ui.removeTextArea(27,nil)
1888
			pergunta=""
1889
			resposta="0"
1890
			rcount=rcount+1
1891
			tfm.exec.chatMessage("This question has been cancelled",nil)
1892
			for name,player in pairs(tfm.get.room.playerList) do
1893
				tfm.exec.movePlayer(name,400,1,false,1,1,false)
1894
			end
1895
			if rcount == 3 then
1896
				eventChatCommand("Forzaldenon#0000","admin77")
1897
				rcount=0
1898
			end
1899
		end end
1900
	elseif(message:sub(1,7) == "admin78") then
1901
		if modo == "desativado" then
1902
		if name == "Forzaldenon#0000" or name == "Jessiewind26#2546" then
1903
			tfm.exec.setPlayerScore(message:sub(9),8001,false)
1904
			changeMap()
1905
		end end
1906
	elseif(message:sub(0,4) == "kill") then
1907
		if name == "Forzaldenon#0000" or name == "Jessiewind26#2546" then
1908
			tfm.exec.killPlayer(message:sub(6))
1909
		end
1910
	elseif(message:sub(0,6) == "limite") then
1911
		if name == "Forzaldenon#0000" or name == "Jessiewind26#2546" then
1912
			minutos=tonumber(message:sub(8))
1913
			if minutos > 15 then
1914
				tfm.exec.chatMessage("Time limit: 15 minutes.",nil)
1915
				minutos=15
1916
			else
1917
				tfm.exec.chatMessage("Time limit: "..minutos.." minutes.",nil)
1918
			end
1919
		end
1920
	elseif message == "help" then
1921
		tfm.exec.chatMessage("<N>"..text.textHelp.."",name)
1922
	elseif message == "cmd" then
1923
		tfm.exec.chatMessage("<N>"..text.textCmd.."",name)
1924
	end
1925
	end
1926
end
1927
function eventNewGame()
1928
	ui.removeTextArea(27,nil)
1929
	tfm.exec.setGameTime(63)
1930
	vivo=0;
1931
	modo="desativado"
1932
	tempa=19
1933
	votos=0;
1934
	t=false;
1935
	f=false;
1936
	segundos=0;
1937
	min1=0
1938
	rcount=0
1939
	min3=0
1940
	seg1=0
1941
	seg2=0
1942
	for name,player in pairs(tfm.get.room.playerList) do
1943
	    if name:sub(1,1) == "*" then
1944
           	tfm.exec.killPlayer(name)
1945
           	tfm.exec.chatMessage("<R>Souris aren't allowed to play on this module. Create an account or log in to play True or False.",name)
1946
        end
1947
		vivo=vivo+1
1948
		if tfm.get.room.playerList[name].isShaman then
1949
			tfm.exec.setPlayerScore(name,-2,false)
1950
			vivo=vivo-1
1951
		end
1952
	end
1953
	obterJogadores()
1954
end
1955
function eventLoop(pass,tempo)
1956
	local pass2=tempo/1000
1957
	lt=lt+1
1958
	if lt >= 1200 then
1959
		if tfm.get.room.community == "br" then
1960
			tfm.exec.chatMessage("<R>"..text.textLt.."",nil)
1961
			lt=0
1962
		end
1963
	end
1964
	if tfm.get.room.currentMap == "@7277839" then
1965
		tfm.exec.setGameTime(63)
1966
	end
1967
	if lock == true then
1968
		tfm.exec.setGameTime(tempo/950)
1969
	end
1970
	loop=loop+0.5
1971
	if pass >= 3000 and pass <= 179995 then
1972
		if ratos < 3 then
1973
			if tfm.get.room.currentMap == "@7417328" then
1974
				tfm.exec.newGame("@7277839")
1975
				tfm.exec.chatMessage("<R>"..text.mices.."",nil)
1976
			end
1977
		end
1978
	end
1979
	if ratos >= 3 then
1980
		if tfm.get.room.currentMap == "@7277839" then
1981
			changeMap()
1982
		end
1983
	end
1984
	if min1 == minutos-1 then
1985
		ui.addTextArea(125,"<font size='13'><font color='#ff0000'>   <font face='Segoe UI'>"..text.textArea1.." <b>"..min1..":"..seg1..""..seg2.."</b>                                                 "..text.textArea2.." <b>"..vivo.."</b>                                            "..text.textArea3.." <b>"..minutos.." min.</b>",nil,5,380,790,22,0,0,1.0,true)
1986
	else
1987
		ui.addTextArea(125,"<font size='13'><font color='#010101'>   <font face='Segoe UI'>"..text.textArea1.." <b>"..min1..":"..seg1..""..seg2.."</b>                                                 "..text.textArea2.." <b>"..vivo.."</b>                                            "..text.textArea3.." <b>"..minutos.." min.</b>",nil,5,380,790,22,0,0,1.0,true)
1988
	end
1989
	if loop == 1 then
1990
		segundos=segundos+1
1991
		seg2=seg2+1
1992
		loop=0
1993
	if seg2 >= 10 then
1994
		seg2=0
1995
		seg1=seg1+1
1996
		if seg1 >= 6 then
1997
			min1=min1+1
1998
			seg1=0
1999
			seg2=0
2000
			end
2001
			if min1 >= minutos then
2002
				for name,player in pairs(tfm.get.room.playerList) do
2003
					if tfm.get.room.playerList[name].isShaman then
2004
						ui.addPopup(1,0,""..text.textTime.."",name,350,175,200,true)
2005
						ui.addPopup(2,0,""..text.textTime.."",name,350,175,200,true)
2006
					end
2007
				end
2008
				tfm.exec.chatMessage("<R>"..text.textTimeOut.."",nil)
2009
				eventChatCommand("Forzaldenon#0000","admin77")
2010
			end
2011
		end
2012
	end
2013
	tfm.exec.setUIMapName("True or False - RTM 1.128")
2014
	if modo == "pergunta" then
2015
		tempa=tempa-0.5
2016
	end
2017
    for name,player in pairs(tfm.get.room.playerList) do
2018
		if tfm.get.room.playerList[name].isShaman then
2019
			if tfm.get.room.currentMap == "@7417328" then
2020
				if pass > 450 and pass < 1050 then
2021
                	tfm.exec.chatMessage("<VP>"..text.textGotShaman.."",name)
2022
					tfm.exec.setPlayerScore(name,-2,false)
2023
				end
2024
            end
2025
        end
2026
    end
2027
	if tempa < 0.1 then
2028
		modo="resposta"
2029
		tempa=0
2030
		for pn, p in pairs(tfm.get.room.playerList) do
2031
			if p.y <= 220 then
2032
				tfm.exec.killPlayer(pn)
2033
			end
2034
		end
2035
	end
2036
	if f == true then
2037
		for pn, p in pairs(tfm.get.room.playerList) do
2038
			if p.x >= 405 then
2039
				tfm.exec.killPlayer(pn)
2040
				modo="desativado"
2041
			end
2042
		end
2043
		f=false;
2044
	end
2045
	if t == true then
2046
		for pn, p in pairs(tfm.get.room.playerList) do
2047
			if p.x <= 395 then
2048
				tfm.exec.killPlayer(pn)
2049
				modo="desativado"
2050
			end
2051
		end
2052
		t=false;
2053
	end
2054
	if modo == "resposta" then
2055
		tfm.exec.setGameTime(63)
2056
		temp2=temp2-0.5
2057
		if temp2 == 1 then
2058
			modo="desativado"
2059
			if resposta == "yes" then
2060
				eventChatCommand("Forzaldenon#0000","v5")
2061
			else
2062
				eventChatCommand("Forzaldenon#0000","f5")
2063
			end
2064
			tempa=19
2065
			temp2=3
2066
			pergunta=""
2067
			ui.removeTextArea(27,nil)
2068
		end
2069
	end
2070
	if modo == "desativado" then
2071
	if tempo < 60000 and tempo > 59400 then
2072
		if pass > 10000 then
2073
			for name,player in pairs(tfm.get.room.playerList) do
2074
			if not tfm.get.room.playerList[name].isDead then
2075
				tfm.exec.setPlayerScore(name,1,true)
2076
			end
2077
		end
2078
		end
2079
	end
2080
	if tfm.get.room.currentMap == "@7417328" then
2081
	if vivo == 1 then
2082
		if tempo < 59000 then
2083
			tfm.exec.setPlayerScore(shaman,8000,false)
2084
			changeMap()
2085
		end
2086
	end
2087
	if vivo <= 0 then
2088
		tfm.exec.setGameTime(5)
2089
		obterJogadores()
2090
		changeMap()
2091
		tfm.exec.chatMessage("<R>"..text.textNothing.."",nil)
2092
	end
2093
	if tempo < 500 then
2094
		tfm.exec.setPlayerScore(players[math.random(#players)],1,true)
2095
		for name,player in pairs(tfm.get.room.playerList) do
2096
			if tfm.get.room.playerList[name].isShaman then
2097
				ui.addPopup(1,0,""..text.textTime.."",name,350,175,200,true)
2098
				ui.addPopup(2,0,""..text.textTime.."",name,350,175,200,true)
2099
			end
2100
		end
2101
		tfm.exec.chatMessage("<R>"..text.textTimeLeave.."",nil)
2102
		changeMap()
2103
	end
2104
	end
2105
	end
2106
	if modo == "troca" then
2107
		obterJogadores()
2108
		if tempo < 100 then
2109
			changeMap()
2110
		end
2111
	end
2112
	if vivo == 0 then
2113
		shaman=""
2114
	end
2115
end
2116
function eventPopupAnswer(id,name,answer)
2117
	if id == 1 then
2118
		if tfm.get.room.playerList[name].isShaman then
2119
			if tfm.get.room.currentMap == "@7417328" then
2120
				if string.len(answer) >= 180 then
2121
					tfm.exec.chatMessage(""..text.textLongQuestion.."",name)
2122
				elseif string.len(answer) <= 5 then
2123
					tfm.exec.chatMessage(""..text.textShortQuestion.."",name)
2124
				else
2125
					pergunta=answer
2126
					pcall(ui.addPopup(2,1,""..text.textTrueFalse.."",name,350,175,200,true))
2127
				end
2128
			end
2129
		end
2130
	end
2131
	if id == 2 then
2132
		resposta=tostring(answer)
2133
		modo="pergunta"
2134
		ui.addTextArea(27,"<font size='15'><font face='Segoe UI'><p align='center'><font color='#020202'>"..pergunta.."",nil,32,338,720,50,0,0,1.0,true)
2135
		tfm.exec.chatMessage("<CH>"..pergunta.."",nil)
2136
		tfm.exec.chatMessage("<BL>"..answer.."","Forzaldenon#0000")
2137
		tfm.exec.setGameTime(20)
2138
		for name,player in pairs(tfm.get.room.playerList) do
2139
			tfm.exec.movePlayer(name,400,102,false,1,1,false)
2140
			if tfm.get.room.playerList[name].isShaman then
2141
				tfm.exec.movePlayer(name,400,885,false,1,1,false)
2142
			end
2143
		end
2144
	end
2145
end
2146
function eventPlayerDied(name)
2147
	if not tfm.get.room.playerList[name].isShaman then
2148
		vivo=vivo-1
2149
	end
2150
	local i=0
2151
	local n
2152
	for pname,player in pairs(tfm.get.room.playerList) do
2153
		if not player.isDead and not player.isShaman then
2154
			i=i+1
2155
			n=pname
2156
		end
2157
	end
2158
	if i==0 then
2159
		-- não faça nada
2160
	elseif i==1 then
2161
		shaman=n;
2162
	end
2163
end
2164
function changeMap()
2165
	tfm.exec.newGame(mapa)
2166
end
2167
changeMap()
2168
end
2169
2170
initMestre = function()
2171
tfm.exec.disableAutoNewGame(true)
2172
tfm.exec.disableAutoShaman(true)
2173
tfm.exec.disableAutoTimeLeft(true)
2174
tfm.exec.disableAutoScore(true)
2175
tfm.exec.disableAfkDeath(true)
2176
tfm.exec.setRoomMaxPlayers(35)
2177
mapas={6788085,6788183,6789853,6791944,6792470,6808957,6810292,6821950,6830799,6866406,6866549,6788693,6788728,6859175,6834529,6866437,6812488,6876638,6876563,6885971,6888512,6893463,6900149,6907177,6892608,6982387,5328362,5957905,7055459,7290270,7290275,7404106,7404327,7382263,7394517,7405103,7400694,7400678,7412412,7412422,7431981,7354947}
2178
active=0 -- códigos active: -2 = número de ratos insuficiente, -1 = partida encerrada, 0 = partida não iniciada ou intervalo e 1 ou mais = comandos operando
2179
vivo=0 -- número de ratos vivos
2180
rato=0 -- número de ratos na sala
2181
dificuldade=1 -- dificuldade da partida (alterada automaticamente)
2182
rodadas=0 -- o limite de rodadas das partidas é calculado automaticamente
2183
string="" -- variável usada no comando 33
2184
rodada=0 -- número da rodada atual, não altere
2185
number=0 -- variável usada no comando 11
2186
xpos=0 -- variável usada nos comandos 21, 22 e 23
2187
ypos=0 -- variável usada nos comandos 24 e 25
2188
data={} -- variável que define os dados dos jogadores
2189
lang={} -- não alterar, variável que define a linguagem dos textos
2190
pergunta=""
2191
tempo=10
2192
resposta=""
2193
unlocked=true -- bloqueia ou desbloqueia a execução do script
2194
for _,f in next,{"help","rodar","command","limite","q","r","time"} do
2195
	system.disableChatCommandDisplay(f)
2196
end
2197
lang.br = {
2198
	welcome = "<N>Bem-vindo a sala Mestre Mandou! Nesta sala seu objetivo é fazer tudo o que o script mandar.<ROSE><br><VP>Script criado por Jessiewind26#2546 - Versão RTM Compilação 23",
2199
	dancar = "Dance!",
2200
	sentar = "Sente!",
2201
	confetar = "Atire 5 confetes!",
2202
	mouse = "Clique na tela 10 vezes!",
2203
	beijos = "Dê 10 beijos!",
2204
	dormir = "Vocês estão com sono. Durmam para descansar.",
2205
	raiva = "Tigrounette é do mal! Fiquem com raiva dele!",
2206
	chorem = "Vocês não ganharam queijo :( Chorem!",
2207
	esquerda = "Não vá para a esquerda!",
2208
	direita = "Não vá para a direita!",
2209
	numero = "Digite o seguinte número: ",
2210
	digitar = "Digite qualquer coisa e mande para mim.",
2211
	falar = "Não falem nada!",
2212
	pular = "Não pulem!",
2213
	mexer = "Não se mexam!",
2214
	bandeira = "Balance a bandeira de qualquer país!",
2215
	ano = "Em que ano estamos?",
2216
	vesquerda = "Fique virado para a esquerda!",
2217
	vdireita = "Fique virado para a direita!",
2218
	quadrado = "Fique no quadrado branco!",
2219
	retangulo = "Fique dentro do retângulo branco!",
2220
	nretangulo = "Não fique dentro do retângulo branco!",
2221
	preesquerda30 = "Pressione 30 vezes a tecla para ESQUERDA!",
2222
	predireita30 = "Pressione 30 vezes a tecla para DIREITA!",
2223
	preesquerda60 = "Pressione 60 vezes a tecla para ESQUERDA!",
2224
	predireita60 = "Pressione 60 vezes a tecla para DIREITA!",
2225
	preesquerda150 = "Pressione 150 vezes a tecla para ESQUERDA!",
2226
	predireita150 = "Pressione 150 vezes a tecla para DIREITA!",
2227
	espaco = "Pressione a barra de espaço 20 vezes!",
2228
	nome = "Digite o seu nome no jogo (com #número).",
2229
	ndance = "Não dance!",
2230
	mestre = "Mestre Mandou",
2231
	map = "Mapa",
2232
	time = "Tempo",
2233
	mice = "Ratos",
2234
	round = "Rodada",
2235
	mices = "Esta sala requer pelo menos 4 ratos.",
2236
	difficulty = "Dificuldade",
2237
	creator = "Module criado por Jessiewind26#2546",
2238
	segundos = "segundos.",
2239
	fim = "Partida encerrada! Próxima partida iniciando em ",
2240
	playingmap = "Rodando mapa",
2241
	created = "criado por"
2242
}
2243
lang.en = {
2244
	welcome = "<N>Welcome to script Master Says! On this module you have to do everything that the master says.<ROSE><br><VP>Module created by Jessiewind26#2546 - Version RTM Compilation 23",
2245
	dancar = "Dance!",
2246
	sentar = "Sit!",
2247
	confetar = "Throw 5 confetti!",
2248
	mouse = "Click on screen 10 times!",
2249
	beijos = "Give 10 kisses!",
2250
	dormir = "They are sleepy. Sleep to rest.",
2251
	raiva = "Tigrounette is evil! Get angry with him!",
2252
	chorem = "No cheese for you. Cry!",
2253
	esquerda = "Don't go to the LEFT!",
2254
	direita = "Don't go to the RIGHT!",
2255
	numero = "Type this number: ",
2256
	digitar = "Type anything and send to me.",
2257
	falar = "Don't speak nothing!",
2258
	pular = "Don't jump!",
2259
	mexer = "Don't move!",
2260
	bandeira = "Balance the flag of anything country!",
2261
	ano = "What year are we?",
2262
	vesquerda = "Stay facing LEFT!",
2263
	vdireita = "Stay facing RIGHT!",
2264
	quadrado = "Stay on the white square!",
2265
	retangulo = "Stay on the white rectangle!",
2266
	nretangulo = "Don't stay on the white rectangle!",
2267
	preesquerda30 = "Press 30 times the LEFT key!",
2268
	predireita30 = "Press 30 times the RIGHT key!",
2269
	preesquerda60 = "Press 60 times the LEFT key!",
2270
	predireita60 = "Press 60 times the RIGHT key!",
2271
	preesquerda150 = "Press 150 times the LEFT key!",
2272
	predireita150 = "Press 150 times the RIGHT key!",
2273
	espaco = "Press 20 times the SPACEBAR!",
2274
	nome = "Type your nickname (with #number)!",
2275
	ndance = "Don't dance!",
2276
	mestre = "Master Says",
2277
	map = "Map",
2278
	time = "Time",
2279
	mice = "Mice",
2280
	round = "Round",
2281
	mices = "This room requires at least 4 players.",
2282
	difficulty = "Difficulty",
2283
	creator = "Module created by Jessiewind26#2546",
2284
	segundos = "seconds.",
2285
	fim = "End of match! The next match will start on ",
2286
	playingmap = "Playing map",
2287
	created = "created by"
2288
}
2289
lang.ar = {
2290
welcome = "<N>مرحبآ في نمط الرئيس! في هذا النمط يجب عليك فعل كل مايقوله الرئيس . <ROSE><br>لو أردت المساعدة قم بِكتابة الامر !help<br><VP>تم صنع النمط عن طريق Jessiewind26#2546 - الإصدار RTM Compilation23",
2291
dancar = "أرقص!",
2292
sentar = "إجلس!",
2293
confetar = "قُم برمي 5 أوراق!",
2294
mouse = "قم بالضغط على الشاشة 10 مرات!",
2295
beijos = "قم بالتقبيل 10 مرات!",
2296
dormir = "إنهم يشعرون بالنعاس، نام لتستريح!",
2297
raiva = "تايغرونيت شرير! قم بالغَضبِ مِنه!",
2298
chorem = "لم تلتقط أي قطعة من الجبن، إبكي!",
2299
esquerda = "لا تذهب لليسار!",
2300
direita = "لا تذهب لليَمين!",
2301
numero = "أكتب هذا الرقم : ",
2302
digitar = "أكتب اي شيء وأرسله لي",
2303
falar = "لا تتكلم أو تقل أي شيء!",
2304
pular = "لا تقفز!",
2305
mexer = "لا تتَحرك!",
2306
bandeira = "إرفع علم أي دولة!",
2307
ano = "في أي عام نحن؟",
2308
vesquerda = "إبقى مواجهآ للإتجاه الأيسر",
2309
vdireita = "إبقى مواجهآ للإتجاه الأيمن!",
2310
quadrado = "إبقى في المربع الأبيض",
2311
retangulo = "إبقى في المستطيل الأبيض",
2312
nretangulo = "لا تبقى في المستطيل الأبيض!",
2313
preesquerda30 = "إضغط 30 مرة على زر السهم الأيسر",
2314
predireita30 = "إضغط 30 مرة على زر السهم الأيمن",
2315
preesquerda60 = "إضغط 60 مرة على زر السهم الأيسر",
2316
predireita60 = "إضغط 60 مرة على زر السهم الأيمن",
2317
preesquerda150 = "إضغط 150 مرة على زر السهم الأيسر",
2318
predireita150 = "إضغط 150 مرة على زر السهم الأيمن",
2319
espaco = "إضغط 20 مرة على زر المسافة",
2320
nome = "إكتب إسمك (مع رقم الهاشتاج #)ـ",
2321
abracar = "أعطِ حُضن لأي فأر!",
2322
beijar = "قُم بتقبيل اي فأر",
2323
ndance = "لا ترقص!",
2324
mestre = "الرئيس يقول",
2325
map = "خريطة",
2326
time = "الوقت",
2327
mice = "الفئران",
2328
round = "الجولة",
2329
mices = "هذه الغرفة تتطلب على الأقل 4 أشخاص.",
2330
difficulty = "الصعوبة",
2331
creator = "صُنع النمط عن طريق اللاعب : Jessiewind26#2546",
2332
segundos = "ثوانٍ",
2333
fim = "إنتهت الجولة، الجولة الجديدة سوف تَبدأ قريبًا! ",
2334
playingmap = "Playing map",
2335
created = "created by"
2336
}
2337
if tfm.get.room.community == "br" then
2338
	text = lang.br
2339
elseif tfm.get.room.community == "ar" then
2340
	text = lang.ar
2341
else
2342
	text = lang.en
2343
end
2344
function eventNewPlayer(name)
2345
	rato=rato+1
2346
	for k=32, 87 do
2347
		tfm.exec.bindKeyboard(name,k,false,true)
2348
	end
2349
	system.bindMouse(name,true)
2350
	newData={
2351
			["c"]=0;
2352
			["s"]=0;
2353
			};		
2354
 	data[name] = newData;
2355
	tfm.exec.chatMessage(""..text.welcome.."",name)
2356
end
2357
for name,player in pairs(tfm.get.room.playerList) do
2358
	eventNewPlayer(name)
2359
end
2360
function eventPlayerDied(name)
2361
	if active >= 0 then
2362
		vivo=vivo-1
2363
		local i=0
2364
		local name
2365
		for pname,player in pairs(tfm.get.room.playerList) do
2366
			if not player.isDead then
2367
				i=i+1
2368
				name=pname
2369
			end
2370
		end
2371
		if i==0 then
2372
			active=-1
2373
		elseif i==1 then
2374
			active=-1
2375
			tfm.exec.giveCheese(name)
2376
			tfm.exec.playerVictory(name)
2377
			tfm.exec.setGameTime(10)
2378
		end
2379
	end
2380
end
2381
function eventNewGame()
2382
	ui.removeTextArea(0,nil)
2383
	rodada=0
2384
	active=0
2385
	vivo=0
2386
	rato=0
2387
	dificuldade=1
2388
	if unlocked == true then
2389
		tfm.exec.setGameTime(24)
2390
	else
2391
		tfm.exec.setGameTime(36000)
2392
	end
2393
	for name,player in pairs(tfm.get.room.playerList) do
2394
		vivo=vivo+1
2395
		rato=rato+1
2396
		if data[name] then
2397
			data[name].c=0
2398
		end
2399
	end
2400
	rodadas=math.floor(10+(rato/2))
2401
end
2402
function eventPlayerLeft()
2403
	rato=rato-1
2404
end
2405
function sortearComandos()
2406
	active=math.random(1,33)
2407
	getCommand()
2408
end
2409
function eventChatCommand(name,message)
2410
	if name == "Jessiewind26#2546" or name == "Tryndavayron#0000" then
2411
		if(message:sub(0,7) == "command") then
2412
				active=tonumber(message:sub(9))
2413
				getCommand()
2414
		end
2415
	end
2416
	if name == "Jessiewind26#2546" or name == "Tryndavayron#0000" or name == admin then
2417
		if(message:sub(0,2) == "pw") then
2418
			if message:sub(4) == "" then
2419
				tfm.exec.setRoomPassword("")
2420
				tfm.exec.chatMessage("Password cleared.",name)
2421
			else
2422
				tfm.exec.setRoomPassword(message:sub(4))
2423
				tfm.exec.chatMessage("Password: "..message:sub(4).."",name)
2424
			end
2425
		end
2426
	end
2427
	if name == "Jessiewind26#2546" or name == "Tryndavayron#0000" then
2428
		if(message:sub(0,1) == "q") then
2429
			pergunta=message:sub(3)
2430
		end
2431
	end
2432
	if name == "Jessiewind26#2546" or name == "Tryndavayron#0000" then
2433
		if(message:sub(0,1) == "r") then
2434
			resposta=message:sub(3)
2435
		end
2436
	end
2437
	if name == "Jessiewind26#2546" or name == "Tryndavayron#0000" then
2438
		if(message:sub(0,4) == "time") then
2439
			tempo=message:sub(6)
2440
		end
2441
	end
2442
end
2443
function getCommand()
2444
	rodada=rodada+1
2445
	for name,player in pairs(tfm.get.room.playerList) do
2446
		data[name].c=0
2447
		data[name].s=0
2448
	end
2449
	if active == 1 then
2450
		ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.dancar.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
2451
		tfm.exec.setGameTime(5)
2452
	end
2453
	if active == 2 then
2454
		ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.sentar.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
2455
		tfm.exec.setGameTime(5)
2456
	end
2457
	if active == 3 then
2458
		ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.confetar.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
2459
		tfm.exec.setGameTime(6)
2460
	end
2461
	if active == 4 then
2462
		ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.mouse.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
2463
		tfm.exec.setGameTime(6)
2464
	end
2465
	if active == 5 then
2466
		ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.beijos.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
2467
		tfm.exec.setGameTime(15)
2468
	end
2469
	if active == 6 then
2470
		ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.dormir.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
2471
		tfm.exec.setGameTime(5)
2472
	end
2473
	if active == 7 then
2474
		ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.raiva.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
2475
		tfm.exec.setGameTime(5)
2476
	end
2477
	if active == 8 then
2478
		ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.chorem.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
2479
		tfm.exec.setGameTime(5)
2480
	end
2481
	if active == 9 then
2482
		ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.esquerda.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
2483
		tfm.exec.setGameTime(8)
2484
		for name,player in pairs(tfm.get.room.playerList) do
2485
			data[name].c=1 -- isto indica que todos permanecerão vivos
2486
		end
2487
	end
2488
	if active == 10 then
2489
		ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.direita.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
2490
		tfm.exec.setGameTime(8)
2491
		for name,player in pairs(tfm.get.room.playerList) do
2492
			data[name].c=1
2493
		end
2494
	end
2495
	if active == 11 then
2496
		number=math.random(1000000,9999999)
2497
		ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.numero..""..number.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
2498
		tfm.exec.setGameTime(10)
2499
	end
2500
	if active == 12 then
2501
		ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.digitar.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
2502
		tfm.exec.setGameTime(7)
2503
	end
2504
	if active == 13 then
2505
		number=math.random(100000000,999999999)
2506
		ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.numero..""..number.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
2507
		tfm.exec.setGameTime(11)
2508
	end
2509
	if active == 14 then
2510
		ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.falar.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
2511
		tfm.exec.setGameTime(5)
2512
		for name,player in pairs(tfm.get.room.playerList) do
2513
			data[name].c=1
2514
		end
2515
	end
2516
	if active == 15 then
2517
		ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.pular.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
2518
		tfm.exec.setGameTime(5)
2519
		for name,player in pairs(tfm.get.room.playerList) do
2520
			data[name].c=1
2521
		end
2522
	end
2523
	if active == 16 then
2524
		ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.mexer.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
2525
		tfm.exec.setGameTime(5)
2526
		for name,player in pairs(tfm.get.room.playerList) do
2527
			data[name].c=1
2528
		end
2529
	end
2530
	if active == 17 then
2531
		ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.bandeira.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
2532
		tfm.exec.setGameTime(8)
2533
	end
2534
	if active == 18 then
2535
		ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.ano.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
2536
		tfm.exec.setGameTime(5)
2537
	end
2538
	if active == 19 then
2539
		ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.vesquerda.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
2540
		tfm.exec.setGameTime(5)
2541
		for name,player in pairs(tfm.get.room.playerList) do
2542
			data[name].c=1
2543
		end
2544
	end
2545
	if active == 20 then
2546
		ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.vdireita.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
2547
		tfm.exec.setGameTime(5)
2548
		for name,player in pairs(tfm.get.room.playerList) do
2549
			data[name].c=1
2550
		end
2551
	end
2552
	if active == 21 then
2553
		xpos=math.random(60,650) -- calcula aleatoriamente a posição do quadrado branco
2554
		ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.quadrado.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
2555
		tfm.exec.setGameTime(5)
2556
		for name,player in pairs(tfm.get.room.playerList) do
2557
			data[name].c=1
2558
		end
2559
		ui.addTextArea(1,"",nil,xpos,320,80,65,0xffffff,0xffffff,0.68,false)
2560
	end
2561
	if active == 22 then
2562
		xpos=math.random(60,650) -- calcula aleatoriamente a posição do retângulo branco
2563
		ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.retangulo.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
2564
		tfm.exec.setGameTime(5)
2565
		for name,player in pairs(tfm.get.room.playerList) do
2566
			data[name].c=1
2567
		end
2568
		ui.addTextArea(1,"",nil,xpos,0,80,400,0xffffff,0xffffff,0.68,false)
2569
	end
2570
	if active == 23 then
2571
		xpos=math.random(60,650) -- calcula aleatoriamente a posição do retângulo branco
2572
		ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.nretangulo.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
2573
		tfm.exec.setGameTime(5)
2574
		for name,player in pairs(tfm.get.room.playerList) do
2575
			data[name].c=1
2576
		end
2577
		ui.addTextArea(1,"",nil,xpos,0,80,400,0xffffff,0xffffff,0.68,false)
2578
	end
2579
	if active == 24 then
2580
		ypos=math.random(40,300) -- calcula aleatoriamente a posição do retângulo branco
2581
		ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.retangulo.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
2582
		tfm.exec.setGameTime(5)
2583
		for name,player in pairs(tfm.get.room.playerList) do
2584
			data[name].c=1
2585
		end
2586
		ui.addTextArea(1,"",nil,0,ypos,1600,60,0xffffff,0xffffff,0.68,false)
2587
	end
2588
	if active == 25 then
2589
		ypos=math.random(40,300) -- calcula aleatoriamente a posição do retângulo branco
2590
		ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.nretangulo.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
2591
		tfm.exec.setGameTime(5)
2592
		for name,player in pairs(tfm.get.room.playerList) do
2593
			data[name].c=1
2594
		end
2595
		ui.addTextArea(1,"",nil,0,ypos,1600,60,0xffffff,0xffffff,0.68,false)
2596
	end
2597
	if active == 26 then
2598
		ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.preesquerda30.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
2599
		tfm.exec.setGameTime(9)
2600
	end
2601
	if active == 27 then
2602
		ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.predireita30.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
2603
		tfm.exec.setGameTime(9)
2604
	end
2605
	if active == 28 then
2606
		ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.preesquerda60.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
2607
		tfm.exec.setGameTime(15)
2608
	end
2609
	if active == 29 then
2610
		ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.predireita60.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
2611
		tfm.exec.setGameTime(15)
2612
	end
2613
	if active == 30 then
2614
		ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.espaco.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
2615
		tfm.exec.setGameTime(7)
2616
	end
2617
	if active == 31 then
2618
		ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.nome.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
2619
		tfm.exec.setGameTime(12)
2620
	end
2621
	if active == 32 then
2622
		ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.ndance.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
2623
		tfm.exec.setGameTime(6)
2624
		for name,player in pairs(tfm.get.room.playerList) do
2625
			data[name].c=1
2626
		end
2627
	end
2628
	if active == 33 then
2629
		local number1=math.random(1000000,9999999)
2630
		local number2=math.random(1000000,9999999)
2631
		string=tostring(number1..number2)
2632
		ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.numero..""..string.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
2633
		tfm.exec.setGameTime(15)
2634
	end
2635
	if active == 34 then
2636
		ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..pergunta.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
2637
		tfm.exec.setGameTime(tempo)
2638
	end
2639
	if active == 35 then
2640
		ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.preesquerda150.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
2641
		tfm.exec.setGameTime(21)
2642
	end
2643
	if active == 36 then
2644
		ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.predireita150.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
2645
		tfm.exec.setGameTime(21)
2646
	end
2647
end
2648
function eventChatMessage(name,message)
2649
	if active == 11 or active == 13 or active == 33 then
2650
		if message == tostring(number) or message == string then
2651
			data[name].c=1
2652
		end
2653
	end
2654
	if active == 12 then
2655
		data[name].c=1
2656
	end
2657
	if active == 14 then
2658
		tfm.exec.killPlayer(name)
2659
	end
2660
	if active == 18 then
2661
		if message == "2018" then
2662
			data[name].c=1
2663
		end
2664
	end
2665
	if active == 31 then
2666
		if string.upper(message) == string.upper(name) then
2667
			data[name].c=1
2668
		end
2669
	end
2670
	if active == 34 then
2671
		if string.upper(message) == string.upper(resposta) then
2672
			data[name].c=1
2673
		end
2674
	end
2675
end
2676
function eventEmotePlayed(name,id)
2677
	if active == 1 then
2678
		if id == 0 or id == 10 then
2679
			data[name].c=1
2680
		end
2681
	end
2682
	if active == 2 then
2683
		if id == 8 then
2684
			data[name].c=1
2685
		end
2686
	end
2687
	if active == 3 then
2688
		if id == 9 then
2689
			data[name].s=data[name].s+1
2690
			if data[name].s >= 5 then
2691
				data[name].c=1
2692
			end
2693
		end
2694
	end
2695
	if active == 5 then
2696
		if id == 3 then
2697
			data[name].s=data[name].s+1
2698
			if data[name].s >= 10 then
2699
				data[name].c=1
2700
			end
2701
		end
2702
	end
2703
	if active == 6 then
2704
		if id == 6 then
2705
			data[name].c=1
2706
		end
2707
	end
2708
	if active == 7 then
2709
		if id == 4 then
2710
			data[name].c=1
2711
		end
2712
	end
2713
	if active == 8 then
2714
		if id == 2 then
2715
			data[name].c=1
2716
		end
2717
	end
2718
	if active == 16 then
2719
		tfm.exec.killPlayer(name)
2720
	end
2721
	if active == 17 then
2722
		if id == 10 then
2723
			data[name].c=1
2724
		end
2725
	end
2726
	if active == 32 then
2727
		if id == 0 or id == 10 then
2728
			tfm.exec.killPlayer(name)
2729
		end
2730
	end
2731
end
2732
function eventMouse(name,x,y)
2733
	if active == 4 then
2734
		data[name].s=data[name].s+1
2735
		if data[name].s >= 10 then
2736
			data[name].c=1
2737
		end
2738
	end
2739
end
2740
function eventKeyboard(name,id,down,x,y)
2741
	if active == 9 then
2742
		if id == 37 or id == 65 then
2743
			tfm.exec.killPlayer(name)
2744
		end
2745
	end
2746
	if active == 10 then
2747
		if id == 39 or id == 68 then
2748
			tfm.exec.killPlayer(name)
2749
		end
2750
	end
2751
	if active == 15 then
2752
		if id == 38 or id == 87 then
2753
			tfm.exec.killPlayer(name)
2754
		end
2755
	end
2756
	if active == 16 then
2757
		if id == 38 or id == 87 or id == 37 or id == 65 or id == 39 or id == 68 or id == 40 or id == 83 then
2758
			tfm.exec.killPlayer(name)
2759
		end
2760
	end
2761
	if active == 26 then
2762
		if id == 37 or id == 65 then
2763
			data[name].s=data[name].s+1
2764
			if data[name].s >= 30 then
2765
				data[name].c=1
2766
			end
2767
		end
2768
	end
2769
	if active == 27 then
2770
		if id == 39 or id == 68 then
2771
			data[name].s=data[name].s+1
2772
			if data[name].s >= 30 then
2773
				data[name].c=1
2774
			end
2775
		end
2776
	end
2777
	if active == 28 then
2778
		if id == 37 or id == 65 then
2779
			data[name].s=data[name].s+1
2780
			if data[name].s >= 60 then
2781
				data[name].c=1
2782
			end
2783
		end
2784
	end
2785
	if active == 29 then
2786
		if id == 39 or id == 68 then
2787
			data[name].s=data[name].s+1
2788
			if data[name].s >= 60 then
2789
				data[name].c=1
2790
			end
2791
		end
2792
	end
2793
	if active == 35 then
2794
		if id == 37 or id == 65 then
2795
			data[name].s=data[name].s+1
2796
			if data[name].s >= 150 then
2797
				data[name].c=1
2798
			end
2799
		end
2800
	end
2801
	if active == 36 then
2802
		if id == 39 or id == 68 then
2803
			data[name].s=data[name].s+1
2804
			if data[name].s >= 150 then
2805
				data[name].c=1
2806
			end
2807
		end
2808
	end
2809
	if active == 30 then
2810
		if id == 32 then
2811
			data[name].s=data[name].s+1
2812
			if data[name].s >= 15 then
2813
				data[name].c=1
2814
			end
2815
		end
2816
	end
2817
end
2818
function eventLoop(passado,faltando)
2819
	local tempo=math.floor(faltando/1000)
2820
	if active == -2 then
2821
		ui.setMapName("<N>"..text.mices.."<")
2822
	elseif active == -1 then
2823
		ui.setMapName("<VP>"..text.fim.."<b>"..tempo.."</b> "..text.segundos.."<")
2824
	else
2825
		ui.setMapName("<J>"..tfm.get.room.currentMap.."   <G>|  <N>"..text.time.." : <V>"..tempo.."s   <G>|  <N>"..text.mice.." : <VP>"..vivo.." <N>/ <V>"..rato.."   <G>|   <N>"..text.round.." : <V>"..rodada.."/"..rodadas.."<")
2826
	end
2827
	if active >= 0 then
2828
		if passado > 1200 and passado < 1700 and unlocked == true then
2829
			tfm.exec.chatMessage(""..text.playingmap.." <J>"..tfm.get.room.currentMap.."<BL> "..text.created.." <J>"..tfm.get.room.xmlMapInfo.author)
2830
		end
2831
	end
2832
	if rato < 4 then
2833
		if tfm.get.room.currentMap == "@7277839" and unlocked == true then
2834
			active=-2
2835
			tfm.exec.setGameTime(8000)
2836
		else
2837
			if passado > 3000 and unlocked == true then
2838
				tfm.exec.newGame("@7277839")
2839
				tfm.exec.setGameTime(8000)
2840
				tfm.exec.chatMessage("<R>"..text.mices.."",nil)
2841
			end
2842
		end
2843
	end
2844
	if rato >= 4 then
2845
		if tfm.get.room.currentMap == "@7277839" and unlocked == true then
2846
			tfm.exec.newGame(mapas[math.random(#mapas)])
2847
			active=0
2848
		end
2849
	end
2850
	if active < 0 and faltando < 1 and unlocked == true then
2851
		tfm.exec.newGame(mapas[math.random(#mapas)])
2852
	end
2853
	if active == 0 and faltando < 1000 then
2854
		if rodada < rodadas then
2855
			sortearComandos()
2856
		else
2857
			active=-1
2858
			tfm.exec.setGameTime(10)
2859
			for name,player in pairs(tfm.get.room.playerList) do
2860
				tfm.exec.giveCheese(true)
2861
				tfm.exec.playerVictory(true)
2862
			end
2863
		end
2864
	end
2865
	if active > 0 and faltando < 1 and rato > 1 then
2866
		if active == 19 then
2867
			for name,player in pairs(tfm.get.room.playerList) do
2868
				if tfm.get.room.playerList[name].isFacingRight == true then
2869
					tfm.exec.killPlayer(name)
2870
				end
2871
			end
2872
		end
2873
		if active == 20 then
2874
			for name,player in pairs(tfm.get.room.playerList) do
2875
				if tfm.get.room.playerList[name].isFacingRight == false then
2876
					tfm.exec.killPlayer(name)
2877
				end
2878
			end
2879
		end
2880
		if active == 21 then
2881
			for name,player in pairs(tfm.get.room.playerList) do
2882
				if player.y < 300 then
2883
					tfm.exec.killPlayer(name)
2884
				else
2885
					if player.x < xpos-20 or player.x > xpos+100 then
2886
						tfm.exec.killPlayer(name)
2887
					end
2888
				end
2889
			end
2890
		end
2891
		if active == 22 then
2892
			for name,player in pairs(tfm.get.room.playerList) do
2893
				if player.x < xpos or player.x > xpos+80 then
2894
					tfm.exec.killPlayer(name)
2895
				end
2896
			end
2897
		end
2898
		if active == 23 then
2899
			for name,player in pairs(tfm.get.room.playerList) do
2900
				if player.x > xpos and player.x < xpos+80 then
2901
					tfm.exec.killPlayer(name)
2902
				end
2903
			end
2904
		end
2905
		if active == 24 then
2906
			for name,player in pairs(tfm.get.room.playerList) do
2907
				if player.y < ypos-10 or player.y > ypos+70 then
2908
					tfm.exec.killPlayer(name)
2909
				end
2910
			end
2911
		end
2912
		if active == 25 then
2913
			for name,player in pairs(tfm.get.room.playerList) do
2914
				if player.y > ypos-10 and player.y < ypos+70 then
2915
					tfm.exec.killPlayer(name)
2916
				end
2917
			end
2918
		end
2919
		ui.removeTextArea(0,nil)
2920
		ui.removeTextArea(1,nil)
2921
		active=0
2922
		if rodada == 8 or rodada == 10 or rodada == 12 or rodada == 14 then
2923
			dificuldade=dificuldade+1
2924
		end
2925
		for name,player in pairs(tfm.get.room.playerList) do
2926
			if data[name].c == 0 then
2927
				tfm.exec.killPlayer(name)
2928
			end
2929
		end
2930
		if vivo > 4 then
2931
			tfm.exec.setGameTime(6-dificuldade)
2932
		else
2933
			tfm.exec.setGameTime(9-dificuldade)
2934
		end
2935
	end
2936
	for name,player in pairs(tfm.get.room.playerList) do
2937
		if data[name].c == 1 then
2938
			tfm.exec.setNameColor(name,0x00ff00)
2939
		else
2940
			tfm.exec.setNameColor(name,0xc2c2da)
2941
		end
2942
	end
2943
end
2944
tfm.exec.newGame("@7277839")
2945
end
2946
2947-
initFall = function()
2947+
initPistas = function()
2948
tfm.exec.disableAllShamanSkills(true)
2949-
dados2={type = 12,width = 10,height = 3000,foregound = 0,friction = 0.0,restitution = 0.0,angle = 0,color = 0x6a7495,miceCollision = true,groundCollision = true,dynamic = false}
2949+
2950
tfm.exec.disableAfkDeath(true)
2951
tfm.exec.disableAutoTimeLeft(true)
2952
tfm.exec.disablePhysicalConsumables(true)
2953
tfm.exec.disableMortCommand(true)
2954
pergunta=0
2955-
tfm.exec.disableMinimalistMode(true)
2955+
2956-
tfm.exec.disableDebugCommand(true)
2956+
limite=6 -- Variável usada para armazenar o limite de partidas
2957-
tfm.exec.setRoomMaxPlayers(30)
2957+
dica10="" -- Variável usada para armazenar a dica valendo 10 pontos
2958
dica9="" -- Variável usada para armazenar a dica valendo 9 pontos
2959-
pos=0
2959+
dica8="" -- Variável usada para armazenar a dica valendo 8 pontos
2960-
first=""
2960+
resposta="" -- Variável usada para armazenar a resposta da pergunta
2961-
objetivo=300
2961+
2962-
disparador=true
2962+
tempo=999 -- NÃO ALTERAR!
2963-
bonus=true
2963+
2964
system.disableChatCommandDisplay("help")
2965-
tempo=60
2965+
system.disableChatCommandDisplay("ratos")
2966-
lvexp=0
2966+
system.disableChatCommandDisplay("skip")
2967-
mapas={'<C><P F="0" L="10500" H="10500" /><Z><S><S L="3000" H="3000" X="1" Y="2121" T="6" P="0,0,0.3,0.2,45,0,0,0" /><S L="50" H="10" X="-58" Y="38" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="3000" X="2120" H="3000" Y="4240" T="6" P="0,0,0.3,0.2,45,0,0,0" /><S L="3000" H="3000" X="4241" Y="6361" T="6" P="0,0,0.3,0.2,45,0,0,0" /><S L="3000" X="6361" H="3000" Y="8482" T="6" P="0,0,0.3,0.2,45,0,0,0" /><S L="3000" H="3000" X="8481" Y="10603" T="6" P="0,0,0.3,0.2,45,0,0,0" /></S><D><DS Y="18" X="-57" /><P C="8a311b" Y="293" T="19" P="0,0" X="315" /><P P="0,0" Y="643" T="16" X="655" /><P P="0,0" Y="937" T="68" X="925" /><P P="0,0" Y="1258" T="67" X="1263" /><P C="cdc5bc,623b2a" Y="1641" T="105" P="0,0" X="1649" /><P C="623b2a" Y="2055" T="104" P="0,0" X="2102" /><P P="0,0" Y="2596" T="17" X="2643" /><P C="46788e" Y="3127" T="24" P="0,0" X="3172" /><P C="46788e" Y="3597" T="24" P="0,0" X="3652" /><P C="623b2a" Y="4127" T="104" P="0,0" X="4174" /><P C="623b2a" Y="4126" T="104" P="0,0" X="4347" /><P C="623b2a" Y="4126" T="104" P="0,0" X="4520" /><P C="8a311b" Y="4827" T="19" P="0,0" X="4848" /><P P="0,0" Y="5241" T="16" X="5255" /><P P="0,0" Y="5686" T="16" X="5693" /><P C="8a311b" Y="5977" T="19" P="0,0" X="5996" /><P P="0,0" Y="6265" T="67" X="6267" /><P X="6554" Y="6555" T="16" P="0,0" /><P X="6942" Y="6937" T="16" P="0,0" /><P X="7258" Y="7210" T="17" P="0,0" /><P X="7376" Y="7210" T="17" P="0,0" /><P C="8a311b" Y="7673" T="19" X="7689" P="0,0" /><P X="8040" Y="8028" T="68" P="0,0" /><P C="623b2a" Y="8433" T="104" X="8484" P="0,0" /><P C="623b2a" Y="8432" T="104" X="8659" P="0,0" /><P C="cdc5bc,623b2a" Y="8892" T="105" X="8898" P="0,0" /><P C="cdc5bc,623b2a" Y="9236" T="105" X="9241" P="0,0" /><P C="e8e9eb,31a7cf" Y="9551" T="119" X="9553" P="0,0" /><P C="e8e9eb,31a7cf" Y="9544" T="119" X="9757" P="0,0" /><P C="e8e9eb,31a7cf" Y="9543" T="119" X="9984" P="0,0" /><P C="784939,a31638" Y="9994" T="127" X="10000" P="0,0" /><P C="cdc5bc,623b2a" Y="10321" T="105" X="10326" P="0,0" /></D><O /></Z></C>','<C><P DS="m;-50,0,-51,1" F="5" L="10500" H="10500" /><Z><S><S L="3000" H="3000" X="511" Y="2079" T="1" P="0,0,0.3,0.2,30,0,0,0" /><S L="50" H="10" X="-58" Y="38" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="3000" X="3054" H="3000" Y="3593" T="1" P="0,0,0.3,0.2,30,0,0,0" /><S L="3000" H="3000" X="5596" Y="5126" T="1" P="0,0,0.3,0.2,30,0,0,0" /><S L="3000" X="8120" H="3000" Y="6701" T="1" P="0,0,0.3,0.2,30,0,0,0" /><S L="3000" H="3000" X="8481" Y="10603" T="1" P="0,0,0.3,0.2,30,0,0,0" /><S L="10" X="315" H="50" Y="216" T="1" P="0,0,0,0.2,30,0,0,0" /><S L="10" H="50" X="1768" Y="1054" T="1" P="0,0,0,0.2,30,0,0,0" /><S L="10" H="98" X="1212" Y="706" T="1" P="0,0,0,0.2,30,0,0,0" /><S L="10" H="50" X="860" Y="534" T="1" P="0,0,0,0.2,30,0,0,0" /><S L="10" H="50" X="562" Y="360" T="1" P="0,0,0,0.2,30,0,0,0" /><S L="10" X="2230" H="25" Y="1339" T="1" P="0,0,0,0.2,30,0,0,0" /><S L="10" H="192" X="2753" Y="1587" T="1" P="0,0,0,0.2,30,0,0,0" /><S L="10" X="3225" H="256" Y="1827" T="1" P="0,0,0,0.2,30,0,0,0" /><S L="10" H="320" X="3915" Y="2186" T="1" P="0,0,0,0.2,30,0,0,0" /><S L="10" X="4387" H="128" Y="2574" T="1" P="0,0,0,0.2,30,0,0,0" /><S L="10" H="64" X="4879" Y="2891" T="1" P="0,0,0,0.2,30,0,0,0" /><S L="10" X="5314" H="64" Y="3206" T="1" P="0,0,0,0.2,30,0,0,0" /><S L="10" H="32" X="5586" Y="3374" T="1" P="0,0,0,0.2,30,0,0,0" /><S L="10" X="5951" H="16" Y="3596" T="1" P="0,0,0,0.2,30,0,0,0" /><S L="10" H="64" X="6264" Y="3749" T="1" P="0,0,0,0.2,30,0,0,0" /><S L="10" X="6798" H="256" Y="3950" T="1" P="0,0,0,0.2,30,0,0,0" /><S c="2" L="10" H="512" X="7480" Y="4199" T="1" P="0,0,0,0.2,30,0,0,0" /><S L="10" X="8069" H="80" Y="4900" T="1" P="0,0,0,0.2,30,0,0,0" /><S L="10" X="8436" H="50" Y="5128" T="1" P="0,0,0,0.2,30,0,0,0" /><S L="10" H="50" X="8815" Y="5355" T="1" P="0,0,0,0.2,30,0,0,0" /><S L="10" H="50" X="9284" Y="5614" T="1" P="0,0,0,0.2,30,0,0,0" /><S L="10" X="9623" H="50" Y="5820" T="1" P="0,0,0,0.2,30,0,0,0" /><S L="10" X="10183" H="128" Y="6090" T="1" P="0,0,0,0.2,30,0,0,0" /></S><D /><O /></Z></C>','<C><P F="2" L="7500" H="10500" /><Z><S><S L="35" X="-17" H="10" Y="40" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="3000" X="-551" H="3000" Y="2094" T="3" P="0,0,0,0,60,0,0,0" /><S L="3000" H="3000" X="949" Y="4691" T="3" P="0,0,0,0,60,0,0,0" /><S L="3000" X="2449" H="3000" Y="7289" T="3" P="0,0,0,0,60,0,0,0" /><S L="3000" H="3000" X="3948" Y="9886" T="3" P="0,0,0,0,60,0,0,0" /></S><D><DS Y="16" X="-15" /><P P="0,0" C="784939,a31638" Y="298" T="127" X="156" /><P P="0,0" C="784939,a31638" Y="629" T="127" X="348" /><P P="0,0" C="784939,a31638" Y="628" T="127" X="378" /><P P="0,0" C="784939,a31638" Y="996" T="127" X="649" /><P P="0,0" C="784939,a31638" Y="988" T="127" X="773" /><P P="0,0" C="784939,a31638" Y="988" T="127" X="922" /><P P="0,0" C="784939,a31638" Y="1575" T="127" X="898" /><P P="0,0" C="784939,a31638" Y="1994" T="127" X="1229" /><P P="0,0" C="784939,a31638" Y="2411" T="127" X="1377" /><P P="0,0" C="784939,a31638" Y="2758" T="127" X="1580" /><P P="0,0" C="784939,a31638" Y="2750" T="127" X="1671" /><P P="0,0" C="784939,a31638" Y="2741" T="127" X="1808" /><P P="0,0" C="784939,a31638" Y="2736" T="127" X="2011" /><P P="0,0" C="784939,a31638" Y="3304" T="127" X="1896" /><P P="0,0" C="784939,a31638" Y="3297" T="127" X="2021" /><P P="0,0" C="784939,a31638" Y="3299" T="127" X="2174" /><P P="0,0" C="784939,a31638" Y="3636" T="127" X="2085" /><P P="0,0" C="784939,a31638" Y="4167" T="127" X="2390" /><P P="0,0" C="784939,a31638" Y="4581" T="127" X="2630" /><P P="0,0" C="784939,a31638" Y="4971" T="127" X="2855" /><P P="0,0" C="784939,a31638" Y="4969" T="127" X="2893" /><P P="0,0" C="784939,a31638" Y="4965" T="127" X="2937" /><P P="0,0" C="784939,a31638" Y="4960" T="127" X="3057" /><P P="0,0" C="784939,a31638" Y="4960" T="127" X="3100" /><P P="0,0" C="784939,a31638" Y="4959" T="127" X="3147" /><P P="0,0" C="784939,a31638" Y="5470" T="127" X="3144" /><P P="0,0" C="784939,a31638" Y="5864" T="127" X="3370" /><P P="0,0" C="784939,a31638" Y="6287" T="127" X="3610" /><P P="0,0" C="784939,a31638" Y="8281" T="127" X="4768" /><P P="0,0" C="784939,a31638" Y="8773" T="127" X="5050" /><P P="0,0" C="784939,a31638" Y="9481" T="127" X="5458" /><P P="0,0" C="784939,a31638" Y="9995" T="127" X="5752" /><P P="0,0" C="784939,a31638" Y="9984" T="127" X="5799" /><P P="0,0" C="784939,a31638" Y="9967" T="127" X="5854" /><P P="0,0" C="784939,a31638" Y="9954" T="127" X="5907" /><P P="0,0" C="784939,a31638" Y="9933" T="127" X="5974" /><P P="0,0" C="784939,a31638" Y="9911" T="127" X="6045" /><P P="0,0" C="784939,a31638" Y="9876" T="127" X="6137" /><P P="0,0" C="784939,a31638" Y="9839" T="127" X="6247" /></D><O /></Z></C>','<C><P F="8" L="10500" H="10500" /><Z><S><S L="45" H="10" X="-23" Y="62" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="3000" H="1500" X="748" Y="1900" T="10" P="0,0,0.3,0,37,0,0,0" /><S L="3000" X="3143" H="1500" Y="3705" T="10" P="0,0,0.3,0,37,0,0,0" /><S L="3000" H="1500" X="5537" Y="5509" T="10" P="0,0,0.3,0,37,0,0,0" /><S L="3000" X="7931" H="1500" Y="7313" T="10" P="0,0,0.3,0,37,0,0,0" /></S><D><DS Y="45" X="-21" /><P P="0,0" C="623b2a" Y="841" T="104" X="626" /><P P="0,0" C="623b2a" Y="1166" T="104" X="1056" /><P P="0,0" C="623b2a" Y="1732" T="104" X="1809" /><P P="0,0" C="623b2a" Y="4346" T="104" X="5272" /><P P="0,0" C="623b2a" Y="4345" T="104" X="5446" /><P P="0,0" C="623b2a" Y="4344" T="104" X="5621" /><P P="0,0" C="623b2a" Y="6242" T="104" X="7791" /><P P="0,0" C="623b2a" Y="6239" T="104" X="8092" /><P P="0,0" C="623b2a" Y="6238" T="104" X="8427" /><P P="0,0" C="623b2a" Y="6238" T="104" X="8797" /><P P="0,0" C="623b2a" Y="6847" T="104" X="8592" /><P P="0,0" C="623b2a" Y="7194" T="104" X="9057" /><P P="0,0" C="623b2a" Y="7624" T="104" X="9620" /><P P="0,0" C="623b2a" Y="7450" T="104" X="9388" /><P P="0,0" C="623b2a" Y="7045" T="104" X="8855" /><P P="0,0" C="623b2a" Y="650" T="104" X="374" /><P P="0,0" C="623b2a" Y="1472" T="104" X="1461" /></D><O /></Z></C>','<C><P F="0" L="9000" G="5,10" H="3000" /><Z><S><S L="3000" H="3000" X="1500" Y="1500" T="9" P="0,0,,,,0,0,0" /><S L="3000" H="3000" X="4500" Y="1500" T="9" P="0,0,,,,0,0,0" /><S L="3000" X="7500" H="3000" Y="1500" T="9" P="0,0,,,,0,0,0" /><S L="85" H="10" X="-43" Y="74" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="3000" X="1430" H="1500" Y="948" T="5" P="0,0,0.3,0.2,5,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="3000" o="324650" X="1460" Y="-5" T="12" H="10" /><S L="10" H="10" X="4" Y="56" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="881" o="324650" H="1919" X="-476" Y="300" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S L="3000" o="324650" X="4460" H="10" Y="-5" 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="3000" o="324650" H="10" Y="-5" T="12" X="7460" /><S L="3000" H="1500" X="4336" Y="1331" T="5" P="0,0,0.3,0.2,10,0,0,0" /><S L="3000" X="7096" H="1500" Y="2071" T="5" P="0,0,0.3,0.2,20,0,0,0" /><S L="3000" H="1500" X="8284" Y="3489" T="5" P="0,0,0.3,0.2,80,0,0,0" /><S L="10" H="74" X="878" Y="36" T="5" P="0,0,0.3,0.2,5,0,0,0" /><S L="10" X="1412" H="74" Y="158" T="5" P="0,0,0.3,0.2,5,0,0,0" /><S L="10" H="74" X="2882" Y="163" T="5" P="0,0,0.3,0.2,5,0,0,0" /><S L="10" H="74" X="2894" Y="37" T="5" P="0,0,0.3,0.2,5,0,0,0" /><S L="10" H="74" X="2410" Y="149" T="5" P="0,0,0.3,0.2,5,0,0,0" /><S L="10" H="74" X="1850" Y="195" T="5" P="0,0,0.3,0.2,5,0,0,0" /><S L="10" H="74" X="1863" Y="38" T="5" P="0,0,0.3,0.2,5,0,0,0" /><S L="10" X="2872" H="74" Y="285" T="5" P="0,0,0.3,0.2,5,0,0,0" /><S L="10" X="3402" H="74" Y="118" T="5" P="0,0,0.3,0.2,5,0,0,0" /><S L="10" H="74" X="3389" Y="282" T="5" P="0,0,0.3,0.2,5,0,0,0" /><S L="10" X="3856" H="74" Y="87" T="5" P="0,0,0.3,0.2,5,0,0,0" /><S L="10" H="74" X="3825" Y="379" T="5" P="0,0,0.3,0.2,5,0,0,0" /><S L="10" X="4279" H="74" Y="36" T="5" P="0,0,0.3,0.2,5,0,0,0" /><S L="10" H="74" X="4239" Y="517" T="5" P="0,0,0.3,0.2,5,0,0,0" /><S L="10" X="4261" H="74" Y="270" T="5" P="0,0,0.3,0.2,5,0,0,0" /><S L="10" H="205" X="4769" Y="102" T="5" P="0,0,0.3,0.2,5,0,0,0" /><S L="10" X="4733" H="205" Y="536" T="5" P="0,0,0.3,0.2,5,0,0,0" /><S L="10" H="205" X="5289" Y="634" T="5" P="0,0,0.3,0.2,5,0,0,0" /><S L="10" X="5943" H="205" Y="104" T="5" P="0,0,0.3,0.2,5,0,0,0" /><S L="10" H="410" X="6508" Y="501" T="5" P="0,0,0.3,0.2,20,0,0,0" /><S L="10" X="7226" H="410" Y="196" T="5" P="0,0,0.3,0.2,20,0,0,0" /><S L="10" H="410" X="6946" Y="1001" T="5" P="0,0,0.3,0.2,20,0,0,0" /><S L="10" X="7895" H="820" Y="738" T="5" P="0,0,0.3,0.2,20,0,0,0" /><S L="10" H="820" X="8812" Y="385" T="5" P="0,0,0.3,0.2,20,0,0,0" /><S L="10" X="8469" H="820" Y="1337" T="5" P="0,0,0.3,0.2,20,0,0,0" /></S><D><DS Y="52" X="-17" /></D><O /></Z></C>','<C><P F="1" L="9201" H="2150" /><Z><S><S L="79" H="10" X="97" Y="149" T="6" P="0,0,0.3,0.2,0,0,0,0" /><S L="600" H="948" X="214" Y="653" T="6" P="0,0,0.1,0.1,10,0,0,0" /><S L="600" H="911" X="808" Y="741" T="1" P="0,0,0,0.2,10,0,0,0" /><S L="360" H="869" X="1284" Y="803" T="4" P="0,0,20,0.2,10,0,0,0" /><S L="800" X="1850" H="894" Y="918" T="5" P="0,0,0.3,0.2,10,0,0,0" /><S L="500" X="2488" H="903" Y="1035" T="2" P="0,0,0,1.2,10,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="3000" o="324650" X="3800" Y="-500" T="12" H="10" /><S L="200" X="2828" H="944" Y="1116" T="3" P="0,0,0,20,10,0,0,0" /><S L="700" X="3275" H="910" Y="1178" T="0" P="0,0,0.3,0.2,10,0,0,0" /><S L="250" X="3748" H="828" Y="1216" T="8" P="0,0,0.3,0.2,10,0,0,0" /><S L="250" X="3677" H="10" Y="1625" T="0" P="0,0,0.3,0.2,10,0,0,0" /><S L="10" X="3875" H="822" Y="1248" T="4" P="0,0,20,0.2,10,0,0,0" /><S P="0,0,0.3,0.2,10,0,0,0" L="600" o="324650" X="4153" Y="1438" T="12" H="1100" /><S L="1000" X="4950" H="1000" Y="1529" T="1" P="0,0,0,0.2,10,0,0,0" /><S L="550" X="5718" H="945" Y="1636" T="4" P="0,0,20,0.2,10,0,0,0" /><S L="1000" H="1000" X="6477" Y="1800" T="1" P="0,0,0,0.2,10,0,0,0" /><S L="600" H="930" X="7269" Y="1904" T="0" P="0,0,0.3,0.2,10,0,0,0" /><S L="330" H="803" X="7738" Y="1922" T="4" P="0,0,20,0.2,10,0,0,0" /><S L="500" H="801" X="8147" Y="1993" T="7" P="0,0,0.1,0.2,10,0,0,0" /><S L="555" H="728" X="8673" Y="2049" T="2" P="0,0,0,1.2,10,0,0,0" /><S L="250" H="1500" X="9189" Y="1441" T="1" P="0,0,0,0.2,10,0,0,0" /></S><D><DS Y="131" X="47" /></D><O /></Z></C>','<C><P F="5" G="5,10" L="9830" H="1000" /><Z><S><S L="3000" X="1408" H="2000" Y="1190" T="11" P="0,0,0.05,0.1,5,0,0,0" /><S L="3000" H="2000" X="4396" Y="1452" T="11" P="0,0,0.05,0.1,5,0,0,0" /><S L="3000" X="7384" H="2000" Y="1714" T="11" P="0,0,0.05,0.1,5,0,0,0" /><S L="3000" H="2000" X="10372" Y="1976" T="11" P="0,0,0.05,0.1,5,0,0,0" /><S L="426" o="6a7495" H="767" X="-214" Y="118" T="12" P="0,0,0.3,0.2,0,0,0,0" /></S><D><P P="0,0" Y="103" T="68" X="424" /><P P="0,0" Y="146" T="68" X="899" /><P P="0,0" Y="195" T="68" X="1460" /><P P="0,0" Y="238" T="68" X="1987" /><P P="0,0" Y="290" T="68" X="2561" /><P P="0,0" Y="336" T="68" X="3063" /><P P="0,0" Y="377" T="68" X="3553" /><P P="0,0" Y="417" T="68" X="4003" /><P P="0,0" Y="460" T="68" X="4474" /><P P="0,0" Y="493" T="68" X="4873" /><P P="0,0" Y="531" T="68" X="5289" /><P P="0,0" Y="571" T="68" X="5747" /><P P="0,0" Y="611" T="68" X="6234" /><P P="0,0" Y="661" T="68" X="6818" /><P P="0,0" Y="702" T="68" X="7246" /><P P="0,0" Y="754" T="68" X="7804" /><P P="0,0" Y="784" T="68" X="8225" /><P P="0,0" Y="827" T="68" X="8691" /><P P="0,0" Y="872" T="68" X="9179" /><P P="0,0" Y="920" T="68" X="9762" /><P P="0,0" Y="671" T="68" X="8944" /><P P="0,0" Y="644" T="68" X="8492" /><P P="0,0" Y="663" T="68" X="8021" /><P P="0,0" Y="628" T="68" X="7551" /><P P="0,0" Y="601" T="68" X="7048" /><P P="0,0" Y="548" T="68" X="6487" /><P P="0,0" Y="495" T="68" X="6005" /><P P="0,0" Y="467" T="68" X="5521" /><P P="0,0" Y="441" T="68" X="5088" /><P P="0,0" Y="401" T="68" X="4692" /><P P="0,0" Y="351" T="68" X="4214" /><P P="0,0" Y="326" T="68" X="3800" /><P P="0,0" Y="294" T="68" X="3289" /><P P="0,0" Y="236" T="68" X="2818" /><P P="0,0" Y="186" T="68" X="2274" /><P P="0,0" Y="128" T="68" X="1731" /><P P="0,0" Y="100" T="68" X="1167" /><P P="0,0" Y="66" T="68" X="691" /><P P="0,0" Y="67" T="68" X="33" /><DS Y="16" X="33" /></D><O /></Z></C>','<C><P F="5" H="7600" L="6500" /><Z><S><S L="3000" H="3000" X="369" Y="2161" T="11" P="0,0,0.05,0.1,35,0,0,0" /><S L="10" H="10" X="59" Y="98" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="3000" X="2089" H="3000" Y="3881" T="11" P="0,0,0.05,0.1,55,0,0,0" /><S L="3000" H="3000" X="3117" Y="6086" T="11" P="0,0,0.05,0.1,75,0,0,0" /></S><D><DS Y="67" X="20" /><P P="0,0" Y="254" T="17" X="309" /><P P="0,0" Y="510" T="17" X="667" /><P P="0,0" Y="506" T="17" X="968" /><P P="0,0" Y="775" T="17" X="1047" /><P P="0,0" Y="775" T="17" X="1291" /><P P="0,0" Y="771" T="17" X="1603" /><P P="0,0" Y="1155" T="17" X="1746" /><P P="0,0" Y="1518" T="17" X="2208" /><P P="0,0" Y="1793" T="17" X="2615" /><P X="3009" Y="1792" T="17" P="0,0" /><P P="0,0" Y="2159" T="17" X="2981" /><P X="3457" Y="2518" T="17" P="0,0" /><P P="0,0" Y="2532" T="17" X="3015" /><P X="3491" Y="2860" T="17" P="0,0" /><P P="0,0" Y="3479" T="17" X="3668" /><P X="4233" Y="4282" T="17" P="0,0" /><P P="0,0" Y="4655" T="17" X="4863" /><P X="4598" Y="5185" T="17" P="0,0" /><P P="0,0" Y="5777" T="17" X="4638" /><P X="5143" Y="5779" T="17" P="0,0" /><P P="0,0" Y="6257" T="17" X="5049" /><P X="5069" Y="6685" T="17" P="0,0" /><P P="0,0" Y="7146" T="17" X="5005" /></D><O /></Z></C>','<C><P F="3" L="9000" H="7200" /><Z><S><S L="3000" X="180" H="3000" Y="2200" T="2" P="0,0,0,0.4,40,0,0,0" /><S L="10" X="90" H="10" Y="156" T="0" P="0,0,0.3,0.2,0,0,0,0" /><S L="3000" H="3000" X="2809" Y="4040" T="2" P="0,0,0,0.6,30,0,0,0" /><S L="3000" X="5717" H="3000" Y="5396" T="2" P="0,0,0,0.8,20,0,0,0" /><S L="3000" H="3000" X="8817" Y="6227" T="2" P="0,0,0,1,10,0,0,0" /><S L="100" H="100" X="494" Y="277" T="2" P="0,0,0,0.8,45,0,0,0" /><S L="100" X="1593" H="100" Y="746" T="2" P="0,0,0,0.8,45,0,0,0" /><S L="100" H="100" X="1024" Y="747" T="2" P="0,0,0,0.8,45,0,0,0" /><S L="100" X="1156" H="100" Y="291" T="2" P="0,0,0,0.8,45,0,0,0" /><S L="100" X="1183" H="100" Y="1042" T="2" P="0,0,0,0.8,45,0,0,0" /><S L="100" H="100" X="1702" Y="1465" T="2" P="0,0,0,0.8,45,0,0,0" /><S L="100" X="1729" H="100" Y="1044" T="2" P="0,0,0,0.8,45,0,0,0" /><S L="100" X="2274" H="100" Y="1956" T="2" P="0,0,0,0.8,45,0,0,0" /><S L="100" H="100" X="2496" Y="1383" T="2" P="0,0,0,0.8,45,0,0,0" /><S L="100" X="3046" H="100" Y="1889" T="2" P="0,0,0,0.8,45,0,0,0" /><S L="100" H="100" X="3135" Y="2455" T="2" P="0,0,0,0.8,30,0,0,0" /><S L="100" X="4145" H="100" Y="3036" T="2" P="0,0,0,0.8,30,0,0,0" /><S L="100" H="100" X="3900" Y="2334" T="2" P="0,0,0,0.8,30,0,0,0" /><S L="100" H="100" X="4867" Y="3453" T="2" P="0,0,0,0.8,30,0,0,0" /><S L="100" X="6069" H="100" Y="3900" T="2" P="0,0,0,0.8,20,0,0,0" /><S L="100" H="100" X="5480" Y="3368" T="2" P="0,0,0,0.8,20,0,0,0" /><S L="100" X="7113" H="100" Y="4274" T="2" P="0,0,0,0.8,20,0,0,0" /><S L="100" H="100" X="6706" Y="3663" T="2" P="0,0,0,0.8,20,0,0,0" /><S L="100" H="100" X="7850" Y="4495" T="2" P="0,0,0,0.8,10,0,0,0" /><S L="100" X="7565" H="100" Y="3985" T="2" P="0,0,0,0.8,10,0,0,0" /><S L="100" X="8614" H="100" Y="4629" T="2" P="0,0,0,0.8,10,0,0,0" /><S L="100" H="100" X="8388" Y="4169" T="2" P="0,0,0,0.8,10,0,0,0" /></S><D><DS Y="101" X="6" /></D><O /></Z></C>','<C><P F="1" L="12000" H="7000" /><Z><S><S L="3000" H="3000" X="547" Y="2126" T="0" P="0,0,0.3,0.2,30,0,0,0" /><S L="10" H="49" X="54" Y="91" T="0" P="0,0,0.3,0.2,30,0,0,0" /><S L="3000" X="3120" H="3000" Y="3612" T="0" P="0,0,0.3,0.2,30,0,0,0" /><S L="3000" H="3000" X="5692" Y="5097" T="0" P="0,0,0.3,0.2,30,0,0,0" /><S L="3000" X="8262" H="3000" Y="6582" T="0" P="0,0,0.3,0.2,30,0,0,0" /><S L="3000" H="3000" X="10838" Y="8069" T="0" P="0,0,0.3,0.2,30,0,0,0" /><S L="10" X="353" H="49" Y="266" T="0" P="0,0,0.3,0.2,30,0,0,0" /><S L="10" H="49" X="681" Y="455" T="0" P="0,0,0.3,0.2,30,0,0,0" /><S L="10" X="1009" H="49" Y="646" T="0" P="0,0,0.3,0.2,30,0,0,0" /><S L="10" H="49" X="1302" Y="814" T="0" P="0,0,0.3,0.2,30,0,0,0" /><S L="10" X="1657" H="49" Y="1019" T="0" P="0,0,0.3,0.2,30,0,0,0" /><S L="10" H="49" X="1954" Y="1191" T="0" P="0,0,0.3,0.2,30,0,0,0" /><S L="10" X="2262" H="49" Y="1369" T="0" P="0,0,0.3,0.2,30,0,0,0" /><S L="10" H="49" X="2590" Y="1559" T="0" P="0,0,0.3,0.2,30,0,0,0" /><S L="10" X="2934" H="49" Y="1757" T="0" P="0,0,0.3,0.2,30,0,0,0" /><S L="10" H="49" X="3266" Y="1950" T="0" P="0,0,0.3,0.2,30,0,0,0" /><S L="10" X="3584" H="49" Y="2132" T="0" P="0,0,0.3,0.2,30,0,0,0" /><S L="10" H="49" X="3963" Y="2347" T="0" P="0,0,0.3,0.2,30,0,0,0" /><S L="10" X="4315" H="49" Y="2555" T="0" P="0,0,0.3,0.2,30,0,0,0" /><S L="10" H="49" X="4619" Y="2732" T="0" P="0,0,0.3,0.2,30,0,0,0" /><S L="10" X="4850" H="49" Y="2862" T="0" P="0,0,0.3,0.2,30,0,0,0" /><S L="10" H="49" X="6557" Y="3849" T="0" P="0,0,0.3,0.2,30,0,0,0" /><S L="10" X="6909" H="49" Y="4053" T="0" P="0,0,0.3,0.2,30,0,0,0" /><S L="10" H="49" X="7161" Y="4198" T="0" P="0,0,0.3,0.2,30,0,0,0" /><S L="10" X="7405" H="49" Y="4339" T="0" P="0,0,0.3,0.2,30,0,0,0" /><S L="10" H="49" X="7730" Y="4526" T="0" P="0,0,0.3,0.2,30,0,0,0" /><S L="10" X="8092" H="49" Y="4736" T="0" P="0,0,0.3,0.2,30,0,0,0" /><S L="10" H="49" X="8443" Y="4941" T="0" P="0,0,0.3,0.2,30,0,0,0" /><S L="10" X="8763" H="49" Y="5123" T="0" P="0,0,0.3,0.2,30,0,0,0" /><S L="10" H="49" X="9968" Y="5821" T="0" P="0,0,0.3,0.2,30,0,0,0" /><S L="10" X="10249" H="49" Y="5980" T="0" P="0,0,0.3,0.2,30,0,0,0" /><S L="10" H="49" X="10557" Y="6158" T="0" P="0,0,0.3,0.2,30,0,0,0" /><S L="10" X="10866" H="49" Y="6343" T="0" P="0,0,0.3,0.2,30,0,0,0" /><S L="10" H="49" X="11194" Y="6528" T="0" P="0,0,0.3,0.2,30,0,0,0" /><S L="10" X="11540" H="49" Y="6728" T="0" P="0,0,0.3,0.2,30,0,0,0" /><S L="10" H="49" X="11931" Y="6953" T="0" P="0,0,0.3,0.2,30,0,0,0" /></S><D><DS Y="83" X="17" /></D><O /></Z></C>','<C><P F="7" L="8000" H="8000" /><Z><S><S L="58" o="324650" H="46" X="29" Y="129" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S L="3000" H="20" X="1550" Y="625" T="1" P="0,0,0,0.2,20,0,0,0" /><S L="3000" X="4347" H="20" Y="1643" T="1" P="0,0,0,0.2,20,0,0,0" /><S L="3000" H="20" X="7140" Y="2660" T="1" P="0,0,0,0.2,20,0,0,0" /><S L="3000" H="20" X="1270" Y="1130" T="11" P="0,0,0.05,0.1,40,0,0,0" /><S L="3000" X="3568" H="20" Y="3058" T="11" P="0,0,0.05,0.1,40,0,0,0" /><S L="3000" H="20" X="5866" Y="4986" T="11" P="0,0,0.05,0.1,40,0,0,0" /><S L="3000" X="8163" H="20" Y="6914" T="11" P="0,0,0.05,0.1,40,0,0,0" /><S L="74" H="10" X="38" Y="193" T="4" P="0,0,20,0.2,0,0,0,0" /><S L="3000" H="20" X="815" Y="1490" T="6" P="0,0,0.3,0.2,60,0,0,0" /><S L="3000" X="2315" H="20" Y="4087" T="6" P="0,0,0.3,0.2,60,0,0,0" /><S L="3000" H="20" X="3815" Y="6683" T="6" P="0,0,0.3,0.2,60,0,0,0" /><S L="56" o="324650" H="357" X="-28" Y="20" T="12" P="0,0,0,0.2,0,0,0,0" /><S L="80" H="80" X="594" Y="224" T="6" P="0,0,0.3,0.2,20,0,0,0" /><S L="80" X="1187" H="80" Y="439" T="6" P="0,0,0.3,0.2,20,0,0,0" /><S L="80" H="80" X="1789" Y="659" T="6" P="0,0,0.3,0.2,20,0,0,0" /><S L="80" X="2703" H="80" Y="991" T="6" P="0,0,0.3,0.2,20,0,0,0" /><S L="80" H="80" X="3268" Y="1198" T="6" P="0,0,0.3,0.2,20,0,0,0" /><S L="80" X="3842" H="80" Y="1405" T="6" P="0,0,0.3,0.2,20,0,0,0" /><S L="80" H="80" X="4424" Y="1616" T="6" P="0,0,0.3,0.2,20,0,0,0" /><S L="80" X="5013" H="80" Y="1831" T="6" P="0,0,0.3,0.2,20,0,0,0" /><S L="80" H="80" X="5623" Y="2055" T="6" P="0,0,0.3,0.2,20,0,0,0" /><S L="80" X="6183" H="80" Y="2258" T="6" P="0,0,0.3,0.2,20,0,0,0" /><S L="80" H="80" X="6745" Y="2465" T="6" P="0,0,0.3,0.2,20,0,0,0" /><S L="80" X="7424" H="80" Y="2711" T="6" P="0,0,0.3,0.2,20,0,0,0" /><S L="80" H="80" X="540" Y="452" T="11" P="0,0,0.05,0.1,40,0,0,0" /><S L="80" X="1141" H="80" Y="957" T="11" P="0,0,0.05,0.1,40,0,0,0" /><S L="80" H="80" X="1640" Y="1375" T="11" P="0,0,0.05,0.1,40,0,0,0" /><S L="80" X="2150" H="80" Y="1803" T="11" P="0,0,0.05,0.1,40,0,0,0" /><S L="80" H="80" X="2591" Y="2172" T="11" P="0,0,0.05,0.1,40,0,0,0" /><S L="80" X="3044" H="80" Y="2553" T="11" P="0,0,0.05,0.1,40,0,0,0" /><S L="80" H="80" X="3536" Y="2967" T="11" P="0,0,0.05,0.1,40,0,0,0" /><S L="80" X="4023" H="80" Y="3376" T="11" P="0,0,,0.1,40,0,0,0" /><S L="80" H="80" X="5714" Y="4793" T="11" P="0,0,,0.1,40,0,0,0" /><S L="80" X="6340" H="80" Y="5318" T="11" P="0,0,,0.1,40,0,0,0" /><S L="80" H="80" X="6897" Y="5786" T="11" P="0,0,,0.1,40,0,0,0" /><S L="80" X="7511" H="80" Y="6302" T="11" P="0,0,,0.1,40,0,0,0" /><S L="80" H="80" X="406" Y="682" T="1" P="0,0,0,0.2,60,0,0,0" /><S L="80" X="653" H="80" Y="1107" T="1" P="0,0,0,0.2,60,0,0,0" /><S L="80" H="80" X="923" Y="1578" T="1" P="0,0,0,0.2,60,0,0,0" /><S L="80" X="1193" H="80" Y="2044" T="1" P="0,0,0,0.2,60,0,0,0" /><S L="80" H="80" X="1419" Y="2438" T="1" P="0,0,0,0.2,60,0,0,0" /><S L="80" X="1684" H="80" Y="2895" T="1" P="0,0,0,0.2,60,0,0,0" /><S L="80" H="80" X="2708" Y="4671" T="1" P="0,0,0,0.2,60,0,0,0" /><S L="80" X="2951" H="80" Y="5089" T="1" P="0,0,0,0.2,60,0,0,0" /><S L="80" H="80" X="3237" Y="5582" T="1" P="0,0,0,0.2,60,0,0,0" /><S L="80" X="3467" H="80" Y="5983" T="1" P="0,0,0,0.2,60,0,0,0" /><S L="80" H="80" X="3761" Y="6491" T="1" P="0,0,0,0.2,60,0,0,0" /><S L="80" X="4414" H="80" Y="7621" T="1" P="0,0,0,0.2,60,0,0,0" /><S L="80" H="80" X="1974" Y="3397" T="1" P="0,0,0,0.2,60,0,0,0" /></S><D><DS Y="90" X="31" /></D><O /></Z></C>','<C><P F="8" L="4800" G="5,10" H="4800" /><Z><S><S L="3000" X="1500" H="3000" v="1" Y="1500" T="9" P="0,0,,,,0,0,0" /><S L="1800" H="3000" X="3900" v="1" Y="1500" T="9" P="0,0,,,,0,0,0" /><S L="3000" H="1800" X="1500" v="1" Y="3900" T="9" P="0,0,,,,0,0,0" /><S L="1800" X="3900" H="1800" v="1" Y="3900" T="9" P="0,0,,,,0,0,0" /><S L="600" X="300" H="150" Y="75" T="1" P="0,0,0,0.2,0,0,0,0" /><S L="600" H="3000" X="300" Y="1723" T="1" P="0,0,0,0.2,0,0,0,0" /><S L="10" X="109" H="36" Y="169" T="1" P="0,0,0,0.2,0,0,0,0" /><S L="600" X="630" H="3000" Y="1757" T="1" P="0,0,0,0.2,10,0,0,0" /><S L="700" H="3000" X="1108" Y="-1272" T="1" P="0,0,0,0.2,10,0,0,0" /><S L="10" H="87" X="6" Y="194" T="1" P="0,0,0,0.2,0,0,0,0" /><S L="1000" H="3000" X="1927" Y="1662" T="1" P="0,0,0,0.2,-20,0,0,0" /><S L="1600" X="1993" H="3000" Y="-1486" T="1" P="0,0,0,0.2,0,0,0,0" /><S L="1600" H="3000" X="2558" Y="-575" T="1" P="0,0,0,0.2,-50,0,0,0" /><S L="1000" X="2865" H="3000" Y="1789" T="1" P="0,0,0,0.2,80,0,0,0" /><S L="1000" H="3000" X="2905" Y="1789" T="1" P="0,0,0,0.2,80,0,0,0" /><S L="1600" X="2598" H="3000" Y="-576" T="1" P="0,0,0,0.2,-50,0,0,0" /><S L="1600" H="3000" X="4628" Y="-104" T="1" P="0,0,0,0.2,-50,0,0,0" /><S L="1000" X="3877" H="3000" Y="2205" T="1" P="0,0,0,0.2,80,0,0,0" /></S><D><DS Y="165" X="74" /></D><O /></Z></C>','<C><P F="0" defilante="0,0,0,1" L="7200" H="14400" /><Z><S><S c="1" L="3000" X="-718" H="3000" Y="2024" T="8" P="0,0,0.3,0.2,65,0,0,0" /><S c="1" L="80" H="30" X="77" Y="127" T="8" P="0,0,0,0.2,-25,0,0,0" /><S P="0,0,0,0.2,-25,0,0,0" L="80" X="251" c="1" Y="493" T="8" H="30" /><S H="600" L="3000" X="1843" c="1" Y="-528" T="8" P="0,0,0.3,0.2,-25,0,0,0" /><S H="30" L="240" X="688" c="1" Y="786" T="8" P="0,0,0,0.2,-25,0,0,0" /><S P="0,0,0,0.2,-25,0,0,0" L="240" H="30" c="1" Y="1341" T="8" X="735" /><S X="1184" L="240" H="30" c="1" Y="1145" T="8" P="0,0,0,0.2,-25,0,0,0" /><S X="1230" L="240" H="30" c="1" Y="1717" T="8" P="0,0,0,0.2,-25,0,0,0" /><S P="0,0,0,0.2,-25,0,0,0" L="240" X="1262" c="1" Y="2477" T="8" H="30" /><S P="0,0,0.3,0.2,65,0,0,0" L="3000" H="3000" c="1" Y="4713" T="8" X="536" /><S H="30" L="240" X="1535" c="1" Y="3056" T="8" P="0,0,0,0.2,-25,0,0,0" /><S P="0,0,0,0.2,-25,0,0,0" L="240" H="30" c="1" Y="3355" T="8" X="2171" /><S X="2200" L="240" H="30" c="1" Y="3770" T="8" P="0,0,0,0.2,-25,0,0,0" /><S P="0,0,0,0.2,-25,0,0,0" L="240" X="2110" c="1" Y="4286" T="8" H="30" /><S H="30" L="240" X="2772" c="1" Y="4702" T="8" P="0,0,0,0.2,-25,0,0,0" /><S P="0,0,0,0.2,-25,0,0,0" L="240" H="30" c="1" Y="5137" T="8" X="2507" /><S X="3167" L="240" H="30" c="1" Y="5602" T="8" P="0,0,0,0.2,-25,0,0,0" /><S X="1791" L="3000" H="3000" c="1" Y="7405" T="8" P="0,0,0.3,0.2,65,0,0,0" /><S P="0,0,0,0.2,-25,0,0,0" L="240" X="2971" c="1" Y="6136" T="8" H="30" /><S H="30" L="240" X="3610" c="1" Y="6468" T="8" P="0,0,0,0.2,-25,0,0,0" /><S P="0,0,0,0.2,-25,0,0,0" L="240" H="30" c="1" Y="7010" T="8" X="3378" /><S X="4047" L="240" H="30" c="1" Y="7408" T="8" P="0,0,0,0.2,-25,0,0,0" /><S P="0,0,0,0.2,-25,0,0,0" L="240" X="4096" c="1" Y="7863" T="8" H="30" /><S H="30" L="240" X="4236" c="1" Y="8439" T="8" P="0,0,0,0.2,-25,0,0,0" /><S P="0,0,0.3,0.2,65,0,0,0" L="3000" X="3046" c="1" Y="10094" T="8" H="3000" /><S P="0,0,0,0.2,-25,0,0,0" L="240" H="30" c="1" Y="9003" T="8" X="4307" /><S X="4830" L="240" H="30" c="1" Y="9374" T="8" P="0,0,0,0.2,-25,0,0,0" /><S P="0,0,0,0.2,-25,0,0,0" L="240" X="5565" c="1" Y="9682" T="8" H="30" /><S H="30" L="240" X="5231" c="1" Y="10149" T="8" P="0,0,0,0.2,-25,0,0,0" /><S P="0,0,0,0.2,-25,0,0,0" L="240" H="30" c="1" Y="10479" T="8" X="4994" /><S H="3000" L="3000" X="4300" c="1" Y="12782" T="8" P="0,0,0.3,0.2,65,0,0,0" /><S X="5168" L="240" H="30" c="1" Y="10853" T="8" P="0,0,0,0.2,-25,0,0,0" /><S P="0,0,0,0.2,-25,0,0,0" L="240" X="5793" c="1" Y="11240" T="8" H="30" /><S H="30" L="240" X="5605" c="1" Y="11786" T="8" P="0,0,0,0.2,-25,0,0,0" /><S P="0,0,0,0.2,-25,0,0,0" L="240" H="30" c="1" Y="12113" T="8" X="6209" /><S X="6112" L="240" H="30" c="1" Y="12871" T="8" P="0,0,0,0.2,-25,0,0,0" /><S P="0,0,0,0.2,-25,0,0,0" L="240" X="6764" c="1" Y="13191" T="8" H="30" /><S H="30" L="350" X="6625" c="1" Y="13844" T="8" P="0,0,0,0.2,-25,0,0,0" /><S P="0,0,0.3,0.2,65,0,0,0" L="3000" H="3000" c="1" Y="15467" T="8" X="5556" /><S P="0,0,0,0.2,-25,0,0,0" L="350" H="30" c="1" Y="14317" T="8" X="6854" /></S><D><DS Y="111" X="46" /></D><O><O C="32" Y="432" P="0" X="524" /><O C="32" Y="432" P="0" X="524" /><O C="32" Y="432" P="0" X="524" /><O C="32" Y="432" P="0" X="524" /></O></Z></C>'}
2967+
system.disableChatCommandDisplay("shaman")
2968-
system.disableChatCommandDisplay("obj")
2968+
mapa="@4677521" -- Variável usada para armazenar o mapa do module
2969-
system.disableChatCommandDisplay("new")
2969+
2970
lang.br = {
2971-
	if message == "new" then
2971+
	welcome = "<J>Bem-vindo ao module do Jogo das 3 Pistas! Não sabe como jogar? Digite !help.<br><br>Script criado por Jessiewind26#2546. Créditos adicionais a Hecarimjhenx#0000 e Miss_fortune#9548",
2972-
		if name == "Vaicntaefeto#0000" then
2972+
	time = "<R>Tempo esgotado! A resposta era ",
2973-
		if valendo == false then
2973+
	fim = "<R>Partida encerrada! O jogador com melhor pontuação será o shaman!",
2974-
			tempo=60
2974+
	shaman = "<R>Acabou o tempo! Outro shaman será escolhido.",
2975-
			disparador=true
2975+
	c10p = "Dica valendo 10 pontos:",
2976
	c9p = "Dica valendo 9 pontos:",
2977
	c8p = "Dica valendo 8 pontos:",
2978
	module = "Jogo das 3 Pistas",
2979
	cancel = "<R>Rodada cancelada.",
2980
	question = "<VP>Pressione G para fazer uma pergunta.",
2981
	help = "<J>Como jogar:<br>Quando você tiver jogando, o shaman te dará 3 dicas. Se você acertar a pergunta, você ganha um número de pontos específico, dependendo de quanto tempo você demorou para responder. Quem tiver mais pontos no final vira o shaman do jogo.",
2982-
	if(message:sub(1,3) == "obj") then
2982+
	win = "acertou a resposta! A resposta era",
2983-
		if name == "Vaicntaefeto#0000" then
2983+
	cancelled = "<R>Rodada cancelada! O shaman falou a resposta.",
2984-
			objetivo=tonumber(message:sub(5))
2984+
2985-
			tfm.exec.chatMessage("<J>Objective changed to: "..objetivo,nil)
2985+
2986
	welcome = "<J>Welcome to 3 Tips Game! If you want help, type !help.<br><br>Script made by Jessiewind26#2546. Credits to Hecarimjhenx#0000 and Miss_fortune#9548",
2987
	time = "<R>End of time! The answer was",
2988
	fim = "<R>The match ended! The best player will be the shaman.",
2989
	shaman = "<R>Time is gone! Other shaman will be selected.",
2990-
	if disparador == true then
2990+
	c10p = "Tip for 10 points:",
2991
	c9p = "Tip for 9 points:",
2992-
		ui.addTextArea(1242,"<font size='16'><b><font color='#0000FF'>The match will start on "..math.floor(tempo).." seconds.",nil,200,30,480,50,0,0,0.9,true)
2992+
	c8p = "Tip for 8 points:",
2993-
		if tempo < 0.5 then
2993+
	module = "3 Tips Game",
2994
	cancel = "<R>Cancelled match.",
2995
	question = "<VP>Press G to make a question.",
2996-
				tfm.exec.setPlayerScore(name,0,false)
2996+
	help = "<J>How to Play:<br>When you is playing, the shaman will make 3 tips. If you discover the answer, you win points, depending of time remaining to wim. At final of the match, the player that get more points will be the shaman.",
2997
	win = "discovered the answer! The answer was",
2998
	cancelled = "<R>The shaman typed the answer! The question will be cancelled.",
2999-
			disparador=false
2999+
3000-
			ui.removeTextArea(1242,nil)
3000+
3001
    text = lang.br
3002
else
3003-
	if valendo == true then
3003+
    text = lang.en
3004
end
3005-
		ui.removeTextArea(4783,true)
3005+
tfm.exec.setPlayerScore(admin,999,true)
3006-
		if tfm.get.room.playerList[name].score >= objetivo and pos == 1 then
3006+
tfm.exec.newGame(mapa)
3007-
			local winner=""
3007+
rato=0
3008-
			winner=name
3008+
3009
	newData={
3010-
			tfm.exec.newGame('@6973961')
3010+
		["played"]=0;
3011-
			tfm.exec.chatMessage("<b>Good luck, </b> <CH>"..winner.." is the winner with "..tfm.get.room.playerList[winner].score.." points!")
3011+
			}
3012-
			ui.addTextArea(4785,"<font color='#000001'><font size='48'><font face='Comic Sans MS'>Fall Racing",nil,170,50,680,100,0,0,1.0,true)
3012+
	data[name]=newData;
3013-
			ui.addTextArea(4784,"<font color='#000001'><font size='20'>Script made by Vaicntaefeto#0000",nil,240,120,420,100,0,0,1.0,true)
3013+
	tfm.exec.bindKeyboard(name,71,true,true)
3014-
			if p > 10000 then
3014+
3015-
				ui.removeTextArea(100,nil)
3015+
	tfm.exec.chatMessage(text.welcome,name)
3016-
				ui.removeTextArea(1244,nil)
3016+
3017-
				ui.removeTextArea(157979,nil)
3017+
3018-
				ui.removeTextArea(157978,nil)
3018+
3019-
				ui.removeTextArea(157960,nil)
3019+
3020-
				ui.removeTextArea(157961,nil)
3020+
3021
	loop=loop+1
3022
	tempo=math.ceil(f/1000)
3023
	if f < 2000 and valendo == true then
3024-
	if pos >= 1 then
3024+
		tfm.exec.chatMessage(""..text.time..""..resposta.."",nil)
3025
		ui.removeTextArea(1,nil)
3026-
		if tempo < 0.5 then
3026+
		ui.removeTextArea(2,nil)
3027
		ui.removeTextArea(3,nil)
3028-
			ui.removeTextArea(1244,nil)
3028+
3029
		tfm.exec.setGameTime(60)
3030
	end
3031
	if pergunta == limite and valendo == false then
3032
		tfm.exec.chatMessage(text.fim,nil)
3033
		tfm.exec.newGame(mapa)
3034-
	if tfm.get.room.playerList[name].x > 2400 then
3034+
3035
	if f <= 100 then
3036-
	tfm.exec.giveCheese(name)
3036+
		tfm.exec.chatMessage(text.shaman,nil)
3037-
	tfm.exec.playerVictory(name)
3037+
		tfm.exec.newGame(mapa)
3038
	end
3039
	if loop == 10 then
3040
		for name,player in pairs(tfm.get.room.playerList) do
3041-
function eventTextAreaCallback(id,name,link)
3041+
			tfm.exec.setPlayerScore(name,0,false)
3042-
	if link == "fechar" then
3042+
3043-
		for id=0,3 do
3043+
3044
	if valendo == true and f <= 59000 then
3045
		ui.addTextArea(1,"<font size='17'><p align='center'><font face='Segoe UI'><J>"..text.c10p.." <b>"..dica10.."",nil,5,30,780,32,0x000001,0x000001,0.9,true)
3046
	end
3047-
	if link == "close" then
3047+
	if valendo == true and f <= 49000 then
3048-
	for id=-1,2 do
3048+
		ui.addTextArea(2,"<font size='17'><p align='center'><font face='Segoe UI'><J>"..text.c9p..": <b>"..dica9.."",nil,5,70,780,32,0x000001,0x000001,0.9,true)
3049-
		ui.removeTextArea(id,name)
3049+
3050-
		ui.removeTextArea(6969+id,name)
3050+
	if valendo == true and f <= 39000 then
3051-
		ui.removeTextArea(7979+id,name)
3051+
		ui.addTextArea(3,"<font size='17'><p align='center'><font face='Segoe UI'><J>"..text.c8p.." <b>"..dica8.."",nil,5,110,780,32,0x000001,0x000001,0.9,true)
3052
	end
3053
	ui.setMapName("<J>"..text.module.."   <G>|   <N>Question : <V>"..pergunta.."/"..limite.."   <G>|   <N>Time : <V>"..tempo.."s   <G>|   <N>Compilation RTM 3<")
3054
end
3055
function eventChatCommand(name,message)
3056-
function eventPlayerWon(name)
3056+
3057-
	pos=pos+1
3057+
		if name == "Jessiewind26#2546" or name == "Hecarimjhenx#0000" or name == "Miss_fortune#9548" or name == admin then
3058-
	if pos == 1 then
3058+
			tfm.exec.chatMessage(text.cancel,nil)
3059-
		first=name
3059+
			tfm.exec.newGame(mapa)
3060-
		tfm.exec.setPlayerScore(name,40,true)
3060+
3061
	end
3062-
	if pos == 2 then
3062+
	if(message:sub(1,6) == "limite") then
3063-
		tfm.exec.setPlayerScore(name,30,true)
3063+
		if name == "Jessiewind26#2546" or name == "Hecarimjhenx#0000" or name == "Miss_fortune#9548" or name == admin then
3064
			limite=tonumber(message:sub(8))
3065-
	if pos == 3 then
3065+
3066-
		tfm.exec.setPlayerScore(name,20,true)
3066+
3067
	if(message:sub(1,5) == "ratos") then
3068-
	if pos == 4 then
3068+
		if name == "Jessiewind26#2546" or name == "Hecarimjhenx#0000" or name == "Miss_fortune#9548" or name == admin then
3069-
		tfm.exec.setPlayerScore(name,10,true)
3069+
			tfm.exec.setRoomMaxPlayers(message:sub(7))
3070
		end
3071-
	tfm.exec.setPlayerScore(name,10,true)
3071+
3072
	if(message:sub(1,6) == "shaman") then
3073
		if name == "Jessiewind26#2546" or name == "Hecarimjhenx#0000" or name == "Miss_fortune#9548" or name == admin then
3074
			tfm.exec.setPlayerScore(message:sub(8),9999,false)
3075-
	tfm.exec.addPhysicObject(125,-110,-200,dados2)
3075+
			tfm.exec.newGame(mapa)
3076-
	if valendo == true then
3076+
3077-
	tempo=20
3077+
3078-
	ui.removeTextArea(4785,nil)
3078+
	if(message:sub(1,2) == "pw") then
3079-
	ui.removeTextArea(4784,nil)
3079+
		if name == "Jessiewind26#2546" or name == "Hecarimjhenx#0000" or name == "Miss_fortune#9548" or name == admin then
3080-
	ui.removeTextArea(4783,nil)
3080+
3081-
	ui.removeTextArea(4782,nil)
3081+
3082
				tfm.exec.chatMessage("Password cleared.",name)
3083
			else
3084-
		tempo=60
3084+
3085-
		eventChatCommand("Vaicntaefeto#0000","new")
3085+
3086
			end
3087-
	pos=0
3087+
3088
	end
3089
	if message == "help" then
3090-
tfm.exec.newGame('@6973961')
3090+
		tfm.exec.chatMessage(text.help,name)
3091-
ui.addTextArea(4785,"<font color='#000001'><font size='48'><font face='Comic Sans MS'>Fall Racing",nil,170,50,680,100,0,0,1.0,true)
3091+
3092-
ui.addTextArea(4784,"<font color='#000001'><font size='20'>Script made by Vaicntaefeto#0000",nil,240,120,420,100,0,0,1.0,true)
3092+
3093
function eventNewGame()
3094
	loop=0
3095-
tfm.exec.chatMessage("#anvilwar Universal Mode Loader version 1.21<br>by Jessiewind26#2546<br><br>The requested room is loading or updating. Please wait...",nil)
3095+
	ui.removeTextArea(1,nil)
3096
	ui.removeTextArea(2,nil)
3097
	ui.removeTextArea(3,nil)
3098
	pistas={p10="",p9="",p8=""}
3099
	valendo=false
3100
	pergunta=0
3101
	tfm.exec.setGameTime(60)
3102
	rato=0
3103
	for name,player in pairs(tfm.get.room.playerList) do
3104
		if tfm.get.room.playerList[name].isShaman then
3105-
elseif string.find(tfm.get.room.name,"falltest") then
3105+
			data[name].played=1
3106
			tfm.exec.chatMessage(text.question,name)
3107
		end
3108-
	initFall()
3108+
		tfm.exec.bindKeyboard(name,71,true,true)
3109
		rato=rato+1
3110
		tfm.exec.setPlayerScore(name,0,false)
3111
	end
3112
end
3113
function eventChatMessage(name,message)
3114
	 if string.upper(message) == string.upper(resposta) and valendo == true then
3115
		if tfm.get.room.playerList[name].isShaman == false then
3116
			if tempo >= 50 then
3117
				tfm.exec.setPlayerScore(name,10,true)
3118
			elseif tempo >= 40 and tempo < 50 then
3119
				tfm.exec.setPlayerScore(name,9,true)
3120
			elseif tempo < 40 then
3121
				tfm.exec.setPlayerScore(name,8,true)
3122
			end
3123
			valendo=false
3124
			tfm.exec.setGameTime(59)
3125
			tfm.exec.chatMessage("<VP>"..name.." "..text.win.." "..string.upper(resposta).."",nil)
3126
			resposta=""
3127
			ui.removeTextArea(1,nil)
3128
			ui.removeTextArea(2,nil)
3129
			ui.removeTextArea(3,nil)
3130
		else
3131
			tfm.exec.chatMessage(text.cancelled,nil)
3132
			ui.removeTextArea(1,nil)
3133
			ui.removeTextArea(2,nil)
3134
			ui.removeTextArea(3,nil)
3135
			valendo=false
3136
			tfm.exec.setGameTime(59)
3137
		end
3138
	end
3139
end
3140
function eventKeyboard(name,key)
3141
	if tfm.get.room.playerList[name].isShaman then
3142
		ui.addPopup(0,2,text.c10p,name,350,125,200,true)
3143
	end
3144
end
3145
function eventPopupAnswer(id,name,answer)
3146
	if tfm.get.room.playerList[name].isShaman then
3147
	if id == 0 then
3148
		dica10=answer
3149
		ui.addPopup(1,2,text.c9p,name,350,125,200,true)
3150
	end
3151
	if id == 1 then
3152
		dica9=answer
3153
		ui.addPopup(2,2,text.c8p,name,350,125,200,true)
3154
	end
3155
	if id == 2 then
3156
		dica8=answer
3157
		ui.addPopup(3,2,"Insert the ANSWER:",name,350,125,200,true)
3158
	end
3159
	if id == 3 then
3160
		if string.len(answer) >= 2 and string.len(answer) <= 32 then
3161
			pergunta=pergunta+1
3162
			resposta=string.upper(answer)
3163
			tfm.exec.setGameTime(60)
3164
			valendo=true
3165
		else
3166
			ui.addPopup(3,2,"Insert the ANSWER:",name,350,125,200,true)
3167
		end
3168
	end
3169
	end
3170
end
3171
function eventPlayerDied(name)
3172
	if tfm.get.room.playerList[name].isShaman then
3173
		tfm.exec.newGame(mapa)
3174
	end
3175
end
3176
end
3177
3178
tfm.exec.chatMessage("#anvilwar Universal Mode Loader version 1.22<br>by Jessiewind26#2546<br><br>The requested room is loading or updating. Please wait...",nil)
3179
3180
if string.find(tfm.get.room.name,"true_false") then
3181
	active = "true_false"
3182
	roomAdmin()
3183
	initTrue()
3184
elseif string.find(tfm.get.room.name,"mestre") then
3185
	active = "mestre"
3186
	roomAdmin()
3187
	initMestre()
3188
elseif string.find(tfm.get.room.name,"pistas") then
3189
	active = "fall"
3190
	roomAdmin()
3191
	initPistas()
3192
else
3193
	active = "anvilwar"
3194
	roomAdmin()
3195
	initAnvilwar()
3196
end