Guest User

## DCBoss ## | EVENTO MINECRAFT |

a guest
Aug 17th, 2015
442
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Skript : DCSBoss
  2. # Versão : 1.0
  3. # Autor  : Epiic/Junior
  4. # Forum Gamers Board (:
  5.  
  6. # #! ==========================================================================!# #    
  7. # #! # # # # # # _-_-_-==CONFIGURE DE ACORDO COM SEU GOSTO==-_-_-_ # # # # # # !# #
  8. # #! ==========================================================================!# #
  9.  
  10.  
  11. options:
  12. # #! ------------- CONFIGURAÇAO DO EVENTO -------------- !# #
  13.     # PREFIXO DAS MENSAGENS
  14.     Prefix: &3[&c&lBoss&3]
  15.     # MENSAGEM PARA PLAYERS SEM PERMISSÃO
  16.     MsgPermi: &cVoce não tem permissão.
  17.     # PERMISSÃO PARA ADMINS SETAR/FINALIZAR O EVENTO
  18.     Permi: boss.admin
  19.     # BLOQUEAR COMANDOS NO EVENTO ? TRUE PARA SIM E FALSE PARA NAO
  20.     BloquearComando: true
  21.     NaoPodeUsarComando: &c&lVocê não pode usar esse comando no evento.
  22.     # DELAY PARA O BOSS SPAWNAR APOSS O INICIO DO EVENTO
  23.     TempoSpawn: 60
  24.     # COLOCA NO LEGEND CHAT {dcboss} PARA ATIVAR A TAG AO VENCEDOR
  25.     lc: dcboss
  26.     # TEG PARA O VENCEDOR DO EVENTO
  27.     lctag: &3&l[&c&lBoss&3&l] &r
  28.     # NOME DOS ITENS DROPADO PELO BOSS E O BOSS SEGUNDARIO
  29.     NomeItemBoss: &7&m[&r &3&lITEM DO BOSS &7&m]
  30.     NomItemBoss2: &7&m[&r &3&lITEM DO MiniBOSS &7&m]
  31.     # "MENSAGENS"
  32.     ESetada: &a&lEntrada setada com sucesso.
  33.     SSetada: &a&lSaida setada com sucesso.
  34.     BSetado: &a&lSpawn do boss setado com sucesso.
  35.     EventoJaOcorrendo: &c&lJa tem um evento ocorrendo.
  36.     JaEsta: &c&lVocê ja está no evento.
  37.     NaoAberto: &c&lO Evento não esta ocorrendo.
  38.     Entrou: &b&lVocê entrou no evento, boa sorte !
  39.  
  40. # #! ---------- CONFIGURAÇAO DO BOSS PRINCIPAL ---------- !# #
  41.     # ITENS DE SPAWN DO BOSS / APENAS PARA ALGUNS MOBS /
  42.     PeitoBoss:  diamond chestplate of protection 4
  43.     CalçaBoss:  diamond leggings of protection 4
  44.     BotaBoss:  diamond boots of protection 4
  45.     CapaceteBoss:  diamond helmet of protection 4
  46.     EspadaBoss: diamond sword of sharpness 5
  47.    
  48.     # ITENS QUE O BOSS IRA DROPAR AO MORRER
  49.     DropBoss1: diamond helmet of protection 4
  50.     DropBoss2: diamond chestplate of protection 4
  51.     DropBoss3: diamond leggings of protection 4
  52.     DropBoss4: diamond boots of protection 4
  53.     DropBoss5: diamond sword of sharpness
  54.    
  55.     # QUANTIDADE DE ITENS QUE ELE VAI DROPAR / QuantidadeDrop1 = DropBoss1 ...
  56.     QuantidadeDrop1: 1
  57.     QuantidadeDrop2: 1
  58.     QuantidadeDrop3: 1
  59.     QuantidadeDrop4: 1
  60.     QuantidadeDrop5: 1
  61.    
  62.     # NOME DO BOSS
  63.     NomeDoBoss: &4&l× BOOOS ×
  64.     # MOB QUE SERA O BOSS
  65.     TipoDoBoss: zombie pigman
  66.     # VIDA QUE O BOSS TERA
  67.     VidaDoBoss: 700
  68.    
  69. # #! ---------- CONFIGURAÇAO DO BOSS SEGUNDARIO ---------- !# #
  70. # #! -  TEM UMA % DELE SPAWNAR AO HITAR O BOSS PRINCIPAL - !# #
  71.  
  72.     # MOB QUE SERA O BOSS SEGUNDARIO
  73.     TipoDoBoss2: silverfish
  74.     # VIDA DO BOSS SEGUNDARIO
  75.     VidaDoBoss2: 70
  76.     # NOME DO BOSS SEGUNDARIO
  77.     NomeDoBoss2: &e&lMinions
  78.    
  79.     # ITENS QUE O BOSS SEGUNDARIO IRA DROPAR AO MORRER
  80.     DropMiniBoss1: diamond
  81.     DropMiniBoss2: gold ingot
  82.     DropMiniBoss3: diamond block
  83.     DropMiniBoss4: gold block
  84.     DropMiniBoss5: diamond sword of sharpness 2
  85.    
  86. command /boss [<text>]:
  87.     trigger:
  88.         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":
  89.             if player has permission "{@Permi}":
  90.                 send "{@Prefix} &cComando invalido, use: /boss ajuda"
  91.                 stop
  92.             else:
  93.                 send "{@Prefix} &cComando invalido."
  94.         if arg 1 is "?" or "ajuda" or "help" or "duvidas" or "comandos":
  95.             if player has permission "{@Permi}":
  96.                 send " "
  97.                 send "{@Prefix} &b&lEvento Boss &d&lAjuda   /   Comandos."
  98.                 send " "
  99.                 send "{@Prefix} &f&l/boss setentrada &7- &aseta entrada."
  100.                 send "{@Prefix} &f&l/boss setsaida &7- &aseta saida."
  101.                 send "{@Prefix} &f&l/boss setboss &7- &aseta spawn do boss."
  102.                 send "{@Prefix} &f&l/boss iniciar &7- &ainicia o evento."
  103.                 send "{@Prefix} &f&l/boss cancelar &7- &acancela o evento."
  104.                 send "{@Prefix} &f&l/boss debug &7- &adesbuga o evento."
  105.                 send "{@Prefix} &f&l/boss ajuda &7- &ave os comandos."
  106.                 send "{@Prefix} &f&l/boss &7- &aentra no evento."
  107.                 send " "
  108.             else:
  109.                 send "{@Prefix} {@MsgPermi}"
  110.         if arg 1 is "setentrada":
  111.             if player has permission "{@Permi}":
  112.                 set {bentrada} to player's location
  113.                 send "{@Prefix} {@ESetada}"
  114.                 stop
  115.             else:
  116.                 send "{@Prefix} {@MsgPermi}"
  117.         if arg 1 is "setsaida":
  118.             if player has permission "{@Permi}":
  119.                 set {bsaida} to player's location
  120.                 send "{@Prefix} {@SSetada}"
  121.                 stop
  122.             else:
  123.                 send "{@Prefix} {@MsgPermi}"
  124.         if arg 1 is "setboss":
  125.             if player has permission "{@Permi}":
  126.                 set {bboss} to player's location
  127.                 send "{@Prefix} {@BSetado}"
  128.                 stop
  129.             else:
  130.                 send "{@Prefix} {@MsgPermi}"
  131.         if arg 1 is "debug":
  132.             if player has permission "{@Permi}":
  133.                 loop {boss.players::*}:
  134.                     teleport all players to {bsaida}
  135.                 wait 5 tick
  136.                 clear {boss.players::*}
  137.                 set {boss.iniciado} to false
  138.                 send "{@Prefix} &aEvento desbugado."
  139.             else:
  140.                 send "{@Prefix} {@MsgPermi}"
  141.         if arg 1 is "cancelar":
  142.             if player has permission "{@Permi}":
  143.                 if {boss.iniciado} is true:
  144.                     set {boss.iniciado} to false
  145.                     loop {boss.players::*}:
  146.                         teleport all players to {bsaida}
  147.                     wait 2 tick
  148.                     clear {boss.players::*}
  149.                     broadcast "{@Prefix} &b&lEVENTO CANCELADO POR UM ADMIN"
  150.                 else:
  151.                     send "{@Prefix} &c&lO Evento não está ocorrendo"
  152.             else:
  153.                 send "{@Prefix} {@MsgPermi}"
  154.         if arg 1 is "iniciar":
  155.             if player has permission "{@Permi}":
  156.                 if {boss.iniciado} is true:
  157.                     send "{@Prefix} {@EventoJaOcorrendo}"
  158.                     stop
  159.                 else:
  160.                     set {boss.iniciado} to true
  161.                     clear {boss.players::*}
  162.                     broadcast ""
  163.                     broadcast "{@Prefix} &b&lEvento &c&lBoss &b&laberto..."
  164.                     broadcast "{@Prefix} &b&luse: &c&l/boss"
  165.                     broadcast "{@Prefix} &b&lSpawnando em {@TempoSpawn}s"
  166.                     broadcast ""
  167.                     wait {@TempoSpawn} seconds
  168.                     if {boss.iniciado} is true:
  169.                         spawn 1 {@TipoDoBoss} at {bboss}
  170.                         set name of spawned entity to "{@NomeDoBoss}"
  171.                         set max health of spawned entity to {@VidaDoBoss}
  172.                         heal the spawned entity by {@VidaDoBoss} hearts
  173.                         set Chestplate of spawned entity to {@PeitoBoss}
  174.                         set leggings of spawned entity to {@CalçaBoss}
  175.                         set helmet of spawned entity to {@CapaceteBoss}
  176.                         stop
  177.             else:
  178.                 send "{@Prefix} {@MsgPermi}"
  179.         if arg 1 is not set:
  180.             if {boss.iniciado} is true:
  181.                 if player is equal to {boss.players::*}:
  182.                     send "{@Prefix} {@JaEsta}"
  183.                     stop
  184.                 else:
  185.                     send "{@Prefix} &b&lAguarde &73 &b&lsegundos."
  186.                     set {_y} to rounded y coordinate of player
  187.                     set {_x} to rounded x coordinate of player
  188.                     set {_z} to rounded z coordinate of player
  189.                     wait 3 second
  190.                     if {_y} is rounded y coordinate of player:
  191.                         if {_x} is rounded x coordinate of player:
  192.                             if {_z} is rounded z coordinate of player:
  193.                                 teleport player to {bentrada}
  194.                                 wait 1 tick
  195.                                 send "{@Prefix} {@Entrou}"
  196.                                 add player's name to {boss.players::*}
  197.                                 stop
  198.                             else:
  199.                                 send "{@Prefix} &b&lTeleport cancelado."
  200.                                 send "{@Prefix} &b&lVocê se moveu..."
  201.                                 stop
  202.                         else:
  203.                             send "{@Prefix} &b&lTeleport cancelado."
  204.                             send "{@Prefix} &b&lVocê se moveu..."
  205.                             stop
  206.                     else:
  207.                         send "{@Prefix} &b&lTeleport cancelado."
  208.                         send "{@Prefix} &b&lVocê se moveu..."
  209.                         stop
  210.             else:
  211.                 send "{@Prefix} {@NaoAberto}"
  212.                 stop
  213.                    
  214. on death:
  215.     victim is a {@TipoDoBoss}
  216.     attacker is a player
  217.     if {boss.iniciado} is true:
  218.         if name of victim is "{@NomeDoBoss}":
  219.             clear dropped items
  220.             wait 5 tick
  221.             set {boss.iniciado} to false
  222.             clear tag of {UtimoVencedorBoss} replacer "{@lc}"
  223.             clear {UtimoVencedorBoss}
  224.             wait 1 tick
  225.             set {UtimoVencedorBoss} to attacker
  226.             set tag of attacker replacer "{@lc}" to "{@lctag}"
  227.             drop {@QuantidadeDrop1} {@DropBoss1} named "{@NomeItemBoss}" at victim
  228.             drop {@QuantidadeDrop2} {@DropBoss2} named "{@NomeItemBoss}" at victim
  229.             drop {@QuantidadeDrop3} {@DropBoss3} named "{@NomeItemBoss}" at victim
  230.             drop {@QuantidadeDrop4} {@DropBoss4} named "{@NomeItemBoss}" at victim
  231.             drop {@QuantidadeDrop5} {@DropBoss5} named "{@NomeItemBoss}" at attacker
  232.             wait 2 tick
  233.             broadcast "&2&l×&6&l&m-----------------------------&2&l×"
  234.             broadcast "{@Prefix} &b&lEvento Boss Finalizado."
  235.             broadcast "{@Prefix} &b&lBoss morto por: &c&l%attacker%&b&l."
  236.             broadcast "{@Prefix} &b&l10s para recolher os drops."
  237.             broadcast "&2&l×&6&l&m-----------------------------&2&l×"
  238.             wait 10 seconds
  239.             loop {boss.players::*}:
  240.                 teleport all players to {bsaida}
  241.             wait 2 tick
  242.             clear {boss.players::*}
  243.             log ": Ganhador » %attacker% __ IP » %IP of attacker%" to "DCBoss.log"
  244.  
  245. on death:
  246.     victim is a {@TipoDoBoss2}
  247.     attacker is a player
  248.     if {boss.iniciado} is true:
  249.         if name of victim is "{@NomeDoBoss2}":
  250.             clear dropped items
  251.             wait 5 tick
  252.             chance of 40%:
  253.                 drop 2 {@DropMiniBoss1} named "{@NomItemBoss2}" at victim
  254.                 drop 2 {@DropMiniBoss2} named "{@NomItemBoss2}" at victim
  255.                 drop 2 {@DropMiniBoss3} named "{@NomItemBoss2}" at victim
  256.                 drop 2 {@DropMiniBoss4} named "{@NomItemBoss2}" at victim
  257.                 drop 2 {@DropMiniBoss5} named "{@NomItemBoss2}" at victim
  258.                 stop
  259.             chance of 50%:
  260.                 drop 1 {@DropMiniBoss1} named "{@NomItemBoss2}" at victim
  261.                 drop 1 {@DropMiniBoss2} named "{@NomItemBoss2}" at victim
  262.                 drop 1 {@DropMiniBoss3} named "{@NomItemBoss2}" at victim
  263.                 drop 1 {@DropMiniBoss4} named "{@NomItemBoss2}" at victim
  264.                 drop 1 {@DropMiniBoss5} named "{@NomItemBoss2}" at victim
  265.                 stop
  266.            
  267. on damage:
  268.     victim is a {@TipoDoBoss}
  269.     attacker is a player
  270.     if {boss.iniciado} is true:
  271.         if name of victim is "{@NomeDoBoss}":
  272.             wait 5 tick
  273.             chance of 0.6%:
  274.                 spawn 5 {@TipoDoBoss2} at attacker
  275.                 set name of spawned entity to "{@NomeDoBoss2}"
  276.                 set max health of spawned entity to {@VidaDoBoss2}
  277.                 heal the spawned entity by {@VidaDoBoss2} hearts
  278.                 stop
  279.             chance of 1%:
  280.                 spawn 3 {@TipoDoBoss2} at attacker
  281.                 set name of spawned entity to "{@NomeDoBoss2}"
  282.                 set max health of spawned entity to {@VidaDoBoss2}
  283.                 heal the spawned entity by {@VidaDoBoss2} hearts
  284.                 stop
  285.             chance of 2%:
  286.                 spawn 2 {@TipoDoBoss2} at attacker
  287.                 set name of spawned entity to "{@NomeDoBoss2}"
  288.                 set max health of spawned entity to {@VidaDoBoss2}
  289.                 heal the spawned entity by {@VidaDoBoss2} hearts
  290.                 stop
  291.                
  292. on command:
  293.     if {boss.iniciado} is true:
  294.         if player is equal to {boss.players::*}:
  295.             if {@BloquearComando} is true:
  296.                 if player has permission "{@Permi}":
  297.                     stop
  298.                 else:
  299.                     send "{@Prefix} {@NaoPodeUsarComando}"
  300.                     cancel event
  301.        
  302.                
  303. every 17 seconds:
  304.     if {boss.iniciado} is true:
  305.         broadcast ""
  306.         broadcast "{@Prefix} &b&lEvento &c&lBoss &b&locorrendo"
  307.         broadcast "{@Prefix} &b&lPara participar digite:"
  308.         broadcast "{@Prefix} &c&l/boss"
  309.         broadcast ""
  310.        
  311. variables:
  312.     {boss.iniciado} = false
  313.    
  314. # #! CREDITOS !# #! NÃO RETIRE !# #
  315. on script load:
  316.     send "&6&l]-------&e&lSkript&6&l-------[" to console
  317.     send "  &2Dyn Evento Boss" to console
  318.     send "  &2Criado por &dJunior" to console
  319.     send "  &2Versao: 1.0" to console
  320.     send "&6&l]--------------------[" to console
  321.    
  322. command /dcboss:
  323.     trigger:
  324.         send "&6&l]-----&e&lSkript&6&l-----["
  325.         send "   &2Dyn Evento Boss"
  326.         send "   &2Criado por &dJunior"
  327.         send "   &2Versao: 1.0"
  328.         send "&6&l]---------------["
Advertisement
Add Comment
Please, Sign In to add comment