Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Skript : DCSBoss
- # Versão : 1.0
- # Autor : Epiic/Junior
- # Forum Gamers Board (:
- # #! ==========================================================================!# #
- # #! # # # # # # _-_-_-==CONFIGURE DE ACORDO COM SEU GOSTO==-_-_-_ # # # # # # !# #
- # #! ==========================================================================!# #
- options:
- # #! ------------- CONFIGURAÇAO DO EVENTO -------------- !# #
- # PREFIXO DAS MENSAGENS
- Prefix: &3[&c&lBoss&3]
- # MENSAGEM PARA PLAYERS SEM PERMISSÃO
- MsgPermi: &cVoce não tem permissão.
- # PERMISSÃO PARA ADMINS SETAR/FINALIZAR O EVENTO
- Permi: boss.admin
- # BLOQUEAR COMANDOS NO EVENTO ? TRUE PARA SIM E FALSE PARA NAO
- BloquearComando: true
- NaoPodeUsarComando: &c&lVocê não pode usar esse comando no evento.
- # DELAY PARA O BOSS SPAWNAR APOSS O INICIO DO EVENTO
- TempoSpawn: 60
- # COLOCA NO LEGEND CHAT {dcboss} PARA ATIVAR A TAG AO VENCEDOR
- lc: dcboss
- # TEG PARA O VENCEDOR DO EVENTO
- lctag: &3&l[&c&lBoss&3&l] &r
- # NOME DOS ITENS DROPADO PELO BOSS E O BOSS SEGUNDARIO
- NomeItemBoss: &7&m[&r &3&lITEM DO BOSS &7&m]
- NomItemBoss2: &7&m[&r &3&lITEM DO MiniBOSS &7&m]
- # "MENSAGENS"
- ESetada: &a&lEntrada setada com sucesso.
- SSetada: &a&lSaida setada com sucesso.
- BSetado: &a&lSpawn do boss setado com sucesso.
- EventoJaOcorrendo: &c&lJa tem um evento ocorrendo.
- JaEsta: &c&lVocê ja está no evento.
- NaoAberto: &c&lO Evento não esta ocorrendo.
- Entrou: &b&lVocê entrou no evento, boa sorte !
- # #! ---------- CONFIGURAÇAO DO BOSS PRINCIPAL ---------- !# #
- # ITENS DE SPAWN DO BOSS / APENAS PARA ALGUNS MOBS /
- PeitoBoss: diamond chestplate of protection 4
- CalçaBoss: diamond leggings of protection 4
- BotaBoss: diamond boots of protection 4
- CapaceteBoss: diamond helmet of protection 4
- EspadaBoss: diamond sword of sharpness 5
- # ITENS QUE O BOSS IRA DROPAR AO MORRER
- DropBoss1: diamond helmet of protection 4
- DropBoss2: diamond chestplate of protection 4
- DropBoss3: diamond leggings of protection 4
- DropBoss4: diamond boots of protection 4
- DropBoss5: diamond sword of sharpness
- # QUANTIDADE DE ITENS QUE ELE VAI DROPAR / QuantidadeDrop1 = DropBoss1 ...
- QuantidadeDrop1: 1
- QuantidadeDrop2: 1
- QuantidadeDrop3: 1
- QuantidadeDrop4: 1
- QuantidadeDrop5: 1
- # NOME DO BOSS
- NomeDoBoss: &4&l× BOOOS ×
- # MOB QUE SERA O BOSS
- TipoDoBoss: zombie pigman
- # VIDA QUE O BOSS TERA
- VidaDoBoss: 700
- # #! ---------- CONFIGURAÇAO DO BOSS SEGUNDARIO ---------- !# #
- # #! - TEM UMA % DELE SPAWNAR AO HITAR O BOSS PRINCIPAL - !# #
- # MOB QUE SERA O BOSS SEGUNDARIO
- TipoDoBoss2: silverfish
- # VIDA DO BOSS SEGUNDARIO
- VidaDoBoss2: 70
- # NOME DO BOSS SEGUNDARIO
- NomeDoBoss2: &e&lMinions
- # ITENS QUE O BOSS SEGUNDARIO IRA DROPAR AO MORRER
- DropMiniBoss1: diamond
- DropMiniBoss2: gold ingot
- DropMiniBoss3: diamond block
- DropMiniBoss4: gold block
- DropMiniBoss5: diamond sword of sharpness 2
- command /boss [<text>]:
- trigger:
- if arg 1 is not "?" or "ajuda" or "help" or "duvidas" or "comandos" or "setentrada" or "setsaida" or "setboss" or "debug" or "iniciar" or "cancelar":
- if player has permission "{@Permi}":
- send "{@Prefix} &cComando invalido, use: /boss ajuda"
- stop
- else:
- send "{@Prefix} &cComando invalido."
- if arg 1 is "?" or "ajuda" or "help" or "duvidas" or "comandos":
- if player has permission "{@Permi}":
- send " "
- send "{@Prefix} &b&lEvento Boss &d&lAjuda / Comandos."
- send " "
- send "{@Prefix} &f&l/boss setentrada &7- &aseta entrada."
- send "{@Prefix} &f&l/boss setsaida &7- &aseta saida."
- send "{@Prefix} &f&l/boss setboss &7- &aseta spawn do boss."
- send "{@Prefix} &f&l/boss iniciar &7- &ainicia o evento."
- send "{@Prefix} &f&l/boss cancelar &7- &acancela o evento."
- send "{@Prefix} &f&l/boss debug &7- &adesbuga o evento."
- send "{@Prefix} &f&l/boss ajuda &7- &ave os comandos."
- send "{@Prefix} &f&l/boss &7- &aentra no evento."
- send " "
- else:
- send "{@Prefix} {@MsgPermi}"
- if arg 1 is "setentrada":
- if player has permission "{@Permi}":
- set {bentrada} to player's location
- send "{@Prefix} {@ESetada}"
- stop
- else:
- send "{@Prefix} {@MsgPermi}"
- if arg 1 is "setsaida":
- if player has permission "{@Permi}":
- set {bsaida} to player's location
- send "{@Prefix} {@SSetada}"
- stop
- else:
- send "{@Prefix} {@MsgPermi}"
- if arg 1 is "setboss":
- if player has permission "{@Permi}":
- set {bboss} to player's location
- send "{@Prefix} {@BSetado}"
- stop
- else:
- send "{@Prefix} {@MsgPermi}"
- if arg 1 is "debug":
- if player has permission "{@Permi}":
- loop {boss.players::*}:
- teleport all players to {bsaida}
- wait 5 tick
- clear {boss.players::*}
- set {boss.iniciado} to false
- send "{@Prefix} &aEvento desbugado."
- else:
- send "{@Prefix} {@MsgPermi}"
- if arg 1 is "cancelar":
- if player has permission "{@Permi}":
- if {boss.iniciado} is true:
- set {boss.iniciado} to false
- loop {boss.players::*}:
- teleport all players to {bsaida}
- wait 2 tick
- clear {boss.players::*}
- broadcast "{@Prefix} &b&lEVENTO CANCELADO POR UM ADMIN"
- else:
- send "{@Prefix} &c&lO Evento não está ocorrendo"
- else:
- send "{@Prefix} {@MsgPermi}"
- if arg 1 is "iniciar":
- if player has permission "{@Permi}":
- if {boss.iniciado} is true:
- send "{@Prefix} {@EventoJaOcorrendo}"
- stop
- else:
- set {boss.iniciado} to true
- clear {boss.players::*}
- broadcast ""
- broadcast "{@Prefix} &b&lEvento &c&lBoss &b&laberto..."
- broadcast "{@Prefix} &b&luse: &c&l/boss"
- broadcast "{@Prefix} &b&lSpawnando em {@TempoSpawn}s"
- broadcast ""
- wait {@TempoSpawn} seconds
- if {boss.iniciado} is true:
- spawn 1 {@TipoDoBoss} at {bboss}
- set name of spawned entity to "{@NomeDoBoss}"
- set max health of spawned entity to {@VidaDoBoss}
- heal the spawned entity by {@VidaDoBoss} hearts
- set Chestplate of spawned entity to {@PeitoBoss}
- set leggings of spawned entity to {@CalçaBoss}
- set helmet of spawned entity to {@CapaceteBoss}
- stop
- else:
- send "{@Prefix} {@MsgPermi}"
- if arg 1 is not set:
- if {boss.iniciado} is true:
- if player is equal to {boss.players::*}:
- send "{@Prefix} {@JaEsta}"
- stop
- else:
- send "{@Prefix} &b&lAguarde &73 &b&lsegundos."
- set {_y} to rounded y coordinate of player
- set {_x} to rounded x coordinate of player
- set {_z} to rounded z coordinate of player
- wait 3 second
- if {_y} is rounded y coordinate of player:
- if {_x} is rounded x coordinate of player:
- if {_z} is rounded z coordinate of player:
- teleport player to {bentrada}
- wait 1 tick
- send "{@Prefix} {@Entrou}"
- add player's name to {boss.players::*}
- stop
- else:
- send "{@Prefix} &b&lTeleport cancelado."
- send "{@Prefix} &b&lVocê se moveu..."
- stop
- else:
- send "{@Prefix} &b&lTeleport cancelado."
- send "{@Prefix} &b&lVocê se moveu..."
- stop
- else:
- send "{@Prefix} &b&lTeleport cancelado."
- send "{@Prefix} &b&lVocê se moveu..."
- stop
- else:
- send "{@Prefix} {@NaoAberto}"
- stop
- on death:
- victim is a {@TipoDoBoss}
- attacker is a player
- if {boss.iniciado} is true:
- if name of victim is "{@NomeDoBoss}":
- clear dropped items
- wait 5 tick
- set {boss.iniciado} to false
- clear tag of {UtimoVencedorBoss} replacer "{@lc}"
- clear {UtimoVencedorBoss}
- wait 1 tick
- set {UtimoVencedorBoss} to attacker
- set tag of attacker replacer "{@lc}" to "{@lctag}"
- drop {@QuantidadeDrop1} {@DropBoss1} named "{@NomeItemBoss}" at victim
- drop {@QuantidadeDrop2} {@DropBoss2} named "{@NomeItemBoss}" at victim
- drop {@QuantidadeDrop3} {@DropBoss3} named "{@NomeItemBoss}" at victim
- drop {@QuantidadeDrop4} {@DropBoss4} named "{@NomeItemBoss}" at victim
- drop {@QuantidadeDrop5} {@DropBoss5} named "{@NomeItemBoss}" at attacker
- wait 2 tick
- broadcast "&2&l×&6&l&m-----------------------------&2&l×"
- broadcast "{@Prefix} &b&lEvento Boss Finalizado."
- broadcast "{@Prefix} &b&lBoss morto por: &c&l%attacker%&b&l."
- broadcast "{@Prefix} &b&l10s para recolher os drops."
- broadcast "&2&l×&6&l&m-----------------------------&2&l×"
- wait 10 seconds
- loop {boss.players::*}:
- teleport all players to {bsaida}
- wait 2 tick
- clear {boss.players::*}
- log ": Ganhador » %attacker% __ IP » %IP of attacker%" to "DCBoss.log"
- on death:
- victim is a {@TipoDoBoss2}
- attacker is a player
- if {boss.iniciado} is true:
- if name of victim is "{@NomeDoBoss2}":
- clear dropped items
- wait 5 tick
- chance of 40%:
- drop 2 {@DropMiniBoss1} named "{@NomItemBoss2}" at victim
- drop 2 {@DropMiniBoss2} named "{@NomItemBoss2}" at victim
- drop 2 {@DropMiniBoss3} named "{@NomItemBoss2}" at victim
- drop 2 {@DropMiniBoss4} named "{@NomItemBoss2}" at victim
- drop 2 {@DropMiniBoss5} named "{@NomItemBoss2}" at victim
- stop
- chance of 50%:
- drop 1 {@DropMiniBoss1} named "{@NomItemBoss2}" at victim
- drop 1 {@DropMiniBoss2} named "{@NomItemBoss2}" at victim
- drop 1 {@DropMiniBoss3} named "{@NomItemBoss2}" at victim
- drop 1 {@DropMiniBoss4} named "{@NomItemBoss2}" at victim
- drop 1 {@DropMiniBoss5} named "{@NomItemBoss2}" at victim
- stop
- on damage:
- victim is a {@TipoDoBoss}
- attacker is a player
- if {boss.iniciado} is true:
- if name of victim is "{@NomeDoBoss}":
- wait 5 tick
- chance of 0.6%:
- spawn 5 {@TipoDoBoss2} at attacker
- set name of spawned entity to "{@NomeDoBoss2}"
- set max health of spawned entity to {@VidaDoBoss2}
- heal the spawned entity by {@VidaDoBoss2} hearts
- stop
- chance of 1%:
- spawn 3 {@TipoDoBoss2} at attacker
- set name of spawned entity to "{@NomeDoBoss2}"
- set max health of spawned entity to {@VidaDoBoss2}
- heal the spawned entity by {@VidaDoBoss2} hearts
- stop
- chance of 2%:
- spawn 2 {@TipoDoBoss2} at attacker
- set name of spawned entity to "{@NomeDoBoss2}"
- set max health of spawned entity to {@VidaDoBoss2}
- heal the spawned entity by {@VidaDoBoss2} hearts
- stop
- on command:
- if {boss.iniciado} is true:
- if player is equal to {boss.players::*}:
- if {@BloquearComando} is true:
- if player has permission "{@Permi}":
- stop
- else:
- send "{@Prefix} {@NaoPodeUsarComando}"
- cancel event
- every 17 seconds:
- if {boss.iniciado} is true:
- broadcast ""
- broadcast "{@Prefix} &b&lEvento &c&lBoss &b&locorrendo"
- broadcast "{@Prefix} &b&lPara participar digite:"
- broadcast "{@Prefix} &c&l/boss"
- broadcast ""
- variables:
- {boss.iniciado} = false
- # #! CREDITOS !# #! NÃO RETIRE !# #
- on script load:
- send "&6&l]-------&e&lSkript&6&l-------[" to console
- send " &2Dyn Evento Boss" to console
- send " &2Criado por &dJunior" to console
- send " &2Versao: 1.0" to console
- send "&6&l]--------------------[" to console
- command /dcboss:
- trigger:
- send "&6&l]-----&e&lSkript&6&l-----["
- send " &2Dyn Evento Boss"
- send " &2Criado por &dJunior"
- send " &2Versao: 1.0"
- send "&6&l]---------------["
Advertisement
Add Comment
Please, Sign In to add comment