Advertisement
TheGeneX

BJQuiz

Jul 14th, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. options:
  2. premio: 50000000
  3. prefix: &6(BJQuiz)
  4. command /quiz [<text>] [<text>] [<text>]:
  5. trigger:
  6. if arg 1 is set:
  7. if arg 1 is not "resposta" or "iniciar":
  8. if player has permission "quiz.iniciar":
  9. send "{@prefix} &eUtilize o comando /quiz iniciar (resposta) (pergunta)"
  10. else:
  11. send "{@prefix} &eUtilize o comando /quiz resposta (resposta)"
  12. else:
  13. if player has permission "quiz.iniciar":
  14. send "{@prefix} &eUtilize o comando /quiz iniciar (resposta) (pergunta)"
  15. else:
  16. send "{@prefix} &eUtilize o comando /quiz resposta (resposta)"
  17. if arg 2 is set:
  18. if arg 1 is "resposta":
  19. if {evento.quiz} is true:
  20. if arg 2 is "%{quiz.resposta}%":
  21. send "{@prefix} &eVocê acertou, parabéns!"
  22. broadcast " "
  23. broadcast "{@prefix} &eO jogador &l%player% &eacertou a resposta."
  24. broadcast "{@prefix} &eE ganhou &2R$&a{@premio}"
  25. broadcast " "
  26. make console execute command "eco give %player% {@premio}"
  27. delete {evento.quiz}
  28. clear {quiz.resposta}
  29. else:
  30. send "{@prefix} &eResposta incorreta, tente novamente."
  31. else:
  32. send "{@prefix} &eO evento Quiz não está ocorrendo."
  33. if arg 1 is "iniciar":
  34. if player has permission "quiz.iniciar":
  35. if {evento.quiz} is not set:
  36. set {evento.quiz} to true
  37. set {quiz.resposta} to arg 2
  38. broadcast " "
  39. broadcast "{@prefix} &eO evento &lQUIZ&e está aberto"
  40. broadcast "{@prefix} &ePergunta: %arg 3%"
  41. broadcast "{@prefix} &ePara responder utilize /quiz resposta (resposta)"
  42. broadcast " "
  43. else:
  44. send "{@prefix} &eVocê não tem permissão para isso."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement