SHOW:
|
|
- or go back to the newest paste.
| 1 | #---------------------# | |
| 2 | - | # Script by Dzikoysk # |
| 2 | + | # Script by Dzikoysk # |
| 3 | - | # Name: SafeOre # |
| 3 | + | # Name: UniqueParkour # |
| 4 | - | # Version: 1.4 Release # |
| 4 | + | # Version: 1.0 # |
| 5 | - | # Skript: Beta 10 # |
| 5 | + | # Skript: Beta 10 # |
| 6 | #---------------------# | |
| 7 | ||
| 8 | #================================# | |
| 9 | - | # Licencja | SafeOre # |
| 9 | + | # Licencja | UniqueParkour # |
| 10 | # by Dzikoysk # | |
| 11 | #--------------------------------# | |
| 12 | # ~ Nie zezwalam na: # | |
| 13 | # - Zarabianie na skrypcie # | |
| 14 | # - Przerabianie/modyfikowanie # | |
| 15 | # zmienianie tresci dla grona # | |
| 16 | # publicznego # | |
| 17 | # - Wykorzystywanie kodu skryptu # | |
| 18 | - | # w swoich skryptach # |
| 18 | + | # w swoich skryptach (np. kod na # |
| 19 | # licnik w exp, timmer) # | |
| 20 | # - Udostepnianiu skryptu innym* # | |
| 21 | # - Udostepniania skryptu w # | |
| 22 | # paczkach plikow serwerowch itp # | |
| 23 | # - Usuwanie tresci # | |
| 24 | # zawierajacych autora # | |
| 25 | # - Podszywaniu sie pod autora # | |
| 26 | # ~ Zezwalam na: # | |
| 27 | # - Modyfikowanie wiadomosci # | |
| 28 | # skryptu na wlasne potrzeby # | |
| 29 | # - Dopisywanie fragmentow na # | |
| 30 | # wlasne potrzeby # | |
| 31 | # * - Tylko za zgoda autora # | |
| 32 | #--------------------------------# | |
| 33 | # Mylnie odczytana licencja nie # | |
| 34 | # zwalnia z przestrzegania jej # | |
| 35 | #================================# | |
| 36 | ||
| 37 | #---------------------------------------------------------------# | |
| 38 | # # | |
| 39 | - | #------# |
| 39 | + | |
| 40 | - | # Info # |
| 40 | + | |
| 41 | - | #------# |
| 41 | + | |
| 42 | # # | |
| 43 | - | # Skrypt z obecnymi ustawieniami dziala w pelni poprawnie. Dlatego umiejetnie posluguj sie konfiguracja, a wszystko bedzie dobrze. |
| 43 | + | |
| 44 | - | # Krótkie wyjasnienie/wstep: W wielu wiadmosciach widoczne sa rzeczy typu: {@tekst}. Sa to zmienne.
|
| 44 | + | |
| 45 | - | # Pozwalaja one wlasnie na latwa konfiguracje róznych wartosci, oraz na wyswietlanie ustawionych tekstów. |
| 45 | + | |
| 46 | - | # Dlatego zmieniajac tekst zrozum do czego sluza, bedzie Ci prosciej dopasowac np. tekst do swoich potrzeb. |
| 46 | + | |
| 47 | - | # Skrypt jest w pelni do konfiguracji i prawie wszystko da sie zmienic za pomoa ustawien! |
| 47 | + | |
| 48 | - | # Powodzenia! ;) |
| 48 | + | #----------------------# |
| 49 | # General Config # | |
| 50 | #----------------------# | |
| 51 | - | #---------# |
| 51 | + | |
| 52 | - | # General # |
| 52 | + | # Tag wyswietlany przed wiadomosciami skryptu: |
| 53 | - | #---------# |
| 53 | + | tag: &6[Parkour] |
| 54 | ||
| 55 | - | # Options - Config / Ustawienia skryptu |
| 55 | + | # Tag na tabliczkach: |
| 56 | sign.tag: &l[Parkour] | |
| 57 | - | # Tag skryptu |
| 57 | + | |
| 58 | - | tag: &b[SafeOre] |
| 58 | + | # Nazwa pliku sk: |
| 59 | sk: UniqueParkour | |
| 60 | - | # Ruda diamentu |
| 60 | + | |
| 61 | - | diamondore: diamond ore |
| 61 | + | # Jezyk komend (pl/eng): |
| 62 | - | # Ruda emeraldu |
| 62 | + | lang: pl |
| 63 | - | emeraldore: emerald ore |
| 63 | + | |
| 64 | - | # Ruda zelaza |
| 64 | + | # Color function: |
| 65 | - | ironore: iron ore |
| 65 | + | c1: &a |
| 66 | - | # Ruda zlota |
| 66 | + | c2: &6 |
| 67 | - | goldore: gold ore |
| 67 | + | error: &c |
| 68 | - | # Ruda redstona |
| 68 | + | |
| 69 | - | redstoneore: redstone ore |
| 69 | + | #----------------------# |
| 70 | - | # Ruda Lapisu |
| 70 | + | # Timmer Config # |
| 71 | - | lapisore: lapis lazuli ore |
| 71 | + | #----------------------# |
| 72 | ||
| 73 | - | # Na co ma sie zminic ruda, która ktos próbuje wykopac, domyslnie stone. Aby ruda znikala wpisz: air |
| 73 | + | xpTimmer: true |
| 74 | - | set: stone |
| 74 | + | |
| 75 | #----------------------# | |
| 76 | - | # Przedmity wpadajace z poszczegolnych rud: |
| 76 | + | # Teleportation Config # |
| 77 | - | # Diament |
| 77 | + | #----------------------# |
| 78 | - | item1: diamond |
| 78 | + | |
| 79 | - | # Emerald |
| 79 | + | # Czy po przejsciu/wyjsciu z parkoura ma teleportowac do lobby(true), czy na poprzednia pozycje gracza(false): |
| 80 | - | item2: emerald |
| 80 | + | tpLobby: true |
| 81 | - | # Zelazo |
| 81 | + | |
| 82 | - | item3: iron ingot |
| 82 | + | # Czy wylaczyc cooldown przed teleportacja: |
| 83 | - | # Zloto |
| 83 | + | tpCooldown: true |
| 84 | - | item4: gold ingot |
| 84 | + | |
| 85 | - | # Redstone: |
| 85 | + | # Czy trzeba czekać przed ponownym wejściem na parkour |
| 86 | - | item5: 5 redstone |
| 86 | + | tpJoinCooldown: false |
| 87 | - | # Lapis: |
| 87 | + | |
| 88 | - | item6: 6 lapis lazuli |
| 88 | + | # Ile czasu trzeba czekać |
| 89 | tpJoinTime: 1 hour | |
| 90 | ||
| 91 | ||
| 92 | - | # ===================================== |
| 92 | + | |
| 93 | - | # Procentowe szanse dla zwyklych graczy |
| 93 | + | |
| 94 | - | # ===================================== |
| 94 | + | |
| 95 | - | #Procenty - Nie mozna pisac wartosci typu o.4, 1.5. |
| 95 | + | |
| 96 | - | #Aby takowe uzyskac wpisz 4 dla o.4, 15 dla 1.5 itd. |
| 96 | + | |
| 97 | - | # --------------------- |
| 97 | + | |
| 98 | - | # Procentowa szana |
| 98 | + | # Skrypt # |
| 99 | - | # Wyswietlany procent |
| 99 | + | # Code # |
| 100 | - | #---------------------- |
| 100 | + | |
| 101 | - | # Diament: |
| 101 | + | |
| 102 | - | szansa: 8 |
| 102 | + | |
| 103 | - | procent: 0.8 |
| 103 | + | |
| 104 | - | # Emerald: |
| 104 | + | |
| 105 | - | szansa1: 12 |
| 105 | + | # Variables |
| 106 | - | procent1: 1.2 |
| 106 | + | |
| 107 | - | # Zelazo: |
| 107 | + | {parkour.player.%player%.lvl} = 0
|
| 108 | - | szansa2: 10 |
| 108 | + | {parkour.player.%player%.timmer-mili} = 0
|
| 109 | - | procent2: 10 |
| 109 | + | {parkour.player.%player%.timmer-sec} = 0
|
| 110 | - | # Zloto |
| 110 | + | {parkour.player.%player%.start} = false
|
| 111 | - | szansa3: 14 |
| 111 | + | |
| 112 | - | procent3: 1.4 |
| 112 | + | # Manage options |
| 113 | - | # Redstone |
| 113 | + | |
| 114 | - | szansa4: 20 |
| 114 | + | version: 1.0 |
| 115 | - | procent4: 2 |
| 115 | + | permissions: &cNie masz uprawnien do tej komendy |
| 116 | - | # Lapis |
| 116 | + | |
| 117 | - | szansa5: 9 |
| 117 | + | # Basic command |
| 118 | - | procent5: 0.9 |
| 118 | + | command /parkour [<text>] [<text>] [<text>]: |
| 119 | - | # ========================================================== |
| 119 | + | aliases: pk, pa, park |
| 120 | - | # Procentowe szanse dla grupy VIP. (Odpowiednie permissions) |
| 120 | + | |
| 121 | - | # ========================================================== |
| 121 | + | if arg 1 is "list" or "lista": |
| 122 | - | # --------------------- |
| 122 | + | if {parkour.list-number} is 0:
|
| 123 | - | # Procentowa szana |
| 123 | + | send "{@error}Nie ma zadnych Parkour'ow!"
|
| 124 | - | # Wyswietlany procent |
| 124 | + | |
| 125 | - | #---------------------- |
| 125 | + | if {parkour.list-number} is greater than 0:
|
| 126 | - | # Diament: |
| 126 | + | send "{@tag} {@c1}Parkour {@c2}({@c1}%{parkour.list-number}%{@c2}){@c1}: {@c2}%{parkour.list.list::*}%"
|
| 127 | - | vipszansa: 12 |
| 127 | + | |
| 128 | - | vipprocent: 1.2 |
| 128 | + | if arg 1 is "create" or "stworz": |
| 129 | - | # Emerald: |
| 129 | + | if player has permissions "parkour.create" or "parkour.admin": |
| 130 | - | vipszansa1: 15 |
| 130 | + | if arg 2 is set: |
| 131 | - | vipprocent1: 1.5 |
| 131 | + | if {parkour.%arg 2%.parkour} is true:
|
| 132 | - | # Zelazo: |
| 132 | + | send "{@tag} {@error}Istnieje juz Parkour o takiej nazwie!"
|
| 133 | - | vipszansa2: 30 |
| 133 | + | |
| 134 | - | vipprocent2: 3 |
| 134 | + | |
| 135 | - | # Zloto: |
| 135 | + | set {parkour.parkour.%arg 2%.parkour} to true
|
| 136 | - | vipszansa3: 25 |
| 136 | + | set {parkour.parkour.%arg 2%.name} to "%arg 2%"
|
| 137 | - | vipprocent3: 2.5 |
| 137 | + | add "%arg 2%" to {parkour.list.list::*}
|
| 138 | - | # Redstone: |
| 138 | + | add 1 to {parkour.list-number}
|
| 139 | - | vipszansa4: 30 |
| 139 | + | send "{@tag} {@c1}Stworzono parkour o nazwie {@c2}%arg 2%{@c1}!"
|
| 140 | - | vipprocent4: 3 |
| 140 | + | |
| 141 | - | # Lapis: |
| 141 | + | |
| 142 | - | vipszansa5: 15 |
| 142 | + | send "{@tag} {@error}Podaj nazwe parkoura"
|
| 143 | - | vipprocent5: 1.5 |
| 143 | + | |
| 144 | else: | |
| 145 | send "{@permissions}"
| |
| 146 | stop | |
| 147 | - | # Wysokosci wydobycia: |
| 147 | + | if arg 1 is "delete" or "usun": |
| 148 | - | # Diament |
| 148 | + | if player has permissions "parkour.delete" or "parkour.admin": |
| 149 | - | yDiamond: 20 |
| 149 | + | if arg 2 is set: |
| 150 | - | # Emerald |
| 150 | + | if {parkour.parkour.%arg 2%.parkour} is true:
|
| 151 | - | yEmerald: 20 |
| 151 | + | set {parkour.parkour.%arg 2%.parkour} to false
|
| 152 | - | # Zelazo |
| 152 | + | set {parkour.parkour.%arg 2%.endset} to false
|
| 153 | - | yIron: 250 |
| 153 | + | remove {parkour.parkour.%arg 2%.name} from {parkour.list.list::*}
|
| 154 | - | # Zloto |
| 154 | + | remove 1 from {parkour.list-number}
|
| 155 | - | yGold: 40 |
| 155 | + | clear {parkour.parkour.%arg 2%.spawn}
|
| 156 | - | # Redstone |
| 156 | + | clear {parkour.parkour.%arg 2%.name}
|
| 157 | - | yRedstone: 50 |
| 157 | + | send "{@tag} {@c1}Usunieto parkour {@c2}%arg 2%"
|
| 158 | - | #Lapis |
| 158 | + | |
| 159 | - | yLapis: 50 |
| 159 | + | |
| 160 | send "{@tag} {@error}Parkour o takiej nazwie nie istnieje!"
| |
| 161 | stop | |
| 162 | else: | |
| 163 | send "{@tag} {@error}Podaj nazwe Parkoura!"
| |
| 164 | stop | |
| 165 | else: | |
| 166 | send "{@permissions}"
| |
| 167 | stop | |
| 168 | - | #------------------------------------------# |
| 168 | + | if arg 1 is "setlobby" or "ustawlobby": |
| 169 | - | # Bezsensowna, ale możlwia konfiguracja <: # |
| 169 | + | if player has permissions "parkour.setlobby" or "parkour.admin": |
| 170 | - | #------------------------------------------# |
| 170 | + | set {parkour.lobby} to location of player
|
| 171 | send "{@tag} {@c1}Ustawiono lobby!"
| |
| 172 | stop | |
| 173 | - | # Wiadmosc, która pokaze sie po zniszczeniu rudy diamentu |
| 173 | + | |
| 174 | - | message5: &bDiamenty &7wypadaja tylko ze stone. Masz na to |
| 174 | + | send "{@permissions}"
|
| 175 | - | msg1: {@procent}
|
| 175 | + | |
| 176 | - | msg2: &6procent &7szans |
| 176 | + | if arg 1 is "setspawn" or "ustawspawn": |
| 177 | - | # Wiadmosc, która pokaze sie po zniszczeniu rudy emeraldu |
| 177 | + | if player has permissions "parkour.setspawn" or "parkour.admin": |
| 178 | - | message6: &aEmeraldy &7wypadaja tylko ze stone. Masz na to |
| 178 | + | if arg 2 is set: |
| 179 | - | msg3: {@procent1}
|
| 179 | + | if {parkour.parkour.%arg 2%.parkour} is true:
|
| 180 | - | msg4: &6procent &7szans |
| 180 | + | set {parkour.parkour.%arg 2%.spawn} to location of player
|
| 181 | - | # Wiadmosc, która pokaze sie po zniszczeniu rudy zelaza |
| 181 | + | set {parkour.parkour.%arg 2%.endset} to true
|
| 182 | - | message7: &fZelazo &7wypada tylko ze stone. Masz na to |
| 182 | + | send "{@tag} {@c1}Ustawiono spawn dla {@c2}%arg 2%{@c1}!"
|
| 183 | - | msg5: {@procent2}
|
| 183 | + | |
| 184 | - | msg6: &6procent &7szans |
| 184 | + | |
| 185 | - | # Wiadmosc, która pokaze sie po zniszczeniu rudy zlota |
| 185 | + | send "{@tag} {@error}Parkour o takiej nazwie nie istnieje!"
|
| 186 | - | message8: &6Zloto &7wypada tylko ze stone. Masz na to |
| 186 | + | |
| 187 | - | msg7: {@procent3}
|
| 187 | + | |
| 188 | - | msg8: &6procent &7szans |
| 188 | + | send "{@tag} {@error}Podaj nazwe parkoura!"
|
| 189 | - | # Wiadmosc, która pokaze sie po zniszczeniu rudy redstona |
| 189 | + | |
| 190 | - | message12: &cRedstone &7wypada tylko ze stone. Masz na to |
| 190 | + | |
| 191 | - | msg9: {@procent4}
|
| 191 | + | send "{@permissions}"
|
| 192 | - | msg10: &6procent &7szans |
| 192 | + | |
| 193 | - | # Wiadmosc, która pokaze sie po zniszczeniu rudy lapisu |
| 193 | + | if arg 1 is "setprize": |
| 194 | - | message11: &9Lapis &7wypada tylko ze stone. Masz na to |
| 194 | + | if player has permissions "parkour.setprize" or "parkour.admin": |
| 195 | - | msg11: {@procent5}
|
| 195 | + | if arg 2 is set: |
| 196 | - | msg12: &6procent &7szans |
| 196 | + | if arg 3 is set: |
| 197 | if {parkour.parkour.%arg 2%.parkour} is true:
| |
| 198 | set {parkour.parkour.%arg 2%.prize} to arg 3
| |
| 199 | send "&aUstawiono nagrode!" | |
| 200 | - | # Alias do komendy /stone [Alias - Inna nazwa tej samej komendy] |
| 200 | + | |
| 201 | - | alias1: rudy |
| 201 | + | else: |
| 202 | send "{@tag} {@error}Parkour o takiej nazwie nie istnieje!"
| |
| 203 | - | # Tego radze nie konfigurowac pod wzgledem wygladu - w znaczeniu ulozenia tesktu |
| 203 | + | |
| 204 | - | # Tu niestety musialem wklepac niektóre rzeczy na sztywno w kod, dlatego nie radze dotykac sie |
| 204 | + | |
| 205 | - | # linijek send7, send8, send9 i send10 poniewaz tu sa one tylko czysto informacyjne. |
| 205 | + | send "{@tag} {@error}Podaj ilosc monet!"
|
| 206 | - | # Wiadmosc, która zobaczy gracz po wpisaniu komendy /stone |
| 206 | + | |
| 207 | - | # Jedna linijka = 1 linijka na chacie w grze |
| 207 | + | send "{@tag} {@error}Podaj nazwe parkoura!"
|
| 208 | - | # Tu piszemy pierwsza czesc wiadomosci bez zmiennych i tesktu za nimi |
| 208 | + | |
| 209 | - | # Zapisy od send1 do send6 sa pierwsza czescia wiadomosci (przed zmienna) |
| 209 | + | |
| 210 | - | # Zapisy od send7 do send10 sa to zmienne wystepujace w wiadmosci [I] |
| 210 | + | send "{@permissions}"
|
| 211 | - | # Zapis send11, jest to tekst po zmiennej |
| 211 | + | |
| 212 | - | send1: "&3Aby wydobyc rudy &bdiamentow&3, &aemeraldow&3, &fzelaza&3, oraz &6zlota" |
| 212 | + | if arg 1 is "join" or "dolacz": |
| 213 | - | send2: "&3musisz kopac &7stone&3. Na poszczegolne rudy masz takie szanse:" |
| 213 | + | if player has permissions "parkour.join" or "parkour.default" or "parkour.admin": |
| 214 | - | send3: - &bDiamenty |
| 214 | + | if arg 2 is set: |
| 215 | - | send4: - &aEmeraldy |
| 215 | + | if {parkour.parkour.%arg 2%.parkour} is true:
|
| 216 | - | send5: - &fZelazo |
| 216 | + | if {parkour.parkour.%arg 2%.endset} is true:
|
| 217 | - | send6: - &6Zloto |
| 217 | + | if {parkour.config.tpJoinCooldown} is true:
|
| 218 | - | send7: {@procent} oraz {@vipprocent}
|
| 218 | + | if difference between {parkour.player.%name of player%.lu.%arg 2%} and now is less than {@tpJoinTime}:
|
| 219 | - | send8: {@procent1} oraz {@vipprocent1}
|
| 219 | + | send "{@tag} {@error} Musisz odczekac {@c2}%difference between {parkour.player.%name of player%.lu.%arg 2%} {@error} and now% aby ponownie skorzystac z tego parkouru"
|
| 220 | - | send9: {@procent2} oraz {@vipprocent2}
|
| 220 | + | |
| 221 | - | send10: {@procent3} oraz {@vipprocent3}
|
| 221 | + | if {parkour.config.tpCooldown} is true:
|
| 222 | - | send11: &3procent |
| 222 | + | set {parkour.player.%name of player%.back} to location of player
|
| 223 | - | # Dodatkowe + |
| 223 | + | wait 1 tick |
| 224 | - | send12: - &cRedstone |
| 224 | + | set {parkour.player.%name of player%.lvl} to player's level
|
| 225 | - | send13: - &9Lapis |
| 225 | + | loop all items in the player's inventory: |
| 226 | - | send14: {@procent4} oraz {@vipprocent4}
|
| 226 | + | add the loop-item to {inventory.%name of player%::*}
|
| 227 | - | send15: {@procent5} oraz {@vipprocent5}
|
| 227 | + | remove loop-item from player's inventory |
| 228 | set the player's level to 0 | |
| 229 | set level progress of the player to 0.0 | |
| 230 | teleport player to {parkour.parkour.%arg 2%.spawn}
| |
| 231 | set {parkour.player.%name of player%.parkour} to true
| |
| 232 | set {parkour.player.%name of player%.parkour.name} to "%arg 2%"
| |
| 233 | set {parkour.player.%name of player%.start} to false
| |
| 234 | send "{@tag} {@c1}Witaj na parkourze!"
| |
| 235 | set {parkour.player.%name of player%.lu.%arg 2%} to now
| |
| 236 | stop | |
| 237 | - | #-----------------------------------------------------------------------# |
| 237 | + | else: |
| 238 | - | # Code - tu ponizej nic juz nie zmieniaj # |
| 238 | + | send "&7Czekaj 5 sekund" |
| 239 | - | #-----------------------------------------------------------------------# |
| 239 | + | apply slowness 2 to player for 10 seconds |
| 240 | apply blindness 1 to player for 10 seconds | |
| 241 | wait 5 seconds | |
| 242 | - | # Aktywne rudy |
| 242 | + | set {parkour.player.%name of player%.lvl} to player's level
|
| 243 | - | {safeore.iron} = true
|
| 243 | + | set {parkour.player.%name of player%.back} to location of player
|
| 244 | - | {safeore.gold} = true
|
| 244 | + | set {parkour.player.%name of player%.parkour} to true
|
| 245 | - | {safeore.diamond} = true
|
| 245 | + | set {parkour.player.%name of player%.parkour.name} to "%arg 2%"
|
| 246 | - | {safeore.emerald} = true
|
| 246 | + | loop all items in the player's inventory: |
| 247 | - | {safeore.redstone} = false
|
| 247 | + | add the loop-item to {inventory.%name of player%::*}
|
| 248 | - | {safeore.lapis} = false
|
| 248 | + | remove loop-item from player's inventory |
| 249 | - | {chance.%player%} = 1
|
| 249 | + | set the player's level to 0 |
| 250 | set level progress of the player to 0.0 | |
| 251 | teleport player to {parkour.parkour.%arg 2%.spawn}
| |
| 252 | set {parkour.player.%name of player%.start} to false
| |
| 253 | - | #-------------# |
| 253 | + | remove blindness from player |
| 254 | - | # Kod wspólny # |
| 254 | + | remove slowness from player |
| 255 | - | #-------------# |
| 255 | + | send "{@tag} {@c1}Witaj na parkourze!"
|
| 256 | stop | |
| 257 | - | #Rudy ze stone |
| 257 | + | else: |
| 258 | - | on break of stone: |
| 258 | + | send "{@tag} {@error}Nie mozna dolaczyc, poniewaz parkour nie zostal jeszcze skonfigurowany!"
|
| 259 | - | if {safeore.diamond} is true:
|
| 259 | + | |
| 260 | - | player has permissions "safeore.vip.diamond": |
| 260 | + | |
| 261 | - | if player's y-coordinate is smaller than {@yDiamond}:
|
| 261 | + | send "{@tag} {@error}Parkour o takiej nazwie nie istnieje!"
|
| 262 | - | if player's tool is a diamond pickaxe of fortune: |
| 262 | + | |
| 263 | - | if chance of {@vipszansa}%:
|
| 263 | + | |
| 264 | - | if chance of 10%: |
| 264 | + | send "{@tag} {@error}Podaj nazwe parkoura!"
|
| 265 | - | chance of 50%: |
| 265 | + | |
| 266 | - | drop 1 {@item1}
|
| 266 | + | |
| 267 | - | message "&7Znaleziono &bDiament&7!" |
| 267 | + | send "{@permissions}"
|
| 268 | - | clear {chance.%player%}
|
| 268 | + | |
| 269 | if arg 1 is "lobby": | |
| 270 | - | chance of 50%: |
| 270 | + | if player has permissions "parkour.lobby" or "parkour.default" or "parkour.admin": |
| 271 | - | drop 2 {@item1}
|
| 271 | + | if {parkour.config.tpCooldown} is true:
|
| 272 | - | message "&7Znaleziono 2 &bDiamenty&7!" |
| 272 | + | send "&6Teleportacja..." |
| 273 | - | clear {chance.%player%}
|
| 273 | + | teleport player to {parkour.lobby}
|
| 274 | stop | |
| 275 | - | if player's tool is a diamond pickaxe of fortune 2: |
| 275 | + | |
| 276 | - | if chance of {@vipszansa}%:
|
| 276 | + | send "&7Czekaj 5 sekund" |
| 277 | - | if chance of 10%: |
| 277 | + | apply slowness 2 to player for 10 seconds |
| 278 | - | chance of 33%: |
| 278 | + | apply blindness 1 to player for 10 seconds |
| 279 | - | drop 1 {@item1}
|
| 279 | + | wait 5 seconds |
| 280 | - | message "&7Znaleziono &bDiament&7!" |
| 280 | + | send "&6Teleportacja..." |
| 281 | - | clear {chance.%player%}
|
| 281 | + | teleport player to {parkour.lobby}
|
| 282 | remove blindness from player | |
| 283 | - | chance of 33%: |
| 283 | + | remove slowness from player |
| 284 | - | drop 2 {@item1}
|
| 284 | + | |
| 285 | - | message "&7Znaleziono 2 &bDiamenty&7!" |
| 285 | + | if arg 1 is "leave" or "wyjdz" or "opusc": |
| 286 | - | clear {chance.%player%}
|
| 286 | + | if player has permissions "parkour.leave" or "parkour.default" or "parkour.admin": |
| 287 | if {parkour.player.%name of player%.parkour} is true:
| |
| 288 | - | chance of 33%: |
| 288 | + | set {parkour.player.%name of player%.parkour} to false
|
| 289 | - | drop 3 {@item1}
|
| 289 | + | set {parkour.player.%name of player%.timmer} to false
|
| 290 | - | message "&7Znaleziono 3 &bDiamenty&7!" |
| 290 | + | set {parkour.player.%name of player%.start} to false
|
| 291 | - | clear {chance.%player%}
|
| 291 | + | if {parkour.config.tpLobby} is true:
|
| 292 | teleport player to {parkour.lobby}
| |
| 293 | - | if player's tool is a diamond pickaxe of fortune 3: |
| 293 | + | if {parkour.config.tpLobby} is false:
|
| 294 | - | if chance of {@vipszansa}%:
|
| 294 | + | teleport player to {parkour.player.%name of player%.back}
|
| 295 | - | if chance of 10%: |
| 295 | + | clear {parkour.player.%name of player%.parkour.name}
|
| 296 | - | chance of 25%: |
| 296 | + | clear {parkour.player.%name of player%.back}
|
| 297 | - | drop 1 {@item1}
|
| 297 | + | set the player's level to 0 |
| 298 | - | message "&7Znaleziono &bDiament&7!" |
| 298 | + | set level progress of the player to 0.0 |
| 299 | - | clear {chance.%player%}
|
| 299 | + | set {parkour.player.%name of player%.timmer-sec} to 0
|
| 300 | set {parkour.player.%name of player%.timmer-mili} to 0
| |
| 301 | - | chance of 25%: |
| 301 | + | set the player's level to {parkour.player.%name of player%.lvl}
|
| 302 | - | drop 2 {@item1}
|
| 302 | + | clear {parkour.player.%name of player%.lvl}
|
| 303 | - | message "&7Znaleziono 2 &bDiamenty&7!" |
| 303 | + | loop {inventory.%name of player%::*}:
|
| 304 | - | clear {chance.%player%}
|
| 304 | + | add loop-value to the player |
| 305 | clear {inventory.%name of player%::*}
| |
| 306 | - | chance of 25%: |
| 306 | + | delete {inventory.%name of player%::*}
|
| 307 | - | drop 3 {@item1}
|
| 307 | + | send "{@tag} {@c1}Opuszczono parkour!"
|
| 308 | - | message "&7Znaleziono 3 &bDiamenty&7!" |
| 308 | + | |
| 309 | - | clear {chance.%player%}
|
| 309 | + | |
| 310 | send "{@tag} {@error}Nie jestes na parkourze!"
| |
| 311 | - | chance of 25%: |
| 311 | + | |
| 312 | - | drop 4 {@item1}
|
| 312 | + | |
| 313 | - | message "&7Znaleziono 4 &bDiamenty&7!" |
| 313 | + | send "{@permissions}"
|
| 314 | - | clear {chance.%player%}
|
| 314 | + | |
| 315 | if arg 1 is "broadcast": | |
| 316 | if {parkour.broadcast.%name of player%} is not set:
| |
| 317 | - | if chance of {@vipszansa}%:
|
| 317 | + | set {parkour.broadcast.%name of player%} to true
|
| 318 | - | if chance of 10%: |
| 318 | + | send "{@tag} &aWlaczono broadcast!"
|
| 319 | - | drop {@item1}
|
| 319 | + | |
| 320 | - | message "&7Znaleziono &bDiament&7!" |
| 320 | + | if {parkour.broadcast.%name of player%} is false:
|
| 321 | set {parkour.broadcast.%name of player%} to true
| |
| 322 | - | else: |
| 322 | + | send "{@tag} &aWlaczono broadcast!"
|
| 323 | - | if player's y-coordinate is smaller than {@yDiamond}:
|
| 323 | + | |
| 324 | - | if player's tool is a diamond pickaxe of fortune: |
| 324 | + | if {parkour.broadcast.%name of player%} is true:
|
| 325 | - | if chance of {@szansa}%:
|
| 325 | + | set {parkour.broadcast.%name of player%} to false
|
| 326 | - | if chance of 10%: |
| 326 | + | send "{@tag} &cWylaczono broadcast!"
|
| 327 | - | chance of 50%: |
| 327 | + | |
| 328 | - | drop 1 {@item1}
|
| 328 | + | if arg 1 is "reload" or "przeladuj": |
| 329 | - | message "&7Znaleziono &bDiament&7!" |
| 329 | + | if player has permissions "parkour.reload" or "parkour.przeladuj" or "parkour.admin": |
| 330 | - | clear {chance.%player%}
|
| 330 | + | make console execute command "sk reload Parkour" |
| 331 | wait 1 tick | |
| 332 | - | chance of 50%: |
| 332 | + | set {parkour.config.tpCooldown} to {@tpCooldown}
|
| 333 | - | drop 2 {@item1}
|
| 333 | + | set {parkour.config.tpLobby} to {@tpLobby}
|
| 334 | - | message "&7Znaleziono 2 &bDiamenty&7!" |
| 334 | + | set {parkour.config.xpTimmer} to {@xpTimmer}
|
| 335 | - | clear {chance.%player%}
|
| 335 | + | set {parkour.config.tpJoinCooldown} to {@tpJoinCooldown}
|
| 336 | wait 1 tick | |
| 337 | - | if player's tool is a diamond pickaxe of fortune 2: |
| 337 | + | send "{@tag} &aPrzeladowano"
|
| 338 | - | if chance of {@szansa}%:
|
| 338 | + | |
| 339 | - | if chance of 10%: |
| 339 | + | if arg 1 is "info" or "author" or "autor": |
| 340 | - | chance of 33%: |
| 340 | + | send "&8--------------------------------" |
| 341 | - | drop 1 {@item1}
|
| 341 | + | send " &7Autor: &aDzikoysk" |
| 342 | - | message "&7Znaleziono &bDiament&7!" |
| 342 | + | send " &7Nazwa: &aUniqueParkour" |
| 343 | - | clear {chance.%player%}
|
| 343 | + | send "&7 &7&nStrona:&a &nwww.Dzikoysk.net" |
| 344 | send "&8--------------------------------" | |
| 345 | - | chance of 33%: |
| 345 | + | |
| 346 | - | drop 2 {@item1}
|
| 346 | + | if arg 1 is "help" or "pomoc": |
| 347 | - | message "&7Znaleziono 2 &bDiamenty&7!" |
| 347 | + | send "&6/parkour list &8– &aLista parkourów" |
| 348 | - | clear {chance.%player%}
|
| 348 | + | send "&6/parkour join [name] &8– &aDolaczanie do parkoura" |
| 349 | send "&6/parkour leave &8– &aWyjscie z parkoura" | |
| 350 | - | chance of 33%: |
| 350 | + | send "&6/parkour setlobby &8– &aUstawienie lobby" |
| 351 | - | drop 3 {@item1}
|
| 351 | + | send "&6/parkour create [name] &8– &aStworzenie parkoura" |
| 352 | - | message "&7Znaleziono 3 &bDiamenty&7!" |
| 352 | + | send "&6/parkour setspawn [name] &8– &aUstawienie spawnu dla parkoura" |
| 353 | - | clear {chance.%player%}
|
| 353 | + | send "&6/parkour delete [nazwa] &8– &aUsuniecie parkoura" |
| 354 | send "&6/parkour author &8– &aNotka o autorze" | |
| 355 | - | if player's tool is a diamond pickaxe of fortune 3: |
| 355 | + | send "&6/parkour reload &8– &aPrzeladowanie" |
| 356 | - | if chance of {@szansa}%:
|
| 356 | + | |
| 357 | - | if chance of 10%: |
| 357 | + | if arg 1 is not set: |
| 358 | - | chance of 25%: |
| 358 | + | send "&6/parkour list &8– &aLista parkourów" |
| 359 | - | drop 1 {@item1}
|
| 359 | + | send "&6/parkour join [name] &8– &aDolaczanie do parkoura" |
| 360 | - | message "&7Znaleziono &bDiament&7!" |
| 360 | + | send "&6/parkour leave &8– &aWyjscie z parkoura" |
| 361 | - | clear {chance.%player%}
|
| 361 | + | send "&6/parkour setlobby &8– &aUstawienie lobby" |
| 362 | send "&6/parkour create [name] &8– &aStworzenie parkoura" | |
| 363 | - | chance of 25%: |
| 363 | + | send "&6/parkour setspawn [name] &8– &aUstawienie spawnu dla parkoura" |
| 364 | - | drop 2 {@item1}
|
| 364 | + | send "&6/parkour delete [nazwa] &8– &aUsuniecie parkoura" |
| 365 | - | message "&7Znaleziono 2 &bDiamenty&7!" |
| 365 | + | send "&6/parkour author &8– &aNotka o autorze" |
| 366 | - | clear {chance.%player%}
|
| 366 | + | send "&6/parkour reload &8– &aPrzeladowanie" |
| 367 | stop | |
| 368 | - | chance of 25%: |
| 368 | + | if arg 1 is not "list" or "broadcast" or "lista" or "create" or "stworz" or "delete" or "usun" or "ustawlobby" or "setlobby" or "setspawn" or "ustawspawn" or "lobby" or "join" or "dolacz" or "leave" or "wyjdz" or "opusc" or "reload" or "przeladuj" or "info" or "author" or "autor" or "": |
| 369 | - | drop 3 {@item1}
|
| 369 | + | send "{@tag} {@error}Nie ma takiej komendy!"
|
| 370 | - | message "&7Znaleziono 3 &bDiamenty&7!" |
| 370 | + | stop |
| 371 | - | clear {chance.%player%}
|
| 371 | + | |
| 372 | # Config load | |
| 373 | - | chance of 25%: |
| 373 | + | on skript start: |
| 374 | - | drop 4 {@item1}
|
| 374 | + | send "&8Unique Parkour wymaga wersji Skript Beta 10 ..." to the console |
| 375 | - | message "&7Znaleziono 4 &bDiamenty&7!" |
| 375 | + | wait 1 seconds |
| 376 | - | clear {chance.%player%}
|
| 376 | + | send "&8Serwer pracuje na wersji: %skript version%" to the console |
| 377 | send "" to the console | |
| 378 | send "&8--------------------------------------------------------------" to the console | |
| 379 | - | if chance of {@szansa}%:
|
| 379 | + | |
| 380 | - | if chance of 10%: |
| 380 | + | send "&8| Enable &9UniqueParkour &8|" to the console |
| 381 | - | drop {@item1}
|
| 381 | + | |
| 382 | - | message "&7Znaleziono &bDiament&7!" |
| 382 | + | |
| 383 | send "" to the console | |
| 384 | send "&8Author: &eDzikoysk" to the console | |
| 385 | - | if {safeore.emerald} is true:
|
| 385 | + | send "&8Version: &7{@version}" to the console
|
| 386 | - | player has permissions "safeore.vip.emerald": |
| 386 | + | |
| 387 | - | if player's y-coordinate is smaller than {@yEmerald}:
|
| 387 | + | set {parkour.config.tpCooldown} to {@tpCooldown}
|
| 388 | - | if player's tool is a diamond pickaxe of fortune: |
| 388 | + | set {parkour.config.tpLobby} to {@tpLobby}
|
| 389 | - | if chance of {@vipszansa1}%:
|
| 389 | + | set {parkour.config.xpTimmer} to {@xpTimmer}
|
| 390 | - | if chance of 10%: |
| 390 | + | set {parkour.config.tpJoinCooldown} to {@tpJoinCooldown}
|
| 391 | - | chance of 50%: |
| 391 | + | |
| 392 | - | drop 1 {@item2}
|
| 392 | + | on skript load: |
| 393 | - | message "&7Znaleziono &aEmerald&7!" |
| 393 | + | set {parkour.config.tpCooldown} to {@tpCooldown}
|
| 394 | - | clear {chance.%player%}
|
| 394 | + | set {parkour.config.tpLobby} to {@tpLobby}
|
| 395 | set {parkour.config.xpTimmer} to {@xpTimmer}
| |
| 396 | - | chance of 50%: |
| 396 | + | set {parkour.config.tpJoinCooldown} to {@tpJoinCooldown}
|
| 397 | - | drop 2 {@item2}
|
| 397 | + | |
| 398 | - | message "&7Znaleziono 2 &aEmeraldy&7!" |
| 398 | + | on command "parkour reload": |
| 399 | - | clear {chance.%player%}
|
| 399 | + | send "{@tag} &aReload ..."
|
| 400 | wait 1 tick | |
| 401 | - | if player's y-coordinate is smaller than {@yEmerald}:
|
| 401 | + | make console execute command "skirpt reload Parkour" |
| 402 | - | if player's tool is a diamond pickaxe of fortune 2: |
| 402 | + | wait 1 tick |
| 403 | - | if chance of {@vipszansa1}%:
|
| 403 | + | send "&aPrzeladowano!" |
| 404 | - | if chance of 10%: |
| 404 | + | |
| 405 | - | chance of 33%: |
| 405 | + | on command "pk reload": |
| 406 | - | drop 1 {@item2}
|
| 406 | + | send "{@tag} &aReload ..."
|
| 407 | - | message "&7Znaleziono &aEmerald&7!" |
| 407 | + | wait 1 tick |
| 408 | - | clear {chance.%player%}
|
| 408 | + | make console execute command "skirpt reload Parkour" |
| 409 | wait 1 tick | |
| 410 | - | chance of 33%: |
| 410 | + | send "&aPrzeladowano!" |
| 411 | - | drop 2 {@item2}
|
| 411 | + | |
| 412 | - | message "&7Znaleziono 2 &aEmeraldy&7!" |
| 412 | + | # Author & Test Command |
| 413 | - | clear {chance.%player%}
|
| 413 | + | command /dzikoysktest: |
| 414 | trigger: | |
| 415 | - | chance of 33%: |
| 415 | + | set {_dzikoysk} to "%name of player%"
|
| 416 | - | drop 3 {@item2}
|
| 416 | + | if {_dzikoysk} is "Dzikoysk":
|
| 417 | - | message "&7Znaleziono 3 &aEmeraldy&7!" |
| 417 | + | send "&cWitaj Dzikoysk! Ten serwer oparty jest o: &9UniqueParkour" |
| 418 | - | clear {chance.%player%}
|
| 418 | + | send "&c* Dzikoysk say:" |
| 419 | send "&8----------------------------" | |
| 420 | - | if player's y-coordinate is smaller than {@yEmerald}:
|
| 420 | + | send "&8Serwerowa wersja Skript: %skript version%" |
| 421 | - | if player's tool is a diamond pickaxe of fortune 3: |
| 421 | + | send "&8Wymagana: Skript Beta 10" |
| 422 | - | if chance of {@vipszansa1}%:
|
| 422 | + | send "&8----------------------------" |
| 423 | - | if chance of 10%: |
| 423 | + | send "&8Wersja skryptu: {@version}"
|
| 424 | - | chance of 25%: |
| 424 | + | send "&8----------------------------" |
| 425 | - | drop 1 {@item2}
|
| 425 | + | send "&8[Args] = None =" |
| 426 | - | message "&7Znaleziono &aEmerald&7!" |
| 426 | + | |
| 427 | - | clear {chance.%player%}
|
| 427 | + | |
| 428 | # Walking: | |
| 429 | - | chance of 25%: |
| 429 | + | # - Start |
| 430 | - | drop 2 {@item2}
|
| 430 | + | on walking on red wool: |
| 431 | - | message "&7Znaleziono 2 &aEmeraldy&7!" |
| 431 | + | if {parkour.player.%name of player%.parkour} is true:
|
| 432 | - | clear {chance.%player%}
|
| 432 | + | if block 2 under player is stained clay: |
| 433 | if {parkour.player.%name of player%.start} is false:
| |
| 434 | - | chance of 25%: |
| 434 | + | set {parkour.player.%name of player%.start} to true
|
| 435 | - | drop 3 {@item2}
|
| 435 | + | if {parkour.config.xpTimmer} is true:
|
| 436 | - | message "&7Znaleziono 3 &aEmeraldy&7!" |
| 436 | + | set {parkour.player.%name of player%.timmer} to true
|
| 437 | - | clear {chance.%player%}
|
| 437 | + | send "{@c1}Start! Czas jest liczony!"
|
| 438 | stop | |
| 439 | - | chance of 25%: |
| 439 | + | |
| 440 | - | drop 4 {@item2}
|
| 440 | + | send "{@c1}Start!"
|
| 441 | - | message "&7Znaleziono 4 &aEmeraldy&7!" |
| 441 | + | |
| 442 | - | clear {chance.%player%}
|
| 442 | + | |
| 443 | # - Meta | |
| 444 | on walking on double stone slab: | |
| 445 | - | if chance of {@vipszansa1}%:
|
| 445 | + | if {parkour.player.%name of player%.parkour} is true:
|
| 446 | - | if chance of 10%: |
| 446 | + | if block 2 under player is command block: |
| 447 | - | drop {@item2}
|
| 447 | + | if {parkour.player.%name of player%.start} is true:
|
| 448 | - | message "&7Znaleziono &aEmerald&7!" |
| 448 | + | set {parkour.player.%name of player%.start} to false
|
| 449 | set {parkour.player.%name of player%.parkour} to false
| |
| 450 | - | else: |
| 450 | + | if {parkour.config.xpTimmer} is true:
|
| 451 | - | if player's y-coordinate is smaller than {@yEmerald}:
|
| 451 | + | set {parkour.player.%name of player%.timmer} to false
|
| 452 | - | if player's tool is a diamond pickaxe of fortune: |
| 452 | + | if {parkour.config.tpLobby} is true:
|
| 453 | - | if chance of {@szansa1}%:
|
| 453 | + | teleport player to {parkour.lobby}
|
| 454 | - | if chance of 10%: |
| 454 | + | if {parkour.config.tpLobby} is false:
|
| 455 | - | chance of 50%: |
| 455 | + | teleport player to {parkour.player.%name of player%.back}
|
| 456 | - | drop 1 {@item2}
|
| 456 | + | clear {parkour.player.%name of player%.back}
|
| 457 | - | message "&7Znaleziono &aEmerald&7!" |
| 457 | + | loop {inventory.%name of player%::*}:
|
| 458 | - | clear {chance.%player%}
|
| 458 | + | give loop-value to player |
| 459 | clear {inventory.%name of player%::*}
| |
| 460 | - | chance of 50%: |
| 460 | + | clear {inventory.%name of player%::*}
|
| 461 | - | drop 2 {@item2}
|
| 461 | + | wait 1 tick |
| 462 | - | message "&7Znaleziono 2 &aEmeraldy&7!" |
| 462 | + | delete {inventory.%name of player%::*}
|
| 463 | - | clear {chance.%player%}
|
| 463 | + | send "{@c1}Ukonczono parkour w czasie: {@c2}%{parkour.player.%name of player%.timmer-sec}%,%{parkour.player.%name of player%.timmer-mili}% {@c1}(s)"
|
| 464 | loop all players: | |
| 465 | - | if player's tool is a diamond pickaxe of fortune 2: |
| 465 | + | if {parkour.broadcast.%loop-player%} is true:
|
| 466 | - | if chance of {@szansa1}%:
|
| 466 | + | send "{@c1}Gracz {@c2}%name of player% {@c1}ukonczyl parkour {@c2}%{parkour.player.%name of player%.parkour.name}% {@c1}w czasie: {@c2}%{parkour.player.%name of player%.timmer-sec}%,%{parkour.player.%name of player%.timmer-mili}% {@c1}(s)" to loop-player
|
| 467 | - | if chance of 10%: |
| 467 | + | exit loop |
| 468 | - | chance of 33%: |
| 468 | + | else: |
| 469 | - | drop 1 {@item2}
|
| 469 | + | exit loop |
| 470 | - | message "&7Znaleziono &aEmerald&7!" |
| 470 | + | set the player's level to 0 |
| 471 | - | clear {chance.%player%}
|
| 471 | + | set level progress of the player to 0.0 |
| 472 | set {parkour.player.%name of player%.timmer-sec} to 0
| |
| 473 | - | chance of 33%: |
| 473 | + | set {parkour.player.%name of player%.timmer-mili} to 0
|
| 474 | - | drop 2 {@item2}
|
| 474 | + | clear {parkour.player.%name of player%.parkour.name}
|
| 475 | - | message "&7Znaleziono 2 &aEmeraldy&7!" |
| 475 | + | clear {parkour.player.%name of player%.back}
|
| 476 | - | clear {chance.%player%}
|
| 476 | + | |
| 477 | else: | |
| 478 | - | chance of 33%: |
| 478 | + | loop {inventory.%name of player%::*}:
|
| 479 | - | drop 3 {@item2}
|
| 479 | + | give loop-value to player |
| 480 | - | message "&7Znaleziono 3 &aEmeraldy&7!" |
| 480 | + | clear {inventory.%name of player%::*}
|
| 481 | - | clear {chance.%player%}
|
| 481 | + | wait 1 tick |
| 482 | delete {inventory.%name of player%::*}
| |
| 483 | - | if player's tool is a diamond pickaxe of fortune 3: |
| 483 | + | send "{@c1}Ukonczono parkour!"
|
| 484 | - | if chance of {@szansa1}%:
|
| 484 | + | stop |
| 485 | - | if chance of 10%: |
| 485 | + | |
| 486 | - | chance of 25%: |
| 486 | + | # Fall |
| 487 | - | drop 1 {@item2}
|
| 487 | + | on walking on white wool or red wool or orange wool or brown wool or green wool or light green wool or purple wool or cyan wool or pink wool or gray wool or stone or grass or glass or water or lava or any wood or sand or dirt: |
| 488 | - | message "&7Znaleziono &aEmerald&7!" |
| 488 | + | if block 2 under player is command block: |
| 489 | - | clear {chance.%player%}
|
| 489 | + | if {parkour.player.%name of player%.parkour} is true:
|
| 490 | teleport player to {parkour.parkour.%{parkour.player.%name of player%.parkour.name}%.spawn}
| |
| 491 | - | chance of 25%: |
| 491 | + | set {parkour.player.%name of player%.timmer} to false
|
| 492 | - | drop 2 {@item2}
|
| 492 | + | set {parkour.player.%name of player%.start} to false
|
| 493 | - | message "&7Znaleziono 2 &aEmeraldy&7!" |
| 493 | + | set the player's level to 0 |
| 494 | - | clear {chance.%player%}
|
| 494 | + | set level progress of the player to 0.0 |
| 495 | set {parkour.player.%name of player%.timmer-sec} to 0
| |
| 496 | - | chance of 25%: |
| 496 | + | set {parkour.player.%name of player%.timmer-mili} to 0
|
| 497 | - | drop 3 {@item2}
|
| 497 | + | |
| 498 | - | message "&7Znaleziono 3 &aEmeraldy&7!" |
| 498 | + | |
| 499 | - | clear {chance.%player%}
|
| 499 | + | # Timmer |
| 500 | every 0.1 second: | |
| 501 | - | chance of 25%: |
| 501 | + | if {parkour.config.xpTimmer} is true:
|
| 502 | - | drop 4 {@item2}
|
| 502 | + | loop all players: |
| 503 | - | message "&7Znaleziono 4 &aEmeraldy&7!" |
| 503 | + | if {parkour.player.%loop-player%.timmer} is true:
|
| 504 | - | clear {chance.%player%}
|
| 504 | + | add 1 to {parkour.player.%loop-player%.timmer-mili}
|
| 505 | add 0.2 to level progress of the loop-player | |
| 506 | if {parkour.player.%loop-player%.timmer-mili} is 10:
| |
| 507 | - | if chance of {@szansa1}%:
|
| 507 | + | set level progress of the loop-player to 0.0 |
| 508 | - | if chance of 10%: |
| 508 | + | set {parkour.player.%loop-player%.timmer-mili} to 0
|
| 509 | - | drop {@item2}
|
| 509 | + | add 1 to {parkour.player.%loop-player%.timmer-sec}
|
| 510 | - | message "&7Znaleziono &aEmerald&7!" |
| 510 | + | set the loop-player's level to {parkour.player.%loop-player%.timmer-sec}
|
| 511 | add 10 to loop-player's hunger bar | |
| 512 | - | if {safeore.iron} is true:
|
| 512 | + | |
| 513 | - | player has permissions "safeore.vip.iron": |
| 513 | + | # Signs: |
| 514 | - | if player's y-coordinate is smaller than {@yIron}:
|
| 514 | + | # - Ustawienie |
| 515 | - | if player's tool is a diamond pickaxe of fortune: |
| 515 | + | On sign change: |
| 516 | - | if chance of {@vipszansa2}%:
|
| 516 | + | if line 1 is "{@sign.tag}":
|
| 517 | - | if chance of 10%: |
| 517 | + | if player has permissions "parkour.sign.create" or "parkour.sign.*" or "parkour.admin": |
| 518 | - | chance of 50%: |
| 518 | + | if line 2 is not "Dolacz" or "Join" or "" or "Leave" or "Wyjdz" or "Opusc": |
| 519 | - | drop 1 {@item3}
|
| 519 | + | send "{@tag} {@error}Wpisz odpowiednie polecenie w 2 linii!"
|
| 520 | - | message "&7Znaleziono &8Zelazo&7!" |
| 520 | + | cancel event |
| 521 | - | clear {chance.%player%}
|
| 521 | + | |
| 522 | if line 2 is "": | |
| 523 | - | chance of 50%: |
| 523 | + | if line 3 is "Leave" or "Wyjdz" or "Opusc": |
| 524 | - | drop 2 {@item3}
|
| 524 | + | send "{@tag} {@c1}Ustawiono tabliczke do opuszczania parkoura"
|
| 525 | - | message "&7Znaleziono 2 sztuki &8Zelaza&7!" |
| 525 | + | |
| 526 | - | clear {chance.%player%}
|
| 526 | + | else if line 3 is set: |
| 527 | if {parkour.parkour.%line 3%.parkour} is true:
| |
| 528 | - | if player's tool is a diamond pickaxe of fortune 2: |
| 528 | + | send "{@tag} {@c1}Ustawiono tabliczke dla parkoura {@c2}%line 3%{@c1}!"
|
| 529 | - | if chance of {@vipszansa2}%:
|
| 529 | + | |
| 530 | - | if chance of 10%: |
| 530 | + | else: |
| 531 | - | chance of 33%: |
| 531 | + | send "{@tag} {@error}Parkour o takiej nazwie nie istnieje!"
|
| 532 | - | drop 1 {@item3}
|
| 532 | + | cancel event |
| 533 | - | message "&7Znaleziono &8Zelazo&7!" |
| 533 | + | |
| 534 | - | clear {chance.%player%}
|
| 534 | + | else: |
| 535 | send "{@tag} {@error}Zle uzupelniona 3 linia!"
| |
| 536 | - | chance of 33%: |
| 536 | + | cancel event |
| 537 | - | drop 2 {@item3}
|
| 537 | + | |
| 538 | - | message "&7Znaleziono 2 sztuki &8Zelaza&7!" |
| 538 | + | if line 2 is "Join" or "Dolacz": |
| 539 | - | clear {chance.%player%}
|
| 539 | + | if line 3 is set: |
| 540 | if {parkour.parkour.%line 3%.parkour} is true:
| |
| 541 | - | chance of 33%: |
| 541 | + | send "{@tag} {@c1}Ustawiono tabliczke dla parkoura {@c2}%line 3%{@c1}!"
|
| 542 | - | drop 3 {@item3}
|
| 542 | + | |
| 543 | - | message "&7Znaleziono 3 sztuki &8Zelaza&7!" |
| 543 | + | |
| 544 | - | clear {chance.%player%}
|
| 544 | + | send "{@tag} {@error}Parkour o takiej nazwie nie istnieje!"
|
| 545 | cancel event | |
| 546 | - | if player's tool is a diamond pickaxe of fortune 3: |
| 546 | + | |
| 547 | - | if chance of {@vipszansa2}%:
|
| 547 | + | |
| 548 | - | if chance of 10%: |
| 548 | + | send "{@tag} {@error} Podaj nazwe parkoura w 3 linii!"
|
| 549 | - | chance of 25%: |
| 549 | + | |
| 550 | - | drop 1 {@item3}
|
| 550 | + | |
| 551 | - | message "&7Znaleziono &8Zelazo&7!" |
| 551 | + | # - Rightcllick |
| 552 | - | clear {chance.%player%}
|
| 552 | + | on rightclick on sign: |
| 553 | if line 1 of clicked block is "{@sign.tag}":
| |
| 554 | - | chance of 25%: |
| 554 | + | if line 2 of clicked block is "Join" or "Dolacz": |
| 555 | - | drop 2 {@item3}
|
| 555 | + | if line 3 of clicked block is set: |
| 556 | - | message "&7Znaleziono 2 sztuki &8Zelaza&7!" |
| 556 | + | if player has permissions "parkour.sign.join" or "parkour.sign.*" or "parkour.admin" or "parkour.default": |
| 557 | - | clear {chance.%player%}
|
| 557 | + | if {parkour.parkour.%line 3 of clicked block%.parkour} is true:
|
| 558 | if {parkour.parkour.%line 3 of clicked block%.endset} is true:
| |
| 559 | - | chance of 25%: |
| 559 | + | if {parkour.config.tpJoinCooldown} is true:
|
| 560 | - | drop 3 {@item3}
|
| 560 | + | if difference between {parkour.player.%name of player%.lu.%line 3 of clicked block%} and now is less than {@tpJoinTime}:
|
| 561 | - | message "&7Znaleziono 3 sztuki &8Zelaza&7!" |
| 561 | + | send "{@tag} {@error} Musisz odczekac {@c2}%difference between {parkour.player.%name of player%.lu.%line 3 of clicked block%} {@error} and now% aby ponownie skorzystac z tego parkouru"
|
| 562 | - | clear {chance.%player%}
|
| 562 | + | |
| 563 | set {parkour.player.%name of player%.back} to location of player
| |
| 564 | - | chance of 25%: |
| 564 | + | wait 1 tick |
| 565 | - | drop 3 {@item3}
|
| 565 | + | set {parkour.player.%name of player%.lvl} to player's level
|
| 566 | - | message "&7Znaleziono 4 sztuki &8Zelaza&7!" |
| 566 | + | loop all items in the player's inventory: |
| 567 | - | clear {chance.%player%}
|
| 567 | + | add the loop-item to {inventory.%name of player%::*}
|
| 568 | remove loop-item from player's inventory | |
| 569 | set the player's level to 0 | |
| 570 | - | if chance of {@vipszansa2}%:
|
| 570 | + | set level progress of the player to 0.0 |
| 571 | - | if chance of 10%: |
| 571 | + | teleport player to {parkour.parkour.%line 3 of clicked block%.spawn}
|
| 572 | - | drop {@item3}
|
| 572 | + | set {parkour.player.%name of player%.parkour} to true
|
| 573 | - | message "&7Znaleziono &8Zelazo&7!" |
| 573 | + | set {parkour.player.%name of player%.parkour.name} to "%line 3 of clicked block%"
|
| 574 | set {parkour.player.%name of player%.start} to false
| |
| 575 | - | else: |
| 575 | + | send "{@tag} {@c1}Witaj na parkourze!"
|
| 576 | - | if player's y-coordinate is smaller than {@yIron}:
|
| 576 | + | set {parkour.player.%name of player%.lu.%line 3 of clicked block%} to now
|
| 577 | - | if player's tool is a diamond pickaxe of fortune: |
| 577 | + | |
| 578 | - | if chance of {@szansa2}%:
|
| 578 | + | else: |
| 579 | - | if chance of 10%: |
| 579 | + | send "{@tag} {@error}Nie mozna dolaczyc, poniewaz parkour nie zostal jeszcze skonfigurowany!"
|
| 580 | - | chance of 50%: |
| 580 | + | |
| 581 | - | drop 1 {@item3}
|
| 581 | + | |
| 582 | - | message "&7Znaleziono &8Zelazo&7!" |
| 582 | + | send "{@tag} {@error}Parkour o takiej nazwie nie istnieje!"
|
| 583 | - | clear {chance.%player%}
|
| 583 | + | |
| 584 | else: | |
| 585 | - | chance of 50%: |
| 585 | + | send "{@permissions}"
|
| 586 | - | drop 2 {@item3}
|
| 586 | + | |
| 587 | - | message "&7Znaleziono 2 sztuki &8Zelaza&7!" |
| 587 | + | |
| 588 | - | clear {chance.%player%}
|
| 588 | + | send "{@tag} {@error}Linia 3 nie ustawiona!"
|
| 589 | stop | |
| 590 | - | if player's tool is a diamond pickaxe of fortune 2: |
| 590 | + | else if line 2 of clicked block is "Leave" or "Opusc" or "Wyjdz": |
| 591 | - | if chance of {@szansa2}%:
|
| 591 | + | if player has permissions "parkour.sign.leave" or "parkour.sign.*" or "parkour.admin" or "parkour.default": |
| 592 | - | if chance of 10%: |
| 592 | + | if {parkour.player.%name of player%.parkour} is true:
|
| 593 | - | chance of 33%: |
| 593 | + | set {parkour.player.%name of player%.parkour} to false
|
| 594 | - | drop 1 {@item3}
|
| 594 | + | set {parkour.player.%name of player%.timmer} to false
|
| 595 | - | message "&7Znaleziono &8Zelazo&7!" |
| 595 | + | set {parkour.player.%name of player%.start} to false
|
| 596 | - | clear {chance.%player%}
|
| 596 | + | if {parkour.config.tpLobby} is true:
|
| 597 | teleport player to {parkour.lobby}
| |
| 598 | - | chance of 33%: |
| 598 | + | if {parkour.config.tpLobby} is false:
|
| 599 | - | drop 2 {@item3}
|
| 599 | + | teleport player to {parkour.player.%name of player%.back}
|
| 600 | - | message "&7Znaleziono 2 sztuki &8Zelaza&7!" |
| 600 | + | clear {parkour.player.%name of player%.parkour.name}
|
| 601 | - | clear {chance.%player%}
|
| 601 | + | clear {parkour.player.%name of player%.back}
|
| 602 | set the player's level to 0 | |
| 603 | - | chance of 33%: |
| 603 | + | set level progress of the player to 0.0 |
| 604 | - | drop 3 {@item3}
|
| 604 | + | set {parkour.player.%name of player%.timmer-sec} to 0
|
| 605 | - | message "&7Znaleziono 3 sztuki &8Zelaza&7!" |
| 605 | + | set {parkour.player.%name of player%.timmer-mili} to 0
|
| 606 | - | clear {chance.%player%}
|
| 606 | + | set the player's level to {parkour.player.%name of player%.lvl}
|
| 607 | clear {parkour.player.%name of player%.lvl}
| |
| 608 | - | if player's tool is a diamond pickaxe of fortune 3: |
| 608 | + | clear {parkour.player.%name of player%.lvl}
|
| 609 | - | if chance of {@szansa2}%:
|
| 609 | + | loop {inventory.%name of player%::*}:
|
| 610 | - | if chance of 10%: |
| 610 | + | give loop-value to player |
| 611 | - | chance of 25%: |
| 611 | + | clear {inventory.%name of player%::*}
|
| 612 | - | drop 1 {@item3}
|
| 612 | + | clear {inventory.%name of player%::*}
|
| 613 | - | message "&7Znaleziono &8Zelazo&7!" |
| 613 | + | delete {inventory.%name of player%::*}
|
| 614 | - | clear {chance.%player%}
|
| 614 | + | send "{@tag} {@c1}Opuszczono parkour!"
|
| 615 | stop | |
| 616 | - | chance of 25%: |
| 616 | + | |
| 617 | - | drop 2 {@item3}
|
| 617 | + | send "{@tag} {@error}Nie jestes na parkourze!"
|
| 618 | - | message "&7Znaleziono 2 sztuki &8Zelaza&7!" |
| 618 | + | |
| 619 | - | clear {chance.%player%}
|
| 619 | + | |
| 620 | send "{@permissions}"
| |
| 621 | - | chance of 25%: |
| 621 | + | |
| 622 | - | drop 3 {@item3}
|
| 622 | + | else if line 2 of clicked block is "": |
| 623 | - | message "&7Znaleziono 3 sztuki &8Zelaza&7!" |
| 623 | + | if line 3 of clicked block is "Leave" or "Opusc" or "Wyjdz": |
| 624 | - | clear {chance.%player%}
|
| 624 | + | if player has permissions "parkour.sign.leave" or "parkour.sign.*" or "parkour.admin" or "parkour.default": |
| 625 | if {parkour.player.%name of player%.parkour} is true:
| |
| 626 | - | chance of 25%: |
| 626 | + | set {parkour.player.%name of player%.parkour} to false
|
| 627 | - | drop 3 {@item3}
|
| 627 | + | set {parkour.player.%name of player%.timmer} to false
|
| 628 | - | message "&7Znaleziono 4 sztuki &8Zelaza&7!" |
| 628 | + | set {parkour.player.%name of player%.start} to false
|
| 629 | - | clear {chance.%player%}
|
| 629 | + | if {parkour.config.tpLobby} is true:
|
| 630 | teleport player to {parkour.lobby}
| |
| 631 | if {parkour.config.tpLobby} is false:
| |
| 632 | - | if chance of {@szansa2}%:
|
| 632 | + | teleport player to {parkour.player.%name of player%.back}
|
| 633 | - | if chance of 10%: |
| 633 | + | clear {parkour.player.%name of player%.parkour.name}
|
| 634 | - | drop {@item3}
|
| 634 | + | clear {parkour.player.%name of player%.back}
|
| 635 | - | message "&7Znaleziono &8Zelazo&7!" |
| 635 | + | set the player's level to 0 |
| 636 | set level progress of the player to 0.0 | |
| 637 | - | if {safeore.gold} is true:
|
| 637 | + | set {parkour.player.%name of player%.timmer-sec} to 0
|
| 638 | - | player has permissions "safeore.vip.gold": |
| 638 | + | set {parkour.player.%name of player%.timmer-mili} to 0
|
| 639 | - | if player's y-coordinate is smaller than {@yGold}:
|
| 639 | + | set the player's level to {parkour.player.%name of player%.lvl}
|
| 640 | - | if player's tool is a diamond pickaxe of fortune: |
| 640 | + | clear {parkour.player.%name of player%.lvl}
|
| 641 | - | if chance of {@vipszansa3}%:
|
| 641 | + | clear {parkour.player.%name of player%.lvl}
|
| 642 | - | if chance of 10%: |
| 642 | + | loop {inventory.%name of player%::*}:
|
| 643 | - | chance of 50%: |
| 643 | + | give loop-value to player |
| 644 | - | drop 1 {@item4}
|
| 644 | + | clear {inventory.%name of player%::*}
|
| 645 | - | message "&7Znaleziono &6Zloto&7!" |
| 645 | + | clear {inventory.%name of player%::*}
|
| 646 | - | clear {chance.%player%}
|
| 646 | + | delete {inventory.%name of player%::*}
|
| 647 | send "{@tag} {@c1}Opuszczono parkour!"
| |
| 648 | - | chance of 50%: |
| 648 | + | |
| 649 | - | drop 2 {@item4}
|
| 649 | + | |
| 650 | - | message "&7Znaleziono &6Zloto&7!" |
| 650 | + | send "{@tag} {@error}Nie jestes na parkourze!"
|
| 651 | - | clear {chance.%player%}
|
| 651 | + | |
| 652 | else: | |
| 653 | - | if player's tool is a diamond pickaxe of fortune 2: |
| 653 | + | send "{@permissions}"
|
| 654 | - | if chance of {@vipszansa3}%:
|
| 654 | + | |
| 655 | - | if chance of 10%: |
| 655 | + | |
| 656 | - | chance of 33%: |
| 656 | + | send "{@tag} {@error}Linia 3 nie ustawiona!"
|
| 657 | - | drop 1 {@item4}
|
| 657 | + | |
| 658 | - | message "&7Znaleziono &6Zloto&7!" |
| 658 | + | |
| 659 | - | clear {chance.%player%}
|
| 659 | + | on command: |
| 660 | if player exists: | |
| 661 | - | chance of 33%: |
| 661 | + | if {parkour.player.%name of player%.parkour} is true:
|
| 662 | - | drop 2 {@item4}
|
| 662 | + | if command is "/pk leave" or "/parkour leave" or "/parkour opusc" or "/pk opusc" or "/parkour wyjdz" or "/pk wyjdz" or "/parkour help" or "/pk help" or "/parkour pomoc" or "/pk pomoc": |
| 663 | - | message "&7Znaleziono &6Zloto&7!" |
| 663 | + | |
| 664 | - | clear {chance.%player%}
|
| 664 | + | |
| 665 | send "&cNie mozesz uzywac komend na parkourze!" | |
| 666 | - | chance of 33%: |
| 666 | + | cancel event |
| 667 | - | drop 3 {@item4}
|
| 667 | + | |
| 668 | - | message "&7Znaleziono &6Zloto&7!" |
| 668 | + | On hunger meter change: |
| 669 | - | clear {chance.%player%}
|
| 669 | + | if {parkour.player.%name of player%.parkour} is true:
|
| 670 | cancel event | |
| 671 | - | if player's tool is a diamond pickaxe of fortune 3: |
| 671 | + | |
| 672 | - | if chance of {@vipszansa3}%:
|
| 672 | + | on damage: |
| 673 | - | if chance of 10%: |
| 673 | + | if {parkour.player.%name of victim%.start} is true:
|
| 674 | - | chance of 25%: |
| 674 | + | cancel event |
| 675 | - | drop 1 {@item4}
|
| 675 | + | |
| 676 | - | message "&7Znaleziono &6Zloto&7!" |
| 676 | + | else if {parkour.player.%name of victim%.parkour} is true:
|
| 677 | - | clear {chance.%player%}
|
| 677 | + | cancel event |
| 678 | stop |