#- - - - - - - - - - - - - - - - - - - - - - -# #-Autor skryptu: xBetter # #-WERSJA: 3.0 # #- - - - - - - - - - - - - - - - - - - - - - -# # Opcje Skryptu # #- - - - - - - - - - - - - - - - - - - - - - -# options: #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - # Komendy: event # Tu wpisujesz komęde jaką będziesz używał na serwerze! # #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - # #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - # Komendy-Status: vouchery # Tu wpisujesz komęde jaką będziesz używał na serwerze! # #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - # #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - # Ranga: pex user %player% group set # Tu wpisujesz jaka komenda sie daje range w twojm pl lub sk! # #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - # DiscoText: &8* &6Voucher na &cDisco Zbroje &6zostal aktywowany :)! #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - # VipText: &8* &6Voucher na &cVip'a &6zostal aktywowany :)! # Tu wpiszujesz text który będzie wyświetlał sie po użyciu vouchera # SVipText: &8* &6Voucher na &cSVip'a &6zostal aktywowany :)! #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - # RangaDisco: disco #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - # RangaVip: Vip # Tu dajesz range jaka ma po uzyciu vouchera ma dostac gracz! # RangaSVip: SVip #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - # DropDiscoText: &8* &c%player% &6wyropil voucher na Disco Zbroje! #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - # DropVipText: &8* &c%player% &6wyropil voucher na Vip'a! # Tu wpisujesz wiadomosc jaka ma sie wyswietlac po wydropieniu! # DropSVipText: &8* &c%player% &6wyropil voucher na SVip'a! #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - # DropDisco: 5 #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - # DropVip: 4 # Procent na drop danego vouchera! # DropSVip: 2 #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - # VoucherTextDisco: &8* &aVoucher na Disco Zbroje &8* #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - # VoucherTextVip: &8* &aVoucher na VIP'A &8* # Tu wpisujesz nazwe danego vouchera! # VoucherTextSVip: &8* &aVoucher na SVIP'A &8* #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - # VoucherTextLoreDisco: &8* &6Po nacisnieciu &cPPM &6na przedmiot otrzymasz Disco Zbroje :D|| &8* &6Voucher to unikalny przedmiot o duzej wartosci :) #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - # VoucherTextLoreVip: &8* &6Po nacisnieciu &cPPM &6na przedmiot otrzymasz range VIP :D|| &8* &6Voucher to unikalny przedmiot o duzej wartosci :) # Tu wpisujesz nazwe w lore danego vouchera! # VoucherTextLoreSVip: &8* &6Po nacisnieciu &cPPM &6na przedmiot otrzymasz range SVIP :D|| &8* &6Voucher to unikalny przedmiot o duzej wartosci :) #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - # VoucherTextGiveDisco: &8* &6Dostales %arg-4% voucher/ow na disco zbroje od &c%player%&6! #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - # VoucherTextGiveVip: &8* &6Dostales %arg-4% voucher/ow na vip'a od &c%player%&6! # Tu wpisujesz nazwe wiadomosci po otrzymanju vouchera! # VoucherTextGiveSVip: &8* &6Dostales %arg-4% voucher/ow na svip'a od &c%player%&6! #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - # #- - - - - - - - - - - - - - - - - - - - - - -# # KOD SKRYPTU # #- - - - - - - - - - - - - - - - - - - - - - -# variables: {event.disco} = false {event.vip} = false {event.svip} = false command /{@Komendy-Status}: trigger: send "&8* &6STATUSY DROPU VOUCHEROW" if {event.disco} is true: send "&8* &6Vouchery na DISCO ZBROJE: &aWLACZONE" else: send "&8* &6Vouchery na DISCO ZBROJE: &cWYLACZONE" if {event.vip} is true: send "&8* &6Vouchery na VIPY: &aWLACZONE" else: send "&8* &6Vouchery na VIPY: &cWYLACZONE" if {event.svip} is true: send "&8* &6Vouchery na SVIPY: &aWLACZONE" else: send "&8* &6Vouchery na SVIPY: &cWYLACZONE" command /{@Komendy} [] [] [] []: permission: event.vouchery permission message: &4Blad: &cBrak uprawnien! (event.vouchery) trigger: if arg 1 is not set: send " &8* &cKomendy:" send " &8* &6/event disco &a - &7Wlacza/Wylacza event na disco zbroje" send " &8* &6/event vip &a - &7Wlacza/Wylacza event na vipa" send " &8* &6/event svip &a - &7Wlacza/Wylacza event na svipa" send " &8* &6/{@Komendy-Status} &a - &7Informacje o voucherach" send " &8* &6/event voucher disco/vip/svip (NICK) (ILOSC 1-10) &a - &7Dawanje voucherow sobie lub komus!" if arg 1 is "disco": if {event.disco} is true: set {event.disco} to false broadcast "&8* &7Event vouchery na disco zbroje ze stone!" broadcast "&8* &7Zostal wlasnie wylaczony przez &c%player%&7!" stop else: set {event.disco} to true broadcast "&8* &7Event vouchery na disco zbroje ze stone!" broadcast "&8* &7Zostal wlasnie wlaczony przez &c%player%&7!" stop if arg 1 is "vip": if {event.vip} is true: set {event.vip} to false broadcast "&8* &7Event vouchery na vipy ze stone!" broadcast "&8* &7Zostal wlasnie wylaczony przez &c%player%&7!" stop else: set {event.vip} to true broadcast "&8* &7Event vouchery na vipy ze stone!" broadcast "&8* &7Zostal wlasnie wlaczony przez &c%player%&7!" stop if arg 1 is "svip": if {event.svip} is true: set {event.svip} to false broadcast "&8* &7Event vouchery na svipy ze stone!" broadcast "&8* &7Zostal wlasnie wylaczony przez &c%player%&7!" stop else: set {event.svip} to true broadcast "&8* &7Event vouchery na svipy ze stone!" broadcast "&8* &7Zostal wlasnie wlaczony przez &c%player%&7!" stop if arg 1 is "voucher": if arg 2 is "disco": if arg-player is set: if arg 4 is set: if arg 4 is less than 11: if arg 4 is more than 0: send "{@VoucherTextGiveDisco}" to arg-player loop arg-4 times: add 1 book named "{@VoucherTextDisco}" with lore " {@VoucherTextLoreDisco}" to arg-player else: send "&4Blad: &cPoprawne uzycie /{@Komendy} voucher disco (NICK) (ILOSC 1-10)" else: send "&4Blad: &cPoprawne uzycie /{@Komendy} voucher disco (NICK) (ILOSC 1-10)" else: send "&4Blad: &cPoprawne uzycie /{@Komendy} voucher disco (NICK) (ILOSC 1-10)" if arg 2 is "vip": if arg-player is set: if arg 4 is set: if arg 4 is less than 11: if arg 4 is more than 0: send "{@VoucherTextGiveVip}" to arg-player loop arg-4 times: add 1 book named "{@VoucherTextVip}" with lore " {@VoucherTextLoreVip}" to arg-player else: send "&4Blad: &cPoprawne uzycie /{@Komendy} voucher vip (NICK) (ILOSC 1-10)" else: send "&4Blad: &cPoprawne uzycie /{@Komendy} voucher vip (NICK) (ILOSC 1-10)" else: send "&4Blad: &cPoprawne uzycie /{@Komendy} voucher vip (NICK) (ILOSC 1-10)" if arg 2 is "svip": if arg-player is set: if arg 4 is set: if arg 4 is less than 11: if arg 4 is more than 0: send "{@VoucherTextGiveSVip}" to arg-player loop arg-4 times: add 1 book named "{@VoucherTextSVip}" with lore " {@VoucherTextLoreSVip}" to arg-player else: send "&4Blad: &cPoprawne uzycie /{@Komendy} voucher svip (NICK) (ILOSC 1-10)" else: send "&4Blad: &cPoprawne uzycie /{@Komendy} voucher svip (NICK) (ILOSC 1-10)" else: send "&4Blad: &cPoprawne uzycie /{@Komendy} voucher svip (NICK) (ILOSC 1-10)" on mine of stone: tool is pickaxe: player's gamemode is survival if {event.disco} is true: chance of {@DropDisco}%: if player can hold 1 book named "{@VoucherTextDisco}" with lore " {@VoucherTextLoreDisco}": add 1 book named "{@VoucherTextDisco}" with lore " {@VoucherTextLoreDisco}" to player broadcast "{@DropDiscoText}" else: drop 1 book named "{@VoucherTextDisco}" with lore " {@VoucherTextLoreDisco}" broadcast "{@DropDiscoText}" if {event.vip} is true: chance of {@DropVip}%: if player can hold 1 book named "{@VoucherTextVip}" with lore " {@VoucherTextLoreVip}": add 1 book named "{@VoucherTextVip}" with lore " {@VoucherTextLoreVip}" to player broadcast "{@DropVipText}" else: drop 1 book named "{@VoucherTextVip}" with lore " {@VoucherTextLoreVip}" broadcast "{@DropVipText}" if {event.svip} is true: chance of {@DropSVip}%: if player can hold 1 book named "{@VoucherTextSVip}" with lore " {@VoucherTextLoreSVip}": add 1 book named "{@VoucherTextSVip}" with lore " {@VoucherTextLoreSVip}" to player broadcast "{@DropSVipText}" else: drop 1 book named "{@VoucherTextSVip}" with lore " {@VoucherTextLoreSVip}" broadcast "{@DropSVipText}" on rightclick with book: if name of player's tool is "{@VoucherTextDisco}": cancel event execute server command "{@Ranga} {@RangaDisco}" remove 1 book named "{@VoucherTextDisco}" with lore " {@VoucherTextLoreDisco}" from player's tool send "{@DiscoText}" if name of player's tool is "{@VoucherTextVip}": cancel event execute server command "{@Ranga} {@RangaVip}" remove 1 book named "{@VoucherTextVip}" with lore " {@VoucherTextLoreVip}" from player's tool send "{@VipText}" if name of player's tool is "{@VoucherTextSVip}": cancel event execute server command "{@Ranga} {@RangaSVip}" remove 1 book named "{@VoucherTextSVip}" with lore " {@VoucherTextLoreSVip}" from player's tool send "{@SVipText}"