Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /forma:
- trigger:
- set {_forma} to yaml value "forma" from "forma/%player%.yml"
- send "&8&m----------------------------------------"
- if {_forma} is less than 1000:
- send "&fTwoja forma wynosi: &4%{_forma}%"
- else if {_forma} is less than 2500:
- send "&fTwoja forma wynosi: &c%{_forma}%"
- else if {_forma} is less than 4000:
- send "&fTwoja forma wynosi: &e%{_forma}%"
- else if {_forma} is less than 6000:
- send "&fTwoja forma wynosi: &a%{_forma}%"
- else if {_forma} is less than 7500:
- send "&fTwoja forma wynosi: &e%{_forma}%"
- else if {_forma} is less than 9000:
- send "&fTwoja forma wynosi: &c%{_forma}%"
- else if {_forma} is less than 10000:
- send "&fTwoja forma wynosi: &4%{_forma}%"
- send "&fOptymalny poziom formy to &a4000-6000"
- send "&8&m----------------------------------------"
- on jump:
- set {_forma} to yaml value "forma" from "forma/%player%.yml"
- if {_forma} is more than 0:
- if {_forma} is less than 10000:
- set {_forma2} to {_forma}+2
- set yaml value "forma" from "forma/%player%.yml" to {_forma2}
- set {_przetren} to yaml value "przetrenowanie" from "forma/%player%.yml"
- set {_przetren2} to {_przetren}+3
- set yaml value "przetrenowanie" from "forma/%player%.yml" to {_przetren2}
- every 5 second:
- loop all players:
- set {_forma} to yaml value "forma" from "forma/%loop-player%.yml"
- if {_forma} is more than 0:
- if {_forma} is less than 10000:
- set {_forma2} to {_forma}-3
- set yaml value "forma" from "forma/%loop-player%.yml" to {_forma2}
- set {_przetren} to yaml value "przetrenowanie" from "forma/%loop-player%.yml"
- if {_przetren} is more than 0:
- set {_przetren2} to {_przetren}-2
- set yaml value "przetrenowanie" from "forma/%loop-player%.yml" to {_przetren2}
- if {_forma} is less than 1000:
- apply potion of slowness of tier 2 to the loop-player for 5 second
- apply potion of nausea of tier 2 to the loop-player for 5 second
- else if {_forma} is less than 2500:
- apply potion of slowness of tier 1 to the loop-player for 5 second
- else if {_forma} is less than 4000:
- apply potion of speed of tier 1 to the loop-player for 5 second
- else if {_forma} is less than 6000:
- apply potion of speed of tier 2 to the loop-player for 5 second
- apply potion of strength of tier 1 to the loop-player for 5 second
- else if {_forma} is less than 7500:
- apply potion of speed of tier 1 to the loop-player for 5 second
- else if {_forma} is less than 9000:
- apply potion of slowness of tier 1 to the loop-player for 5 second
- else if {_forma} is less than 10000:
- apply potion of slowness of tier 1 to the loop-player for 5 second
- apply potion of nausea of tier 2 to the loop-player for 5 second
- apply potion of weakness of tier 2 to the loop-player for 5 second
- if {_przetren} is more than 500:
- send "&cPrzetrenowales sie! Lepiej odpocznij!" to loop-player
- apply potion of slowness of tier 2 to the loop-player for 5 second
- apply potion of nausea of tier 3 to the loop-player for 5 second
- apply potion of weakness of tier 2 to the loop-player for 5 second
- every 1 second:
- loop all players:
- if loop-player is sprinting:
- set {_forma} to yaml value "forma" from "forma/%loop-player%.yml"
- if {_forma} is more than 0:
- if {_forma} is less than 10000:
- set {_forma2} to {_forma}+1
- set yaml value "forma" from "forma/%loop-player%.yml" to {_forma2}
- set {_przetren} to yaml value "przetrenowanie" from "forma/%loop-player%.yml"
- set {_przetren2} to {_przetren}+1
- set yaml value "przetrenowanie" from "forma/%loop-player%.yml" to {_przetren2}
- on script load:
- if folder "plugins/Skript/scripts/forma" doesn't exists:
- create folder "plugins/Skript/scripts/forma"
- on join:
- if file "plugins/Skript/scripts/forma/%player%.yml" doesn't exists:
- create file "plugins/Skript/scripts/forma/%player%.yml"
- set yaml value "forma" from "forma/%player%.yml" to 5000
- set yaml value "przetrenowanie" from "forma/%player%.yml" to 0
Advertisement
Add Comment
Please, Sign In to add comment