Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if arg 1 is "debuge":
- if player have permissions "skyblock.*":
- set {_nick} to "Radin2407"
- set {_aa} to "_CreaM13377"
- set {_gracz} to {skyblock::wyspa::gracz::%{_aa}%::wlascicielWyspy}
- if {skyblock::wyspa::gracz::%{_aa}%} is "tak":
- if {skyblock::wyspa::gracz::%{_aa}%::dodany::%{_nick}%} is "tak":
- remove 1 from {skyblock::wyspa::%{_aa}%::ilosc::graczy}
- remove {_nick} from {skyblock::wyspa::%{_aa}%::lista::graczy::*}
- #run {_nick} command "/rg removemember wyspa-%{_gracz}% %{_aa}%" as op
- set {skyblock::wyspa::gracz::%{_aa}%::dodawanie} to "nie"
- set {skyblock::wyspa::gracz::%{_aa}%::dodany::%{_nick}%} to "nie"
- teleport {_nick} to {essentials::spawn}
- delete {skyblock::gracz::%{_nick}%::homeLoc}
- if arg 1 is "debuge1":
- if player have permissions "*":
- if arg 2 is set:
- set {_nick} to arg 2
- add {_nick} to {skyblock::wyspa::zalozycieli::*}
- #Generuj
- if arg 1 is "pokaz":
- if player have permission "*":
- loop {SkyBlock::bankLoc::*}:
- wait 0.1 seconds
- add 1 to {_index}
- if {_index} is greater than or equal to 1000:
- exit loop
- else:
- send "%{_index}%) %loop-value%"
- if arg 1 is "ilejest":
- if player have permission "*":
- set {_aaa} to size of {SkyBlock::bankLoc::*}
- send "%{_aaa}%"
- if arg 1 is "usuwaj":
- if player have permission "*":
- delete {SkyBlock::bankLoc::*}
- send "usunieto"
- if arg 1 is "generuj":
- send "STOP"
- STOP
- if player have permission "*":
- clear {SkyBlock::bankLoc::*}
- #if file "plugins/Skript/scripts/1operacje.yml" doesn't exists:
- #create file "plugins/Skript/scripts/1operacje.yml"
- set {_loc.x} to 5100
- set {_ile.x} to 5100
- set {_loc.y} to 128
- set {_loc.z} to 5100
- set {_ile.z} to 5100
- set {_world} to "%world of player%"
- set {_loc} to the location at {_loc.x}, {_loc.y}, {_loc.z}
- #add {_loc} to {SkyBlock::bankLoc::*}
- set {_numerek} to 1
- #wf "lista:" "plugins/Skript/scripts/BazaLokalizacji.yml"
- #wf " %{_numerek}%: '%{_loc}%'" "plugins/Skript/scripts/BazaLokalizacji.yml"
- #wf "%{_numerek}%) %{_loc}%" "plugins/Skript/scripts/1operacje.yml"
- #set {_ile1} to ({_ile.x}*2/150)#wartość x bo jest to długość między 0 a najdalszym punktem, razy 2 bo - i +, podzielić przez 150, bo odstęp między wyspami, a plus 1 bo jeszcze pętla na z
- #set {_index.ile1} to 0
- set {_index} to 0
- set {_ok} to true
- set {_cooldown} to 0
- set {_max} to 5000
- set {_info} to 0
- while {_ok} is true:
- set {_index.ile1} to 0
- set {_ile1} to ({_ile.x}*2/150)
- #wf "%{_index.ile1}% %({_ile.z}*2/150)%////////////////////////////////////////ile0 %({_ile.x}*2/150)%" "plugins/Skript/scripts/1operacje.yml"
- set {_jest1} to 0
- loop {_ile1} times:
- add 1 to {_cooldown}
- if {_cooldown} is greater than or equal to 1000:
- add 1 to {_info}
- if {_info} is greater than or equal to 10:
- send "Wygenerowano już %{_numerek}% lokalizacji"
- set {_info} to 0
- set {_cooldown} to 0
- wait 0.1 seconds
- add 1 to {_jest1}
- add 1 to {_numerek}
- remove 150 from {_loc.x}
- set {_loc} to the location at {_loc.x}, {_loc.y}, {_loc.z}
- #add {_loc} to {SkyBlock::bankLoc::*}
- #wf " %{_numerek}%: '%{_loc}%'" "plugins/Skript/scripts/BazaLokalizacji.yml"
- #wf "%{_numerek}%) %{_loc}%" "plugins/Skript/scripts/1operacje.yml"
- if {_numerek} is greater than 288*{_max}-15:
- set {_ok} to false
- #wf "====================PRZYMUSOWY KONIEC====================" "plugins/Skript/scripts/1operacje.yml"
- send "PRZYMUSOWY KONIEC"
- stop
- if {_jest1} is equal to {_ile1}:
- set {_jest2} to 0
- loop {_ile1} times:
- add 1 to {_cooldown}
- if {_cooldown} is greater than or equal to 1000:
- add 1 to {_info}
- if {_info} is greater than or equal to 10:
- send "Wygenerowano już %{_numerek}% lokalizacji"
- set {_info} to 0
- set {_cooldown} to 0
- wait 0.1 seconds
- add 1 to {_jest2}
- remove 150 from {_loc.z}
- set {_loc} to the location at {_loc.x}, {_loc.y}, {_loc.z}
- #add {_loc} to {SkyBlock::bankLoc::*}
- #wf " %{_numerek}%: '%{_loc}%'" "plugins/Skript/scripts/BazaLokalizacji.yml"
- add 1 to {_numerek}
- #wf "%{_numerek}%) %{_loc}%" "plugins/Skript/scripts/1operacje.yml"
- if {_numerek} is greater than 288*{_max}-15:
- set {_ok} to false
- #wf "====================PRZYMUSOWY KONIEC====================" "plugins/Skript/scripts/1operacje.yml"
- send "PRZYMUSOWY KONIEC"
- stop
- if {_jest2} is equal to {_ile2}:
- set {_jest3} to 0
- loop {_ile1} times:
- add 1 to {_cooldown}
- if {_cooldown} is greater than or equal to 1000:
- add 1 to {_info}
- if {_info} is greater than or equal to 10:
- send "Wygenerowano już %{_numerek}% lokalizacji"
- set {_info} to 0
- set {_cooldown} to 0
- wait 0.1 seconds
- add 1 to {_jest3}
- add 1 to {_numerek}
- add 150 to {_loc.x}
- set {_loc} to the location at {_loc.x}, {_loc.y}, {_loc.z}
- #add {_loc} to {SkyBlock::bankLoc::*}
- #wf " %{_numerek}%: '%{_loc}%'" "plugins/Skript/scripts/BazaLokalizacji.yml"
- #wf "%{_numerek}%) %{_loc}%" "plugins/Skript/scripts/1operacje.yml"
- if {_numerek} is greater than 288*{_max}-15:
- set {_ok} to false
- #wf "====================PRZYMUSOWY KONIEC====================" "plugins/Skript/scripts/1operacje.yml"
- send "PRZYMUSOWY KONIEC"
- stop
- if {_jest3} is equal to {_ile3}:
- loop {_ile1}-1 times:#-1 jest by ominąć punkt początkowy
- add 1 to {_cooldown}
- if {_cooldown} is greater than or equal to 1000:
- add 1 to {_info}
- if {_info} is greater than or equal to 10:
- send "Wygenerowano już %{_numerek}% lokalizacji"
- set {_info} to 0
- set {_cooldown} to 0
- wait 0.1 seconds
- add 1 to {_numerek}
- add 150 to {_loc.z}
- set {_loc} to the location at {_loc.x}, {_loc.y}, {_loc.z}
- #add {_loc} to {SkyBlock::bankLoc::*}
- #wf " %{_numerek}%: '%{_loc}%'" "plugins/Skript/scripts/BazaLokalizacji.yml"
- #wf "%{_numerek}%) %{_loc}%" "plugins/Skript/scripts/1operacje.yml"
- if {_numerek} is greater than 288*{_max}-15:
- set {_ok} to false
- #wf "====================PRZYMUSOWY KONIEC====================" "plugins/Skript/scripts/1operacje.yml"
- send "PRZYMUSOWY KONIEC"
- stop
- add 1 to {_index}
- add 1 to {_numerek}
- add 450 to {_loc.z}
- add 300 to {_loc.x}
- set {_ile.x} to {_loc.x}
- set {_ile.z} to {_loc.z}
- set {_loc} to the location at {_loc.x}, {_loc.y}, {_loc.z}
- #add {_loc} to {SkyBlock::bankLoc::*}
- #wf " %{_numerek}%: '%{_loc}%'" "plugins/Skript/scripts/BazaLokalizacji.yml"
- #wf "%{_numerek}%) %{_loc}%" "plugins/Skript/scripts/1operacje.yml"
- if "%{_index}%" is "%{_max}%":
- set {_ok} to false
- #wf "====================KONIEC====================" "plugins/Skript/scripts/1operacje.yml"
- stop
- if {_index} is greater than {_max}:
- set {_ok} to false
- #wf "====================KONIEC====================" "plugins/Skript/scripts/1operacje.yml"
- stop
- send "1"
- loop {SkyBlock::bankLoc::*}:
- add 1 to {_index}
- if {_index} is greater than or equal to 10:
- exit loop
- else:
- send "%loop-value%"
- send "Gotowe"
- else:
- send "&4Nie masz do tego uprawnień"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement