Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # +------------------------------------------------+ #
- # | Olá! | #
- # | Venho apresentar meu primeiro script! | #
- # | Bem! Oque este script faz? | #
- # | Ele adiciona /drops! | #
- # | Por enquanto só funciona na mineração! | #
- # | O plugin ainda está bem simples! | #
- # | Mas mesmo assim é bastante configurável! | #
- # | Você pode mudar algumas coisas | #
- # | Caso não entenda muito bem de script | #
- # | Por isso deixei algumas opções para você! | #
- # +------------------------------------------------+ #
- # Permissões:
- # - WDrop.vender // Serve para pode usar o comando "/drops", ele abrirá um menu para vender todos os drops
- # - WDrop.bonus // Serve para vender seus drops com alguma porcentagem a mais!
- # - Wdrop.dropsBonus.1 // Serve para usar o drop bonus no bloco1
- # - Wdrop.dropsBonus.2 // Serve para usar o drop bonus no bloco2
- # - Wdrop.dropsBonus.3 // Serve para usar o drop bonus no bloco3
- #
- # BETAVersion: 1.0
- #
- # * * #
- # * * #
- # * * #
- # * CONFIGURAÇÃO, AQUI VOCÊ PODE EDITAR O SCRIPT! * #
- # * * #
- # * * #
- # * * #
- options:
- # * Mundo que irá funcionar o sistema de /drops * #
- Mundo: plains
- # * Blocos que irá contar no sistema de /drops * #
- # * Lembre-se de não usar "_" ou letras maiúsculuas (Recomendado) * #
- # * Lembre-se também de não usar nenhum ID do minecraft, apenas nomes! * #
- # * Em breve mais blocos poderão ser adicionados! * #
- Bloco1: stone
- Bloco2: lapis ore
- Bloco3: diamond ore
- # * Preço da venda dos drops por item! * #
- Drops: 1000
- # * Bonus VIP, serve para multiplicar os ganhos nos /drops * #
- # * Quando configurar isto, lembre-se que isso irá multiplicar em porcentagem mas pode ser "x" também! * #
- # * Exemplo, se o Bonus for 1.3, irá aumentar 30% os seus ganhos no /drops * #
- # * Se for 1.02, irá aumentar 2% os seus ganhos no /drops, se for 500 irá aumentar 500x os seus ganhos no /drops * #
- # * Não tem um máximo em si, você pode usar tanto quanto 0 (irá remover o ganho) quanto usar como por exemplo, * #
- # * Um número muito alto: 5000000 ou 10000000000 ou até mesmo 99999999999999999999999999999999 * #
- # * Caso você coloque algum número abaixo de 1, irá diminuir os ganhos! exemplo: 0.5 (isto irá diminuir os ganhos em 50%) * #
- # * Coloque como 1 para desativar * #
- Bonus: 1.25 # (Padrão: 1.25) #
- # * Mudança no ganho de drops por fortuna na picareta * #
- # * Por enquanto só tem mudanças de drops por fortuna até nível 10 * #
- # * Quando eu souber um jeito mais fácil de colocar mudanças por nível * #
- # * Sem ter que floodar o código do script eu trago a vocês! * #
- # * !! ATENÇÃO, PARA TUDO DER CERTO NESTA PARTE DA CONFIGURAÇÃO !! * #
- # * !! UM AVISO, ESTE SCRIPT ELE PEGA A QUANTIDADE DE DROPS DE NIVEL DA FORTUNA + QUANTIDADE DE DROPS SEM FORTUNA !! * #
- # * !! OU SEJA, CASO VOCÊ COLOQUE "100" NA FORTUNA10 IRÁ VIR "101" DROPS !! * #
- Sem fortuna: 1
- Fortuna1: 1
- Fortuna2: 2
- Fortuna3: 3
- Fortuna4: 4
- Fortuna5: 5
- Fortuna6: 6
- Fortuna7: 7
- Fortuna8: 8
- Fortuna9: 9
- Fortuna10: 10
- # * Bonus de Drops! Este bonus é parecido com de ganhos! * #
- # * Só que esse multiplica os drops ganhos! * #
- # * Configurável por BLOCO! * #
- BonusBloco1: 2 # (Padrão: 2) #
- BonusBloco2: 2 # (Padrão: 2) #
- BonusBloco3: 2 # (Padrão: 2) #
- # * * #
- # * * #
- # * * #
- # * FIM DA CONFIGURAÇÃO! NÃO RECOMENDADO MECHER * #
- # * AQUI CASO NÃO SAIBAM MUITO BEM DE SCRIPT! * #
- # * * #
- # * * #
- # * COMANDOS / NÃO MODIFICAR * #
- command /drops:
- aliases: /drop
- trigger:
- if player has permission "WDrop.vender":
- open chest with 3 rows named "Drops" to (player)
- set slot 13 of player's current inventory to tnt named "&eVender Tudo" with lore "||&7Botão esquerdo: &fVende todos os drops||&7Botão direito: &fVende 64x drops||||&7Quantidade:||&e%{drops::%player%::total}% &fde drops||||&8* Você estará vendendo seus drops! *&7"
- # * ESSENCIAL / NÃO APAGAR/MODIFICAR * #
- on inventory click:
- if inventory name of player's current inventory is "Drops":
- cancel event
- if clicked item is tnt:
- if "%click type%" = "LEFT":
- if {drops::%player%::total} >= 1:
- if player has permission "WDrops.bonus":
- set {_quantia} to {drops::%player%::total} * {@Drops} * {@Bonus}
- set {_quantia} to {_quantia} parsed as integer
- send "&aForam vendidos &fx%{drops::%player%::total}%&a drops por &f%{_quantia}%&a coins."
- clear {drops::%player%::total}
- add {_quantia} to player's account
- close player's inventory
- else:
- set {_quantia} to {drops::%player%::total} * {@Drops}
- set {_quantia} to {_quantia} parsed as integer
- send "&aForam vendidos &fx%{drops::%player%::total}%&a drops por &f%{_quantia}%&a coins."
- clear {drops::%player%::total}
- add {_quantia} to player's account
- close player's inventory
- else:
- send "&cVocê não possui drops a serem vendidos."
- close player's inventory
- else if "%click type%" = "RIGHT":
- if {drops::%player%::total} >= 64:
- if player has permission "WDrops.bonus":
- set {_quantia} to 64 * {@Drops} * {@Bonus}
- set {_quantia} to {_quantia} parsed as integer
- send "&aForam vendidos &f64x&a drops por &f%{_quantia}%&a coins."
- remove 64 from {drops::%player%::total}
- add {_quantia} to player's account
- else:
- set {_quantia} to 64 * {@Drops}
- set {_quantia} to {_quantia} parsed as integer
- add {_quantia} to player's balance
- remove 64 from {drops::%player%::total}
- send "&aForam vendidos &f64x&a drops por &f%{_quantia}%&a coins."
- else:
- close player's inventory
- send "&cVocê não possui x64 drops para vender-los."
- # * DROPS NA MINERAÇÃO / NÃO MODIFICAR * #
- on break of {@Bloco1}:
- cancel event
- set event-block to air
- player is in "{@Mundo}"
- if player has permission "WDrops.dropsBonus.1":
- add {@Sem fortuna} * {@BonusBloco1} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 1:
- add {@Fortuna1} * {@BonusBloco1} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 2:
- add {@Fortuna2} * {@BonusBloco1} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 3:
- add {@Fortuna3} * {@BonusBloco1} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 4:
- add {@Fortuna4} * {@BonusBloco1} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 5:
- add {@Fortuna5} * {@BonusBloco1} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 6:
- add {@Fortuna6} * {@BonusBloco1} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 7:
- add {@Fortuna7} * {@BonusBloco1} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 8:
- add {@Fortuna8} * {@BonusBloco1} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 9:
- add {@Fortuna9} * {@BonusBloco1} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 10:
- add {@Fortuna10} * {@BonusBloco1} to {drops::%player%::total}
- else:
- add {@Sem fortuna} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 1:
- add {@Fortuna1} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 2:
- add {@Fortuna2} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 3:
- add {@Fortuna3} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 4:
- add {@Fortuna4} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 5:
- add {@Fortuna5} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 6:
- add {@Fortuna6} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 7:
- add {@Fortuna7} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 8:
- add {@Fortuna8} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 9:
- add {@Fortuna9} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 10:
- add {@Fortuna10} to {drops::%player%::total}
- on break of {@Bloco2}:
- cancel event
- set event-block to air
- player is in "{@Mundo}"
- if player has permission "WDrops.dropsBonus.2":
- add {@Sem fortuna} * {@BonusBloco2} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 1:
- add {@Fortuna1} * {@BonusBloco2} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 2:
- add {@Fortuna2} * {@BonusBloco2} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 3:
- add {@Fortuna3} * {@BonusBloco2} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 4:
- add {@Fortuna4} * {@BonusBloco2} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 5:
- add {@Fortuna5} * {@BonusBloco2} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 6:
- add {@Fortuna6} * {@BonusBloco2} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 7:
- add {@Fortuna7} * {@BonusBloco2} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 8:
- add {@Fortuna8} * {@BonusBloco2} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 9:
- add {@Fortuna9} * {@BonusBloco2} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 10:
- add {@Fortuna10} * {@BonusBloco2} to {drops::%player%::total}
- else:
- add {@Sem fortuna} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 1:
- add {@Fortuna1} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 2:
- add {@Fortuna2} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 3:
- add {@Fortuna3} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 4:
- add {@Fortuna4} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 5:
- add {@Fortuna5} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 6:
- add {@Fortuna6} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 7:
- add {@Fortuna7} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 8:
- add {@Fortuna8} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 9:
- add {@Fortuna9} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 10:
- add {@Fortuna10} to {drops::%player%::total}
- on break of {@Bloco3}:
- cancel event
- set event-block to air
- player is in "{@Mundo}"
- if player has permission "WDrops.dropsBonus.3":
- add {@Sem fortuna} * {@BonusBloco3} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 1:
- add {@Fortuna1} * {@BonusBloco3} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 2:
- add {@Fortuna2} * {@BonusBloco3} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 3:
- add {@Fortuna3} * {@BonusBloco3} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 4:
- add {@Fortuna4} * {@BonusBloco3} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 5:
- add {@Fortuna5} * {@BonusBloco3} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 6:
- add {@Fortuna6} * {@BonusBloco3} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 7:
- add {@Fortuna7} * {@BonusBloco3} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 8:
- add {@Fortuna8} * {@BonusBloco3} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 9:
- add {@Fortuna9} * {@BonusBloco3} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 10:
- add {@Fortuna10} * {@BonusBloco3} to {drops::%player%::total}
- else:
- add {@Sem fortuna} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 1:
- add {@Fortuna1} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 2:
- add {@Fortuna2} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 3:
- add {@Fortuna3} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 4:
- add {@Fortuna4} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 5:
- add {@Fortuna5} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 6:
- add {@Fortuna6} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 7:
- add {@Fortuna7} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 8:
- add {@Fortuna8} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 9:
- add {@Fortuna9} to {drops::%player%::total}
- if tool of the player is enchanted with fortune 10:
- add {@Fortuna10} to {drops::%player%::total}
- variables:
- {drops::%player%::total} = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement