SHOW:
|
|
- or go back to the newest paste.
| 1 | # Skript Feito Por zTey4i20 # | |
| 2 | # Canal no youtube: zTeyvolzZ PvP # | |
| 3 | # Skype: anony.killer # | |
| 4 | # Bom uso :) # | |
| 5 | ||
| 6 | options: | |
| 7 | # Aviso 1 de inicio # | |
| 8 | Avs1: &d[CuboGigante] Iniciando agora o CuboGigante! | |
| 9 | # Aviso a baixo do aviso 1 # | |
| 10 | Avs2: &d[CuboGigante] Para entrar digite: &f/cubogigante entrar&d! | |
| 11 | # Aviso a baixo do aviso 2 # | |
| 12 | Avs3: &d[CuboGigante] &dEste evento é com risco de morte &2ON | |
| 13 | # Aviso a baixo do aviso 3 # | |
| 14 | Avs4: &d[CuboGigante] &dFechando teleporte para o evento em 2 minutos! | |
| 15 | # Aviso De 1 minuto # | |
| 16 | Avs5: &d[CuboGigante] &dFechando teleporte para o evento em 1 minuto! | |
| 17 | # Aviso De CuboGigante iniciado # | |
| 18 | Avs6: &d[CuboGigante] EVENTO INICIADO! | |
| 19 | # Nome da region que ativará pvp ! # | |
| 20 | region: cubo | |
| 21 | # Permissão para abrir o evento # | |
| 22 | Permission: cubogigante.iniciar | |
| 23 | # Permissão para setar entrada do evento # | |
| 24 | Permission2: cuboset.admin | |
| 25 | # Area para poder minerar # | |
| 26 | AreaBuild: cubobuild | |
| 27 | ||
| 28 | command /cubo [<text>]: | |
| 29 | trigger: | |
| 30 | if arg 1 is "setentrada": | |
| 31 | if player has permission "{@Permission2}":
| |
| 32 | set {cubo.gigante} to location of player
| |
| 33 | send "&aEntrada setada com sucesso." | |
| 34 | stop | |
| 35 | if arg 1 is "setsaida": | |
| 36 | if player has permission "{@Permission2}":
| |
| 37 | set {cubo.saida} to location of player
| |
| 38 | send "&aSaída setada com sucesso." | |
| 39 | stop | |
| 40 | if arg 1 is "iniciar": | |
| 41 | if player has permission "{@Permission2}":
| |
| 42 | if {cubo.iniciado} is true:
| |
| 43 | send "&cCubo Gigante já foi iniciado." | |
| 44 | stop | |
| 45 | else: | |
| 46 | set {cubo.iniciado} to true
| |
| 47 | broadcast "{@Avs1}"
| |
| 48 | broadcast "{@Avs2}"
| |
| 49 | broadcast "{@Avs3}"
| |
| 50 | broadcast "{@Avs4}"
| |
| 51 | wait 60 seconds | |
| 52 | broadcast "{@Avs1}"
| |
| 53 | broadcast "{@Avs2}"
| |
| 54 | broadcast "{@Avs3}"
| |
| 55 | broadcast "{@Avs5}"
| |
| 56 | wait 60 seconds | |
| 57 | broadcast "{@Avs6}"
| |
| 58 | broadcast "{@Avs6}"
| |
| 59 | broadcast "{@Avs6}"
| |
| 60 | make player execute command "/rg flag {@region} pvp allow"
| |
| 61 | make player execute command "/rg flag {@AreaBuild} build allow"
| |
| 62 | stop | |
| 63 | if arg 1 is "finalizar": | |
| 64 | if player has permission "{@Permission2}":
| |
| 65 | if {cubo.iniciado} is true:
| |
| 66 | set {cubo.iniciado} to false
| |
| 67 | teleport {cubo.jaestou::*} to {cubo.saida}
| |
| 68 | remove player from {cubo.jaestou::*}
| |
| 69 | make console execute command "/mrl reset CuboGigante" | |
| 70 | broadcast "&d[CuboGigante] EVENTO FINALIZADO!" | |
| 71 | broadcast "&d[CuboGigante] Continue com um bom jogo :)" | |
| 72 | stop | |
| 73 | else: | |
| 74 | if {cubo.iniciado} is false:
| |
| 75 | send "&cCubo Gigante não foi iniciado." | |
| 76 | stop | |
| 77 | ||
| 78 | command /cubogigante [<text>]: | |
| 79 | trigger: | |
| 80 | if arg 1 is "entrar": | |
| 81 | if {cubo.iniciado} is true:
| |
| 82 | - | if {cubo.jaestou::*} is not set:
|
| 82 | + | if {cubo.jaestou.%player%} is not set:
|
| 83 | - | add player to {cubo.jaestou::*}
|
| 83 | + | add player to {cubo.jaestou.%player%}
|
| 84 | teleport player to {cubo.gigante}
| |
| 85 | send "&aVocê entrou no Cubo Gigante." | |
| 86 | else: | |
| 87 | send "&cVocê já está no evento Cubo Gigante." | |
| 88 | stop | |
| 89 | else: | |
| 90 | send "&cCubo Gigante não foi iniciado." | |
| 91 | stop | |
| 92 | if arg 1 is "sair": | |
| 93 | if {cubo.iniciado} is true:
| |
| 94 | - | if {cubo.jaestou::*} is set:
|
| 94 | + | if {cubo.jaestou.%player%} is set:
|
| 95 | remove player from {cubo.jaestou.%player%}
| |
| 96 | teleport player to {cubo.saida}
| |
| 97 | send "&aVocê saiu do Cubo Gigante." | |
| 98 | stop | |
| 99 | else: | |
| 100 | send "&cVocê não está no evento Cubo Gigante." | |
| 101 | stop | |
| 102 | else: | |
| 103 | send "&cCubo Gigante não foi iniciado." | |
| 104 | stop | |
| 105 | if arg 1 is "comandos": | |
| 106 | if player has permission "{@Permission2}":
| |
| 107 | send "&b/cubo setentrada &7>> Setar arena do cubo." | |
| 108 | send "&b/cubo setsaida &7>> Setar saída da arena cubo." | |
| 109 | send "&b/cubo iniciar &7>> Iniciar o evento cubo." | |
| 110 | send "&b/cubo finalizar &7>> Finalizar evento cubo." | |
| 111 | send "&b/cubo entrar &7>> Entrar no cubo." | |
| 112 | send "&b/cubo sair &7>> Sair do cubo." | |
| 113 | stop |