Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #- - - - - - - - - - - - - - - - - - - - - - -#
- #-Autor skryptu: xBetter #
- #-Wersja: 3.4 #
- #-Komendy: #
- #-/event - Informacje o evencie #
- #- - - - - -Licencja skryptu- - - - - - - - - #
- #-Zakaz podszywania sie pod autora. #
- #-Zakaz usuwania autora oraz licencji. #
- #- - - - - - - - - - - - - - - - - - - - - - -#
- # AUTO AKTUALIZACJA #
- #- - - - - - - - - - - - - - - - - - - - - - -#
- #Vouchery Ze Stone 3.4#
- #- - - - - - - - - - - - - - - - - - - - - - -#
- # Opcje Skryptu #
- #- - - - - - - - - - - - - - - - - - - - - - -#
- options:
- #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - #
- Komenda: event # 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! #
- #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - #
- #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - #
- Skript: Vouchery Ze Stone # Nazwa skriptu potrzebna do auto update #
- #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - #
- DiscoText: &aAktywowales voucher na disco zbroje! #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - #
- VipText: &aAktywowales voucher na Vipa! # Tu wpiszujesz text który będzie wyświetlał sie po użyciu vouchera #
- SVipText: &aAktywowales voucher na SVipa! #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - #
- RangaDisco: disco #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - #
- RangaVip: Vip # Tu dajesz range jaka ma po uzyciu vouchera ma dostac gracz! #
- RangaSVip: SVip #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - #
- DropDiscoText: &c%player% wydropil voucher na Disco Zbroje! #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - #
- DropVipText: &c%player% wydropil voucher na Vipa! # Tu wpisujesz wiadomosc jaka ma sie wyswietlac po wydropieniu! #
- DropSVipText: &c%player% wydropil voucher na SVipa! #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - #
- DropDisco: 3 #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - #
- DropVip: 2 # Procent na drop danego vouchera! #
- DropSVip: 1 #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - #
- VoucherTextDisco: &4Voucher na Disco Zbroje #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - #
- VoucherTextVip: &4Voucher na Vipa # Tu wpisujesz nazwe danego vouchera! #
- VoucherTextSVip: &4Voucher na SVipa #- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - #
- #- - - - - - - - - - - - - - - - - - - - - - -#
- # KOD SKRYPTU #
- #- - - - - - - - - - - - - - - - - - - - - - -#
- variables:
- {event.disco} = false
- {event.vip} = false
- {event.svip} = false
- command /{@Komenda} [<text>]:
- permission: VoucheryZeStone.event
- permission message: &8[&6EASYPROT.NET&8] &cNie mozesz uzyc tej komedy!
- 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/event tajnie disco &a - &7Wlacza/Wylacza tajnie event na disco zbroje"
- send " &8» &6/event tajnie vip &a - &7Wlacza/Wylacza tajnie event na vipa"
- send " &8» &6/event tajnie svip &a - &7Wlacza/Wylacza tajnie event na svipa"
- send " &8» &cStrona &a1/2"
- send " &8» &cNastepna strona /event 2"
- if arg 1 is "2":
- send " &8» &cKomendy:"
- send " &8» &6/event voucher disco &a - &7Daje ci voucher na disco zbroje"
- send " &8» &6/event voucher vip &a - &7Daje ci voucher na vipa"
- send " &8» &6/event voucher svip &a - &7Daje ci voucher na svipa"
- send " &8» &cStrona &a2/2"
- if arg 1 is "disco":
- if {event.disco} is false:
- 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 {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
- if arg 1 is "vip":
- if {event.vip} is false:
- set {event.vip} to true
- broadcast "&8» &7Event vouchery na vipy ze stone!"
- broadcast "&8» &7Zostal wlasnie wlaczony przez &c%player%&7!"
- stop
- 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
- if arg 1 is "svip":
- if {event.svip} is false:
- set {event.svip} to true
- broadcast "&8» &7Event vouchery na svipy ze stone!"
- broadcast "&8» &7Zostal wlasnie wlaczony przez &c%player%&7!"
- stop
- 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
- if arg 1 is "tajnie disco":
- if {event.disco} is false:
- set {event.disco} to true
- send " &8» &6Tajnie wlaczyles event na vouchery disco ze stone!"
- stop
- if {event.disco} is true:
- set {event.disco} to false
- send " &8» &6Tajnie wylaczyles event na vouchery disco ze stone!"
- stop
- if arg 1 is "tajnie vip":
- if {event.vip} is false:
- set {event.vip} to true
- send " &8» &6Tajnie wlaczyles event na vouchery vipa ze stone!"
- stop
- if {event.vip} is true:
- set {event.vip} to false
- send " &8» &6Tajnie wylaczyles event na vouchery vipa ze stone!"
- stop
- if arg 1 is "tajnie svip":
- if {event.svip} is false:
- set {event.svip} to true
- send " &8» &6Tajnie wlaczyles event na vouchery svipa ze stone!"
- stop
- if {event.svip} is true:
- set {event.svip} to false
- send " &8» &6Tajnie wylaczyles event na vouchery svipa ze stone!"
- stop
- if arg 1 is "voucher disco":
- add 1 book named "{@VoucherTextDisco}" to player
- if arg 1 is "voucher vip":
- add 1 book named "{@VoucherTextVip}" to player
- if arg 1 is "voucher svip":
- add 1 book named "{@VoucherTextSVip}" to player
- on mine of stone:
- if {event.disco} is true:
- chance of {@DropDisco}%:
- if player can hold 1 book named "{@VoucherTextDisco}":
- add 1 book named "{@VoucherTextDisco}" to player
- broadcast "{@DropDiscoText}"
- else:
- drop 1 book named "{@VoucherTextDisco}"
- broadcast "{@DropDiscoText}"
- if {event.vip} is true:
- chance of {@DropVip}%:
- if player can hold 1 book named "{@VoucherTextVip}":
- add 1 book named "{@VoucherTextVip}" to player
- broadcast "{@DropVipText}"
- else:
- drop 1 book named "{@VoucherTextVip}"
- broadcast "{@DropVipText}"
- if {event.svip} is true:
- chance of {@DropSVip}%:
- if player can hold 1 book named "{@VoucherTextSVip}":
- add 1 book named "{@VoucherTextSVip}" to player
- broadcast "{@DropSVipText}"
- else:
- drop 1 book named "{@VoucherTextSVip}"
- 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}" 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}" 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}" from player's tool
- send "{@SVipText}"
- every 1 minutes:
- set {_version} to content of file "plugins/Skript/scripts/{@Skript}.sk"
- set {_v} to index of "##" in {_version}
- set {_v2} to subtext of {_version} from character ({_v}+1) to character (length of {_version})
- set {_v3} to index of "##" in {_v2}
- set {version} to subtext of {_version} from character ({_v}+1) to character ({_v3})
- set {_version} to result of connect to "http://pastebin.com/raw/DpWgngd4"
- set {_v} to index of "##" in {_version}
- set {_v2} to subtext of {_version} from character ({_v}+1) to character (length of {_version})
- set {_v3} to index of "##" in {_v2}
- set {version.new} to subtext of {_version} from character ({_v}+1) to character ({_v3})
- {version} is not {version.new}:
- download "http://pastebin.com/raw/DpWgngd4" to "plugins/Skript/scripts/{@Skript}.sk"
- execute console command "/sk reload %script%"
- loop all players:
- loop-player has permission "VoucheryZeStone.autoupdate":
- broadcast "&a&l>> &cAKTUALIZACJA VOUCHERY ZE STONE &a&l<<"
- stop
Advertisement
Add Comment
Please, Sign In to add comment