Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- # Nome do servidor
- Server: &f[&bEvento&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[&bEvento&f]&f &fEvento &bLabirinto &fcomeçando."
- linha4: "&f[&bEvento&f]&f &fUse &b/labirinto &fpara participar."
- linha5: "&f[&bEvento&f]&f &fChamadas restantes: &b%({chamadas} - loop-number)%/%{chamadas}%&f."
- linha6: ""
- Começou: "&f[&bLabirinto&f] &fO evento &bLabirinto &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"
- on command:
- if sender is not console:
- if "%{labirinto::players::*}%" contains "%player%":
- if {@BlockCmds} is true:
- if command is not {@AllowedCmds} or "labirinto":
- if player is op:
- stop
- else:
- cancel event
- send "&cVocê não pode digitar esse comando no evento."
- variables:
- {evento::labirinto} = false
- {evento::labirinto::started} = false
- on sign edit:
- if line 1 of event-block is "labirinto":
- if player is op:
- set line 1 of event-block to "[Labirinto]"
- set line 2 of event-block to "Clique para"
- set line 3 of event-block to "Ganhar"
- set line 4 of event-block to "-----------"
- on rightclick on sign:
- if "%{labirinto::players::*}%" contains "%player%":
- if line 1 of event-block is "[Labirinto]":
- loop {labirinto::players::*}:
- set {_x} to "%loop-value%" parsed as player
- teleport {_x} to {evento::labirinto::saida}
- set {evento::labirinto} to false
- set {evento::labirinto::started} to false
- clear {labirinto::players::*}
- broadcast ""
- broadcast "{@Server} &b%player% &fvenceu o evento! parabêns."
- broadcast ""
- add {@Premio} to player's account
- on load:
- set {evento::labirinto} to false
- set {evento::labirinto::started} to false
- command /labirinto [<text>]:
- trigger:
- if arg 1 is set:
- if arg 1 is "comecar" or "começar":
- if {evento::labirinto} is false:
- set {chamadas} to {@Chamadas}
- set {delay} to {@DelayChamadas}
- set {evento::labirinto} to true
- set {evento::labirinto::started} to false
- clear {labirinto::players::*}
- 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 {evento::labirinto::started} to true
- loop {labirinto::players::*}:
- add 1 to {_x}
- if {_x} is less than or equal to 1:
- set {evento::labirinto} to false
- set {evento::labirinto::started} to false
- clear {labirinto::players::*}
- broadcast ""
- broadcast "{@Server} &fO evento foi cancelado por falta de jogadores."
- broadcast ""
- stop
- else:
- loop {labirinto::players::*}:
- set {_x} to "%loop-value%" parsed as player
- teleport {_x} to {evento::labirinto::entrada}
- broadcast ""
- broadcast "{@Server} &fO evento foi iniciado com sucesso, boa sorte a todos."
- broadcast ""
- else:
- send "&cO evento já está ocorrendo nesse momento."
- else if arg 1 is "cancelar" or "finalizar":
- if player is op:
- if {evento::labirinto} is true:
- loop {labirinto::players::*}:
- set {_x} to "%loop-value%" parsed as player
- teleport {_x} to {evento::labirinto::saida}
- set {evento::labirinto} to false
- set {evento::labirinto::started} to false
- clear {labirinto::players::*}
- broadcast ""
- broadcast "{@Server} &fO evento foi cancelado por um administrador."
- broadcast ""
- stop
- else:
- send "&cO evento não está ocorrendo no momento."
- else:
- send "&cSem permissão."
- else if arg 1 is "setentrada":
- if player is op:
- set {evento::labirinto::entrada} to player's location
- send "&aVocê definiu o local de spawn do evento para o seu local."
- else:
- send "&cSem permissão."
- else if arg 1 is "setsaida":
- if player is op:
- set {evento::labirinto::saida} to player's location
- send "&aVocê definiu o local de saida do evento para o seu local."
- else:
- send "&cSem permissão."
- else:
- if {evento::labirinto} is true:
- if {evento::labirinto::started} is false:
- add "%player%" to {labirinto::players::*}
- send "&fVocê se alistou no evento &bLabirinto&f."
- else:
- send "&cO evento já começou."
- else:
- send "&cO evento não está ocorrendo nesse momento."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement