View difference between Paste ID: u2GtN2rm and 166m0kH4
SHOW: | | - or go back to the newest paste.
1-
--[[ Script contendo o module #anvilwar, #mestre, #pistas, e #true_false. Compilado às 17h48 (UTC) 15/01/2019. ]]--
1+
--[[ Script contendo o module #anvilwar, #mestre, #pistas, e #true_false. Compilado às 12h40 (UTC) 16/01/2019. ]]--
2
3
local modulo = {
4
	_NOME = "anvilwar",
5-
	_VERSION = "1.34",
5+
	_VERSION = "1.34.1",
6
	_AUTHOR = "Jessiewind26#2546"
7
}
8
9
active = ""
10
11
initAnvilwar = function()
12
for _,f in next,{"AutoShaman","AutoScore","AutoNewGame","AutoTimeLeft","PhysicalConsumables","DebugCommand","AfkDeath"} do
13
	tfm.exec["disable"..f](true)
14
end
15
tfm.exec.setRoomMaxPlayers(35)
16
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,int_azul=2,int_vermelho=2}
17
play_azul={}
18
players_table={}
19-
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}
19+
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,85,89,90,95,201,202,203,301,302,303,401,402,403,601,604,2806}
20
caps={azul="",vermelho=""}
21
play_vermelho={}
22
avs_list={}
23
mods_list={"Flaysama#5935","Ashearcher#0000","Leonardodsss#0000","Jarvanfender#0000"}
24
managers_list={"Nasus_assassin#1534","Spectra_phantom#6089"}
25
admins_list={"Jessiewind26#2546","Zed#9431"}
26
level6_list={"Titan50#0000","Forzaldenon#0000","Varusofeyzan#0000","Jeredy_suno#0886"}
27
scoreloop=0
28
sudden_death=false
29
local temp_name=""
30
local temp_name2=""
31
local temp_name3=""
32
actual_player=""
33
count_int=20
34
tempo=0
35
players=0
36
time_limit=10
37
team=1
38
kills=0
39
data={}
40
ratos=0
41
loop=8
42
power=5
43
valendo=false
44
anvil_launched=false
45
set=false
46
object=10
47
select_obj=0
48
set_name=""
49
reset=false
50
intervalo=false
51
count=0
52
count_azul=0
53
count_vermelho=0
54
for _,f in next,{"help","powerups","set","tc","p","rank","data_score","score","kill","tt","rv","cap","cmd","acmd","ban","unban","rodar","reset","so"} do
55
	system.disableChatCommandDisplay(f)
56
end
57
anvils={10,1002,1003,1004,1005}
58
mapas={"@7467262","@7463118","@7436867","@7412348","@7467977","@7470456","@7480017","@7433435","@7483583","@7485139","@7486518","@7486596","@7486946","@7487828","@7488212","@7487008","@7493568","@7375714","@7495501","@7495286","@7495744","@7497388","@7499355","@7501996","@7511352","@7522536","@7522330","@7521998","@7540655","@7532950","@7542639","@7512942","@7114424","@7546132","@7546118","@7545653","@7543543","@7547908","@7544349","@7553313","@7554201","@7554203","@7554206","@7559566","@7560668","@7557788","@7559595","@7560873","@7562374"}
59
map_names={"The Dual-Sided Fight Area","","Inside the Castle","Hell and Water","A very simple waterfall","","The Frozen Arena","The Golden Flying Arena","The Beach Test Map","Inside the Theasure Cave","A random fall map","","The first #anvilwar map","The Beach Test Map 2","","","The Six Attributes","Inside the Ocean","","","","","","","The Stone Platforms","Inside the Hell","Let's fly!","Inside the Volcano","The Dance of Anvils on Stone","On the Space Tower","On the Edge of Void","","","On the Seabed","The Palace of Swords","The Castle of Fire","","The Example of Map","Fitting The Anvil","The Beach Test Map 3","Dead Maze Map #1","Dead Maze Map #2","Dead Maze Map #3","The Clouds Under Trampoline","Dead Maze Map #4","","Anvilwar Prison","The Pyramid of Grass","The Stone of Driftblade"}
60
lang = {}
61
lang.br = {
62
	win_vermelho = "<R><b>GG Time Vermelho!</b><br>A próxima partida será iniciada em 15 segundos.",
63
	win_azul = "<BL><b>GG Time Azul!</b><br>A próxima partida será iniciada em 15 segundos.",
64
	sudden_death = "<VP><b>Morte Súbita!</b><br>A equipe que conseguir eliminar qualquer um adversário será declarada a vencedora.",
65
	empate_text = "<J><b>Houve um empate!</b><br>A próxima partida será iniciada em 15 segundos.",
66
	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.",
67
	turn = "<VP>É a vez de",
68
	timeout = "<J>Tempo esgotado! O atirador será alterado.",
69
	enter_vermelho = "Entrar no time vermelho",
70
	enter_azul = "Entrar no time azul",
71
	exit = "Sair do time",
72
	double = "acionou o powerup Bigorna Dupla!",
73
	double2 = "<br>Neste powerup, você atira 2 bigornas de uma vez.",
74
	triple = "acionou o powerup Bigorna Tripla!",
75
	triple2 = "<br>Neste powerup, você atira 3 bigornas de uma vez.",
76
	bomba1 = "acionou o powerup Bomba Relógio!",
77
	bomba2 = "<br>Neste powerup, uma explosão em um lugar aleatório do time adversário ocorrerá.",
78
	objeto1 = "acionou o powerup Tiro Aleatório!",
79
	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.",
80
	exp1 = "acionou o powerup Olha a Explosão!",
81
	exp2 = "<br>Neste powerup, você pode gerar uma explosão clicando em um local do time inimigo.<br>Você possui 5 segundos para explodir!",
82
	chuva1 = "acionou o powerup Chuva de Objetos!",
83
	chuva2 = "<br>Neste powerup, ao atirar uma bigorna, irão aparecer diversos objetos continuamente até a troca de jogador.",
84
	fly1 = "acionou o powerup Rato Pequeno!",
85
	fly2 = "<br>Neste powerup, seu rato diminuirá 50% de tamanho. Esta habilidade só pode ser usada uma vez por jogador.",
86
	inv1 = "acionou o powerup Modo Imortal!",
87
	inv2 = "<br>Neste powerup, você ficará imortal durante 4 turnos do seu time. Esta habilidade só pode ser utilizada uma vez por partida.",
88
	inv3 = "Sua habilidade Modo Imortal expirou.",
89
	invi1 = "acionou o powerup Meteoro de Bigornas!",
90
	invi2 = "<br>Neste powerup, você terá 5 segundos para clicar em um local do time inimigo. Várias bigornas cairão do céu na coordenada selecionada.",
91-
	bar = "#anvilwar - RTM 9072.087",
91+
	bar = "#anvilwar - RTM 9173.088",
92
	intensity = "Intensidade",
93
	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 F9 para usar poderes especiais.",
94
	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 F9 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)",
95
	teamkill1 = "Oh não! ",
96
	teamKill2 = "matou um companheiro de equipe",
97
	ajuda = "Ajuda",
98
	credits = "Créditos",
99
	mostrar = "Mostrar",
100
	seconds = "<ROSE>Faltam 60 segundos!",
101
	seconds30 = "<ROSE>Faltam 30 segundos!",
102
	seconds10 = "<ROSE>Faltam 10 segundos!",
103-
	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",
103+
	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 = Meteoro de Bigornas",
104
	powerups2 = "6pts<br>12pts<br>5pts<br>4pts<br>18pts<br>15pts<br>15pts<br>24pts<br>15pts",
105
	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><b",
106
	powerups4 = "1<br>2<br>2<br>2<br>4<br>4<br>3<br>5<br>3",
107
	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.",
108
	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>",
109
	powerupslist = "Lista de Poderes",
110
	profile = "Use o comando !p para ver o seu perfil. Use !p [nome] para ver o perfil de outra pessoa.",
111
	starting = "<VP>A partida está prestes a começar. Preparem-se!",
112
	suicide = "O seguinte jogador cometeu suicídio: ",
113
	ban = " foi banido da sala #anvilwar por ",
114
	unban = " teve seu banimento removido da sala.",
115
	caps = " foi escolhido para ser o capitão da equipe.",
116
	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.",
117
	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. Você também pode usar a tecla END no teclado para pedir até 2 intervalos de 20 segundos cada.",
118
	score30 = "<R>Você precisa de 30 pontos para usar isto.",
119
	advanced = "<VP>Você acaba de avançar para o nível ",
120
	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!",
121
	revivetext = "<J>O seguinte jogador reviveu: ",
122
	yturn = "É a vez de: ",
123
	level_error = "<R>Você não possível nível suficiente para usar isto.",
124
	funct = "Função não permitida. (Você colocou a #tag no nome?)",
125
	cmds = "Comandos do Jogo",
126
	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.",
127
	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.",
128
	playingmap = "Rodando mapa",
129
	created = "criado por",
130
	red_int_text = "<R>A equipe vermelha pediu tempo.",
131
	blue_int_text = "<BL>A equipe azul pediu tempo.",
132
	points_text1 = "<N>Você agora possui ",
133
	points_text2 = "<N> pontos para gastar com powerups.",
134
}
135
lang.en = {
136
	win_vermelho = "<R><b>The RED team wins!</b><br>The next match will start in 15 seconds.",
137
	win_azul = "<BL><b>The BLUE team wins!</b><br>The next match will start in 15 seconds.",
138
	sudden_death = "<VP><b>SUDDEN DEATH!</b><br>The team that kill anyone of other team will won the match.",
139
	empate_text = "<J><b>There was a draw!</b><br>The next match will start in 15 seconds.",
140
	instructions = "Use the 1 to 9 keys to change the intensity of anvil and SPACEBAR to throw a anvil.",
141
	turn = "<VP>It's turn of",
142
	timeout = "<J>Time is over! The shooter will be changed.",
143
	enter_vermelho = "Enter on RED team",
144
	enter_azul = "Enter on BLUE team",
145
	exit = "Leave this team",
146
	double = "used the powerup Double Anvil!",
147
	triple = "used the powerup Triple Anvil!",
148
	bomba1 = "used the powerup Time Bomb!",
149
	bomba2 = "<br>On this powerup, a explosion will occur on a random place of enemy area.",
150
	objeto1 = "used the powerup Random Shoot!",
151
	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.",
152
	exp1 = "used the powerup Explosion!",
153
	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.",
154
	chuva1 = "used the powerup Anvil Rain!",
155
	chuva2 = "<br>On this powerup, you will shoot several anvils",
156
	fly1 = "used the powerup Small Mice!",
157
	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.",
158
	inv1 = "used the powerup Immortal Mode!",
159
	inv2 = "<br>On this powerup, you be immortal during the next 4 turns. This powerup only can be used 1 time per game.",
160
	inv3 = "Your immortality has ended.",
161
	invi1 = "used the powerup Anvil Meteor!",
162
	invi2 = "<br>On this powerup, you can click with the mouse on a area of enemy team. A lot of anvils will drop at selected point.",
163-
	bar = "#anvilwar - RTM 9072.087",
163+
	bar = "#anvilwar - RTM 9173.088",
164
	intensity = "Intensity",
165
	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 F9 keys to use powerups.",
166
	help = "Press SPACEBAR to throw a anvil and use the 1 to 9 keys to change the intensity of anvil. Use the F1 to F9 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)",
167
	teamkill1 = "Oh no! ",
168
	teamKill2 = "has killed a player of her team",
169
	ajuda = "Help",
170
	credits = "Credits",
171
	mostrar = "Show",
172
	seconds = "<ROSE>60 seconds remaining!",
173
	seconds30 = "<ROSE>30 seconds remaining!",
174
	seconds10 = "<ROSE>10 seconds remaining!",
175-
	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",
175+
	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 = Anvil Meteor",
176
	powerups2 = "6pt<br>12pt<br>5pt<br>4pt<br>18pt<br>15pt<br>15pt<br>24pt<br>15pt",
177
	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>",
178
	powerups4 = "1<br>2<br>2<br>2<br>4<br>4<br>3<br>5<br>3",
179
	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.",
180
	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>",
181
	powerupslist = "Powerups List",
182
	profile = "Use the !p command to view your profile and use !p [username] to view the profile of another user.",
183
	starting = "<VP>The match will start on a few seconds. Get ready!",
184
	suicide = "The following player committed suicide: ",
185
	ban = " was banned of room by ",
186
	unban = " was unbanned of room.",
187
	caps = " was choosed to be the team capitain.",
188
	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.",
189
	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. You also can use the END key on the keyboard to request up to 2 timeouts.",
190
	score30 = "<R>You need 30 points to use this.",
191
	advanced = "<VP>You reached the level ",
192
	tag_text = "<J>Don't forget to insert the #tag on the target nickname, else this command don't will work!",
193
	revivetext = "<J>The following player has been revived: ",
194
	yturn = "Actual player: ",
195
	level_error = "<R>You don't have level to use this. To view your level use the !p command.",
196
	funct = "Function not allowed",
197
	cmds = "Game commands",
198
	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.",
199
	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.",
200
	playingmap = "Playing map",
201
	created = "created by",
202
	red_int_text = "<R>The red team requested a timeout.",
203
	blue_int_text = "<BL>The blue team requested a timeout.",
204
	points_text1 = "<N>You now have ",
205
	points_text2 = "<N> points to use powerups.",
206
}
207
lang.ar = {
208
	win_vermelho = "<R><b>فاز الفريق الأحمر!</b><br>ستبدأ المباراة التالية في غضون 15 ثانية!",
209
win_azul = "<BL><b>فاز الفريق الأزرق!</b><br>ستبدأ المعركة التالية في غضون 15 ثانية!",
210
sudden_death = "<VP><b>المعركة النهائية!</b><br>إذا قام أي أحد بقتل عضو في أي فريق أخر، سوف يفوز الفريق الذي قتل!",
211
empate_text = "<J><b>تعادل!</b><br>ستبدأ المباراة التالية في غضون 15 ثانية!",
212
instructions = "إستخدم مفاتيح لوحة التحكم من 1 الى 9 للتحكم في سرعة وقوة السندان.",
213
turn = "<VP>إنه دور",
214
timeout = "<J>إنتهى الوقت! سيتم تغيير الضارب",
215
enter_vermelho = "قم بالدخول للفريق الأحمر",
216
enter_azul = "قم بالدخول للفريق الأزرق",
217
exit = "قم بالخروج من هذا الفريق",
218
double = "إستخدم السندان المزدوج!",
219
triple = "إستخدم السندان الثلاثي، إحترس!",
220
bomba1 = "إستخدم فرقعة الزمن، إحترس من الإنفجار!",
221
bomba2 = "<br>في هذه القوة، سوف يحدث إنفجار في بقعة مختلفة في مكان العدو",
222
objeto1 = "إستخدم الضربة العشوائية! قد يقوم بضرب أي شيئ الأن!",
223
objeto2 = "<br>في هذه القوة، يمكنك ضرب أداة شامان بدلآ من السندان، إذا قمت بإختيار السندان المزدوج، سيتم ضرب اداتان شامان بدلآ من سندان",
224
exp1 = "قام بإستخدام قوة الإنفجار!",
225
exp2 = "<br>بإستخدام هذه القوة، يمكنك إحداث إنفجار في منطقة العدو بإستخدام الفأرة (الماوس)، لديك 5 ثوانٍ فقط للقيام بإنفجار",
226
chuva1 = "إستخدم قوة مَطر السندان! إحتمي!",
227
chuva2 = "<br>في هذه القوة، يمكنك ضرب العديد من السندان",
228
fly1 = "used the powerup Small Mice!",
229
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.",
230
inv1 = "إستخدم قوة عدم الموت",
231
inv2 = "<br>بإستخدام هذه القوة، لن يمكنك الموت لمدة 4 جولات من الضرب، يمكنك إستخدامها مرة واحدة فقط في الجولة الواحدة",
232
inv3 = "قوة عدم موتك قد إنتهت، أصبحت قابلآ للموت الأن!.",
233
invi1 = "used the powerup Anvil Meteor!",
234
invi2 = "<br>On this powerup, you can click with the mouse on a area of enemy team. A lot of anvils will drop at selected point.",
235-
bar = "#anvilwar - RTM 9072.087",
235+
bar = "#anvilwar - RTM 9173.088",
236
intensity = "قوة الضرب وسرعته",
237
your_turn = "<J>إنه دورك للضرب! إضغط زر المسافة لإطلاق سندان مع استخدام الزر من 1 الى 9 للتحكم في سرعة السندان لتغيير قوة ضرب السندان، . إستخدم المفتاح إف 1 حتى إف 9 لإطلاق ضربات مختلفة! إكتشف!",
238
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)",
239
teamkill1 = "أوه لا!! ",
240
teamKill2 = "قام بقتل عضو من فريقه!",
241
ajuda = "المساعدة",
242
credits = "Credits",
243
mostrar = "أظهر",
244
seconds = "<ROSE>60 ثانية متبقية",
245
seconds30 = "<ROSE>30 ثانية متبقية!",
246
seconds10 = "<ROSE>10 ثوانٍ متبقية!",
247-
powerups1 = "F1 = سندان مزدوج<br>F2 =سندان ثلاثي <br>F3 =فرقعة بالفأرة<br>F4 = ضربة أداة شامان عشوائية<br>F5 = تفجير!<br>F6 =مطر السندان!<br>F7 = Small Mice<br>F8 = وضع عديم الموت<br>F9 =سندان مختفي",
247+
powerups1 = "F1 = سندان مزدوج<br>F2 =سندان ثلاثي <br>F3 =فرقعة بالفأرة<br>F4 = ضربة أداة شامان عشوائية<br>F5 = تفجير!<br>F6 =مطر السندان!<br>F7 = Small Mice<br>F8 = وضع عديم الموت<br>F9 = Anvil Meteor",
248
powerups2 = "6pt<br>12pt<br>5pt<br>4pt<br>18pt<br>15pt<br>15pt<br>24pt<br>15pt",
249
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>",
250
powerups4 = "1<br>2<br>2<br>2<br>4<br>4<br>3<br>5<br>3",
251
teamchat = "<J>إستخم الإيعاز !tc [msg] للتكلم مع أعضاء فريقك<br><br>You can see your profile typing !p and the temporary tanking typing !rank.",
252
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>",
253
powerupslist = "Powerups List",
254
profile = "إستخدم !p لرؤية ملفك وأستخدم !p name لرؤية ملف لاعب أخر ",
255
starting = "<VP>ستبدأ المباراة غي غضون بضعة ثواني، إستعد!",
256
suicide = "قام بالإنتحار ",
257
ban = " تم حظره من الغرفة من قبل ",
258
unban = " تم فك حظره من الغرفة من قبل",
259
caps = " تم إختياره ليصبح قائد الفريق. لرؤية المزيد عن هذا أكتب !cap أو استخدم قسم القائد في القائمة, ",
260
cap = "الكابتن هو قائد الفريق، يتم إختياره عشوائيآ، سوف يحصل على نقاط بنسبة 50% أكثر من اللاعبين، اي جَني النقاط بسرعة!يمكنه تحويل النقاط للاعب أخر عن طريق الإيعاز ويمكنه إحياء لاعب مات من فريقه بإستخدام !rv [name] ولكن يتطلب 30 نقطة لذلك",
261
cap_text = "<br><VP>أنت قائد الفريق<br><br>سوف تحصل على نقاط زائدة بنسبة 50% ويمكنك نق لنقاطك للاعب أخر بإستخدام !tt name أو إحياء لاعب أخر بإستخدام !rv name يتطلب الإحياء 30 نقطة",
262
score30 = "<R>تحتاج 30 نقطة للقيام بهذا",
263
advanced = "<VP>وصلت للستوى ",
264
tag_text = "<J>لا تنسى بوضع الهاشتاج على الإسم الذي تم إختياره, أو لن يعمل هذا الإيعاز",
265
revivetext = "<J>هذا اللاعب قام بإستقبال : ",
266
yturn = "اللاعب الحالي: ",
267
level_error = "<R>لا تملك المستوى المطلوب لفعل هذا، لترى مستواك إكتب !p",
268
funct = "الإيعاز غير مسموح",
269
cmds = "إيعازات اللعبة : ",
270
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",
271
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>يمكنك إستخدام هذه الإيعازات عندما يكون إسمك باللون :.",
272
playingmap = "Playing map",
273
created = "created by",
274
red_int_text = "<R>The red team requested a timeout.",
275
blue_int_text = "<BL>The blue team requested a timeout.",
276
points_text1 = "<N>You now have ",
277
points_text2 = "<N> points to use powerups.",
278
}
279
lang.es = {
280
	win_vermelho = "<R><b>¡Ha ganado el equipo ROJO!</b><br>La próxima ronda comenzará en 15 segundos.",
281
win_azul = "<BL><b>¡Ha ganado el equipo AZUL!</b><br>La próxima ronda comenzará en 15 segundos.",
282
	sudden_death = "<VP><b>MUERTE SÚBITA!</b><br>El equipo que mate a alguien del otro equipo ganará esta ronda.",
283
	empate_text = "<J><b>Hubo un empate!</b><br>La próxima ronda comenzará en 15 segundos.",
284
	instructions = "Usa las teclas 1 al 9 para cambiar la intensidad del yunque y ESPACIO para lanzarlo.",
285
	turn = "<VP>Es el turno de",
286
	timeout = "<J>El tiempo ha terminado. El tirador será cambiado.",
287
	enter_vermelho = "Unirse al equipo ROJO",
288
	enter_azul = "Unirse al equipo AZUL",
289
	exit = "Abandonar este equipo",
290
	double = "usó el powerup Doble Yunque!",
291
	triple = "usó el powerup Triple Yunque!",
292
	bomba1 = "usó el powerup Bomba de Tiempo!",
293
	bomba2 = "<br>Con este powerup se producirá una explosión en un lugar aleatorio del área enemigo.",
294
	objeto1 = "usó el de powerup Tiro Aleatorio!",
295
	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.",
296
	exp1 = "usó el powerup Explosión!",
297
	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.",
298
	chuva1 = "usó el powerup Lluvia de Yunques!",
299
	chuva2 = "<br>Con este powerup lanzarás varios yunques.",
300
	fly1 = "used the powerup Small Mice!",
301
	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.",
302
	inv1 = "usó el powerup Modo Inmortal!",
303
	inv2 = "<br>Con este powerup serás inmortal durante los próximos 4 turnos. Solo puedes usarlo 1 vez por ronda.",
304
	inv3 = "Tu inmortalidad ha terminado.",
305
	invi1 = "used the powerup Anvil Meteor!",
306
	invi2 = "<br>On this powerup, you can click with the mouse on a area of enemy team. A lot of anvils will drop at selected point.",
307-
	bar = "#anvilwar - RTM 9072.087",
307+
	bar = "#anvilwar - RTM 9173.088",
308
	intensity = "Intensidad",
309
	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 F9 para usar los powerups.",
310
	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 F9 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)",
311
	teamkill1 = "¡Oh no! ",
312
	teamKill2 = "ha matado a un jugador de su equipo",
313
	ajuda = "Ayuda",
314
	credits = "Créditos",
315
	mostrar = "Mostrar",
316
	seconds = "<ROSE>¡Quedan 60 segundos!",
317
	seconds30 = "<ROSE>¡Quedan 30 segundos!",
318
	seconds10 = "<ROSE>¡Quedan 10 segundos!",
319-
	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",
319+
	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 = Anvil Meteor",
320
	powerups2 = "6pt<br>12pt<br>5pt<br>4pt<br>18pt<br>15pt<br>15pt<br>24pt<br>15pt",
321
	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>",
322
	powerups4 = "1<br>2<br>2<br>2<br>4<br>4<br>3<br>5<br>3",
323
	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.",
324
	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>",
325
	powerupslist = "Lista de Powerups",
326
	profile = "Usa el comando !p para ver tu perfil y usa !p [apodo] para ver el de otra persona.",
327
	starting = "<VP>La ronda comenzará en unos segundos. ¡Prepárate!",
328
	suicide = "El siguiente jugador cometió suicidio: ",
329
	ban = " fue baneado de la sala por ",
330
	unban = " fue desbaneado de la sala.",
331
	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ú.",
332
	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.",
333
	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.",
334
	score30 = "<R>Necesitas 30 puntos para usar esto.",
335
	advanced = "<VP>Has alcanzado el nivel ",
336
	tag_text = "<J>No te olvides de colocar el #tag en el apodo del objetivo, o este comando no funcionará.",
337
	revivetext = "<J>El siguiente jugador ha sido revivido: ",
338
	yturn = "Jugador actual: ",
339
	level_error = "<R>No tienes el nivel para usar esto. Para ver tu nivel usa el comando !p.",
340
	funct = "Función no permitido",
341
	cmds = "Comandos del juego",
342
	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.",
343
	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.",
344
	playingmap = "Jugando mapa",
345
	created = "creado por",
346
	red_int_text = "<R>The red team requested a timeout.",
347
	blue_int_text = "<BL>The blue team requested a timeout.",
348
	points_text1 = "<N>You now have ",
349
	points_text2 = "<N> points to use powerups.",
350
}
351
lang.de = {
352
	win_vermelho = "<R><b>Das ROTE Team gewinnt!</b><br>Das nächste Spiel beginnt in 15 Sekunden.",
353
	win_azul = "<BL><b>Das BLAUE Team gewinnt!</b><br>Das nächste Spiel beginnt in 15 Sekunden.",
354
	sudden_death = "<VP><b>PLÖTZLICHER TOD!</b><br>Das Team, das jemanden aus einem anderen Team tötet, gewinnt das Spiel.",
355
	empate_text = "<J><b>Es gab ein Unentschieden!</b><br>Das nächste Spiel beginnt in 15 Sekunden.",
356
	instructions = "Verwenden Sie die Tasten 1 bis 9, um die Intensität des Ambosses zu ändern und die Leertaste, um einen Amboss zu werfen.",
357
	turn = "<VP>Es ist die Wende von",
358
	timeout = "<J>Die Zeit ist vorbei! Der Schütze wird gewechselt.",
359
	enter_vermelho = "Betreten Sie das ROTE Team",
360
	enter_azul = "Betreten Sie das BLAUE Team",
361
	exit = "Dieses Team verlassen",
362
	double = "benutzte den Powerup Double Anvil!.",
363
	triple = "benutzte den Powerup Triple Anvil!",
364
	bomba1 = "benutzte den Powerup Time Bomb!",
365
	bomba2 = "<br>Bei diesem Powerup kommt es zu einer Explosion an einem beliebigen Ort im feindlichen Gebiet.",
366
	objeto1 = "benutzte den Powerup Random Shoot!",
367
	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.",
368
	exp1 = "benutzte den Powerup Explosion!",
369
	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.",
370
	chuva1 = "benutzte den Powerup Anvil Rain!",
371
	chuva2 = "<br>Bei diesem Powerup schießt du mehrere Ambosse.",
372
	fly1 = "used the powerup Small Mice!",
373
	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.",
374
	inv1 = "benutzte den Powerup Immortal Mode!",
375
	inv2 = "<br>Bei diesem Powerup bist du in den nächsten 4 Runden unsterblich. Dieses Powerup kann nur einmal pro Spiel verwendet werden.",
376
	inv3 = "Deine Unsterblichkeit ist vorbei.",
377
	invi1 = "used the powerup Anvil Meteor!",
378
	invi2 = "<br>On this powerup, you can click with the mouse on a area of enemy team. A lot of anvils will drop at selected point.",
379-
	bar = "#anvilwar - RTM 9072.087",
379+
	bar = "#anvilwar - RTM 9173.088",
380
	intensity = "Intensität",
381
	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 F9, um Powerups zu verwenden.",
382
	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 F9, 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)",
383
	teamkill1 = "Oh nein! ",
384
	teamKill2 = "hat einen Spieler ihrer Mannschaft getötet.",
385
	ajuda = "Hilfe",
386
	credits = "Credits",
387
	mostrar = "Zeigen",
388
	seconds = "<ROSE>Noch 60 Sekunden!",
389
	seconds30 = "<ROSE>Noch 30 Sekunden!",
390
	seconds10 = "<ROSE>Noch 10 Sekunden!",
391-
	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 Anvilt",
391+
	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 = Anvil Meteor",
392
	powerups2 = "6pt<br>12pt<br>5pt<br>4pt<br>18pt<br>15pt<br>15pt<br>24pt<br>15pt",
393
	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>",
394
	powerups4 = "1<br>2<br>2<br>2<br>3<br>4<br>3<br>5<br>3<br>3",
395
	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.",
396
	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>",
397
	powerupslist = "Powerups List",
398
	profile = "Verwenden Sie die !p Befehl, um Ihr Profil anzusehen und zu verwenden !p [username] um das Profil eines anderen Benutzers anzuzeigen.",
399
	starting = "<VP>Das Spiel beginnt in wenigen Sekunden. Macht euch bereit!",
400
	suicide = "Der folgende Spieler beging Selbstmord: ",
401
	ban = " wurde aus dem Zimmer verbannt von ",
402
	unban = " wurde nicht aus dem Zimmer verbannt.",
403
	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.",
404
	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.",
405
	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.",
406
	score30 = "<R>Du brauchst 30 Punkte, um das zu benutzen.",
407
	advanced = "<VP>Du hast das Level erreicht ",
408
	tag_text = "<J>Vergiss nicht, das #Tag auf dem Ziel-Nicknamen einzufügen, sonst funktioniert dieser Befehl nicht!",
409
	revivetext = "<J>Der folgende Spieler wurde wiederbelebt: ",
410
	yturn = "Aktueller Spieler: ",
411
	level_error = "<R>Du hast kein Level, um das hier zu benutzen. Um dein Level zu sehen, benutze den !p Befehl.",
412
	funct = "Funktion nicht erlaubt",
413
	cmds = "Spielbefehle",
414
	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.",
415
	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.",
416
	playingmap = "Wiedergabekarte",
417
	created = "erstellt von",
418
	red_int_text = "<R>The red team requested a timeout.",
419
	blue_int_text = "<BL>The blue team requested a timeout.",
420
	points_text1 = "<N>You now have ",
421
	points_text2 = "<N> points to use powerups.",
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.r_vermelho=false
451
	powerups.r_azul=false
452
	powerups.multi_count=2
453
	powerups.multiple=false
454
	set=false
455
	advanceLevel()
456
end
457
changeMap()
458
function split(t,s)
459
	local a={}
460
	for i,v in string.gmatch(t,string.format("[^%s]+",s or "%s")) do
461
		table.insert(a,i)
462
	end
463
	return a
464
end
465
function eventRanking(name)
466
	local sc = {}
467
	for id, name in pairs(players_table) do
468
		sc[#sc+1] = {n=name,s=data[name].score,f=data[name].kills,l=data[name].nivel}
469
	end
470
471
	table.sort(sc,function(a,b) return a.s>b.s end)
472
473
	str1 = ''
474
	str2 = ''
475
	str3 = ''
476
	str4 = ''
477
	str5 = ''
478
	for k,v in pairs(sc) do
479
		if k < 11 then
480
			if str ~= '' then
481
				str1=str1.."<br><N>"..k.."° | <VP>"..v.n..""
482
				str2=str2.."<br><b><N>"..v.s.."</b>"
483
				str3=str3.."<br><N>"..v.f..""
484
				str5=str5.."<br><N>"..v.l..""
485
			else
486
				str1="<J>"..k.."° | <VP>"..v.n..""
487
				str2="<J><b>"..v.s.."</b>"
488
				str3="<J>"..v.f..""
489
				str5="<J>"..v.l..""
490
			end
491
		end
492
	end
493
	ui.addTextArea(8000,'<B><J><font size="13"><p align="center">Temporary Ranking',name,100,100,600,30,nil,0x2e424d,nil,true)
494
	ui.addTextArea(8001,"<B><font size='13'><font face='Consolas'>#	  Name								 Score	   Kills			   Level",name,110,110,580,20,0x0e232b,0x0e232b,nil,true)
495
	ui.addTextArea(8002,"<B><font size='16'><font face='Consolas'>"..str1,name,110,130,580,220,0x0e232b,0x0e232b,nil,true)
496
	ui.addTextArea(8003,"<p align='right'><font size='16'><font face='Consolas'>"..str2,name,400,130,60,220,0x0e232b,0x0e232b,nil,true)
497
	ui.addTextArea(8004,"<p align='right'><font size='16'><font face='Consolas'>"..str3,name,485,130,60,220,0x0e232b,0x0e232b,nil,true)
498
	ui.addTextArea(8007,"<p align='right'><font size='16'><font face='Consolas'>"..str5,name,635,130,45,220,0x0e232b,0x0e232b,nil,true)
499
	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)
500
end
501
function loadPowerups(name)
502
	ui.addTextArea(9000,"<B><J><font size='13'><p align='center'>"..text.powerupslist.."",name,100,80,600,30,nil,0x2e424d,nil,true)
503
	ui.addTextArea(9001,"<font size='14'><font face='Consolas'>Powerup Name						  Score	 Funct.   Min Level",name,110,110,580,20,0x0e232b,0x0e232b,nil,true)
504
	ui.addTextArea(9002,"<font size='14'><font face='Consolas'>"..text.powerups1.."",name,110,135,580,175,0x0e232b,0x0e232b,nil,true)
505
	ui.addTextArea(9003,"<font size='14'><font face='Consolas'>"..text.powerups2.."",name,420,135,60,175,0x0e232b,0x0e232b,nil,true)
506
	ui.addTextArea(9004,"<font size='14'><font face='Consolas'>"..text.powerups3.."",name,500,135,60,175,0x0e232b,0x0e232b,nil,true)
507
	ui.addTextArea(9005,"<font size='14'><font face='Consolas'>"..text.powerups4.."",name,570,135,60,175,0x0e232b,0x0e232b,nil,true)
508
	ui.addTextArea(9006,"<font size='14'><R><a href='event:closep'>Close</a>",name,300,320,190,20,0x3c5063,0x3c5063,nil,true)
509
end
510
function eventChatCommand(name,message)
511
	local arg = split(message, " ")
512
	if arg[1] == "p" then
513
		if arg[2] then
514
			nome = arg[2]:lower():gsub('%a', string.upper, 1)
515
		else
516
			nome = name
517
		end
518
519
		if tfm.get.room.playerList[nome] then
520
			ui.addTextArea(8003,'<B><J><font size="17"><p align="center">'..nome,name,245,95,315,30,nil,0x2e424d,nil,true)
521
			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)
522
			ui.addTextArea(8006,"",name,260,178,((data[nome].exp/data[nome].maxp)*270)+3,6,0xffffff,0x000001,nil,true)
523
			ui.addTextArea(8005,"<R><p align='center'><B><a href='event:fechar'>Close</a>",name,255,320,290,20,0x3c5063,0x3c5063,nil,true)
524
		else
525
			tfm.exec.chatMessage(text.funct,name)
526
		end
527
	end
528
529
	if message == "rank" then
530
		eventRanking(name)
531
	end
532
	if(message:sub(0,4) == "kill") then
533
		if data[name].level >= 3 or name == "Jessiewind26#2546" or name == "Zed#9431"  then
534
			tfm.exec.killPlayer(message:sub(6))
535
		else
536
			tfm.exec.chatMessage(text.funct,name)
537
		end
538
	end
539
	if(message:sub(0,5) == "rodar") then
540
		if data[name].level >= 4 or name == "Jessiewind26#2546" or name == "Zed#9431"  then
541
			tfm.exec.newGame(message:sub(7))
542
		else
543
			tfm.exec.chatMessage(text.funct,name)
544
		end
545
	end
546
	if(message:sub(0,3) == "ban") then
547
		if data[name].level >= 3 or name == "Jessiewind26#2546" or name == "Zed#9431" then
548
			if data[message:sub(5)] then
549
				tfm.exec.killPlayer(message:sub(5))
550
				data[message:sub(5)].level=-1
551
				tfm.exec.chatMessage(""..message:sub(5)..""..text.ban..""..name..".")
552
			else
553
				tfm.exec.chatMessage(text.funct,name)
554
			end
555
		else
556
			tfm.exec.chatMessage(text.funct,name)
557
		end
558
	end
559
	if(message:sub(0,5) == "unban") then
560
		if data[name].level >= 4 or name == "Jessiewind26#2546" or name == "Zed#9431" then
561
			if data[message:sub(7)] then
562
				data[message:sub(7)].level=0
563
				tfm.exec.chatMessage(""..message:sub(7)..""..text.unban.."")
564
			else
565
				tfm.exec.chatMessage(text.funct,name)
566
			end
567
		else
568
			tfm.exec.chatMessage(text.funct,name)
569
		end
570
	end
571
	if(message:sub(0,2) == "tc") then
572
		local typer=name
573
		if data[typer].team == "azul" then
574
			for name,player in pairs(tfm.get.room.playerList) do
575
				if data[name].team == "azul" then
576
					tfm.exec.chatMessage("<font color='#0080ff'>• ["..typer.."] "..message:sub(4).."",name)
577
					tfm.exec.chatMessage("<font color='#0080ff'>• ["..typer.."] "..message:sub(4).."","Jessiewind26#2546")
578
				end
579
			end
580
		elseif data[typer].team == "vermelho" then
581
			for name,player in pairs(tfm.get.room.playerList) do
582
				if data[name].team == "vermelho" then
583
					tfm.exec.chatMessage("<font color='#ff8000'>• ["..typer.."] "..message:sub(4).."",name)
584
					tfm.exec.chatMessage("<font color='#ff8000'>• ["..typer.."] "..message:sub(4).."","Jessiewind26#2546")
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"  then
593
			changeMap()
594
		end
595
	end
596
	if(message:sub(0,3) == "set") then
597
		if data[name].level >= 4 or name == "Jessiewind26#2546" or name == "Zed#9431" then
598
			if data[message:sub(5)] then
599
				set_name=message:sub(5)
600
				set=true
601
			else
602
				tfm.exec.chatMessage(text.funct,name)
603
			end
604
		else
605
			tfm.exec.chatMessage(text.funct,name)
606
		end
607
	end
608
	if(message:sub(0,2) == "so") then
609
		if data[name].level >= 4 or name == "Jessiewind26#2546" or name == "Zed#9431" then
610
			select_obj=tonumber(message:sub(4))
611
		else
612
			tfm.exec.chatMessage(text.funct,name)
613
		end
614
	end
615
	if(message:sub(0,2) == "tt") then
616
		if name == caps.azul or name == caps.vermelho and valendo == true and reset == false then
617
			temp_name2=message:sub(4)
618
			if data[temp_name2] then
619
				ui.addPopup(1201,2,"1 = 5pts<br>2 = 10pts<br>3 = 15pts<br>4 = 20pts",name,350,225,200,true)
620
				tfm.exec.chatMessage(text.tag_text,name)
621
			else
622
				tfm.exec.chatMessage(text.funct,name)
623
			end
624
		else
625
			tfm.exec.chatMessage(text.funct,name)
626
		end
627
	end
628
	if(message:sub(0,2) == "rv") then
629
		if name == caps.azul or name == caps.vermelho and valendo == true and reset == false then
630
			temp_name3=message:sub(4)
631
			if data[temp_name3] then
632
				ui.addPopup(1204,1,"Revive "..temp_name3.."?",name,350,225,200,true)
633
				tfm.exec.chatMessage(text.tag_text,name)
634
			else
635
				tfm.exec.chatMessage(text.funct,name)
636
			end
637
		else
638
			tfm.exec.chatMessage(text.funct,name)
639
		end
640
	end
641
	if(message:sub(0,5) == "score") then
642
		if data[name].level >= 3 or name == "Jessiewind26#2546" or name == "Zed#9431" then
643
			temp_name=message:sub(7)
644
			ui.addPopup(906,2,"Score",name,350,175,200,true)
645
		else
646
			tfm.exec.chatMessage(text.funct,name)
647
		end
648
	end
649
	if message == "help" then
650
		ui.addTextArea(9000,"<B><J><font size='13'><p align='center'>"..text.ajuda.."",name,100,90,600,30,nil,0x2e424d,nil,true)
651
		ui.addTextArea(9005,"<font size='13'><font face='Consolas'>"..text.help.."",name,150,125,500,205,0x0e232b,0x0e232b,nil,true)
652
		ui.addTextArea(9006,"<font size='13'><R><a href='event:closep'>Close</a>",name,300,337,190,20,0x3c5063,0x3c5063,nil,true)
653
	end
654
	if message == "cmd" then
655
		ui.addTextArea(9000,"<B><J><font size='13'><p align='center'>"..text.cmds.."",name,100,90,600,30,nil,0x2e424d,nil,true)
656
		ui.addTextArea(9005,"<font size='13'><font face='Consolas'>"..text.commands.."",name,150,125,500,200,0x0e232b,0x0e232b,nil,true)
657
		ui.addTextArea(9006,"<font size='13'><R><a href='event:closep'>Close</a>",name,300,334,190,20,0x3c5063,0x3c5063,nil,true)
658
	end
659
	if message == "acmd" then
660
		ui.addTextArea(9000,"<B><J><font size='13'><p align='center'>"..text.cmds.."",name,100,90,600,30,nil,0x2e424d,nil,true)
661
		ui.addTextArea(9005,"<font size='13'><font face='Consolas'>"..text.admin_commands.."",name,150,125,500,190,0x0e232b,0x0e232b,nil,true)
662
		ui.addTextArea(9006,"<font size='13'><R><a href='event:closep'>Close</a>",name,300,324,190,20,0x3c5063,0x3c5063,nil,true)
663
	end
664
	if message == "cap" then
665
		ui.addTextArea(9000,"<B><J><font size='13'><p align='center'>"..text.cmds.."",name,100,110,600,30,nil,0x2e424d,nil,true)
666
		ui.addTextArea(9005,"<font size='13'><font face='Consolas'>"..text.cap.."",name,150,145,500,100,0x0e232b,0x0e232b,nil,true)
667
		ui.addTextArea(9006,"<font size='13'><R><a href='event:closep'>Close</a>",name,300,254,160,20,0x3c5063,0x3c5063,nil,true)
668
	end
669
	if message == "powerups" then
670
		loadPowerups(name)
671
	end
672
end
673
function eventPopupAnswer(id,name,message)
674
	if id == 901 then
675
		data[temp_name].score=tonumber(message)
676
		return name
677
	elseif id == 902 then
678
		data[temp_name].kills=tonumber(message)
679
		return name
680
	elseif id == 903 then
681
		data[temp_name].wins=tonumber(message)
682
		return name
683
	elseif id == 904 then
684
		data[temp_name].matchs=tonumber(message)
685
		return name
686
	elseif id == 906 then
687
		tfm.exec.setPlayerScore(temp_name,tonumber(message),true)
688
		return name
689
	elseif id == 1201 then
690
		if data[temp_name2] then
691
			if message == "1" then
692
				if tfm.get.room.playerList[name].score < 5 then
693
					tfm.exec.chatMessage(text.funct,name)
694
				else
695
					tfm.exec.setPlayerScore(temp_name2,5,true)
696
					tfm.exec.setPlayerScore(name,-5,true)
697
					return name
698
				end
699
			elseif message == "2" then
700
				if tfm.get.room.playerList[name].score < 10 then
701
					tfm.exec.chatMessage(text.funct,name)
702
				else
703
					tfm.exec.setPlayerScore(temp_name2,10,true)
704
					tfm.exec.setPlayerScore(name,-10,true)
705
					return name
706
				end
707
			elseif message == "3" then
708
				if tfm.get.room.playerList[name].score < 15 then
709
					tfm.exec.chatMessage(text.funct,name)
710
				else
711
					tfm.exec.setPlayerScore(temp_name2,15,true)
712
					tfm.exec.setPlayerScore(name,-15,true)
713
					return name
714
				end
715
			elseif message == "4" then
716
				if tfm.get.room.playerList[name].score < 20 then
717
					tfm.exec.chatMessage(text.funct,name)
718
				else
719
					tfm.exec.setPlayerScore(temp_name2,20,true)
720
					tfm.exec.setPlayerScore(name,-20,true)
721
					return name
722
				end
723
			else
724
				tfm.exec.chatMessage(text.funct,name)
725
			end
726
		else
727
			tfm.exec.chatMessage(text.funct,name)
728
		end
729
	elseif id == 1204 then
730
		if message == "yes" then
731
			if data[temp_name3] then
732
				if tfm.get.room.playerList[name].score >= 30 then
733
					tfm.exec.respawnPlayer(temp_name3)
734
					if data[temp_name3].team == "azul" and powerups.r_azul == false then
735
						powerups.r_azul=true
736
						tfm.exec.movePlayer(temp_name3,math.random(850,1200),160,false,0,0,false)
737
						data[temp_name3].killed=0
738
					elseif data[temp_name3].team == "vermelho" and powerups.r_vermelho == false then
739
						powerups.r_vermelho=true
740
						tfm.exec.movePlayer(temp_name3,math.random(400,750),160,false,0,0,false)
741
						data[temp_name3].killed=0
742
					end
743
					tfm.exec.setPlayerScore(name,-30,true)
744
					tfm.exec.chatMessage(""..text.revivetext..""..temp_name3.."")
745
				else
746
					tfm.exec.chatMessage(text.score30,name)
747
				end
748
			else
749
				tfm.exec.chatMessage(text.funct,name)
750
			end
751
		end
752
	end
753
end
754
function showTeams(name)
755
	if valendo == false then
756
		if name:sub(1,1) == "*" then
757
			tfm.exec.killPlayer(name)
758
			tfm.exec.chatMessage("<R>You must be connected to a Transformice account to play #anvilwar.",name)
759
		elseif data[name].level <= -1 then
760
			tfm.exec.killPlayer(name)
761
			tfm.exec.chatMessage("<R>This account was banned of #anvilwar room.",name)
762
		else
763
			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)
764
			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)
765
		end
766
	end
767
end
768
function eventLoop(passado,faltando)
769
	for name,player in pairs(tfm.get.room.playerList) do
770
		if data[name].team == "azul" then
771
			if tfm.get.room.playerList[name].x < 805 then
772
				tfm.exec.killPlayer(name)
773
			end
774
		end 
775
		if data[name].team == "vermelho" then
776
			if tfm.get.room.playerList[name].x > 795 then
777
				tfm.exec.killPlayer(name)
778
			end
779
		end 
780
	end
781
	if intervalo == true then
782
		tfm.exec.setGameTime(15)
783
		anvil_launched=true
784
		count_int=count_int-0.5
785
		if count_int <= 0 then
786
			intervalo=false
787
			anvil_launched=false
788
			count_int=20
789
		end
790
	end
791
	if passado > 1200 and passado < 1700 then
792
		for i=1,70 do
793
		if mapas[i] == tfm.get.room.currentMap then
794-
			if not map_names[i] == "" then
794+
795-
				tfm.exec.chatMessage(""..text.playingmap.." “"..map_names[i].."” <J>"..tfm.get.room.currentMap.."<BL> "..text.created.." <J>"..tfm.get.room.xmlMapInfo.author)
795+
796
		end
797-
				tfm.exec.chatMessage(""..text.playingmap.." <J>"..tfm.get.room.currentMap.."<BL> "..text.created.." <J>"..tfm.get.room.xmlMapInfo.author)
797+
798
	local minutos=math.floor(tempo/60)
799
	local segundos=math.floor((minutos*60)-tempo) * -1
800
	if valendo == true and tempo < 60 and tempo > 59 and sudden_death == false then
801
		tfm.exec.chatMessage(text.seconds,nil)
802
	end
803
	if valendo == true and tempo < 30 and tempo > 29 then
804
		tfm.exec.chatMessage(text.seconds30,nil)
805
	end
806
	if valendo == true and tempo < 10 and tempo > 9 then
807
		tfm.exec.chatMessage(text.seconds10,nil)
808
	end
809
	if valendo == true and reset == false and intervalo == false then
810
		tempo=tempo-0.5
811
		if tempo < 0 then
812
			tempo=0
813
		end
814
		scoreloop=scoreloop+1
815
		if scoreloop >= 40 then
816
			for name,player in pairs(tfm.get.room.playerList) do
817
				if data[name].killed == 0 then
818
					tfm.exec.setPlayerScore(name,2,true)
819
					data[name].score=data[name].score+1
820
					data[name].exp=data[name].exp+1
821
					if name == caps.vermelho or name == caps.azul then
822
						tfm.exec.setPlayerScore(name,2,true)
823
						data[name].score=data[name].score+1
824
					end
825
				end
826
			end
827
			scoreloop=0
828
		end
829
	end
830
	if anvil_launched == false and valendo == true and intervalo == false then
831
		ui.addTextArea(501,"<font size='40'><p align='center'>"..math.ceil(faltando/1000).."",nil,360,65,80,55,0x000001,0x000001,1.0,true)
832
	else
833
		ui.removeTextArea(501,nil)
834
	end
835
	if valendo == true and reset == false and tempo <= 0 and sudden_death == true then
836
		if count_vermelho > count_azul then
837
			tfm.exec.chatMessage(text.win_vermelho)
838
		elseif count_vermelho < count_azul then
839
			tfm.exec.chatMessage(text.win_azul)
840
		else
841
			tfm.exec.chatMessage(text.empate_text)
842
		end
843
		count_azul=0
844
		count_vermelho=0
845
		valendo=false
846
		reset=true
847
		tfm.exec.setGameTime(15)
848
	end
849
	if reset == true then
850
		if faltando < 1 then
851
			changeMap()
852
		end
853
	end
854
	if valendo == true and reset == false and anvil_launched == false then
855
		time_limit=time_limit-0.5
856
		if time_limit == 0 then
857
			anvil_launched=true
858
			time_limit=15
859
			tfm.exec.chatMessage(text.timeout)
860
		end
861
	end
862
	if valendo == false and reset == false and faltando < 1888 and count_azul > 0 and count_vermelho > 0 then
863
		for i=11,297 do
864
			ui.removeTextArea(i,nil)
865
		end
866
	end
867
	if valendo == false and reset == false and faltando <= 1 then
868
		if count_azul > 0 and count_vermelho > 0 then
869
			if count == 0 then
870
				for name,player in pairs(tfm.get.room.playerList) do
871
					tfm.exec.chatMessage(text.starting,name)
872
					if data[name].team == "azul" then
873
						data[name].matchs=data[name].matchs+1
874
						tfm.exec.respawnPlayer(name)
875
						tfm.exec.movePlayer(name,1000,180,false,0,0,false)
876
						table.insert(play_azul,name)
877
						tfm.exec.setPlayerScore(name,0,false)
878
					elseif data[name].team == "vermelho" then
879
						data[name].matchs=data[name].matchs+1
880
						tfm.exec.respawnPlayer(name)
881
						tfm.exec.movePlayer(name,600,180,false,0,0,false)
882
						table.insert(play_vermelho,name)
883
						tfm.exec.setPlayerScore(name,0,false)
884
					else
885
						tfm.exec.movePlayer(name,800,-2000,false,0,0,false)
886
						tfm.exec.setPlayerScore(name,-1,false)
887
						kills=0
888
					end
889
				end
890
			end
891
			kills=0
892
			count=count+0.5
893
			if count >= 10 then
894
				caps.azul=play_azul[math.random(#play_azul)]
895
				caps.vermelho=play_vermelho[math.random(#play_vermelho)]
896
				for name,player in pairs(tfm.get.room.playerList) do
897
					if data[name].team == "azul" then
898
						tfm.exec.chatMessage(""..caps.azul..""..text.caps.."",name)
899
					elseif data[name].team == "vermelho" then
900
						tfm.exec.chatMessage(""..caps.vermelho..""..text.caps.."",name)
901
					end
902
					if name == caps.azul or name == caps.vermelho then
903
						tfm.exec.chatMessage(text.cap_text,name)
904
						tfm.exec.setNameColor(name,0x8000ff)
905
					end
906
				end
907
				valendo=true
908
				players=count_azul+count_vermelho
909
				tempo=120+(players*6)
910
				for i=11,297 do
911
					ui.removeTextArea(i,nil)
912
				end
913
				if team == 2 then
914
					team=1
915
					if set == false then
916
						actual_player=play_vermelho[math.random(#play_vermelho)]
917
					else
918
						actual_player=set_name
919
					end
920
				else
921
					team=2
922
					if set == false then
923
						actual_player=play_azul[math.random(#play_azul)]
924
					else
925
						actual_player=set_name
926
					end
927
				end
928
				loop=10
929
				anvil_launched=false
930
				tfm.exec.setGameTime(15)
931
				time_limit=15
932
				if valendo == true and reset == false then
933
					tfm.exec.chatMessage(text.your_turn,actual_player)
934
					tfm.exec.chatMessage("<br>"..text.points_text1..""..tfm.get.room.playerList[actual_player].score..""..text.points_text2.."",actual_player)
935
				end
936
			end
937
		else
938
			tfm.exec.setGameTime(15)
939
		end
940
	end
941
	if valendo == true and anvil_launched == true and intervalo == false then
942
		loop=loop-1
943
		if loop == 0 then
944
			if kills >= 3 then
945
				data[actual_player].mks=data[actual_player].mks+1
946
			end
947
			if tfm.get.room.community == "br" then
948
				if kills == 2 then
949
					tfm.exec.chatMessage("<ROSE>Double Kill de "..actual_player.."!")
950
				elseif kills >= 3 then
951
					tfm.exec.chatMessage("<ROSE>Multi Kill: "..kills.." kills de "..actual_player.."!")
952
				end
953
			else
954
				if kills == 2 then
955
					tfm.exec.chatMessage("<ROSE>Double Kill of "..actual_player.."!")
956
				elseif kills >= 3 then
957
					tfm.exec.chatMessage("<ROSE>Multi Kill: "..kills.." kills of "..actual_player.."!")
958
				end
959
			end
960
			kills=0
961
			play_azul={}
962
			play_vermelho={}
963
			count_azul=0
964
			count_vermelho=0
965
			for name,player in pairs(tfm.get.room.playerList) do
966
				if data[name].team == "azul" then
967
					if data[name].killed == 0 then
968
						table.insert(play_azul,name)
969
						count_azul=count_azul+1
970
					end
971
				end
972
				if data[name].team == "vermelho" then
973
					if data[name].killed == 0 then
974
						table.insert(play_vermelho,name)
975
						count_vermelho=count_vermelho+1
976
					end
977
				end
978
				if data[name].immortal == true then
979
					data[name].imatchs=data[name].imatchs+1
980
					if data[name].imatchs >= 9 then
981
						data[name].immortal=false
982
						tfm.exec.chatMessage(text.inv3,name)
983
						tfm.exec.setNameColor(name,0xd7d7e6)
984
					end
985
				end
986
			end
987
			if team == 2 then
988
				team=1
989
				if set == false then
990
					actual_player=play_vermelho[math.random(#play_vermelho)]
991
				else
992
					actual_player=set_name
993
				end
994
			else
995
				team=2
996
				if set == false then
997
					actual_player=play_azul[math.random(#play_azul)]
998
				else
999
					actual_player=set_name
1000
				end
1001
			end
1002
			loop=8
1003
			resetPowers()
1004
			if valendo == true and reset == false then
1005
				if count_azul == 0 and count_vermelho == 0 then
1006
					tfm.exec.chatMessage(text.empate_text)
1007
					valendo=false
1008
					reset=true
1009
					tfm.exec.setGameTime(15)
1010
				elseif count_azul == 0 then
1011
					winRed()
1012
					tfm.exec.chatMessage(text.win_vermelho)
1013
					valendo=false
1014
					reset=true
1015
					tfm.exec.setGameTime(15)
1016
				elseif count_vermelho == 0 then
1017
					winAzul()
1018
					tfm.exec.chatMessage(text.win_azul)
1019
					valendo=false
1020
					reset=true
1021
					tfm.exec.setGameTime(15)
1022
				end
1023
			end
1024
			tfm.exec.setGameTime(15)
1025
			time_limit=15
1026
			if valendo == true and reset == false then
1027
				tfm.exec.chatMessage(text.your_turn,actual_player)
1028
				tfm.exec.chatMessage("<br>"..text.points_text1..""..tfm.get.room.playerList[actual_player].score..""..text.points_text2.."",actual_player)
1029
			end
1030
		end
1031
	end
1032
	if valendo == true and reset == false and tempo <= 0 and sudden_death == false and anvil_launched == false then
1033
		if count_vermelho > count_azul then
1034
			tfm.exec.chatMessage(text.win_vermelho)
1035
			winRed()
1036
			valendo=false
1037
			reset=true
1038
			tfm.exec.setGameTime(15)
1039
			count_azul=0
1040
			count_vermelho=0
1041
		elseif count_vermelho < count_azul then
1042
			tfm.exec.chatMessage(text.win_azul)
1043
			winAzul()
1044
			valendo=false
1045
			reset=true
1046
			tfm.exec.setGameTime(15)
1047
			count_azul=0
1048
			count_vermelho=0
1049
		elseif count_vermelho == count_azul and count_vermelho >= 2 and count_azul >= 2 then
1050
			tfm.exec.setGameTime(90)
1051
			tempo=90
1052
			tfm.exec.chatMessage(text.sudden_death)
1053
			sudden_death=true
1054
		elseif count_vermelho == count_azul and count_vermelho <= 1 and count_azul <= 1 then
1055
			valendo=false
1056
			reset=true
1057
			tfm.exec.setGameTime(15)
1058
			count_azul=0
1059
			count_vermelho=0
1060
			tfm.exec.chatMessage(text.empate_text)
1061
		end
1062
	end
1063
	if powerups.bomba == true then
1064
		powerups.count=powerups.count+1
1065
		if powerups.count == 3 then
1066
			local x_position=0
1067
			if data[actual_player].team == "azul" then
1068
				x_position=math.random(100,750)
1069
				tfm.exec.explosion(x_position,200,30,120,true)
1070
				tfm.exec.displayParticle(12,x_position,200,0,0,0,0,nil)
1071
			elseif data[actual_player].team == "vermelho" then
1072
				x_position=math.random(850,1500)
1073
				tfm.exec.explosion(x_position,200,30,120,true)
1074
				tfm.exec.displayParticle(12,x_position,200,0,0,0,0,nil)
1075
			end
1076
			powerups.count=2
1077
			powerups.bomba=false
1078
		end
1079
	end
1080
	if powerups.chuva == true and anvil_launched == true then
1081
		if data[actual_player].team == "azul" then
1082
			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)
1083
		elseif data[actual_player].team == "vermelho" then
1084
			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)
1085
		end
1086
	end
1087
	if valendo == true and reset == false and faltando > 10000 then
1088
		if data[actual_player].team == "azul" then
1089
			ui.addTextArea(2204,"<p align='center'><font size='14'>"..text.yturn.."<b><font color='#0197f3'>"..actual_player.."",nil,200,332,400,27,0x000001,0x000001,1.0,true)
1090
		else
1091
			ui.addTextArea(2204,"<p align='center'><font size='14'>"..text.yturn.."<b><font color='#f32202'>"..actual_player.."",nil,200,332,400,27,0x000001,0x000001,1.0,true)
1092
		end
1093
	else
1094
		ui.removeTextArea(2204,nil)
1095
	end
1096
	if valendo == true and reset == false then
1097
		if powerups.int_vermelho >= 1 then
1098
			ui.addTextArea(6001,"",nil,20,24,32,8,0xff0000,0x000001,1.0,true)
1099
		else
1100
			ui.addTextArea(6001,"",nil,20,24,32,8,0x000001,0x000001,1.0,true)
1101
		end
1102
		if powerups.int_vermelho >= 2 then
1103
			ui.addTextArea(6002,"",nil,70,24,32,8,0xff0000,0x000001,1.0,true)
1104
		else
1105
			ui.addTextArea(6002,"",nil,70,24,32,8,0x000001,0x000001,1.0,true)
1106
		end
1107
		if powerups.int_azul >= 1 then
1108
			ui.addTextArea(6003,"",nil,748,24,32,8,0xff,0x000001,1.0,true)
1109
		else
1110
			ui.addTextArea(6003,"",nil,748,24,32,8,0x000001,0x000001,1.0,true)
1111
		end
1112
		if powerups.int_azul >= 2 then
1113
			ui.addTextArea(6004,"",nil,698,24,32,8,0xff,0x000001,1.0,true)
1114
		else
1115
			ui.addTextArea(6004,"",nil,698,24,32,8,0x000001,0x000001,1.0,true)
1116
		end
1117
		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)
1118
		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)
1119
		if sudden_death == false then
1120
			if segundos < 10 and tempo > 29.5 then
1121
				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)
1122
			elseif segundos >= 10 and tempo > 29.5 then
1123
				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)
1124
			elseif segundos < 10 and tempo <= 29.5 then
1125
				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)
1126
			elseif segundos >= 10 and tempo <= 29.5 then
1127
				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)
1128
			end
1129
		else
1130
			if segundos < 10 then
1131
				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)
1132
			elseif segundos >= 10 then
1133
				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)
1134
			end
1135
		end
1136
	else
1137
		ui.removeTextArea(14,nil)
1138
		ui.removeTextArea(2201,nil)
1139
		ui.removeTextArea(2202,nil)
1140
	end
1141
end
1142
function eventPlayerDied(name)
1143
	if count < 10 then
1144
		if data[name].team == "azul" then
1145
			tfm.exec.respawnPlayer(name)
1146
			tfm.exec.movePlayer(name,900,180,false,0,0,false)
1147
		elseif data[name].team == "vermelho" then
1148
			tfm.exec.respawnPlayer(name)
1149
			tfm.exec.movePlayer(name,700,180,false,0,0,false)
1150
		end
1151
	end
1152
	if data[name].immortal == false then
1153
		if valendo == true and reset == false then
1154
			tfm.exec.setPlayerScore(name,-1,false)
1155
			tfm.exec.setPlayerScore(actual_player,2+kills,true)
1156
			if actual_player == caps.vermelho or name == actual_player then
1157
				tfm.exec.setPlayerScore(actual_player,1,true)
1158
				data[actual_player].score=data[actual_player].score+1
1159
				data[actual_player].exp=data[actual_player].exp+1
1160
			end
1161
			data[actual_player].kills=data[actual_player].kills+1
1162
			data[actual_player].score=data[actual_player].score+5
1163
			loop=loop+1
1164
			data[name].killed=1
1165
			kills=kills+1
1166
			data[actual_player].exp=data[actual_player].exp+4*kills
1167
			if kills > data[actual_player].max then
1168
				data[actual_player].max=kills
1169
				data[actual_player].exp=data[actual_player].exp+6*kills
1170
			end
1171
			if data[name].team == data[actual_player].team and anvil_launched == true then
1172
				tfm.exec.chatMessage("<J>"..text.teamkill1..""..actual_player.." "..text.teamKill2..": <b>"..name.."</b>.")
1173
				tfm.exec.setPlayerScore(actual_player,-2,true)
1174
				kills=kills-1
1175
				data[actual_player].kills=data[actual_player].kills-1
1176
				data[actual_player].score=data[actual_player].score-10
1177
				data[actual_player].exp=data[actual_player].exp-7
1178
			end
1179
		end
1180
		if name == actual_player and valendo == true and reset == false then
1181
			tfm.exec.chatMessage(""..text.suicide..""..actual_player.."")
1182
			tfm.exec.setPlayerScore(actual_player,-1,false)
1183
			data[actual_player].score=data[actual_player].score-5
1184
			data[actual_player].exp=data[actual_player].exp-4
1185
		end
1186
	else
1187
		tfm.exec.respawnPlayer(name)
1188
		tfm.exec.setNameColor(name,0x00ff00)
1189
		if data[name].team == "azul" then
1190
			tfm.exec.movePlayer(name,1000,160,false,0,0,false)
1191
		elseif data[name].team == "vermelho" then
1192
			tfm.exec.movePlayer(name,600,160,false,0,0,false)
1193
		end
1194
	end
1195
	if sudden_death == true then
1196
		if data[name].team == "azul" and data[name].immortal == false then
1197
			winRed()
1198
			tfm.exec.chatMessage(text.win_vermelho)
1199
			count_azul=0
1200
		elseif data[name].team == "vermelho" and data[name].immortal == false then
1201
			winAzul()
1202
			tfm.exec.chatMessage(text.win_azul)
1203
			count_vermelho=0
1204
		end
1205
		valendo=false
1206
		reset=true
1207
		tfm.exec.setGameTime(15)
1208
		sudden_death=false
1209
	end
1210
	if actual_player == name then
1211
		anvil_launched=true
1212
		actual_palayer=""
1213
	end
1214
end
1215
function eventPlayerLeft(name)
1216
	ratos=ratos-1
1217
	data[name].killed=-1
1218
	data[name].team=""
1219
end
1220
function showBar()
1221
	for i=1,70 do
1222
		if mapas[i] == tfm.get.room.currentMap then
1223
			if map_names[i] == "" then
1224
				ui.setMapName(""..mapas[i].." - "..tfm.get.room.xmlMapInfo.author.." - "..text.bar.."<")
1225
			else
1226
				ui.setMapName("“"..map_names[i].."” "..mapas[i].." - "..tfm.get.room.xmlMapInfo.author.." - "..text.bar.."<")
1227
			end
1228
		end
1229
	end
1230
end
1231
function eventNewPlayer(name)
1232
	showBar()
1233
	ratos=ratos+1
1234
	if not data[name] then
1235
		table.insert(players_table,name)
1236
		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}
1237
	end
1238
	showTeams(name)
1239
	for name,player in pairs(tfm.get.room.playerList) do
1240
		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)
1241
		for i=32,123 do
1242
			tfm.exec.bindKeyboard(name,i,true,true)
1243
			system.bindMouse(name,true)
1244
		end
1245
	end
1246
	if name:sub(1,1) == "*" then
1247
		data[name].level=-1
1248
	end
1249
end
1250
for name,player in pairs(tfm.get.room.playerList) do
1251
	eventNewPlayer(name)
1252
	tfm.exec.setPlayerScore(name,0,false)
1253
end
1254
function eventKeyboard(name,key,down,x,y)
1255
	if anvil_launched == false then
1256
		if actual_player == name then
1257
			if key == 32 then
1258
				if valendo == true then
1259
					powerups.fly=false
1260
					set=false
1261
					set_name=""
1262
					ui.removeTextArea(4003,nil)
1263
					if powerups.objeto == true then
1264
						if select_obj == 0 then
1265
							if data[name].team == "azul" then
1266
								tfm.exec.addShamanObject(objetos[math.random(#objetos)],x,y-60,0,(4+power*2)*-1,-8)
1267
							elseif data[name].team == "vermelho" then
1268
								tfm.exec.addShamanObject(objetos[math.random(#objetos)],x,y-60,0,4+power*2,-8)
1269
							end
1270
						else
1271
							if data[name].team == "azul" then
1272
								tfm.exec.addShamanObject(select_obj,x,y-60,0,(4+power*2)*-1,-8)
1273
							elseif data[name].team == "vermelho" then
1274
								tfm.exec.addShamanObject(select_obj,x,y-60,0,4+power*2,-8)
1275
							end
1276
						end
1277
					else
1278
					if powerups.selective == false then
1279
						if data[name].team == "azul" then
1280
							tfm.exec.addShamanObject(anvils[math.random(#anvils)],x,y-60,0,(4+power*2)*-1,-8)
1281
						elseif data[name].team == "vermelho" then
1282
							tfm.exec.addShamanObject(anvils[math.random(#anvils)],x,y-60,0,4+power*2,-8)
1283
						end
1284
						if powerups.double == true then
1285
							if data[name].team == "azul" then
1286
								tfm.exec.addShamanObject(anvils[math.random(#anvils)],x+40,y-60,0,(4+power*2)*-1,-8)
1287
							elseif data[name].team == "vermelho" then
1288
								tfm.exec.addShamanObject(anvils[math.random(#anvils)],x-40,y-60,0,4+power*2,-8)
1289
							end
1290
						end
1291
						if powerups.triple == true then
1292
							if data[name].team == "azul" then
1293
								tfm.exec.addShamanObject(anvils[math.random(#anvils)],x+80,y-60,0,(4+power*2)*-1,-8)
1294
							elseif data[name].team == "vermelho" then
1295
								tfm.exec.addShamanObject(anvils[math.random(#anvils)],x-80,y-60,0,4+power*2,-8)
1296
							end
1297
						end
1298
						powerups.multi_count=powerups.multi_count+1
1299
						if powerups.multi_count >= 3 then
1300
							anvil_launched=true
1301
						end
1302
					end
1303
					end
1304
					select_obj=0
1305
					anvil_launched=true
1306
				end
1307
			end
1308
			if key >= 49 and key <= 57 then
1309
				power=key-48
1310
				ui.addTextArea(4003,"<font size='13'><p align='center'>"..text.intensity..": "..power.."",name,320,376,160,24,0x000001,0x000001,1.0,true)
1311
			end
1312
			if key == 48 then
1313
				power=10
1314
				ui.addTextArea(4003,"<font size='13'><p align='center'>"..text.intensity..": "..power.."",name,320,376,160,24,0x000001,0x000001,1.0,true)
1315
			end
1316
			if key == 35 and anvil_launched == false then
1317
				if name == caps.azul or name == caps.vermelho then
1318
					if name == caps.azul then
1319
						if powerups.int_azul > 0 then
1320
							tfm.exec.chatMessage(text.blue_int_text)
1321
							intervalo=true
1322
							powerups.int_azul=powerups.int_azul-1			
1323
						else
1324
							tfm.exec.chatMessage(text.funct,name)
1325
						end
1326
					end
1327
					if name == caps.vermelho then
1328
						if powerups.int_vermelho > 0 then
1329
							tfm.exec.chatMessage(text.red_int_text)
1330
							intervalo=true
1331
							powerups.int_vermelho=powerups.int_vermelho-1					
1332
						else
1333
							tfm.exec.chatMessage(text.funct,name)
1334
						end
1335
					end
1336
				else
1337
					tfm.exec.chatMessage(text.funct,name)
1338
				end
1339
			end
1340
			if valendo == true and reset == false then
1341
			if key == 112 then
1342
				if tfm.get.room.playerList[name].score >= 6 and powerups.double == false and powerups.triple == false and powerups.multiple == false and powerups.objeto == false then
1343
					if data[name].nivel >= 1 then
1344
						powerups.double=true
1345
						tfm.exec.setPlayerScore(name,-6,true)
1346
						tfm.exec.chatMessage("<VP>"..actual_player.." "..text.double.."")
1347
					else
1348
						tfm.exec.chatMessage(text.level_error,name)
1349
					end
1350
				end
1351
			end
1352
			if key == 113 then
1353
				if tfm.get.room.playerList[name].score >= 12 and powerups.double == false and powerups.triple == false and powerups.multiple == false and powerups.objeto == false then
1354
					if data[name].nivel >= 2 then
1355
						powerups.double=true
1356
						powerups.triple=true
1357
						tfm.exec.setPlayerScore(name,-12,true)
1358
						tfm.exec.chatMessage("<VP>"..actual_player.." "..text.triple.."")
1359
					else
1360
						tfm.exec.chatMessage(text.level_error,name)
1361
					end
1362
				end
1363
			end
1364
			if key == 114 then
1365
				if tfm.get.room.playerList[name].score >= 5 and powerups.bomba == false and powerups.double == false and powerups.objeto == false then
1366
					if data[name].nivel >= 2 then
1367
						powerups.bomba=true
1368
						tfm.exec.setPlayerScore(name,-5,true)
1369
						tfm.exec.chatMessage("<VP>"..actual_player.." "..text.bomba1.."")
1370
						tfm.exec.chatMessage(text.bomba2,name)
1371
						anvil_launched=true
1372
						loop=12
1373
					else
1374
						tfm.exec.chatMessage(text.level_error,name)
1375
					end
1376
				end
1377
			end
1378
			if key == 115 then
1379
				if tfm.get.room.playerList[name].score >= 4 and powerups.objeto == false and powerups.double == false and powerups.triple == false then
1380
					if data[name].nivel >= 2 then
1381
						powerups.objeto=true
1382
						tfm.exec.setPlayerScore(name,-4,true)
1383
						tfm.exec.chatMessage("<VP>"..actual_player.." "..text.objeto1.."")
1384
						tfm.exec.chatMessage(text.objeto2,name)
1385
					else
1386
						tfm.exec.chatMessage(text.level_error,name)
1387
					end
1388
				end
1389
			end
1390
			if key == 116 then
1391
				if tfm.get.room.playerList[name].score >= 18 and powerups.explosion == false and powerups.bomba == false and powerups.double == false and powerups.objeto == false then
1392
					if data[name].nivel >= 4 then
1393
						powerups.explosion=true
1394
						tfm.exec.setPlayerScore(name,-18,true)
1395
						tfm.exec.chatMessage("<VP>"..actual_player.." "..text.exp1.."")
1396
						tfm.exec.chatMessage(text.exp2,name)
1397
						anvil_launched=true
1398
						loop=12
1399
					else
1400
						tfm.exec.chatMessage(text.level_error,name)
1401
					end
1402
				end
1403
			end
1404
			if key == 117 then
1405
				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
1406
					if data[name].nivel >= 4 then
1407
						powerups.chuva=true
1408
						tfm.exec.setPlayerScore(name,-15,true)
1409
						tfm.exec.chatMessage("<VP>"..actual_player.." "..text.chuva1.."")
1410
						tfm.exec.chatMessage(text.chuva2,name)
1411
					else
1412
						tfm.exec.chatMessage(text.level_error,name)
1413
					end
1414
				end
1415
			end
1416
			if key == 118 then
1417
				if tfm.get.room.playerList[name].score >= 15 then
1418
					if data[name].nivel >= 3 then
1419
						tfm.exec.setPlayerScore(name,-15,true)
1420
						tfm.exec.chatMessage("<VP>"..actual_player.." "..text.fly1.."")
1421
						tfm.exec.chatMessage(text.fly2,name)
1422
						tfm.exec.changePlayerSize(actual_player,0.5)
1423
					else
1424
						tfm.exec.chatMessage(text.level_error,name)
1425
					end
1426
				end
1427
			end
1428
			if key == 119 then
1429
				if tfm.get.room.playerList[name].score >= 24 and data[name].immortal2 == false then
1430
					if data[name].nivel >= 5 then
1431
						data[name].immortal=true
1432
						data[name].immortal2=true
1433
						tfm.exec.setNameColor(name, 0x00ff00)
1434
						tfm.exec.setPlayerScore(name,-20,true)
1435
						tfm.exec.chatMessage("<VP>"..actual_player.." "..text.inv1.."")
1436
						tfm.exec.chatMessage(text.inv2,name)
1437
					else
1438
						tfm.exec.chatMessage(text.level_error,name)
1439
					end
1440
				end
1441
			end
1442
			if key == 120 then
1443
				if tfm.get.room.playerList[name].score >= 15 and powerups.multiple == false and powerups.double == false and powerups.triple == false and powerups.objeto == false then
1444
					if data[name].nivel >= 3 then
1445
						powerups.multiple=true
1446
						tfm.exec.setPlayerScore(name,-15,true)
1447
						tfm.exec.chatMessage("<VP>"..actual_player.." "..text.invi1.."")
1448
						tfm.exec.chatMessage(text.invi2,name)
1449
						anvil_launched=true
1450
						loop=12	
1451
					else
1452
						tfm.exec.chatMessage(text.level_error,name)
1453
					end
1454
				end
1455
			end
1456
			end
1457
		end
1458
	end
1459
end
1460
function eventMouse(name,x,y)
1461
	if powerups.explosion == true and actual_player == name then
1462
		tfm.exec.explosion(x,y,30,120,true)
1463
		tfm.exec.displayParticle(12,x,y,0,0,0,0,nil)
1464
		powerups.explosion=false
1465
	end
1466
	if powerups.multiple == true and actual_player == name then
1467
		tfm.exec.addShamanObject(10,x,-240,90,0,0)
1468
		tfm.exec.addShamanObject(10,x,-270,90,0,0)
1469
		tfm.exec.addShamanObject(10,x,-300,90,0,0)
1470
		tfm.exec.addShamanObject(10,x,-330,90,0,0)
1471
		tfm.exec.addShamanObject(10,x,-360,90,0,0)
1472
		tfm.exec.addShamanObject(10,x,-390,90,0,0)
1473
		tfm.exec.addShamanObject(10,x,-420,90,0,0)
1474
		tfm.exec.addShamanObject(10,x,-450,90,0,0)
1475
		powerups.multiple=false
1476
	end
1477
end
1478
function eventNewGame()
1479
	advanceLevel()
1480
	ui.removeTextArea(501,nil)
1481
	for i=11,297 do
1482
		ui.removeTextArea(i,nil)
1483
	end
1484
	sudden_death=false
1485
	for i=6001,6004 do
1486
		ui.removeTextArea(i,nil)
1487
	end
1488
	time_limit=15
1489
	reset=false
1490
	count_azul=0
1491
	count_vermelho=0
1492
	tempo=0
1493
	power=5
1494
	count=0
1495
	powerups.int_azul=2
1496
	powerups.int_vermelho=2
1497
	kills=0
1498
	play_azul={}
1499
	play_vermelho={}
1500
	valendo=false
1501
	loop=8
1502
	resetPowers()
1503
	for name,player in pairs(tfm.get.room.playerList) do
1504
		if data[name] then
1505
			tfm.exec.changePlayerSize(name,1)
1506
			data[name].killed=-1
1507
			data[name].team=""
1508
			data[name].immortal=false
1509
			data[name].immortal2=false
1510
			data[name].imatchs=0
1511
			data[name].skip=0
1512
			tfm.exec.setNameColor(name,0xd7d7e6)
1513
			giveCargos(name,data[name].level)
1514
			for i=32,123 do
1515
				tfm.exec.bindKeyboard(name,i,true,true)
1516
			end
1517
			showTeams(name)
1518
			for id,name in pairs(avs_list) do
1519
				if data[name] then
1520
					giveCargos(name,2)
1521
				end
1522
			end
1523
			for id,name in pairs(mods_list) do
1524
				if data[name] then
1525
					giveCargos(name,3)
1526
				end
1527
			end
1528
			for id,name in pairs(managers_list) do
1529
				if data[name] then
1530
					giveCargos(name,4)
1531
				end
1532
			end
1533
			for id,name in pairs(level6_list) do
1534
				if data[name] then
1535
					giveCargos(name,5)
1536
				end
1537
			end
1538
			for id,name in pairs(admins_list) do
1539
				if data[name] then
1540
					giveCargos(name,6)
1541
				end
1542
			end
1543
		end
1544
	end
1545
	tfm.exec.setGameTime(30)
1546
	showBar()
1547
end
1548
function eventTextAreaCallback(id,name,callback)
1549
	if callback == "show_menu" then
1550
		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)
1551
		ui.addTextArea(298,text.menu_bar,name,200,345,400,20,0x000001,0x000001,0.80,true)
1552
	end
1553
	if callback == "hide_menu" then
1554
		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)
1555
		ui.removeTextArea(298,name)
1556
	end
1557
	if callback == "ranking" then
1558
		eventChatCommand(name,"rank")
1559
	end
1560
	if callback == "cap" then
1561
		eventChatCommand(name,"cap")
1562
	end
1563
	if callback == "cmd" then
1564
		eventChatCommand(name,"cmd")
1565
	end
1566
	if callback == "powerups" then
1567
		loadPowerups(name)
1568
	end
1569
	if callback == "power1" then
1570
		tfm.exec.chatMessage(text.double2,name)
1571
	end
1572
	if callback == "help" then
1573
		eventChatCommand(name,"help")
1574
	end
1575
	if callback == "power2" then
1576
		tfm.exec.chatMessage(text.triple2,name)
1577
	end
1578
	if callback == "power3" then
1579
		tfm.exec.chatMessage(text.bomba2,name)
1580
	end
1581
	if callback == "power4" then
1582
		tfm.exec.chatMessage(text.objeto2,name)
1583
	end
1584
	if callback == "power5" then
1585
		tfm.exec.chatMessage(text.exp2,name)
1586
	end
1587
	if callback == "power6" then
1588
		tfm.exec.chatMessage(text.chuva2,name)
1589
	end
1590
	if callback == "power7" then
1591
		tfm.exec.chatMessage(text.fly2,name)
1592
	end
1593
	if callback == "power8" then
1594
		tfm.exec.chatMessage(text.inv2,name)
1595
	end
1596
	if callback == "power9" then
1597
		tfm.exec.chatMessage(text.invi2,name)
1598
	end
1599
	if callback == "power10" then
1600
		tfm.exec.chatMessage(text.selec2,name)
1601
	end
1602
	if callback == "profile" then
1603
		tfm.exec.chatMessage(text.profile,name)
1604
	end
1605
	if callback == "fechar" then
1606
		for id=8000,8010 do
1607
			ui.removeTextArea(id,name)
1608
		end
1609
	end
1610
	if callback == "close" then
1611
		for id=8000,8010 do
1612
			ui.removeTextArea(id,name)
1613
			ui.removeTextArea(6969+id,name)
1614
			ui.removeTextArea(7979+id,name)
1615
		end
1616
	end
1617
	if callback == "closep" then
1618
		for id=9000,9010 do
1619
			ui.removeTextArea(id,name)
1620
		end
1621
	end
1622
	if callback == "enter_vermelho" then
1623
		if data[name].killed == -1 and data[name].team == "" then
1624
			data[name].team="vermelho"
1625
			data[name].killed=0
1626
			tfm.exec.respawnPlayer(name)
1627
			tfm.exec.movePlayer(name,700,180,false,0,0,false)
1628
			count_vermelho=count_vermelho+1
1629
			ui.removeTextArea(41,name)
1630
			ui.removeTextArea(42,name)
1631
			ui.addTextArea(51,"<p align='center'><a href='event:sair_vermelho'>"..text.exit.."",name,300,180,200,20,0x505050,0x323232,1.0,true)
1632
		end
1633
	end
1634
	if callback == "enter_azul" then
1635
		if data[name].killed == -1 and data[name].team == "" then
1636
			data[name].team="azul"
1637
			data[name].killed=0
1638
			tfm.exec.respawnPlayer(name)
1639
			tfm.exec.movePlayer(name,900,180,false,0,0,false)
1640
			count_azul=count_azul+1
1641
			ui.removeTextArea(41,name)
1642
			ui.removeTextArea(42,name)
1643
			ui.addTextArea(52,"<p align='center'><a href='event:sair_azul'>"..text.exit.."",name,300,180,200,20,0x505050,0x323232,1.0,true)
1644
		end
1645
	end
1646
	if callback == "sair_azul" then
1647
		data[name].team=""
1648
		data[name].killed=-1
1649
		tfm.exec.killPlayer(name)
1650
		count_azul=count_azul-1
1651
		ui.removeTextArea(52,name)
1652
		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)
1653
		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)
1654
	end
1655
	if callback == "sair_vermelho" then
1656
		data[name].team=""
1657
		data[name].killed=-1
1658
		tfm.exec.killPlayer(name)
1659
		count_vermelho=count_vermelho-1
1660
		ui.removeTextArea(51,name)
1661
		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)
1662
		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)
1663
	end
1664
end
1665
function winRed()
1666
	for name,player in pairs(tfm.get.room.playerList) do
1667
		if data[name].team == "vermelho" then
1668
			data[name].exp=data[name].exp+20
1669
			data[name].wins=data[name].wins+1
1670
			data[name].score=data[name].score+15
1671
			tfm.exec.respawnPlayer(name)
1672
			tfm.exec.movePlayer(name,math.random(225,775),170,false,0,0,false)
1673
			tfm.exec.playEmote(name,0)
1674
			for i=6001,6004 do
1675
				ui.removeTextArea(i,nil)
1676
			end
1677
		end
1678
	end
1679
	advanceLevel()
1680
end
1681
function winAzul()
1682
	for name,player in pairs(tfm.get.room.playerList) do
1683
		if data[name].team == "azul" then
1684
			data[name].exp=data[name].exp+20
1685
			data[name].wins=data[name].wins+1
1686
			data[name].score=data[name].score+15
1687
			tfm.exec.respawnPlayer(name)
1688
			tfm.exec.movePlayer(name,math.random(825,1375),170,false,0,0,false)
1689
			tfm.exec.playEmote(name,0)
1690
			for i=6001,6004 do
1691
				ui.removeTextArea(i,nil)
1692
			end
1693
		end
1694
	end
1695
	advanceLevel()
1696
end
1697
function advanceLevel()
1698
	for name,player in pairs(tfm.get.room.playerList) do
1699
		if data[name] then
1700
			if data[name].exp >= data[name].maxp then
1701
				data[name].exp=data[name].exp-data[name].maxp
1702
				data[name].maxp=data[name].maxp+50
1703
				data[name].nivel=data[name].nivel+1
1704
				tfm.exec.chatMessage(""..text.advanced..""..data[name].nivel.."!",name)
1705
			end
1706
		end
1707
	end
1708
end
1709
function giveCargos(name,type)
1710
	if type == 2 and data[name] then
1711
		data[name].level=2
1712
		tfm.exec.setNameColor(name,0x0076FF)
1713
	elseif type == 3 and data[name] then
1714
		data[name].level=3
1715
		tfm.exec.setNameColor(name,0xFFFB00)
1716
	elseif type == 4 and data[name] then
1717
		data[name].level=4
1718
		tfm.exec.setNameColor(name,0xFF7100)
1719
	elseif type == 5 and data[name] then
1720
		data[name].level=5
1721
	elseif type == 6 and data[name] then
1722
		data[name].level=6
1723
		tfm.exec.setNameColor(name,0xFF0000)
1724
	end
1725
end
1726
end
1727
initTrue = function()
1728
for _,f in next,{"AutoScore","AutoNewGame","AutoTimeLeft","AllShamanSkills","PhysicalConsumables","AfkDeath"} do
1729
	tfm.exec["disable"..f](true)
1730
end
1731
tfm.exec.setRoomMaxPlayers(35)
1732
t=false;
1733
f=false;
1734
tempa=20	
1735
ratos=0
1736
loop=0
1737
temp2=3
1738
resposta="0"
1739
players={}
1740
votos=0
1741
rcount=0
1742
vivo=0;
1743
min1=0
1744
seg1=0
1745
seg2=0
1746
lt=0
1747
segundos=0
1748
lock=false;
1749
pergunta=""
1750
shaman=""
1751
lock=false
1752
minutos=6;
1753
modo="desativado"
1754
for _,f in next,{"admin77","admin78","limite","return"} do
1755
	system.disableChatCommandDisplay(f)
1756
end
1757
mapa="@7417328"
1758
lang = {}
1759
1760
lang.br = {
1761
  textFalse = "A resposta era FALSO!",
1762
  textTrue = "A resposta era VERDADEIRO!",
1763
  textRandom = "Um shaman aleatório foi escolhido.",
1764
  textSkip = "O shaman passou a vez.",
1765
  textPergunta = "Insira a sua pergunta:<br><br>NÃO USE SÍMBOLOS ESPECIAIS NA PERGUNTA!",
1766
  textTime = "Tempo esgotado!",
1767
  textNothingWins = "Ninguém venceu esta partida. :(",
1768
  textWinner = " venceu a partida!",
1769
  textNothing = "Não tivemos vencedor nessa partida.",
1770
  textTimeOut = "O tempo da partida acabou! Outro shaman será escolhido.",
1771
  textTimeLeave = "Tempo esgotado! Outro shaman será escolhido.",
1772
  textTrueFalse = "Envie SIM se a resposta for verdadeira ou NÃO se a resposta for falsa.",
1773
  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.131:<br>- Pequenas correções de bugs",
1774
  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.",
1775
  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.",
1776
  textLowTime = "O tempo da partida está acabando.",
1777
  mices = "São necessários pelo menos 3 jogadores para jogar True or False",
1778
  textLongQuestion = "Sua pergunta é muito longa. Tente usar uma pergunta menor.",
1779
  textShortQuestion = "Sua pergunta é muito curta ou não é permitida.",
1780
  textCmd = "<VP>Comandos do jogo:<br><br>!per = faz uma pergunta (quando você é shaman)<br>!skip = pula a sua vez (quando você é shaman)",
1781
  textLt = "<J>Use o comando /ban [nome] para reportar alguém que esteja infrigindo as regras da sala.",
1782
}
1783
lang.en = {
1784
  textFalse = "The answer was FALSE!",
1785
  textTrue = "The answer was TRUE!",
1786
  textRandom = "A random shaman has been choosed.",
1787
  textSkip = "The shaman skipped your turn.",
1788
  textPergunta = "Type your question here:",
1789
  textTime = "Time is up!",
1790
  textNothingWins = "Nothing wins the game. :(",
1791
  textWinner = " wons the game!",
1792
  textNothing = "Aren't winners on this game.",
1793
  textTimeOut = "The game time is gone! Other shaman has been choosed.",
1794
  textTimeLeave = "Time is up! Other shaman has been choosed.",
1795
  textTrueFalse = "Send YES if the answer is TRUE or send NO if the answer is FALSE.",
1796
  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.131:<br>- Small bug corrections",
1797
  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.",
1798
  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.",
1799
  textLowTime = "The match time is ending.",
1800
  mices = "Are needed at least 3 players to play True or False.",
1801
  textLongQuestion = "Your question is very long. Try to use a short question.",
1802
  textShortQuestion = "Your question is very short or isn't allowed.",
1803
  textCmd = "<VP>Game commands:<br><br>!per = make a question (only for shaman)<br>!skip = skip your shaman turn (only for shaman)",
1804
  textLt = ""
1805
}
1806
if tfm.get.room.community == "br" then
1807
	text = lang.br
1808
else
1809
	text = lang.en
1810
end
1811
function obterJogadores()
1812
	players={}
1813
	for name,player in pairs(tfm.get.room.playerList) do
1814
	if not tfm.get.room.playerList[name].isDead then
1815
		table.insert(players,name)
1816
	end
1817
	end
1818
end
1819
function eventNewPlayer(name)
1820
	ratos=ratos+1;
1821
	tfm.exec.chatMessage("<J>"..text.textEnter.."",name)
1822
	obterJogadores()
1823
end
1824
for name,player in pairs(tfm.get.room.playerList) do
1825
	tfm.exec.setPlayerScore(name,0,false)
1826
	eventNewPlayer(name)
1827
end
1828
function eventPlayerLeft(name)
1829
	ratos=ratos-1;
1830
	obterJogadores()
1831
end
1832
function eventChatCommand(name,message)
1833
	if tfm.get.room.currentMap == "@7417328" then
1834
	if message == "f5" then
1835
		if name == "Forzaldenon#0000" then
1836
			t=true;
1837
			tfm.exec.chatMessage("<R>"..text.textFalse.."",nil)
1838
			modo="desativado" end
1839
	elseif message == "skip" then
1840
			if tfm.get.room.playerList[name].isShaman then
1841
			obterJogadores()
1842
			tfm.exec.chatMessage("<R>"..text.textSkip.."",nil)
1843
			eventChatCommand("Forzaldenon#0000","admin77") end			
1844
	elseif message == "v5" then
1845
		if name == "Forzaldenon#0000" then
1846
			f=true;
1847
			tfm.exec.chatMessage("<VP>"..text.textTrue.."",nil)
1848
			modo="desativado" end
1849
	elseif message == "per" then
1850
		if tfm.get.room.playerList[name].isShaman then
1851
			if modo == "desativado" then
1852
				ui.removeTextArea(27,nil)
1853
				ui.addPopup(1,2,""..text.textPergunta.."",name,250,125,350,true)
1854
			end
1855
		end
1856
	elseif message == "admin77" then
1857
		if modo == "desativado" then
1858
		if name == "Forzaldenon#0000" or name == "Varusofeyzan#0000" then
1859
			changeMap()
1860
			tfm.exec.setShaman(message:sub(50))
1861
		end end
1862
	elseif message == "return" then
1863
		if modo == "pergunta" then
1864
		if name == "Forzaldenon#0000" or name == "Varusofeyzan#0000" then
1865
			tempa=20
1866
			temp2=3
1867
			modo="desativado"
1868
			tfm.exec.setGameTime(63)
1869
			ui.removeTextArea(27,nil)
1870
			pergunta=""
1871
			resposta="0"
1872
			rcount=rcount+1
1873
			tfm.exec.chatMessage("This question has been cancelled",nil)
1874
			for name,player in pairs(tfm.get.room.playerList) do
1875
				tfm.exec.movePlayer(name,400,1,false,1,1,false)
1876
			end
1877
			if rcount == 3 then
1878
				eventChatCommand("Forzaldenon#0000","admin77")
1879
				rcount=0
1880
			end
1881
		end end
1882
	elseif(message:sub(1,7) == "admin78") then
1883
		if modo == "desativado" then
1884
		if name == "Forzaldenon#0000" or name == "Varusofeyzan#0000" then
1885
			tfm.exec.setPlayerScore(message:sub(9),8001,false)
1886
			changeMap()
1887
		end end
1888
	elseif(message:sub(0,4) == "kill") then
1889
		if name == "Forzaldenon#0000" or name == "Varusofeyzan#0000" then
1890
			tfm.exec.killPlayer(message:sub(6))
1891
		end
1892
	elseif(message:sub(0,6) == "limite") then
1893
		if name == "Forzaldenon#0000" or name == "Varusofeyzan#0000" then
1894
			minutos=tonumber(message:sub(8))
1895
			if minutos > 15 then
1896
				tfm.exec.chatMessage("Time limit: 15 minutes.",nil)
1897
				minutos=15
1898
			else
1899
				tfm.exec.chatMessage("Time limit: "..minutos.." minutes.",nil)
1900
			end
1901
		end
1902
	elseif message == "help" then
1903
		tfm.exec.chatMessage("<N>"..text.textHelp.."",name)
1904
	elseif message == "cmd" then
1905
		tfm.exec.chatMessage("<N>"..text.textCmd.."",name)
1906
	end
1907
	end
1908
end
1909
function eventNewGame()
1910
	ui.removeTextArea(27,nil)
1911
	tfm.exec.setGameTime(63)
1912
	vivo=0;
1913
	modo="desativado"
1914
	tempa=19
1915
	votos=0;
1916
	t=false;
1917
	f=false;
1918
	segundos=0;
1919
	min1=0
1920
	rcount=0
1921
	min3=0
1922
	seg1=0
1923
	seg2=0
1924
	for name,player in pairs(tfm.get.room.playerList) do
1925
		if name:sub(1,1) == "*" then
1926
		   	tfm.exec.killPlayer(name)
1927
		   	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)
1928
		end
1929
		vivo=vivo+1
1930
		if tfm.get.room.playerList[name].isShaman then
1931
			tfm.exec.setPlayerScore(name,-2,false)
1932
			vivo=vivo-1
1933
		end
1934
	end
1935
	obterJogadores()
1936
end
1937
function eventSummoningEnd(name,type,x,y,angle,vx,vy,obj)
1938
	for name,player in pairs(tfm.get.room.playerList) do
1939
		if tfm.get.room.playerList[name].isShaman then
1940
			tfm.exec.chatMessage("<ROSE>Isn't allowed the use of shaman objects in this module.",nil)
1941
			eventChatCommand("Forzaldenon#0000","admin77")
1942
		end
1943
	end
1944
end
1945
function eventLoop(pass,tempo)
1946
	local pass2=tempo/1000
1947
	lt=lt+1
1948
	if lt >= 1200 then
1949
		if tfm.get.room.community == "br" then
1950
			tfm.exec.chatMessage("<R>"..text.textLt.."",nil)
1951
			lt=0
1952
		end
1953
	end
1954
	if tfm.get.room.currentMap == "@7277839" then
1955
		tfm.exec.setGameTime(63)
1956
	end
1957
	if lock == true then
1958
		tfm.exec.setGameTime(tempo/950)
1959
	end
1960
	loop=loop+0.5
1961
	if pass >= 3000 and pass <= 179995 then
1962
		if ratos < 3 then
1963
			if tfm.get.room.currentMap == "@7417328" then
1964
				tfm.exec.newGame("@7277839")
1965
				tfm.exec.chatMessage("<R>"..text.mices.."",nil)
1966
			end
1967
		end
1968
	end
1969
	if ratos >= 3 then
1970
		if tfm.get.room.currentMap == "@7277839" then
1971
			changeMap()
1972
		end
1973
	end
1974
	if loop == 1 then
1975
		segundos=segundos+1
1976
		seg2=seg2+1
1977
		loop=0
1978
	if seg2 >= 10 then
1979
		seg2=0
1980
		seg1=seg1+1
1981
		if seg1 >= 6 then
1982
			min1=min1+1
1983
			seg1=0
1984
			seg2=0
1985
			end
1986
			if min1 >= minutos then
1987
				for name,player in pairs(tfm.get.room.playerList) do
1988
					if tfm.get.room.playerList[name].isShaman then
1989
						ui.addPopup(1,0,""..text.textTime.."",name,350,175,200,true)
1990
						ui.addPopup(2,0,""..text.textTime.."",name,350,175,200,true)
1991
					end
1992
				end
1993
				tfm.exec.chatMessage("<R>"..text.textTimeOut.."",nil)
1994
				eventChatCommand("Forzaldenon#0000","admin77")
1995
			end
1996
		end
1997
	end
1998
	tfm.exec.setUIMapName("True or False - RTM 1.132")
1999
	if modo == "pergunta" then
2000
		tempa=tempa-0.5
2001
	end
2002
	for name,player in pairs(tfm.get.room.playerList) do
2003
		if tfm.get.room.playerList[name].isShaman then
2004
			if tfm.get.room.currentMap == "@7417328" then
2005
				if pass > 450 and pass < 1050 then
2006
					tfm.exec.chatMessage("<VP>"..text.textGotShaman.."",name)
2007
					tfm.exec.setPlayerScore(name,-2,false)
2008
				end
2009
			end
2010
		end
2011
	end
2012
	if tempa < 0.1 then
2013
		modo="resposta"
2014
		tempa=0
2015
		for pn, p in pairs(tfm.get.room.playerList) do
2016
			if p.y <= 220 then
2017
				tfm.exec.killPlayer(pn)
2018
			end
2019
		end
2020
	end
2021
	if f == true then
2022
		for pn, p in pairs(tfm.get.room.playerList) do
2023
			if p.x >= 405 then
2024
				tfm.exec.killPlayer(pn)
2025
				modo="desativado"
2026
			end
2027
		end
2028
		f=false;
2029
	end
2030
	if t == true then
2031
		for pn, p in pairs(tfm.get.room.playerList) do
2032
			if p.x <= 395 then
2033
				tfm.exec.killPlayer(pn)
2034
				modo="desativado"
2035
			end
2036
		end
2037
		t=false;
2038
	end
2039
	if modo == "resposta" then
2040
		tfm.exec.setGameTime(63)
2041
		temp2=temp2-0.5
2042
		if temp2 == 1 then
2043
			modo="desativado"
2044
			if resposta == "yes" then
2045
				eventChatCommand("Forzaldenon#0000","v5")
2046
			else
2047
				eventChatCommand("Forzaldenon#0000","f5")
2048
			end
2049
			tempa=19
2050
			temp2=3
2051
			pergunta=""
2052
			ui.removeTextArea(27,nil)
2053
		end
2054
	end
2055
	if modo == "desativado" then
2056
	if tempo < 60000 and tempo > 59400 then
2057
		if pass > 10000 then
2058
			for name,player in pairs(tfm.get.room.playerList) do
2059
			if not tfm.get.room.playerList[name].isDead then
2060
				tfm.exec.setPlayerScore(name,1,true)
2061
			end
2062
		end
2063
		end
2064
	end
2065
	if tfm.get.room.currentMap == "@7417328" then
2066
	if vivo == 1 then
2067
		if tempo < 59000 then
2068
			tfm.exec.setPlayerScore(shaman,8000,false)
2069
			changeMap()
2070
		end
2071
	end
2072
	if vivo <= 0 then
2073
		tfm.exec.setGameTime(5)
2074
		obterJogadores()
2075
		changeMap()
2076
		tfm.exec.chatMessage("<R>"..text.textNothing.."",nil)
2077
	end
2078
	if tempo < 500 then
2079
		tfm.exec.setPlayerScore(players[math.random(#players)],1,true)
2080
		for name,player in pairs(tfm.get.room.playerList) do
2081
			if tfm.get.room.playerList[name].isShaman then
2082
				ui.addPopup(1,0,""..text.textTime.."",name,350,175,200,true)
2083
				ui.addPopup(2,0,""..text.textTime.."",name,350,175,200,true)
2084
			end
2085
		end
2086
		tfm.exec.chatMessage("<R>"..text.textTimeLeave.."",nil)
2087
		changeMap()
2088
	end
2089
	end
2090
	end
2091
	if modo == "troca" then
2092
		obterJogadores()
2093
		if tempo < 100 then
2094
			changeMap()
2095
		end
2096
	end
2097
	if vivo == 0 then
2098
		shaman=""
2099
	end
2100
end
2101
function eventPopupAnswer(id,name,answer)
2102
	if id == 1 then
2103
		if tfm.get.room.playerList[name].isShaman then
2104
			if tfm.get.room.currentMap == "@7417328" then
2105
				if string.len(answer) >= 180 then
2106
					tfm.exec.chatMessage(""..text.textLongQuestion.."",name)
2107
				elseif string.len(answer) <= 5 then
2108
					tfm.exec.chatMessage(""..text.textShortQuestion.."",name)
2109
				else
2110
					pergunta=answer
2111
					pcall(ui.addPopup(2,1,""..text.textTrueFalse.."",name,350,175,200,true))
2112
				end
2113
			end
2114
		end
2115
	end
2116
	if id == 2 then
2117
		resposta=tostring(answer)
2118
		modo="pergunta"
2119
		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)
2120
		tfm.exec.chatMessage("<CH>"..pergunta.."",nil)
2121
		tfm.exec.chatMessage("<BL>"..answer.."","Forzaldenon#0000")
2122
		tfm.exec.setGameTime(20)
2123
		for name,player in pairs(tfm.get.room.playerList) do
2124
			tfm.exec.movePlayer(name,400,102,false,1,1,false)
2125
			if tfm.get.room.playerList[name].isShaman then
2126
				tfm.exec.movePlayer(name,400,885,false,1,1,false)
2127
			end
2128
		end
2129
	end
2130
end
2131
function eventPlayerDied(name)
2132
	if not tfm.get.room.playerList[name].isShaman then
2133
		vivo=vivo-1
2134
	end
2135
	local i=0
2136
	local n
2137
	for pname,player in pairs(tfm.get.room.playerList) do
2138
		if not player.isDead and not player.isShaman then
2139
			i=i+1
2140
			n=pname
2141
		end
2142
	end
2143
	if i==0 then
2144
		-- não faça nada
2145
	elseif i==1 then
2146
		shaman=n;
2147
	end
2148
end
2149
function changeMap()
2150
	tfm.exec.newGame(mapa)
2151
end
2152
changeMap()
2153
end
2154
2155
initMestre = function()
2156
tfm.exec.disableAutoNewGame(true)
2157
tfm.exec.disableAutoShaman(true)
2158
tfm.exec.disableAutoTimeLeft(true)
2159
tfm.exec.disableAutoScore(true)
2160
tfm.exec.disableAfkDeath(true)
2161
tfm.exec.setRoomMaxPlayers(35)
2162
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,7525277}
2163
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
2164
vivo=0 -- número de ratos vivos
2165
rato=0 -- número de ratos na sala
2166
dificuldade=1 -- dificuldade da partida (alterada automaticamente)
2167
rodadas=0 -- o limite de rodadas das partidas é calculado automaticamente
2168
string="" -- variável usada no comando 33
2169
rodada=0 -- número da rodada atual, não altere
2170
number=0 -- variável usada no comando 11
2171
xpos=0 -- variável usada nos comandos 21, 22 e 23
2172
ypos=0 -- variável usada nos comandos 24 e 25
2173
data={} -- variável que define os dados dos jogadores
2174
lang={} -- não alterar, variável que define a linguagem dos textos
2175
pergunta=""
2176
tempo=10
2177
resposta=""
2178
unlocked=true -- bloqueia ou desbloqueia a execução do script
2179
for _,f in next,{"help","rodar","run","limite","q","r","time"} do
2180
	system.disableChatCommandDisplay(f)
2181
end
2182
lang.br = {
2183
	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 28",
2184
	dancar = "Dance!",
2185
	sentar = "Sente!",
2186
	confetar = "Atire 5 confetes!",
2187
	mouse = "Clique na tela 10 vezes!",
2188
	beijos = "Dê 10 beijos!",
2189
	dormir = "Vocês estão com sono. Durmam para descansar.",
2190
	raiva = "Tigrounette é do mal! Fiquem com raiva dele!",
2191
	chorem = "Vocês não ganharam queijo :( Chorem!",
2192
	esquerda = "Não vá para a esquerda!",
2193
	direita = "Não vá para a direita!",
2194
	numero = "Digite o seguinte número: ",
2195
	digitar = "Digite qualquer coisa e mande para mim.",
2196
	falar = "Não falem nada!",
2197
	pular = "Não pulem!",
2198
	mexer = "Não se mexam!",
2199
	bandeira = "Balance a bandeira de qualquer país!",
2200
	ano = "Em que ano estamos?",
2201
	vesquerda = "Fique virado para a esquerda!",
2202
	vdireita = "Fique virado para a direita!",
2203
	quadrado = "Fique no quadrado branco!",
2204
	retangulo = "Fique dentro do retângulo branco!",
2205
	nretangulo = "Não fique dentro do retângulo branco!",
2206
	preesquerda30 = "Pressione 30 vezes a tecla para ESQUERDA!",
2207
	predireita30 = "Pressione 30 vezes a tecla para DIREITA!",
2208
	preesquerda60 = "Pressione 60 vezes a tecla para ESQUERDA!",
2209
	predireita60 = "Pressione 60 vezes a tecla para DIREITA!",
2210
	preesquerda200 = "Pressione 200 vezes a tecla para ESQUERDA!",
2211
	predireita200 = "Pressione 200 vezes a tecla para DIREITA!",
2212
	espaco = "Pressione a barra de espaço 20 vezes!",
2213
	nome = "Digite o seu nome no jogo (com #número).",
2214
	ndance = "Não dance!",
2215
	mestre = "Mestre Mandou",
2216
	map = "Mapa",
2217
	time = "Tempo",
2218
	mice = "Ratos",
2219
	round = "Rodada",
2220
	mices = "Esta sala requer pelo menos 4 ratos.",
2221
	difficulty = "Dificuldade",
2222
	creator = "Module criado por Jessiewind26#2546",
2223
	segundos = "segundos.",
2224
	fim = "Partida encerrada! Próxima partida iniciando em ",
2225
	playingmap = "Rodando mapa",
2226
	created = "criado por"
2227
}
2228
lang.en = {
2229
	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 28",
2230
	dancar = "Dance!",
2231
	sentar = "Sit!",
2232
	confetar = "Throw 5 confetti!",
2233
	mouse = "Click on screen 10 times!",
2234
	beijos = "Give 10 kisses!",
2235
	dormir = "They are sleepy. Sleep to rest.",
2236
	raiva = "Tigrounette is evil! Get angry with him!",
2237
	chorem = "No cheese for you. Cry!",
2238
	esquerda = "Don't go to the LEFT!",
2239
	direita = "Don't go to the RIGHT!",
2240
	numero = "Type this number: ",
2241
	digitar = "Type anything and send to me.",
2242
	falar = "Don't speak nothing!",
2243
	pular = "Don't jump!",
2244
	mexer = "Don't move!",
2245
	bandeira = "Balance the flag of anything country!",
2246
	ano = "What year are we?",
2247
	vesquerda = "Stay facing LEFT!",
2248
	vdireita = "Stay facing RIGHT!",
2249
	quadrado = "Stay on the white square!",
2250
	retangulo = "Stay on the white rectangle!",
2251
	nretangulo = "Don't stay on the white rectangle!",
2252
	preesquerda30 = "Press 30 times the LEFT key!",
2253
	predireita30 = "Press 30 times the RIGHT key!",
2254
	preesquerda60 = "Press 60 times the LEFT key!",
2255
	predireita60 = "Press 60 times the RIGHT key!",
2256
	preesquerda150 = "Press 150 times the LEFT key!",
2257
	predireita150 = "Press 150 times the RIGHT key!",
2258
	espaco = "Press 20 times the SPACEBAR!",
2259
	nome = "Type your nickname (with #number)!",
2260
	ndance = "Don't dance!",
2261
	mestre = "Master Says",
2262
	map = "Map",
2263
	time = "Time",
2264
	mice = "Mice",
2265
	round = "Round",
2266
	mices = "This room requires at least 4 players.",
2267
	difficulty = "Difficulty",
2268
	creator = "Module created by Jessiewind26#2546",
2269
	segundos = "seconds.",
2270
	fim = "End of match! The next match will start on ",
2271
	playingmap = "Playing map",
2272
	created = "created by"
2273
}
2274
lang.ar = {
2275
welcome = "<N>مرحبآ في نمط الرئيس! في هذا النمط يجب عليك فعل كل مايقوله الرئيس . <ROSE><br>لو أردت المساعدة قم بِكتابة الامر !help<br><VP>تم صنع النمط عن طريق Jessiewind26#2546 - الإصدار RTM Compilation28",
2276
dancar = "أرقص!",
2277
sentar = "إجلس!",
2278
confetar = "قُم برمي 5 أوراق!",
2279
mouse = "قم بالضغط على الشاشة 10 مرات!",
2280
beijos = "قم بالتقبيل 10 مرات!",
2281
dormir = "إنهم يشعرون بالنعاس، نام لتستريح!",
2282
raiva = "تايغرونيت شرير! قم بالغَضبِ مِنه!",
2283
chorem = "لم تلتقط أي قطعة من الجبن، إبكي!",
2284
esquerda = "لا تذهب لليسار!",
2285
direita = "لا تذهب لليَمين!",
2286
numero = "أكتب هذا الرقم : ",
2287
digitar = "أكتب اي شيء وأرسله لي",
2288
falar = "لا تتكلم أو تقل أي شيء!",
2289
pular = "لا تقفز!",
2290
mexer = "لا تتَحرك!",
2291
bandeira = "إرفع علم أي دولة!",
2292
ano = "في أي عام نحن؟",
2293
vesquerda = "إبقى مواجهآ للإتجاه الأيسر",
2294
vdireita = "إبقى مواجهآ للإتجاه الأيمن!",
2295
quadrado = "إبقى في المربع الأبيض",
2296
retangulo = "إبقى في المستطيل الأبيض",
2297
nretangulo = "لا تبقى في المستطيل الأبيض!",
2298
preesquerda30 = "إضغط 30 مرة على زر السهم الأيسر",
2299
predireita30 = "إضغط 30 مرة على زر السهم الأيمن",
2300
preesquerda60 = "إضغط 60 مرة على زر السهم الأيسر",
2301
predireita60 = "إضغط 60 مرة على زر السهم الأيمن",
2302
preesquerda150 = "إضغط 150 مرة على زر السهم الأيسر",
2303
predireita150 = "إضغط 150 مرة على زر السهم الأيمن",
2304
espaco = "إضغط 20 مرة على زر المسافة",
2305
nome = "إكتب إسمك (مع رقم الهاشتاج #)ـ",
2306
abracar = "أعطِ حُضن لأي فأر!",
2307
beijar = "قُم بتقبيل اي فأر",
2308
ndance = "لا ترقص!",
2309
mestre = "الرئيس يقول",
2310
map = "خريطة",
2311
time = "الوقت",
2312
mice = "الفئران",
2313
round = "الجولة",
2314
mices = "هذه الغرفة تتطلب على الأقل 4 أشخاص.",
2315
difficulty = "الصعوبة",
2316
creator = "صُنع النمط عن طريق اللاعب : Jessiewind26#2546",
2317
segundos = "ثوانٍ",
2318
fim = "إنتهت الجولة، الجولة الجديدة سوف تَبدأ قريبًا! ",
2319
playingmap = "Playing map",
2320
created = "created by"
2321
}
2322
if tfm.get.room.community == "br" then
2323
	text = lang.br
2324
elseif tfm.get.room.community == "ar" then
2325
	text = lang.ar
2326
else
2327
	text = lang.en
2328
end
2329
function eventNewPlayer(name)
2330
	rato=rato+1
2331
	for k=32, 87 do
2332
		tfm.exec.bindKeyboard(name,k,false,true)
2333
	end
2334
	system.bindMouse(name,true)
2335
	newData={
2336
			["c"]=0;
2337
			["s"]=0;
2338
			};		
2339
 	data[name] = newData;
2340
	tfm.exec.chatMessage(""..text.welcome.."",name)
2341
end
2342
for name,player in pairs(tfm.get.room.playerList) do
2343
	eventNewPlayer(name)
2344
end
2345
function eventPlayerDied(name)
2346
	if active >= 0 then
2347
		vivo=vivo-1
2348
		local i=0
2349
		local name
2350
		for pname,player in pairs(tfm.get.room.playerList) do
2351
			if not player.isDead then
2352
				i=i+1
2353
				name=pname
2354
			end
2355
		end
2356
		if i==0 then
2357
			active=-1
2358
		elseif i==1 then
2359
			active=-1
2360
			tfm.exec.giveCheese(name)
2361
			tfm.exec.playerVictory(name)
2362
			tfm.exec.setGameTime(10)
2363
		end
2364
	end
2365
end
2366
function eventNewGame()
2367
	ui.removeTextArea(0,nil)
2368
	rodada=0
2369
	active=0
2370
	vivo=0
2371
	rato=0
2372
	dificuldade=1
2373
	if unlocked == true then
2374
		tfm.exec.setGameTime(24)
2375
	else
2376
		tfm.exec.setGameTime(36000)
2377
	end
2378
	for name,player in pairs(tfm.get.room.playerList) do
2379
		vivo=vivo+1
2380
		rato=rato+1
2381
		if data[name] then
2382
			data[name].c=0
2383
		end
2384
	end
2385
	rodadas=math.floor(10+(rato/2))
2386
end
2387
function eventPlayerLeft()
2388
	rato=rato-1
2389
end
2390
function sortearComandos()
2391
	active=math.random(1,32)
2392
	getCommand()
2393
end
2394
function eventChatCommand(name,message)
2395
	if name == "Jessiewind26#2546" or name == "Ahrizrdbrand#0000" then
2396
		if(message:sub(0,3) == "run") then
2397
				active=tonumber(message:sub(5))
2398
				getCommand()
2399
		end
2400
	end
2401
	if name == "Jessiewind26#2546" or name == "Ahrizrdbrand#0000" then
2402
		if(message:sub(0,1) == "q") then
2403
			pergunta=message:sub(3)
2404
		end
2405
	end
2406
	if name == "Jessiewind26#2546" or name == "Ahrizrdbrand#0000" then
2407
		if(message:sub(0,1) == "r") then
2408
			resposta=message:sub(3)
2409
		end
2410
	end
2411
	if name == "Jessiewind26#2546" or name == "Ahrizrdbrand#0000" then
2412
		if(message:sub(0,4) == "time") then
2413
			tempo=message:sub(6)
2414
		end
2415
	end
2416
end
2417
function getCommand()
2418
	rodada=rodada+1
2419
	for name,player in pairs(tfm.get.room.playerList) do
2420
		data[name].c=0
2421
		data[name].s=0
2422
	end
2423
	if active == 1 then
2424
		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)
2425
		tfm.exec.setGameTime(5)
2426
	end
2427
	if active == 2 then
2428
		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)
2429
		tfm.exec.setGameTime(5)
2430
	end
2431
	if active == 3 then
2432
		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)
2433
		tfm.exec.setGameTime(6)
2434
	end
2435
	if active == 4 then
2436
		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)
2437
		tfm.exec.setGameTime(6)
2438
	end
2439
	if active == 5 then
2440
		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)
2441
		tfm.exec.setGameTime(15)
2442
	end
2443
	if active == 6 then
2444
		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)
2445
		tfm.exec.setGameTime(5)
2446
	end
2447
	if active == 7 then
2448
		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)
2449
		tfm.exec.setGameTime(5)
2450
	end
2451
	if active == 8 then
2452
		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)
2453
		tfm.exec.setGameTime(5)
2454
	end
2455
	if active == 9 then
2456
		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)
2457
		tfm.exec.setGameTime(8)
2458
		for name,player in pairs(tfm.get.room.playerList) do
2459
			data[name].c=1 -- isto indica que todos permanecerão vivos
2460
		end
2461
	end
2462
	if active == 10 then
2463
		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)
2464
		tfm.exec.setGameTime(8)
2465
		for name,player in pairs(tfm.get.room.playerList) do
2466
			data[name].c=1
2467
		end
2468
	end
2469
	if active == 11 then
2470
		number=math.random(1000000,9999999)
2471
		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)
2472
		tfm.exec.setGameTime(10)
2473
	end
2474
	if active == 12 then
2475
		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)
2476
		tfm.exec.setGameTime(7)
2477
	end
2478
	if active == 13 then
2479
		number=math.random(100000000,999999999)
2480
		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)
2481
		tfm.exec.setGameTime(11)
2482
	end
2483
	if active == 14 then
2484
		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)
2485
		tfm.exec.setGameTime(5)
2486
		for name,player in pairs(tfm.get.room.playerList) do
2487
			data[name].c=1
2488
		end
2489
	end
2490
	if active == 15 then
2491
		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)
2492
		tfm.exec.setGameTime(5)
2493
		for name,player in pairs(tfm.get.room.playerList) do
2494
			data[name].c=1
2495
		end
2496
	end
2497
	if active == 16 then
2498
		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)
2499
		tfm.exec.setGameTime(5)
2500
		for name,player in pairs(tfm.get.room.playerList) do
2501
			data[name].c=1
2502
		end
2503
	end
2504
	if active == 17 then
2505
		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)
2506
		tfm.exec.setGameTime(8)
2507
	end
2508
	if active == 18 then
2509
		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)
2510
		tfm.exec.setGameTime(5)
2511
	end
2512
	if active == 19 then
2513
		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)
2514
		tfm.exec.setGameTime(5)
2515
		for name,player in pairs(tfm.get.room.playerList) do
2516
			data[name].c=1
2517
		end
2518
	end
2519
	if active == 20 then
2520
		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)
2521
		tfm.exec.setGameTime(5)
2522
		for name,player in pairs(tfm.get.room.playerList) do
2523
			data[name].c=1
2524
		end
2525
	end
2526
	if active == 21 then
2527
		xpos=math.random(60,650) -- calcula aleatoriamente a posição do quadrado branco
2528
		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)
2529
		tfm.exec.setGameTime(5)
2530
		for name,player in pairs(tfm.get.room.playerList) do
2531
			data[name].c=1
2532
		end
2533
		ui.addTextArea(1,"",nil,xpos,320,80,65,0xffffff,0xffffff,0.68,false)
2534
	end
2535
	if active == 22 then
2536
		xpos=math.random(60,650) -- calcula aleatoriamente a posição do retângulo branco
2537
		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)
2538
		tfm.exec.setGameTime(5)
2539
		for name,player in pairs(tfm.get.room.playerList) do
2540
			data[name].c=1
2541
		end
2542
		ui.addTextArea(1,"",nil,xpos,0,80,400,0xffffff,0xffffff,0.68,false)
2543
	end
2544
	if active == 23 then
2545
		xpos=math.random(60,650) -- calcula aleatoriamente a posição do retângulo branco
2546
		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)
2547
		tfm.exec.setGameTime(5)
2548
		for name,player in pairs(tfm.get.room.playerList) do
2549
			data[name].c=1
2550
		end
2551
		ui.addTextArea(1,"",nil,xpos,0,80,400,0xffffff,0xffffff,0.68,false)
2552
	end
2553
	if active == 24 then
2554
		ypos=math.random(40,300) -- calcula aleatoriamente a posição do retângulo branco
2555
		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)
2556
		tfm.exec.setGameTime(5)
2557
		for name,player in pairs(tfm.get.room.playerList) do
2558
			data[name].c=1
2559
		end
2560
		ui.addTextArea(1,"",nil,0,ypos,1600,60,0xffffff,0xffffff,0.68,false)
2561
	end
2562
	if active == 25 then
2563
		ypos=math.random(40,300) -- calcula aleatoriamente a posição do retângulo branco
2564
		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)
2565
		tfm.exec.setGameTime(5)
2566
		for name,player in pairs(tfm.get.room.playerList) do
2567
			data[name].c=1
2568
		end
2569
		ui.addTextArea(1,"",nil,0,ypos,1600,60,0xffffff,0xffffff,0.68,false)
2570
	end
2571
	if active == 26 then
2572
		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)
2573
		tfm.exec.setGameTime(9)
2574
	end
2575
	if active == 27 then
2576
		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)
2577
		tfm.exec.setGameTime(9)
2578
	end
2579
	if active == 28 then
2580
		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)
2581
		tfm.exec.setGameTime(15)
2582
	end
2583
	if active == 29 then
2584
		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)
2585
		tfm.exec.setGameTime(15)
2586
	end
2587
	if active == 30 then
2588
		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)
2589
		tfm.exec.setGameTime(7)
2590
	end
2591
	if active == 31 then
2592
		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)
2593
		tfm.exec.setGameTime(12)
2594
	end
2595
	if active == 32 then
2596
		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)
2597
		tfm.exec.setGameTime(6)
2598
		for name,player in pairs(tfm.get.room.playerList) do
2599
			data[name].c=1
2600
		end
2601
	end
2602
	if active == 33 then
2603
		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)
2604
		tfm.exec.setGameTime(tempo)
2605
	end
2606
	if active == 34 then
2607
		ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.preesquerda200.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
2608
		tfm.exec.setGameTime(18)
2609
	end
2610
	if active == 35 then
2611
		ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.predireita200.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
2612
		tfm.exec.setGameTime(18)
2613
	end
2614
end
2615
function eventChatMessage(name,message)
2616
	if active == 11 or active == 13 then
2617
		if message == tostring(number) or message == string then
2618
			data[name].c=1
2619
		end
2620
	end
2621
	if active == 12 then
2622
		data[name].c=1
2623
	end
2624
	if active == 14 then
2625
		tfm.exec.killPlayer(name)
2626
	end
2627
	if active == 18 then
2628
		if message == "2018" or message == "2019" then
2629
			data[name].c=1
2630
		end
2631
	end
2632
	if active == 31 then
2633
		if string.upper(message) == string.upper(name) then
2634
			data[name].c=1
2635
		end
2636
	end
2637
	if active == 33 then
2638
		if string.upper(message) == string.upper(resposta) then
2639
			data[name].c=1
2640
		end
2641
	end
2642
end
2643
function eventEmotePlayed(name,id)
2644
	if active == 1 then
2645
		if id == 0 or id == 10 then
2646
			data[name].c=1
2647
		end
2648
	end
2649
	if active == 2 then
2650
		if id == 8 then
2651
			data[name].c=1
2652
		end
2653
	end
2654
	if active == 3 then
2655
		if id == 9 then
2656
			data[name].s=data[name].s+1
2657
			if data[name].s >= 5 then
2658
				data[name].c=1
2659
			end
2660
		end
2661
	end
2662
	if active == 5 then
2663
		if id == 3 then
2664
			data[name].s=data[name].s+1
2665
			if data[name].s >= 10 then
2666
				data[name].c=1
2667
			end
2668
		end
2669
	end
2670
	if active == 6 then
2671
		if id == 6 then
2672
			data[name].c=1
2673
		end
2674
	end
2675
	if active == 7 then
2676
		if id == 4 then
2677
			data[name].c=1
2678
		end
2679
	end
2680
	if active == 8 then
2681
		if id == 2 then
2682
			data[name].c=1
2683
		end
2684
	end
2685
	if active == 16 then
2686
		tfm.exec.killPlayer(name)
2687
	end
2688
	if active == 17 then
2689
		if id == 10 then
2690
			data[name].c=1
2691
		end
2692
	end
2693
	if active == 32 then
2694
		if id == 0 or id == 10 then
2695
			tfm.exec.killPlayer(name)
2696
		end
2697
	end
2698
end
2699
function eventMouse(name,x,y)
2700
	if active == 4 then
2701
		data[name].s=data[name].s+1
2702
		if data[name].s >= 10 then
2703
			data[name].c=1
2704
		end
2705
	end
2706
end
2707
function eventKeyboard(name,id,down,x,y)
2708
	if active == 9 then
