Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- # Nome do servidor
- Server: &f[&bQuiz&f]&f
- # Prêmio final
- Premio: 25000
- # Chamadas que irá fazer para o evento.
- Chamadas: 5
- # Delay entre as chamadas (SEGUNDOS)
- DelayChamadas: 1
- # Mensagens do evento (DEIXE "NULL" CASO QUEIRA DESABILITAR)
- linha1: "null"
- linha2: ""
- linha3: "&f[&bQuiz&f] &fEvento &bQuiz &fcomeçando."
- linha4: "&f[&bQuiz&f] &fUse &b/quiz participar &fpara participar."
- linha5: "&f[&bQuiz&f] &fChamadas restantes: &b%({chamadas} - loop-number)%/%{chamadas}%&f."
- linha6: ""
- Começou: "&f[&bQuiz&f] &fO evento &bQuiz &fcomeçou com &b%{_e}% &fjogadores."
- # Bloquear comandos ao entrar no evento
- BlockCmds: true
- # Comandos permitidos (CASO A OPÇÃO ACIMA SEJA TRUE)
- AllowedCmds: "g", "global", "money"
- # Perguntas
- # Tempo que os players vão ter para escolher a resposta.
- DelayEntreRespostas: 5
- Pergunta1: Cristóvão Colombo descobriu a américa.
- Pergunta1Resposta: true # true para SIM, false para NÃO;
- Pergunta2: 550 dividido por 5 é 115.
- Pergunta2Resposta: false # true para SIM, false para NÃO;
- Pergunta3: A primeira lei de Newton afirma que a força resultante que atua sobre um corpo é igual ao produto de sua massa.
- Pergunta3Resposta: false # true para SIM, false para NÃO;
- Pergunta4: Pergunta 4
- Pergunta4Resposta: true # true para SIM, false para NÃO;
- Pergunta5: Pergunta 5
- Pergunta5Resposta: true # true para SIM, false para NÃO;
- Pergunta6: Pergunta 6
- Pergunta6Resposta: true # true para SIM, false para NÃO;
- Pergunta7: Pergunta 7
- Pergunta7Resposta: true # true para SIM, false para NÃO;
- Pergunta8: Pergunta 8
- Pergunta8Resposta: true # true para SIM, false para NÃO;
- Pergunta9: Pergunta 9
- Pergunta9Resposta: true # true para SIM, false para NÃO;
- Pergunta10: Pergunta 10
- Pergunta10Resposta: true # true para SIM, false para NÃO;
- variables:
- {quiz} = false
- {quiz::start} = false
- on command:
- if sender is not console:
- if "%{quiz::players::q::*}%" contains "%player%":
- if {@BlockCmds} is true:
- if command is not {@AllowedCmds} or "quiz":
- if player is op:
- stop
- else:
- cancel event
- send "&cVocê não pode digitar esse comando no evento."
- function Perdeu():
- loop {quiz::players::q::*}:
- add 1 to {_x}
- set {_e} to "%loop-value%" parsed as player
- set {_y} to {quiz::%loop-value%}
- teleport {_e} to {quiz::entrada}
- set {_t1} to {@Pergunta1Resposta}
- set {_t2} to {@Pergunta2Resposta}
- set {_t3} to {@Pergunta3Resposta}
- set {_t4} to {@Pergunta4Resposta}
- set {_t5} to {@Pergunta5Resposta}
- set {_t6} to {@Pergunta6Resposta}
- set {_t7} to {@Pergunta7Resposta}
- set {_t8} to {@Pergunta8Resposta}
- set {_t9} to {@Pergunta9Resposta}
- set {_t10} to {@Pergunta10Resposta}
- broadcast "%loop-value% Q: %{quiz::players::q::*}%"
- broadcast "%loop-value% Y: %{_y}%"
- broadcast "%loop-value% T: %{_t%{quiz::pergunta}%}%"
- if "%{_y}%" is not "%{_t%{quiz::pergunta}%}%":
- remove "%{_e}%" from {quiz::players::q::*}
- delete {quiz::%{_e}%}
- teleport {_e} to {quiz::saida}
- #loop 100 times:
- # send "" to {_e}
- send "{@Server} Você perdeu o evento &bQuiz&f." to {_e}
- set {_x} to 0
- loop {quiz::players::q::*}:
- add 1 to {_x}
- if {_x} is less than or equal to 1:
- if {_x} is 1:
- Vencedor()
- else if {_x} is less than or equal to 0:
- broadcast "{@Server} O Evento &bQuiz&f foi encerrado, não houveram vencedores."
- set {quiz} to false
- set {quiz::start} to false
- clear {quiz::players::q::*}
- function Vencedor():
- loop {quiz::players::q::*}:
- set {_x} to "%loop-value%" parsed as player
- add {@Premio} to {_x}'s account
- set {quiz} to false
- set {quiz::start} to false
- loop {quiz::players::q::*}:
- set {_x} to "%loop-value-2%" parsed as player
- teleport {_x} to {quiz::saida}
- #loop 100 times:
- # send "" to {_x}
- send "&cVocê foi enviado ao spawn." to {_x}
- broadcast "{@Server} &b%{_x}% &fvenceu o evento quiz."
- broadcast "%{quiz::players::q::*}%"
- clear {quiz::players::q::*}
- stop
- function Vencedor2():
- set {_x} to 0
- loop {quiz::players::q::*}:
- add 1 to {_x}
- loop {quiz::players::q::*}:
- set {_x} to "%loop-value%" parsed as player
- add {@Premio} to {_x}'s account
- set {quiz} to false
- set {quiz::start} to false
- loop {quiz::players::q::*}:
- set {_x} to "%loop-value-2%" parsed as player
- teleport {_x} to {quiz::saida}
- #loop 100 times:
- # send "" to {_x}
- broadcast "{@Server} &b%{_x}% &fvenceu o evento quiz."
- broadcast "{@Server} houveram &b%{_x}% &fvencedores"
- send "&cVocê foi enviado ao spawn." to {_x}
- clear {quiz::players::q::*}
- stop
- clear {quiz::players::q::*}
- on quit:
- if "%{quiz::players::q::*}%" contains "%player%":
- remove "%player%" from {quiz::players::q::*}
- teleport player to {quiz::saida}
- every 1 minutes:
- loop all players:
- if {quiz::%loop-player%} is set:
- if {quiz} is true:
- delete {quiz::%loop-player%}
- on region enter:
- if "%{quiz::players::q::*}%" contains "%player%":
- set {_x} to "%region%"
- replace all "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z" and " " with "" in {_x}
- if {_x} is "1":
- send "&eVocê marcou a opção &aVERDADEIRO&c."
- set {quiz::%player%} to true
- else if {_x} is "2":
- send "&eVocê marcou a opção &cFALSO&c."
- set {quiz::%player%} to false
- broadcast "%{quiz::%player%}%"
- on region leave:
- if "%{quiz::players::q::*}%" contains "%player%":
- set {_x} to "%region%"
- replace all "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z" and " " with "" in {_x}
- if {_x} is "1":
- send "&eVocê desmarcou a opção &aVERDADEIRO&c."
- delete {quiz::%player%}
- else if {_x} is "2":
- send "&eVocê desmarcou a opção &cFALSO&c."
- delete {quiz::%player%}
- else:
- delete {quiz::%player%}
- command /quiz [<text>]:
- trigger:
- if arg 1 is set:
- if arg 1 is "participar", "setsaida" or "setentrada":
- if sender is console:
- send "&cSomente jogadores podem usar esse comando."
- stop trigger
- if arg 1 is "participar":
- if {quiz} is true:
- if {quiz::start} is false:
- if "%{quiz::players::q::*}%" contains "%player%":
- send "&cVocê já está no evento quiz!"
- stop
- else:
- teleport player to {quiz::entrada}
- send "&aVocê entrou no evento quiz, boa sorte."
- add "%player%" to {quiz::players::q::*}
- delete {quiz::%player%}
- else:
- send "&cO evento quiz já começou."
- else:
- send "&cO evento quiz não começou."
- else if arg 1 is "comecar" or "começar":
- if player is op:
- if {quiz::entrada} is set:
- if {quiz::saida} is set:
- if {quiz} is false:
- set {chamadas} to {@Chamadas}
- set {delay} to {@DelayChamadas}
- set {quiz} to true
- set {quiz::start} to false
- clear {quiz::players::q::*}
- loop {@Chamadas} times:
- if {@linha1} is not "null":
- broadcast {@linha1}
- if {@linha2} is not "null":
- broadcast {@linha2}
- if {@linha3} is not "null":
- broadcast {@linha3}
- if {@linha4} is not "null":
- broadcast {@linha4}
- if {@linha5} is not "null":
- broadcast {@linha5}
- if {@linha6} is not "null":
- broadcast {@linha6}
- wait {@DelayChamadas} seconds
- wait {@DelayChamadas} seconds
- set {_e} to 0
- loop {quiz::players::q::*}:
- add 1 to {_e}
- if {_e} is less than or equal to 1:
- broadcast "&cO evento quiz foi cancelado por não possuir jogadores o suficiente."
- set {quiz} to false
- set {quiz::start} to false
- loop {quiz::players::q::*}:
- set {_x} to "%loop-value%" parsed as players
- teleport {_x} to {quiz::saida}
- send "&cVocê foi enviado ao spawn."
- clear {quiz::players::q::*}
- else:
- broadcast ""
- broadcast {@Começou}
- broadcast ""
- set {quiz::start} to true
- loop {quiz::players::q::*}:
- set {_x} to "%loop-value%" parsed as player
- teleport {_x} to {quiz::entrada}
- send "&aO evento começou." to {_x}
- send ""
- send "{@Server} Pergunta 1: {@Pergunta1}"
- send "{@Server} Você acha que ela é &aVERDADEIRA &fou &cFALSA&f?"
- send ""
- set {quiz::pergunta} to 1
- set {_e} to 0
- loop {quiz::players::q::*}:
- add 1 to {_e}
- if {_e} is more than or equal to 2:
- wait {@DelayEntreRespostas} seconds
- Perdeu()
- loop {quiz::players::q::*}:
- delete {quiz::%loop-value-2%}
- send ""
- send "{@Server} Pergunta 2: {@Pergunta2}"
- send "{@Server} Você acha que ela é &aVERDADEIRA &fou &cFALSA&f?"
- send ""
- set {quiz::pergunta} to 2
- set {_e} to 0
- loop {quiz::players::q::*}:
- add 1 to {_e}
- if {_e} is more than or equal to 2:
- wait {@DelayEntreRespostas} seconds
- Perdeu()
- loop {quiz::players::q::*}:
- delete {quiz::%loop-value-2%}
- send ""
- send "{@Server} Pergunta 3: {@Pergunta3}"
- send "{@Server} Você acha que ela é &aVERDADEIRA &fou &cFALSA&f?"
- send ""
- set {quiz::pergunta} to 3
- set {_e} to 0
- loop {quiz::players::q::*}:
- add 1 to {_e}
- if {_e} is more than or equal to 2:
- wait {@DelayEntreRespostas} seconds
- Perdeu()
- loop {quiz::players::q::*}:
- delete {quiz::%loop-value-2%}
- send ""
- send "{@Server} Pergunta 4: {@Pergunta4}"
- send "{@Server} Você acha que ela é &aVERDADEIRA &fou &cFALSA&f?"
- send ""
- set {quiz::pergunta} to 4
- set {_e} to 0
- loop {quiz::players::q::*}:
- add 1 to {_e}
- if {_e} is more than or equal to 2:
- wait {@DelayEntreRespostas} seconds
- Perdeu()
- loop {quiz::players::q::*}:
- delete {quiz::%loop-value-2%}
- send ""
- send "{@Server} Pergunta 5: {@Pergunta5}"
- send "{@Server} Você acha que ela é &aVERDADEIRA &fou &cFALSA&f?"
- send ""
- set {quiz::pergunta} to 5
- set {_e} to 0
- loop {quiz::players::q::*}:
- add 1 to {_e}
- if {_e} is more than or equal to 2:
- wait {@DelayEntreRespostas} seconds
- Perdeu()
- loop {quiz::players::q::*}:
- delete {quiz::%loop-value-2%}
- send ""
- send "{@Server} Pergunta 6: {@Pergunta6}"
- send "{@Server} Você acha que ela é &aVERDADEIRA &fou &cFALSA&f?"
- send ""
- set {quiz::pergunta} to 6
- set {_e} to 0
- loop {quiz::players::q::*}:
- add 1 to {_e}
- if {_e} is more than or equal to 2:
- wait {@DelayEntreRespostas} seconds
- Perdeu()
- loop {quiz::players::q::*}:
- delete {quiz::%loop-value-2%}
- send ""
- send "{@Server} Pergunta 7: {@Pergunta7}"
- send "{@Server} Você acha que ela é &aVERDADEIRA &fou &cFALSA&f?"
- send ""
- set {quiz::pergunta} to 7
- set {_e} to 0
- loop {quiz::players::q::*}:
- add 1 to {_e}
- if {_e} is more than or equal to 2:
- wait {@DelayEntreRespostas} seconds
- Perdeu()
- loop {quiz::players::q::*}:
- delete {quiz::%loop-value-2%}
- send ""
- send "{@Server} Pergunta 8: {@Pergunta8}"
- send "{@Server} Você acha que ela é &aVERDADEIRA &fou &cFALSA&f?"
- send ""
- set {quiz::pergunta} to 8
- set {_e} to 0
- loop {quiz::players::q::*}:
- add 1 to {_e}
- if {_e} is more than or equal to 2:
- wait {@DelayEntreRespostas} seconds
- Perdeu()
- loop {quiz::players::q::*}:
- delete {quiz::%loop-value-2%}
- send ""
- send "{@Server} Pergunta 9: {@Pergunta9}"
- send "{@Server} Você acha que ela é &aVERDADEIRA &fou &cFALSA&f?"
- send ""
- set {quiz::pergunta} to 9
- set {_e} to 0
- loop {quiz::players::q::*}:
- add 1 to {_e}
- if {_e} is more than or equal to 2:
- wait {@DelayEntreRespostas} seconds
- Perdeu()
- loop {quiz::players::q::*}:
- delete {quiz::%loop-value-2%}
- send ""
- send "{@Server} Pergunta 10: {@Pergunta10}"
- send "{@Server} Você acha que ela é &aVERDADEIRA &fou &cFALSA&f?"
- send ""
- set {quiz::pergunta} to 10
- set {_e} to 0
- loop {quiz::players::q::*}:
- add 1 to {_e}
- wait {@DelayEntreRespostas} seconds
- Perdeu()
- loop {quiz::players::q::*}:
- delete {quiz::%loop-value-2%}
- if {_e} is more than or equal to 2:
- Vencedor2()
- else:
- Vencedor()
- else:
- Vencedor()
- else:
- Vencedor()
- else:
- Vencedor()
- else:
- Vencedor()
- else:
- Vencedor()
- else:
- Vencedor()
- else:
- Vencedor()
- else:
- Vencedor()
- else:
- Vencedor()
- else:
- send "&cO evento quiz já começou. use /quiz cancelar para cancelar."
- else:
- send "&cVocê não definiu o ponto de saida, use /quiz setsaida para definir."
- else:
- send "&cVocê não definiu o ponto de nascimento, use /quiz setentrada para definir."
- else:
- send "&cSem permissão."
- else if arg 1 is "cancelar" or "parar":
- if player is op:
- if {quiz} is true:
- if {quiz::saida} is set:
- set {quiz} to false
- set {quiz::start} to false
- loop {quiz::players::q::*}:
- set {_x} to "%loop-value%" parsed as players
- teleport {_x} to {quiz::saida}
- send "&cVocê foi enviado ao spawn." to {_x}
- clear {quiz::players::q::*}
- broadcast "&cO evento quiz foi encerrado por um administrador."
- else:
- send "&cVocê não definiu o ponto de saida, use /quiz setsaida para definir."
- else:
- send "&cO quiz não está rolando."
- else:
- send "&cSem permissão."
- else if arg 1 is "setentrada":
- if player is op:
- if block under player is not air:
- send "&aPonto de entrada do evento Quiz definido com sucesso."
- set {quiz::entrada} to player's location
- else:
- send "&cO bloco abaixo de você é AR, você não pode definir um spawnpoint voando."
- else:
- send "&cSem permissão."
- else if arg 1 is "setsaida":
- if player is op:
- if block under player is not air:
- send "&aPonto de saida do evento Quiz definido com sucesso."
- set {quiz::saida} to player's location
- else:
- send "&cO bloco abaixo de você é AR, você não pode definir um spawnpoint voando."
- else:
- send "&cSem permissão."
- else:
- if player is op:
- send "&cUse /quiz (participar, comecar, cancelar, setentrada, setsaida)"
- else:
- send "&cUse /quiz (participar)"
- else:
- if player is op:
- send "&cUse /quiz (participar, comecar, cancelar, setentrada, setsaida)"
- else:
- send "&cUse /quiz (participar)"
Advertisement
Add Comment
Please, Sign In to add comment