View difference between Paste ID: SaDwhVd0 and WBTBg8uS
SHOW: | | - or go back to the newest paste.
1
tfm.exec.disableAutoNewGame(true)
2
tfm.exec.disableAutoScore(true)
3
tfm.exec.disableAutoTimeLeft(true)
4
tfm.exec.disableAfkDeath(true)
5
tfm.exec.disableAllShamanSkills(true)
6
tfm.exec.disablePhysicalConsumables(true)
7
tfm.exec.setRoomMaxPlayers(35)
8
t=false;
9
f=false;
10
tempa=20	
11
ratos=0
12
loop=0
13
temp2=3
14
resposta="0"
15
players={}
16
data={}
17
af=false;
18
votos=0
19
vivo=0;
20
min1=0
21
seg1=0
22
seg2=0
23
lt=0
24
rcount=0
25
segundos=0
26
lock=false;
27
pergunta=""
28
shaman=""
29
lock=false
30-
minutos=10;
30+
minutos=8;
31
modo="desativado"
32
system.disableChatCommandDisplay("admin77")
33
system.disableChatCommandDisplay("change")
34
system.disableChatCommandDisplay("kill")
35
system.disableChatCommandDisplay("admin78")
36
system.disableChatCommandDisplay("admin79")
37
system.disableChatCommandDisplay("limite")
38
system.disableChatCommandDisplay("msg")
39
system.disableChatCommandDisplay("return")
40
mapa="@7417328"
41
lang = {}
42
43
lang.br = {
44
  textFalse = "A resposta era FALSO!",
45
  textTrue = "A resposta era VERDADEIRO!",
46
  textRandom = "Um shaman aleatório foi escolhido.",
47
  textSkip = "O shaman passou a vez.",
48
  textPergunta = "Insira a sua pergunta:<br><br>NÃO USE SÍMBOLOS ESPECIAIS NA PERGUNTA!",
49
  textTime = "Tempo esgotado!",
50
  textShaman = "Não é permitido o uso de objetos de shaman.",
51
  textNothingWins = "Ninguém venceu esta partida. :(",
52
  textWinner = " venceu a partida!",
53
  textNothing = "Não tivemos vencedor nessa partida.",
54
  textTimeOut = "O tempo da partida acabou! Outro shaman será escolhido.",
55
  textTimeLeave = "Tempo esgotado! Outro shaman será escolhido.",
56
  textTrueFalse = "Envie SIM se a resposta for verdadeira ou NÃO se a resposta for falsa.",
57-
  textEnter = "<b>Bem-vindo ao module True or False! Criado por Reksai_void2600#6638.</b><br><BL>Para maiores informações sobre o jogo, digite !help.<br><br><VP>Atualização RTM 1.121:<br>- Correção de bugs na troca de shamans<br>- Melhorias no sistema de integração<br>- Correção no comando !help",
57+
  textEnter = "<b>Bem-vindo ao module True or False! Criado por Reksai_void2600#6638.</b><br><BL>Para maiores informações sobre o jogo, digite !help.<br><br><VP>Atualização RTM 1.122:<br>- Correção de pequenos bugs",
58
  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>PERGUNTAS QUE NÃO DEVEM SER FEITAS:<br>- Perguntas envolvendo questões pessoais<br>- Perguntas que envolvam opinião<br>- Perguntas que envolvam racismo, sexo, pornografia e afins<br>- Pegadinhas, mesmo que não sejam intencionais<br>- Perguntas que possam causar tumulto na sala<br>entre outros...<br><br>Caso você veja alguém infringindo as regras, use o comando /ban [usuário] para votar para tirá-lo da sala.<br><br>- Script criado por Reksai_void2600#6638<br>- Recursos adicionais criados por Darakdarkus7#0000",
59
  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.",
60
  textLowTime = "O tempo da partida está acabando.",
61
  mices = "São necessários pelo menos 6 jogadores para jogar True or False",
62
  textArea1 = "Tempo da partida:",
63
  textArea2 = "Ratos vivos:",
64
  textArea3 = "Limite de tempo:",
65
  textLongQuestion = "Sua pergunta é muito longa. Tente usar uma pergunta menor.",
66
  textShortQuestion = "Sua pergunta é muito curta ou não é permitida.",
67
  textCmd = "<VP>Comandos do jogo:<br><br>!per = faz uma pergunta (quando você é shaman)<br>!skip = pula a sua vez (quando você é shaman)",
68
  textVote = "Seu voto foi registrado com sucesso.",
69
  textBetWin = "<VP>Você acertou a aposta! +2 pontos adicionados.",
70
  textBetLose = "<R>Você perdeu a aposta. :(",
71
  textLt = "<J>Use o comando /ban [nome] para reportar alguém que esteja infrigindo as regras da sala.",
72
  textVoting = "<J>Votação disponível! Digite <b>!NomeDoRato</b> para votar em quem você acha que vai ganhar. (não se esqueça de por o #número no final)",
73
  textCancel = "<R>Esta pergunta foi cancelada por ",
74
  textNoVote = "A votação ainda não está disponível.",
75
  textReturn = "O shaman teve 2 cancelamentos de perguntas. O próximo cancelamento implicará na perda da vez de shaman."
76
}
77
lang.en = {
78
  textFalse = "The answer was FALSE!",
79
  textTrue = "The answer was TRUE!",
80
  textRandom = "A random shaman has been choosed.",
81
  textSkip = "The shaman skipped your turn.",
82
  textPergunta = "Type your question here:",
83
  textTime = "Time is up!",
84
  textShaman = "Don't are allowed shaman objects.",
85
  textNothingWins = "Nothing wins the game. :(",
86
  textWinner = " wons the game!",
87
  textNothing = "Aren't winners on this game.",
88
  textTimeOut = "The game time is gone! Other shaman has been choosed.",
89
  textTimeLeave = "Time is up! Other shaman has been choosed.",
90
  textTrueFalse = "Send YES if the answer is TRUE or send NO if the answer is FALSE.",
91-
  textEnter = "<b>Welcome to module True or False! Created by Reksai_void2600#6638.</b><br><V>For more information of the game, type !help.<br><br><VP>Update RTM 1.121:<br>- Correction of bugs on shaman change<br>- Updates on integration system<br>- Corrections on !help command",
91+
  textEnter = "<b>Welcome to module True or False! Created by Reksai_void2600#6638.</b><br><V>For more information of the game, type !help.<br><br><VP>Update RTM 1.122:<br>- Correction of small bugs",
92
  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>QUESTIONS DON'T ALLOWED ON GAME:<br>- Questions involving pessoal things<br>- Questions involving opinions<br>- Questions involving racism, pornography, sexual things...<br>- 'Troll' questions, included questions that aren't intencional<br>and many more...<br><br>If you see someone breaking the rules, use the /ban [user] command to vote to get him out of the room.<br><br>Suggestions and problems report to Reksai_void2600#6638.",
93
  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.",
94
  textLowTime = "The match time is ending.",
95
  mices = "Are needed at least 6 players to play True or False.",
96
  textArea1 = "Match time:",
97
  textArea2 = "Mices alive:",
98
  textArea3 = "Time limit:",
99
  textLongQuestion = "Your question is very long. Try to use a short question.",
100
  textShortQuestion = "Your question is very short or isn't allowed.",
101
  textCmd = "<VP>Game commands:<br><br>!per = make a question (only for shaman)<br>!skip = skip your shaman turn (only for shaman)",
102
  textVote = "Your vote has been registered.",
103
  textBetWin = "<VP>You win the bet! +2 points added to your score.",
104
  textBetLose = "<R>You lose the bet :(",
105
  textVoting = "<J>Voting avaiable! Type <b>!Username</b> to vote on user who you think that will win the match. (remember to put #number)",
106
  textCancel = "<R>The question has been cancelled by ",
107
  textNoVote = "The vote system is locked at moment.",
108
  textTempMod = "",
109
  textReturn = "The shaman have 2 question skips. The next cancel will cause the loss of turn."
110
}
111
if tfm.get.room.community == "br" then
112
	text = lang.br
113
else
114
	text = lang.en
115
end
116
function obterJogadores()
117
	players={}
118
    for name,player in pairs(tfm.get.room.playerList) do
119
			if not tfm.get.room.playerList[name].isDead then
120
       	 	table.insert(players,name)
121
			end
122
    end
123
end
124
function eventNewPlayer(name)
125
	newData={
126
		["vote"]=""
127
			}
128
	data[name]=newData;
129
	ratos=ratos+1;
130
	tfm.exec.chatMessage("<J>"..text.textEnter.."",name)
131
	obterJogadores()
132
end
133
for name,player in pairs(tfm.get.room.playerList) do
134
	tfm.exec.setPlayerScore(name,0,false)
135
	eventNewPlayer(name)
136
end
137
function eventPlayerLeft(name)
138
	ratos=ratos-1;
139
	obterJogadores()
140
end
141
function eventChatCommand(name,message)
142
	if tfm.get.room.currentMap == "@7417328" then
143
	if message == "f5" then
144
		if name == "Reksai_void2600#6638" then
145
			t=true;
146
			tfm.exec.chatMessage("<R>"..text.textFalse.."",nil)
147
			modo="desativado" end
148
	elseif message == "skip" then
149
            if tfm.get.room.playerList[name].isShaman then
150
			obterJogadores()
151
			tfm.exec.chatMessage("<R>"..text.textSkip.."",nil)
152
			eventChatCommand("Reksai_void2600#6638","admin77") end			
153
	elseif message == "v5" then
154
		if name == "Reksai_void2600#6638" then
155
			f=true;
156
			tfm.exec.chatMessage("<VP>"..text.textTrue.."",nil)
157
			modo="desativado" end
158
	elseif message == "lock" then
159
		if modo == "desativado" then
160
		if name == "Reksai_void2600#6638" or name == "Ashearcher#0000" then
161
			if lock == true then
162
				tfm.exec.chatMessage("Time lock disabled",nil)
163
				lock=false;
164
			else
165
				lock=true;
166
				tfm.exec.chatMessage("Time lock enabled",nil)
167
			end
168
       	 	end
169
		end
170
	elseif message == "change" then
171
		if modo == "desativado" then
172
		if name == "Reksai_void2600#6638" or name == "Ashearcher#0000" then
173
			if af == true then
174
				tfm.exec.chatMessage("Modo anti-sopro desativado.",nil)
175
				af=false;
176
			else
177
				af=true;
178
				tfm.exec.chatMessage("Modo anti-sopro habilitado.",nil)
179
			end
180
    	 	end
181
		end
182
	elseif message == "per" then
183
		if tfm.get.room.playerList[name].isShaman then
184
			if modo == "desativado" then
185
				ui.removeTextArea(27,nil)
186
				ui.addPopup(1,2,""..text.textPergunta.."",name,250,125,350,true)
187
			end
188
		end
189
	elseif message == "return" then
190
		if modo == "pergunta" then
191
		if name == "Reksai_void2600#6638" or name == "Ashearcher#0000" then
192
			tempa=20
193
			temp2=3
194
			modo="desativado"
195
			tfm.exec.setGameTime(63)
196
			ui.removeTextArea(27,nil)
197
			pergunta=""
198
			resposta="0"
199
			rcount=rcount+1
200
			if name == "Ashearcher#0000" then
201
				tfm.exec.chatMessage(""..text.textCancel.."Kazarina",nil)
202
			else
203
				tfm.exec.chatMessage(""..text.textCancel..""..name.."",nil)
204
			end	
205
			for name,player in pairs(tfm.get.room.playerList) do
206
				tfm.exec.movePlayer(name,400,1,false,1,1,false)
207
			end
208
			if rcount == 2 then
209
				tfm.exec.chatMessage("<VP><br>"..text.textReturn.."",nil)
210
			end
211
			if rcount == 3 then
212
				eventChatCommand("Reksai_void2600#6638","admin77")
213
				rcount=0
214
			end
215
		end end
216
	elseif(message:sub(0,6) == "limite") then
217
		if name == "Reksai_void2600#6638" or name == "Ashearcher#0000" then
218
			minutos=tonumber(message:sub(8))
219
			if minutos == 0 then
220
				tfm.exec.chatMessage("Time limit disabled",nil)
221
				minutos=999
222
			elseif minutos > 30 then
223
				tfm.exec.chatMessage("Time limit: 20 minutes.",nil)
224
				minutos=30
225
			else
226
				tfm.exec.chatMessage("Time limit: "..minutos.." minutes.",nil)
227
			end
228
		end
229
	elseif(message:sub(1,7) == "admin77") then
230
		if modo == "desativado" then
231
		if name == "Reksai_void2600#6638" or name == "Ashearcher#0000" then
232
			changeMap()
233
			tfm.exec.setShaman(message:sub(50))
234
		end end
235
	elseif(message:sub(1,7) == "admin78") then
236
		if modo == "desativado" then
237
		if name == "Reksai_void2600#6638" or name == "Ashearcher#0000" then
238
			tfm.exec.setPlayerScore(message:sub(9),8001,false)
239
			changeMap()
240
		end end
241
	elseif(message:sub(1,7) == "admin79") then
242
		if name == "Reksai_void2600#6638" or name == "Ashearcher#0000" then
243
			tfm.exec.setPlayerScore(message:sub(9),0,false)
244
		end 
245
	elseif(message:sub(1,4) == "mode") then
246
		if modo == "desativado" then
247
		if name == "Reksai_void2600#6638" or name == "Ashearcher#0000" then
248
			tfm.exec.chatMessage("Command disabled",name)
249
           	end
250
		end
251
	elseif(message:sub(0,4) == "kill") then
252
		if name == "Reksai_void2600#6638" or name == "Ashearcher#0000" then
253
			tfm.exec.killPlayer(message:sub(6))
254
		end
255
	elseif(message:sub(0,6) == "rlimit") then
256
		if name == "Reksai_void2600#6638" or name == "Ashearcher#0000" then
257
			tfm.exec.setRoomMaxPlayers(message:sub(8))
258
			tfm.exec.chatMessage("Mice limit: "..message:sub(8).."",nil)
259
		end
260
	elseif(message:sub(1,3) == "msg") then
261
		if name == "Reksai_void2600#6638" or name == "Ashearcher#0000" then
262-
			tfm.exec.chatMessage("<font color='#7D00EF'><b>• [Kai'Sa]</b> "..message:sub(5).."",nil)
262+
			tfm.exec.chatMessage("<font color='#D7CF08'><b>• [Kazarina]</b> "..message:sub(5).."",nil)
263-
		elseif name == "Ashearcher#0000" then
263+
264-
			tfm.exec.chatMessage("<font color='#D7CF08'><b>• [Kazarina]</b> "..message:sub(5).."",nil) end
264+
265
		tfm.exec.chatMessage("<N>"..text.textHelp.."",name)
266
	elseif message == "cmd" then
267
		tfm.exec.chatMessage("<N>"..text.textCmd.."",name)
268
	else
269
		if vivo == 2 then
270
		if not tfm.get.room.playerList[name].isShaman then
271
			data[name].vote=string.upper(message)
272
			tfm.exec.chatMessage(""..text.textVote.."",name)
273
		end
274
		end
275
	end end
276
end
277
function eventNewGame()
278
	rcount=0;
279
	ui.removeTextArea(27,nil)
280
	tfm.exec.setGameTime(63)
281
	vivo=0;
282
	modo="desativado"
283
	tempa=19
284
	votos=0;
285
	t=false;
286
	f=false;
287
	segundos=0;
288
	min1=0
289
	min3=0
290
	seg1=0
291
	seg2=0
292
	for name,player in pairs(tfm.get.room.playerList) do
293
	    if name:sub(1,1) == "*" then
294
            tfm.exec.killPlayer(name)
295
            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)
296
        end
297
		data[name].vote=""
298
		vivo=vivo+1
299
		if tfm.get.room.playerList[name].isShaman then
300
			tfm.exec.setPlayerScore(name,-2,false)
301
			vivo=vivo-1
302
		end
303
	end
304
	obterJogadores()
305
end
306
function eventLoop(pass,tempo)
307
	if af == true then
308
		if modo == "pergunta" then
309
			tfm.exec.chatMessage("["..pass.."]<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>",nil)
310
		end
311
	end
312
	local pass2=tempo/1000
313
	lt=lt+1
314
	if lt >= 1200 then
315
		if tfm.get.room.community == "br" then
316
			tfm.exec.chatMessage("<R>"..text.textLt.."",nil)
317
			lt=0
318
		end
319
	end
320
	if tfm.get.room.currentMap == "@7277839" then
321
		tfm.exec.setGameTime(63)
322
	end
323
	if lock == true then
324
		tfm.exec.setGameTime(tempo/950)
325
	end
326
	loop=loop+0.5
327
	if pass >= 3000 and pass <= 179995 then
328
		if ratos < 6 then
329
			if tfm.get.room.currentMap == "@7417328" then
330
				tfm.exec.newGame("@7277839")
331
				tfm.exec.chatMessage("<R>"..text.mices.."",nil)
332
			end
333
		end
334
	end
335
	if ratos >= 6 then
336
		if tfm.get.room.currentMap == "@7277839" then
337
			changeMap()
338
		end
339
	end
340
	if min1 == minutos-1 then
341
		ui.addTextArea(125,"<font size='13'><font color='#ff0000'>   <font face='Segoe UI'>"..text.textArea1.." <b>"..min1..":"..seg1..""..seg2.."</b>                                                 "..text.textArea2.." <b>"..vivo.."</b>                                            "..text.textArea3.." <b>"..minutos.." min.</b>",nil,5,380,790,22,0,0,1.0,true)
342
	else
343
		ui.addTextArea(125,"<font size='13'><font color='#010101'>   <font face='Segoe UI'>"..text.textArea1.." <b>"..min1..":"..seg1..""..seg2.."</b>                                                 "..text.textArea2.." <b>"..vivo.."</b>                                            "..text.textArea3.." <b>"..minutos.." min.</b>",nil,5,380,790,22,0,0,1.0,true)
344
	end
345
	if loop == 1 then
346
		segundos=segundos+1
347
		seg2=seg2+1
348
		loop=0
349
	if seg2 >= 10 then
350
		seg2=0
351
		seg1=seg1+1
352
		if seg1 >= 6 then
353
			min1=min1+1
354
			seg1=0
355
			seg2=0
356
			end
357
			if min1 >= minutos then
358
				for name,player in pairs(tfm.get.room.playerList) do
359
					if tfm.get.room.playerList[name].isShaman then
360
						ui.addPopup(1,0,""..text.textTime.."",name,350,175,200,true)
361
						ui.addPopup(2,0,""..text.textTime.."",name,350,175,200,true)
362
					end
363
				end
364
				tfm.exec.chatMessage("<R>"..text.textTimeOut.."",nil)
365
				eventChatCommand("Reksai_void2600#6638","admin77")
366
			end
367
		end
368
	end
369
	tfm.exec.setUIMapName("True or False - RTM 1.122")
370-
	tfm.exec.setUIMapName("True or False - RTM 1.120")
370+
371
		tempa=tempa-0.5
372
	end
373
    for name,player in pairs(tfm.get.room.playerList) do
374
        if tfm.get.room.playerList[name].isShaman then
375
	   if tfm.get.room.currentMap == "@7417328" then
376
            if pass > 450 and pass < 1050 then
377
                tfm.exec.chatMessage("<VP>"..text.textGotShaman.."",name)
378
		tfm.exec.setPlayerScore(name,-2,false)
379
	     end
380
            end
381
        end
382
    end
383
	if tempa < 0.1 then
384
		modo="resposta"
385
		tempa=0
386
		for pn, p in pairs(tfm.get.room.playerList) do
387
			if p.y <= 220 then
388
				tfm.exec.killPlayer(pn)
389
			end
390
		end
391
	end
392
	if f == true then
393
		for pn, p in pairs(tfm.get.room.playerList) do
394
			if p.x >= 405 then
395
				tfm.exec.killPlayer(pn)
396
				modo="desativado"
397
			end
398
		end
399
		f=false;
400
	end
401
	if t == true then
402
		for pn, p in pairs(tfm.get.room.playerList) do
403
			if p.x <= 395 then
404
				tfm.exec.killPlayer(pn)
405
				modo="desativado"
406
			end
407
		end
408
		t=false;
409
	end
410
	if modo == "resposta" then
411
		tfm.exec.setGameTime(63)
412
		temp2=temp2-0.5
413
		if temp2 == 1 then
414
			modo="desativado"
415
			if resposta == "yes" then
416
				eventChatCommand("Reksai_void2600#6638","v5")
417
			else
418
				eventChatCommand("Reksai_void2600#6638","f5")
419
			end
420
			tempa=19
421
			temp2=3
422
			pergunta=""
423
			ui.removeTextArea(27,nil)
424
		end
425
	end
426
	if modo == "desativado" then
427
	if tempo < 60000 and tempo > 59400 then
428
		if pass > 10000 then
429
			for name,player in pairs(tfm.get.room.playerList) do
430
			if not tfm.get.room.playerList[name].isDead then
431
				tfm.exec.setPlayerScore(name,1,true)
432
			end
433
		end
434
		if vivo == 2 then
435
			tfm.exec.chatMessage("<R>"..text.textVoting.."",nil)
436
		end
437
	end
438
	end
439
if tfm.get.room.currentMap == "@7417328" then
440
	if vivo == 1 then
441
		if tempo < 59000 then
442
			better=string.upper(shaman)
443
			tfm.exec.setPlayerScore(shaman,8000,false)
444
			for name,player in pairs(tfm.get.room.playerList) do
445
				if data[name].vote == better then
446
					tfm.exec.setPlayerScore(name,2,true)
447
					tfm.exec.chatMessage(""..text.textBetWin.."",name)
448
				end
449
			end
450
			changeMap()
451
		end
452
	end
453
	if vivo <= 0 then
454
		tfm.exec.setGameTime(5)
455
		obterJogadores()
456
		changeMap()
457
		tfm.exec.chatMessage("<R>"..text.textNothing.."",nil)
458
	end
459
	if tempo < 500 then
460
		tfm.exec.setPlayerScore(players[math.random(#players)],1,true)
461
		for name,player in pairs(tfm.get.room.playerList) do
462
			if tfm.get.room.playerList[name].isShaman then
463
				ui.addPopup(1,0,""..text.textTime.."",name,350,175,200,true)
464
				ui.addPopup(2,0,""..text.textTime.."",name,350,175,200,true)
465
			end
466
		end
467
		tfm.exec.chatMessage("<R>"..text.textTimeLeave.."",nil)
468
		changeMap()
469
	end
470
	end
471
	end
472
	if modo == "troca" then
473
		obterJogadores()
474
		if tempo < 100 then
475
			changeMap()
476
		end
477
	end
478
	if vivo == 0 then
479
		shaman=""
480
	end
481
end
482
function eventPopupAnswer(id,name,answer)
483
	if id == 1 then
484
		if tfm.get.room.playerList[name].isShaman then
485
			if tfm.get.room.currentMap == "@7417328" then
486
				if string.len(answer) >= 174 then
487
					tfm.exec.chatMessage(""..text.textLongQuestion.."",name)
488
				elseif string.len(answer) <= 5 then
489
					tfm.exec.chatMessage(""..text.textShortQuestion.."",name)
490
				else
491
					pergunta=answer
492
					pcall(ui.addPopup(2,1,""..text.textTrueFalse.."",name,350,175,200,true))
493
				end
494
			end
495
		end
496
	end
497
	if id == 2 then
498
		resposta=tostring(answer)
499
		modo="pergunta"
500
		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)
501
		tfm.exec.chatMessage("<CH>"..pergunta.."",nil)
502
		tfm.exec.chatMessage("<BL>"..answer.."","Reksai_void2600#6638")
503
		tfm.exec.chatMessage("<BL>"..answer.."","Ashearcher#0000")
504
		tfm.exec.setGameTime(20)
505
		for name,player in pairs(tfm.get.room.playerList) do
506
			tfm.exec.movePlayer(name,400,102,false,1,1,false)
507
			if tfm.get.room.playerList[name].isShaman then
508
				tfm.exec.movePlayer(name,400,885,false,1,1,false)
509
			end
510
		end
511
	end
512
end
513
function eventPlayerDied(name)
514
	if not tfm.get.room.playerList[name].isShaman then
515
		vivo=vivo-1
516
	end
517
	local i=0
518
	local n
519
	for pname,player in pairs(tfm.get.room.playerList) do
520
		if not player.isDead and not player.isShaman then
521
			i=i+1
522
			n=pname
523
		end
524
	end
525
	if i==0 then
526
		-- não faça nada
527
	elseif i==1 then
528
		shaman=n;
529
	end
530
end
531
function changeMap()
532
	tfm.exec.newGame(mapa)
533
end
534
changeMap()