2709
		if id == 37 or id == 65 then
2710
			tfm.exec.killPlayer(name)
2711
		end
2712
	end
2713
	if active == 10 then
2714
		if id == 39 or id == 68 then
2715
			tfm.exec.killPlayer(name)
2716
		end
2717
	end
2718
	if active == 15 then
2719
		if id == 38 or id == 87 then
2720
			tfm.exec.killPlayer(name)
2721
		end
2722
	end
2723
	if active == 16 then
2724
		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
2725
			tfm.exec.killPlayer(name)
2726
		end
2727
	end
2728
	if active == 26 then
2729
		if id == 37 or id == 65 then
2730
			data[name].s=data[name].s+1
2731
			if data[name].s >= 30 then
2732
				data[name].c=1
2733
			end
2734
		end
2735
	end
2736
	if active == 27 then
2737
		if id == 39 or id == 68 then
2738
			data[name].s=data[name].s+1
2739
			if data[name].s >= 30 then
2740
				data[name].c=1
2741
			end
2742
		end
2743
	end
2744
	if active == 28 then
2745
		if id == 37 or id == 65 then
2746
			data[name].s=data[name].s+1
2747
			if data[name].s >= 60 then
2748
				data[name].c=1
2749
			end
2750
		end
2751
	end
2752
	if active == 29 then
2753
		if id == 39 or id == 68 then
2754
			data[name].s=data[name].s+1
2755
			if data[name].s >= 60 then
2756
				data[name].c=1
2757
			end
2758
		end
2759
	end
2760
	if active == 34 then
2761
		if id == 37 or id == 65 then
2762
			data[name].s=data[name].s+1
2763
			if data[name].s >= 200 then
2764
				data[name].c=1
2765
			end
2766
		end
2767
	end
2768
	if active == 35 then
2769
		if id == 39 or id == 68 then
2770
			data[name].s=data[name].s+1
2771
			if data[name].s >= 200 then
2772
				data[name].c=1
2773
			end
2774
		end
2775
	end
2776
	if active == 30 then
2777
		if id == 32 then
2778
			data[name].s=data[name].s+1
2779
			if data[name].s >= 15 then
2780
				data[name].c=1
2781
			end
2782
		end
2783
	end
2784
end
2785
function eventLoop(passado,faltando)
2786
	local tempo=math.floor(faltando/1000)
2787
	if active == -2 then
2788
		ui.setMapName("<N>"..text.mices.."<")
2789
	elseif active == -1 then
2790
		ui.setMapName("<VP>"..text.fim.."<b>"..tempo.."</b> "..text.segundos.."<")
2791
	end
2792
	if active >= 0 then
2793
		if passado > 1200 and passado < 1700 and unlocked == true then
2794
			tfm.exec.chatMessage(""..text.playingmap.." <J>"..tfm.get.room.currentMap.."<BL> "..text.created.." <J>"..tfm.get.room.xmlMapInfo.author)
2795
		end
2796
	end
2797
	if rato < 4 then
2798
		if tfm.get.room.currentMap == "@7277839" and unlocked == true then
2799
			active=-2
2800
			tfm.exec.setGameTime(8000)
2801
		else
2802
			if passado > 3000 and unlocked == true then
2803
				tfm.exec.newGame("@7277839")
2804
				tfm.exec.setGameTime(8000)
2805
				tfm.exec.chatMessage("<R>"..text.mices.."",nil)
2806
			end
2807
		end
2808
	end
2809
	if rato >= 4 then
2810
		if tfm.get.room.currentMap == "@7277839" and unlocked == true then
2811
			tfm.exec.newGame(mapas[math.random(#mapas)])
2812
			active=0
2813
		end
2814
	end
2815
	if active < 0 and faltando < 1 and unlocked == true then
2816
		tfm.exec.newGame(mapas[math.random(#mapas)])
2817
	end
2818
	if active == 0 and faltando < 1000 then
2819
		if rodada < rodadas then
2820
			sortearComandos()
2821
		else
2822
			active=-1
2823
			tfm.exec.setGameTime(10)
2824
			for name,player in pairs(tfm.get.room.playerList) do
2825
				tfm.exec.giveCheese(true)
2826
				tfm.exec.playerVictory(true)
2827
			end
2828
		end
2829
	end
2830
	if active > 0 and faltando < 1 and rato > 1 then
2831
		if active == 19 then
2832
			for name,player in pairs(tfm.get.room.playerList) do
2833
				if tfm.get.room.playerList[name].isFacingRight == true then
2834
					tfm.exec.killPlayer(name)
2835
				end
2836
			end
2837
		end
2838
		if active == 20 then
2839
			for name,player in pairs(tfm.get.room.playerList) do
2840
				if tfm.get.room.playerList[name].isFacingRight == false then
2841
					tfm.exec.killPlayer(name)
2842
				end
2843
			end
2844
		end
2845
		if active == 21 then
2846
			for name,player in pairs(tfm.get.room.playerList) do
2847
				if player.y < 300 then
2848
					tfm.exec.killPlayer(name)
2849
				else
2850
					if player.x < xpos-20 or player.x > xpos+100 then
2851
						tfm.exec.killPlayer(name)
2852
					end
2853
				end
2854
			end
2855
		end
2856
		if active == 22 then
2857
			for name,player in pairs(tfm.get.room.playerList) do
2858
				if player.x < xpos or player.x > xpos+80 then
2859
					tfm.exec.killPlayer(name)
2860
				end
2861
			end
2862
		end
2863
		if active == 23 then
2864
			for name,player in pairs(tfm.get.room.playerList) do
2865
				if player.x > xpos and player.x < xpos+80 then
2866
					tfm.exec.killPlayer(name)
2867
				end
2868
			end
2869
		end
2870
		if active == 24 then
2871
			for name,player in pairs(tfm.get.room.playerList) do
2872
				if player.y < ypos-10 or player.y > ypos+70 then
2873
					tfm.exec.killPlayer(name)
2874
				end
2875
			end
2876
		end
2877
		if active == 25 then
2878
			for name,player in pairs(tfm.get.room.playerList) do
2879
				if player.y > ypos-10 and player.y < ypos+70 then
2880
					tfm.exec.killPlayer(name)
2881
				end
2882
			end
2883
		end
2884
		ui.removeTextArea(0,nil)
2885
		ui.removeTextArea(1,nil)
2886
		active=0
2887
		if rodada == 8 or rodada == 10 or rodada == 12 or rodada == 14 then
2888
			dificuldade=dificuldade+1
2889
		end
2890
		for name,player in pairs(tfm.get.room.playerList) do
2891
			if data[name].c == 0 then
2892
				tfm.exec.killPlayer(name)
2893
			end
2894
		end
2895
		if vivo > 4 then
2896
			tfm.exec.setGameTime(6-dificuldade)
2897
		else
2898
			tfm.exec.setGameTime(9-dificuldade)
2899
		end
2900
	end
2901
	for name,player in pairs(tfm.get.room.playerList) do
2902
		if data[name].c == 1 then
2903
			tfm.exec.setNameColor(name,0x00ff00)
2904
		else
2905
			tfm.exec.setNameColor(name,0xc2c2da)
2906
		end
2907
	end
2908
end
2909
tfm.exec.newGame("@7277839")
2910
end
2911
2912
initPistas = function()
2913
tfm.exec.disableAllShamanSkills(true)
2914
tfm.exec.disableAutoNewGame(true)
2915
tfm.exec.disableAfkDeath(true)
2916
tfm.exec.disableAutoTimeLeft(true)
2917
tfm.exec.disablePhysicalConsumables(true)
2918
tfm.exec.disableMortCommand(true)
2919
pergunta=0
2920
valendo=false
2921
limite=6 -- Variável usada para armazenar o limite de partidas
2922
dica10="" -- Variável usada para armazenar a dica valendo 10 pontos
2923
dica9="" -- Variável usada para armazenar a dica valendo 9 pontos
2924
dica8="" -- Variável usada para armazenar a dica valendo 8 pontos
2925
resposta="" -- Variável usada para armazenar a resposta da pergunta
2926
data={}
2927
tempo=999 -- NÃO ALTERAR!
2928
loop=0
2929
system.disableChatCommandDisplay("help")
2930
system.disableChatCommandDisplay("ratos")
2931
system.disableChatCommandDisplay("skip")
2932
system.disableChatCommandDisplay("shaman")
2933
mapa="@4677521" -- Variável usada para armazenar o mapa do module
2934
lang = {}
2935
lang.br = {
2936
	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",
2937
	time = "<R>Tempo esgotado! A resposta era ",
2938
	fim = "<R>Partida encerrada! O jogador com melhor pontuação será o shaman!",
2939
	shaman = "<R>Acabou o tempo! Outro shaman será escolhido.",
2940
	c10p = "Dica valendo 10 pontos:",
2941
	c9p = "Dica valendo 9 pontos:",
2942
	c8p = "Dica valendo 8 pontos:",
2943
	module = "Jogo das 3 Pistas",
2944
	cancel = "<R>Rodada cancelada.",
2945
	question = "<VP>Pressione G para fazer uma pergunta.",
2946
	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.",
2947
	win = "acertou a resposta! A resposta era",
2948
	cancelled = "<R>Rodada cancelada! O shaman falou a resposta.",
2949
	responder = "<ROSE>Podem responder agora!"
2950
}
2951
lang.en = {
2952
	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",
2953
	time = "<R>End of time! The answer was",
2954
	fim = "<R>The match ended! The best player will be the shaman.",
2955
	shaman = "<R>Time is gone! Other shaman will be selected.",
2956
	c10p = "Tip for 10 points:",
2957
	c9p = "Tip for 9 points:",
2958
	c8p = "Tip for 8 points:",
2959
	module = "3 Tips Game",
2960
	cancel = "<R>Cancelled match.",
2961
	question = "<VP>Press G to make a question.",
2962
	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.",
2963
	win = "discovered the answer! The answer was",
2964
	cancelled = "<R>The shaman typed the answer! The question will be cancelled.",
2965
	responder = "<ROSE>You can answer now!"
2966
}
2967
if tfm.get.room.community == "br" then
2968
	text = lang.br
2969
else
2970
	text = lang.en
2971
end
2972
tfm.exec.newGame(mapa)
2973
rato=0
2974
function eventNewPlayer(name)
2975
	newData={
2976
		["played"]=0;
2977
			}
2978
	data[name]=newData;
2979
	tfm.exec.bindKeyboard(name,71,true,true)
2980
	tfm.exec.respawnPlayer(name)
2981
	tfm.exec.chatMessage(text.welcome,name)
2982
end
2983
for name,player in pairs(tfm.get.room.playerList) do
2984
	eventNewPlayer(name)
2985
end
2986
function eventSummoningEnd(name,type,x,y,angle,vx,vy,obj)
2987
	for name,player in pairs(tfm.get.room.playerList) do
2988
		if tfm.get.room.playerList[name].isShaman then
2989
			tfm.exec.chatMessage("<ROSE>Isn't allowed the use of shaman objects in this module.",nil)
2990
			tfm.exec.newGame(mapa)
2991
		end
2992
	end
2993
end
2994
function eventLoop(p,f)
2995
	loop=loop+1
2996
	tempo=math.ceil(f/1000)
2997
	if f < 2000 and valendo == true then
2998
		tfm.exec.chatMessage(""..text.time..""..resposta.."",nil)
2999
		ui.removeTextArea(1,nil)
3000
		ui.removeTextArea(2,nil)
3001
		ui.removeTextArea(3,nil)
3002
		valendo=false
3003
		tfm.exec.setGameTime(64)
3004
	end
3005
	if pergunta == limite and valendo == false then
3006
		tfm.exec.chatMessage(text.fim,nil)
3007
		tfm.exec.newGame(mapa)
3008
	end
3009
	if f <= 100 then
3010
		tfm.exec.chatMessage(text.shaman,nil)
3011
		tfm.exec.newGame(mapa)
3012
	end
3013
	if loop == 10 then
3014
		for name,player in pairs(tfm.get.room.playerList) do
3015
			tfm.exec.setPlayerScore(name,0,false)
3016
		end
3017
	end
3018
	if valendo == true and f <= 59000 then
3019
		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)
3020
	end
3021
	if valendo == true and f <= 49000 then
3022
		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)
3023
	end
3024
	if valendo == true and f <= 39000 then
3025
		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)
3026
	end
3027
	ui.setMapName("<J>"..text.module.."   <G>|   <N>Question : <V>"..pergunta.."/"..limite.."   <G>|   <N>Time : <V>"..tempo.."s   <G>|   <N>Compilation RTM 8<")
3028
end
3029
function eventChatCommand(name,message)
3030
	if message == "skip" then
3031
		if name == "Jessiewind26#2546" or name == "Hecarimjhenx#0000" or name == "Miss_fortune#9548"  then
3032
			tfm.exec.chatMessage(text.cancel,nil)
3033
			tfm.exec.newGame(mapa)
3034
		end
3035
	end
3036
	if(message:sub(1,6) == "limite") then
3037
		if name == "Jessiewind26#2546" or name == "Hecarimjhenx#0000" or name == "Miss_fortune#9548"  then
3038
			limite=tonumber(message:sub(8))
3039
		end
3040
	end
3041
	if(message:sub(1,5) == "ratos") then
3042
		if name == "Jessiewind26#2546" or name == "Hecarimjhenx#0000" or name == "Miss_fortune#9548"  then
3043
			tfm.exec.setRoomMaxPlayers(message:sub(7))
3044
		end
3045
	end
3046
	if(message:sub(1,6) == "shaman") then
3047
		if name == "Jessiewind26#2546" or name == "Hecarimjhenx#0000" or name == "Miss_fortune#9548"  then
3048
			tfm.exec.setPlayerScore(message:sub(8),9999,false)
3049
			tfm.exec.newGame(mapa)
3050
		end
3051
	end
3052
	if message == "help" then
3053
		tfm.exec.chatMessage(text.help,name)
3054
	end
3055
end
3056
function eventNewGame()
3057
	loop=0
3058
	ui.removeTextArea(1,nil)
3059
	ui.removeTextArea(2,nil)
3060
	ui.removeTextArea(3,nil)
3061
	pistas={p10="",p9="",p8=""}
3062
	valendo=false
3063
	pergunta=0
3064
	tfm.exec.setGameTime(64)
3065
	rato=0
3066
	for name,player in pairs(tfm.get.room.playerList) do
3067
		if tfm.get.room.playerList[name].isShaman then
3068
			if data[name] then
3069
				data[name].played=1
3070
				tfm.exec.chatMessage(text.question,name)
3071
			end
3072
		end
3073
		tfm.exec.bindKeyboard(name,71,true,true)
3074
		rato=rato+1
3075
		tfm.exec.setPlayerScore(name,0,false)
3076
	end
3077
end
3078
function eventChatMessage(name,message)
3079
	 if string.upper(message) == string.upper(resposta) and valendo == true then
3080
		if tfm.get.room.playerList[name].isShaman == false then
3081
			if tempo >= 50 then
3082
				tfm.exec.setPlayerScore(name,10,true)
3083
			elseif tempo >= 40 and tempo < 50 then
3084
				tfm.exec.setPlayerScore(name,9,true)
3085
			elseif tempo < 40 then
3086
				tfm.exec.setPlayerScore(name,8,true)
3087
			end
3088
			valendo=false
3089
			tfm.exec.setGameTime(64)
3090
			tfm.exec.chatMessage("<VP>"..name.." "..text.win.." "..string.upper(resposta).."",nil)
3091
			resposta=""
3092
			ui.removeTextArea(1,nil)
3093
			ui.removeTextArea(2,nil)
3094
			ui.removeTextArea(3,nil)
3095
		end
3096
	end
3097
end
3098
function eventKeyboard(name,key)
3099
	if tfm.get.room.playerList[name].isShaman then
3100
		ui.addPopup(0,2,text.c10p,name,350,125,200,true)
3101
	end
3102
end
3103
function eventPopupAnswer(id,name,answer)
3104
	if tfm.get.room.playerList[name].isShaman then
3105
	if id == 0 then
3106
		dica10=answer
3107
		ui.addPopup(1,2,text.c9p,name,350,125,200,true)
3108
	end
3109
	if id == 1 then
3110
		dica9=answer
3111
		ui.addPopup(2,2,text.c8p,name,350,125,200,true)
3112
	end
3113
	if id == 2 then
3114
		dica8=answer
3115
		ui.addPopup(3,2,"Insert the ANSWER:",name,350,125,200,true)
3116
	end
3117
	if id == 3 then
3118
		if string.len(answer) >= 2 and string.len(answer) <= 80 then
3119
			pergunta=pergunta+1
3120
			resposta=string.upper(answer)
3121
			tfm.exec.setGameTime(64)
3122
			valendo=true
3123
		else
3124
			ui.addPopup(3,2,"Insert the ANSWER:",name,350,125,200,true)
3125
		end
3126
	end
3127
	end
3128
end
3129
function eventPlayerDied(name)
3130
	if tfm.get.room.playerList[name].isShaman then
3131
		tfm.exec.newGame(mapa)
3132
	end
3133
end
3134
end
3135
3136
tfm.exec.chatMessage("#anvilwar Universal Mode Loader version 1.34.1<br>by Jessiewind26#2546<br><br>The requested room is loading or updating. Please wait...",nil)
3137
3138
if string.find(tfm.get.room.name,"true_false") then
3139-
tfm.exec.chatMessage("#anvilwar Universal Mode Loader version 1.34<br>by Jessiewind26#2546<br><br>The requested room is loading or updating. Please wait...",nil)
3139+
3140
	initTrue()
3141
elseif string.find(tfm.get.room.name,"mestre") then
3142
	active = "mestre"
3143
	initMestre()
3144
elseif string.find(tfm.get.room.name,"pistas") then
3145
	active = "pistas"
3146
	initPistas()
3147
else
3148-
	active = "fall"
3148+
3149
	initAnvilwar()
3150
end