Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on mine:
- if player is in world "PrisonSpawn":
- set {_sektor} to "%region at event-block%"
- if "%{_sektor}%" does not contain "domek" or "obs":
- if "%{_sektor}%" contains "sek":
- if "%{_sektor}%" contains "sek_8":
- if player does not have permission "skript.star":
- play "ENTITY_ITEM_BREAK" specifically to player with pitch 2 and volume 0.6
- send player title "&4○ &cHej! Uwaga! &4○" with subtitle "&7Nie posiadasz odpowiedniej rangi &6Premium!" for 1 second
- cancel event
- stop
- else if "%{_sektor}%" contains "sek_7":
- if player does not have permission "skript.gold" or "skript.star":
- play "ENTITY_ITEM_BREAK" specifically to player with pitch 2 and volume 0.6
- send player title "&4○ &cHej! Uwaga! &4○" with subtitle "&7Nie posiadasz odpowiedniej rangi &6Premium!" for 1 second
- cancel event
- stop
- else if "%{_sektor}%" contains "sek_6":
- if player does not have permission "skript.iron" or "skript.gold" or "skript.star":
- play "ENTITY_ITEM_BREAK" specifically to player with pitch 2 and volume 0.6
- send player title "&4○ &cHej! Uwaga! &4○" with subtitle "&7Nie posiadasz odpowiedniej rangi &6Premium!" for 1 second
- cancel event
- stop
- else if "%{_sektor}%" contains "sek_5":
- if player does not have permission "skript.coal" or "skript.iron" or "skript.gold" or "skript.star":
- play "ENTITY_ITEM_BREAK" specifically to player with pitch 2 and volume 0.6
- send player title "&4○ &cHej! Uwaga! &4○" with subtitle "&7Nie posiadasz odpowiedniej rangi premium!" for 1 second
- cancel event
- stop
- else:
- replace all " in world PrisonSpawn" with "" in {_sektor}
- replace all "and" with "" in {_sektor}
- replace all "spawn" with "" in {_sektor}
- replace all "kopalnia" with "" in {_sektor}
- replace all "sek_" with "" in {_sektor}
- replace all " " with "" in {_sektor}
- replace all "_" with "" in {_sektor}
- if "%{levelPermisja.%player%}%" does not contain "%{_sektor}%":
- set {_tak} to true
- if {levelPermisja.%player%} is not "WOLNY" or "UCIEKINIER":
- if {_tak} is true:
- play "ENTITY_ITEM_BREAK" specifically to player with pitch 2 and volume 0.6
- send player title "&4○ &cHej! Uwaga! &4○" with subtitle "&7Nie odblokowałeś tego sektora!" for 1 second
- cancel event
- stop
- if {event.drop.SEC} is set:
- drop 1 of event-block at event-location
- if {WALENTYNKA.drop.SEC} is set:
- chance of 0.018%:
- give 1 38:4 of unbreaking 10 named "&4❤ &c&lWalentynka &4❤" with lore "&7Event &cWalentynkowy &7&n2019&7r. ||&7Więcej informacji pod /walentynki" to the player
- send player title "&4❤ &c&lWydropiono walentynke &4❤" with subtitle "&7Wiecej info /walentynki!" for 1 second
- add 1 to {iloscwalentynek}
- add "%now% - %player%: ""Wydropiono Walentynke!"" " to yaml list "Drop" from file "plugins/Skript/scripts/Dropwalentynek.txt"
- # if {LOD.drop.SEC} is set:
- # drop 1 of event-block at event-location
- # chance of 0.02%:
- # give 1 174 of unbreaking 10 named "&9&l⁕ Sopel ⁕" with lore "&7&lEvent Świąteczny 2018||&cWymiana od 24.12.2018r" to the player
- # send player title "&9&l⁕ &aWydropiono Sopel! &9&l⁕" with subtitle "&7Wymiana od 24 grudnia!" for 1 second
- # add "%now% - %player%: ""Wydropiono Sopel!"" " to yaml list "Drop" from file "plugins/Skript/scripts/Dropsopli.txt"
- # if {GWIAZDOPACZKA.drop} is set:
- # chance of 0.018%:
- # execute console command "/case givecase %player% ⭐ gwiazdopaczka ⭐"
- # send player title "&9&l⁕ &aWydropiono &e⭐ &6&lGwiazdoPaczke &e⭐&a! &9&l⁕" with subtitle "&7Kliknij PPM aby otworzyc!" for 1 second
- # add "%now% - %player%: ""Wydropiono Paczke!"" " to yaml list "Drop" from file "plugins/Skript/scripts/Droppaczek.txt"
- # chance of 0.01%:
- # give 1 91 of unbreaking 10 named "&4&lDynia Halloween" to the player
- # add "%now% - %player%: ""Wydropilem dynie!"" " to yaml list "Drop" from file "plugins/Skript/scripts/Dropdyn.txt"
- # chance of 0.1%:
- # give 1 86 of infinity 10 named "&6&lDyniopaczka" with lore "||&7Kliknij PPM aby otworzyc" to player
- # send player title "&9&l⁕ &aWydropiono Dyniopaczke! &9&l⁕" for 1 second
- # add "%now% - %player%: ""Wydropilem dyniopaczke!"" " to yaml list "Drop" from file "plugins/Skript/scripts/Dropdyniopaczek.txt"
- # chance of 0.25%:
- # give 1 361 of infinity 10 named "&e&lO&6&ld&e&ll&6&la&e&lm&6&le&e&lk &6&lD&e&ly&6&ln&e&li" to player
- # if player has 361:
- # send player title "&9&l⁕ &aWydropiono Odlamek! &9&l⁕" with subtitle "&7Wymiana od 31 października!" for 1 second
- # add "%now% - %player%: ""Wydropilem odlamek!"" " to yaml list "Drop" from file "plugins/Skript/scripts/Dropodlamkow.txt"
- # FORTUNKA
- if tool of the player is enchanted with fortune 1 or fortune 2 or fortune 3 or fortune 4 or fortune 5:
- chance of 20%:
- give 1 of event-block to the player
- if tool of the player is enchanted with fortune 6 or fortune 7 or fortune 8 or fortune 9 or fortune 10:
- chance of 30%:
- give 1 of event-block to the player
- if tool of the player is enchanted with fortune 11 or fortune 12 or fortune 13 or fortune 14 or fortune 15:
- chance of 40%:
- give 1 of event-block to the player
- if tool of the player is enchanted with fortune 16 or fortune 17 or fortune 18 or fortune 19 or fortune 20:
- chance of 45%:
- give 1 of event-block to the player
- if tool of the player is enchanted with fortune 21 or fortune 22 or fortune 23 or fortune 24 or fortune 25:
- chance of 35%:
- give 2 of event-block to the player
- if tool of the player is enchanted with fortune 26 or fortune 27 or fortune 28 or fortune 29 or fortune 30 or fortune 31 or fortune 32 or fortune 33 or fortune 34 or fortune 35:
- chance of 50%:
- give 2 of event-block to the player
- if tool of the player is enchanted with fortune 36 or fortune 37 or fortune 38 or fortune 39 or fortune 40 or fortune 41 or fortune 42 or fortune 43 or fortune 44 or fortune 45 or fortune 46 or fortune 47 or fortune 48 or fortune 49 or fortune 50:
- chance of 55%:
- give 2 of event-block to the player
- if tool of the player is enchanted with fortune 51 or fortune 52 or fortune 53:
- chance of 60%:
- give 2 of event-block to the player
- if tool of the player is enchanted with fortune 54 or fortune 55:
- chance of 60%:
- give 3 of event-block to the player
- if tool of the player is enchanted with fortune 56 or fortune 57:
- chance of 65%:
- give 3 of event-block to the player
- if tool of the player is enchanted with fortune 58 or fortune 59:
- chance of 67%:
- give 3 of event-block to the player
- if tool of the player is enchanted with fortune 60 or fortune 61:
- chance of 69%:
- give 3 of event-block to the player
- if tool of the player is enchanted with fortune 62 or fortune 63:
- chance of 50%:
- give 4 of event-block to the player
- if tool of the player is enchanted with fortune 64 or fortune 65:
- chance of 52%:
- give 4 of event-block to the player
- if tool of the player is enchanted with fortune 66 or fortune 67:
- chance of 54%:
- give 4 of event-block to the player
- if tool of the player is enchanted with fortune 68 or fortune 69:
- chance of 56%:
- give 4 of event-block to the player
- if tool of the player is enchanted with fortune 70 or fortune 71:
- chance of 58%:
- give 4 of event-block to the player
- if tool of the player is enchanted with fortune 72 or fortune 73:
- chance of 60%:
- give 4 of event-block to the player
- if tool of the player is enchanted with fortune 74 or fortune 75:
- chance of 62%:
- give 4 of event-block to the player
- if tool of the player is enchanted with fortune 76 or fortune 77:
- chance of 64%:
- give 4 of event-block to the player
- if tool of the player is enchanted with fortune 78 or fortune 79:
- chance of 66%:
- give 4 of event-block to the player
- if tool of the player is enchanted with fortune 80 or fortune 81:
- chance of 68%:
- give 4 of event-block to the player
- if tool of the player is enchanted with fortune 82 or fortune 84:
- chance of 50%:
- give 5 of event-block to the player
- if tool of the player is enchanted with fortune 85 or fortune 86:
- chance of 52%:
- give 5 of event-block to the player
- if tool of the player is enchanted with fortune 87 or fortune 88:
- chance of 54%:
- give 5 of event-block to the player
- if tool of the player is enchanted with fortune 89 or fortune 90:
- chance of 56%:
- give 5 of event-block to the player
- if tool of the player is enchanted with fortune 91 or fortune 92:
- chance of 58%:
- give 5 of event-block to the player
- if tool of the player is enchanted with fortune 93 or fortune 94:
- chance of 60%:
- give 5 of event-block to the player
- if tool of the player is enchanted with fortune 95 or fortune 96:
- chance of 62%:
- give 5 of event-block to the player
- if tool of the player is enchanted with fortune 97 or fortune 98:
- chance of 64%:
- give 5 of event-block to the player
- if tool of the player is enchanted with fortune 99 or fortune 100:
- chance of 66%:
- give 5 of event-block to the player
- # KLUCZE
- loop {klucze::*}:
- loop {klucze.blocks.%loop-value%::*}:
- if "%id of event-block%:%data value of event-block%" is "%loop-value-2%":
- chance of {klucze.chance.%loop-value-1%}%:
- set {_command} to {klucze.command.%loop-value-1%}
- replace all "_PLAYER_" with "%player%" in {_command}
- execute console command "%{_command}%"
- on right click:
- if player's tool is pumpkin named "&6&lDyniopaczka" with lore "||&7Kliknij PPM aby otworzyc":
- remove 1 of pumpkin named "&6&lDyniopaczka" with lore "||&7Kliknij PPM aby otworzyc" from player's inventory
- execute console command "case open %player% Dyniopaczka"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement