Advertisement
laivytkill

Untitled

Aug 15th, 2020
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.91 KB | None | 0 0
  1. options:
  2. # Nome do servidor
  3. Server: &f[&bEvento&f]&f
  4.  
  5. # Prêmio final
  6. Premio: 25000
  7.  
  8. # Chamadas que irá fazer para o evento.
  9. Chamadas: 5
  10.  
  11. # Delay entre as chamadas (SEGUNDOS)
  12. DelayChamadas: 1
  13.  
  14. # Mensagens do evento (DEIXE "NULL" CASO QUEIRA DESABILITAR)
  15. linha1: "null"
  16. linha2: ""
  17. linha3: "&f[&bEvento&f]&f &fEvento &bLabirinto &fcomeçando."
  18. linha4: "&f[&bEvento&f]&f &fUse &b/labirinto &fpara participar."
  19. linha5: "&f[&bEvento&f]&f &fChamadas restantes: &b%({chamadas} - loop-number)%/%{chamadas}%&f."
  20. linha6: ""
  21.  
  22. Começou: "&f[&bLabirinto&f] &fO evento &bLabirinto &fcomeçou com &b%{_e}% &fjogadores."
  23.  
  24. # Bloquear comandos ao entrar no evento
  25. BlockCmds: true
  26.  
  27. # Comandos permitidos (CASO A OPÇÃO ACIMA SEJA TRUE)
  28. AllowedCmds: "g", "global", "money"
  29.  
  30.  
  31.  
  32. on command:
  33. if sender is not console:
  34. if "%{labirinto::players::*}%" contains "%player%":
  35. if {@BlockCmds} is true:
  36. if command is not {@AllowedCmds} or "labirinto":
  37. if player is op:
  38. stop
  39. else:
  40. cancel event
  41. send "&cVocê não pode digitar esse comando no evento."
  42. variables:
  43. {evento::labirinto} = false
  44. {evento::labirinto::started} = false
  45. on sign edit:
  46. if line 1 of event-block is "labirinto":
  47. if player is op:
  48. set line 1 of event-block to "[Labirinto]"
  49. set line 2 of event-block to "Clique para"
  50. set line 3 of event-block to "Ganhar"
  51. set line 4 of event-block to "-----------"
  52. on rightclick on sign:
  53. if "%{labirinto::players::*}%" contains "%player%":
  54. if line 1 of event-block is "[Labirinto]":
  55. loop {labirinto::players::*}:
  56. set {_x} to "%loop-value%" parsed as player
  57. teleport {_x} to {evento::labirinto::saida}
  58. set {evento::labirinto} to false
  59. set {evento::labirinto::started} to false
  60. clear {labirinto::players::*}
  61. broadcast ""
  62. broadcast "{@Server} &b%player% &fvenceu o evento! parabêns."
  63. broadcast ""
  64. add {@Premio} to player's account
  65. on load:
  66. set {evento::labirinto} to false
  67. set {evento::labirinto::started} to false
  68. command /labirinto [<text>]:
  69. trigger:
  70. if arg 1 is set:
  71. if arg 1 is "comecar" or "começar":
  72. if {evento::labirinto} is false:
  73. set {chamadas} to {@Chamadas}
  74. set {delay} to {@DelayChamadas}
  75. set {evento::labirinto} to true
  76. set {evento::labirinto::started} to false
  77. clear {labirinto::players::*}
  78. loop {@Chamadas} times:
  79. if {@linha1} is not "null":
  80. broadcast {@linha1}
  81. if {@linha2} is not "null":
  82. broadcast {@linha2}
  83. if {@linha3} is not "null":
  84. broadcast {@linha3}
  85. if {@linha4} is not "null":
  86. broadcast {@linha4}
  87. if {@linha5} is not "null":
  88. broadcast {@linha5}
  89. if {@linha6} is not "null":
  90. broadcast {@linha6}
  91. wait {@DelayChamadas} seconds
  92. wait {@DelayChamadas} seconds
  93. set {evento::labirinto::started} to true
  94. loop {labirinto::players::*}:
  95. add 1 to {_x}
  96. if {_x} is less than or equal to 1:
  97. set {evento::labirinto} to false
  98. set {evento::labirinto::started} to false
  99. clear {labirinto::players::*}
  100. broadcast ""
  101. broadcast "{@Server} &fO evento foi cancelado por falta de jogadores."
  102. broadcast ""
  103. stop
  104. else:
  105. loop {labirinto::players::*}:
  106. set {_x} to "%loop-value%" parsed as player
  107. teleport {_x} to {evento::labirinto::entrada}
  108. broadcast ""
  109. broadcast "{@Server} &fO evento foi iniciado com sucesso, boa sorte a todos."
  110. broadcast ""
  111. else:
  112. send "&cO evento já está ocorrendo nesse momento."
  113. else if arg 1 is "cancelar" or "finalizar":
  114. if player is op:
  115. if {evento::labirinto} is true:
  116. loop {labirinto::players::*}:
  117. set {_x} to "%loop-value%" parsed as player
  118. teleport {_x} to {evento::labirinto::saida}
  119. set {evento::labirinto} to false
  120. set {evento::labirinto::started} to false
  121. clear {labirinto::players::*}
  122. broadcast ""
  123. broadcast "{@Server} &fO evento foi cancelado por um administrador."
  124. broadcast ""
  125. stop
  126. else:
  127. send "&cO evento não está ocorrendo no momento."
  128. else:
  129. send "&cSem permissão."
  130. else if arg 1 is "setentrada":
  131. if player is op:
  132. set {evento::labirinto::entrada} to player's location
  133. send "&aVocê definiu o local de spawn do evento para o seu local."
  134. else:
  135. send "&cSem permissão."
  136. else if arg 1 is "setsaida":
  137. if player is op:
  138. set {evento::labirinto::saida} to player's location
  139. send "&aVocê definiu o local de saida do evento para o seu local."
  140. else:
  141. send "&cSem permissão."
  142. else:
  143. if {evento::labirinto} is true:
  144. if {evento::labirinto::started} is false:
  145. add "%player%" to {labirinto::players::*}
  146. send "&fVocê se alistou no evento &bLabirinto&f."
  147. else:
  148. send "&cO evento já começou."
  149. else:
  150. send "&cO evento não está ocorrendo nesse momento."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement