Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #kod od zmieniania nazwy pereł, koxów, refili w silki2.sk
- on click:
- difference between {cb::%player%} and now is smaller than 0.5 seconds:
- cancel event
- on quit:
- clear {cb::%player%}
- options:
- gui-name: &8» &7Depozyt:&r
- kox-limit: 2
- apple-limit: 8
- pearl-limit: 3
- command /schowek [<text>]:
- aliases: depozyt
- trigger:
- set {cb::%player%} to now
- {koxy::%player%} is not set:
- set {koxy::%player%} to 0
- {refile::%player%} is not set:
- set {refile::%player%} to 0
- {perly::%player%} is not set:
- set {perly::%player%} to 0
- difference between {dmg::%player%} and now is smaller than 19.9 seconds:
- send " &8» &cNie mozesz uzyc tej komendy podczas walki."
- stop
- set {schowekclick::%player%} to 0
- wait 0.3 seconds
- open chest with 1 row named "{@gui-name}" to player
- format slot 0 of player with black stained glass pane named "&r" to be unstealable
- format slot 1 of player with black stained glass pane named "&r" to be unstealable
- format slot 2 of player with black stained glass pane named "&r" to be unstealable
- format slot 3 of player with enchanted golden apple named "&8» &6Depozyt koxów" with lore " &8» &7W depozycie: &f%{koxy::%player%}%.|| &8» &7Limit koxow: &f{@kox-limit}.||&r|| &8» &7Kliknij &8PPM&7, by wyplacic." to be unstealable
- format slot 4 of player with golden apple:0 named "&8» &6Depozyt refilii" with lore " &8» &7W depozycie: &f%{refile::%player%}%.|| &8» &7Limit refilii: &f{@apple-limit}.||&r|| &8» &7Kliknij &8PPM&7, by wyplacic." to be unstealable
- format slot 5 of player with ender pearl named "&8» &6Depozyt perel" with lore " &8» &7W depozycie: &f%{perly::%player%}%.|| &8» &7Limit perel: &f{@pearl-limit}.||&r|| &8» &7Kliknij &8PPM&7, by wyplacic." to be unstealable
- format slot 6 of player with black stained glass pane named "&r" to be unstealable
- format slot 7 of player with black stained glass pane named "&r" to be unstealable
- format slot 8 of player with black stained glass pane named "&r" to be unstealable
- #on inventory open:
- # set {_name} to inventory name of player's current inventory
- # {_name} is "{@gui-name}":
- # wait 2 ticks
- # set {_name} to inventory name of player's current inventory
- # {_name} is not "{@gui-name}":
- # close player's inventory
- # clear {schowekclick::%player%}
- on mor.inventory click:
- set {_name} to inventory name of player's current inventory
- {_name} is "{@gui-name}":
- cancel event
- event-number is 3 or 4 or 5:
- add 1 to {schowekclick::%player%}
- {schowekclick::%player%} is greater than 100:
- close player's inventory
- event-number is 3:
- if {koxy::%player%} is smaller or equal to 0:
- send " &8» &7Nie masz zadnych koxów do wyplaty!"
- stop
- set {_wyplata} to {@kox-limit}
- {koxy::%player%} is smaller than {@kox-limit}:
- set {_wyplata} to {koxy::%player%}
- send " &8» &7Wyplaciles &c%{_wyplata}% koxow &7z depozytu."
- add {_wyplata} of enchanted golden apple to player's inventory
- remove {_wyplata} from {koxy::%player%}
- format slot 3 of player with enchanted golden apple named "&8» &6Depozyt koxów" with lore " &8» &7W depozycie: &f%{koxy::%player%}%.|| &8» &7Limit koxow: &f{@kox-limit}.||&r|| &8» &7Kliknij &8PPM&7, by wyplacic." to be unstealable
- event-number is 4:
- if {refile::%player%} is smaller or equal to 0:
- send " &8» &7Nie masz zadnych refilii do wyplaty!"
- stop
- set {_wyplata} to {@apple-limit}
- {refile::%player%} is smaller than {@apple-limit}:
- set {_wyplata} to {refile::%player%}
- send " &8» &7Wyplaciles &c%{_wyplata}% refilii &7z depozytu."
- add {_wyplata} of golden apple:0 to player's inventory
- remove {_wyplata} from {refile::%player%}
- format slot 4 of player with golden apple:0 named "&8» &6Depozyt refilii" with lore " &8» &7W depozycie: &f%{refile::%player%}%.|| &8» &7Limit refilii: &f{@apple-limit}.||&r|| &8» &7Kliknij &8PPM&7, by wyplacic." to be unstealable
- event-number is 5:
- if {perly::%player%} is smaller or equal to 0:
- send " &8» &7Nie masz zadnych perel do wyplaty!"
- stop
- set {_wyplata} to {@pearl-limit}
- {perly::%player%} is smaller than {@pearl-limit}:
- set {_wyplata} to {perly::%player%}
- send " &8» &7Wyplaciles &c%{_wyplata}% perel &7z depozytu."
- add {_wyplata} of ender pearl to player's inventory
- remove {_wyplata} from {perly::%player%}
- format slot 5 of player with ender pearl named "&8» &6Depozyt perel" with lore " &8» &7W depozycie: &f%{perly::%player%}%.|| &8» &7Limit perel: &f{@pearl-limit}.||&r|| &8» &7Kliknij &8PPM&7, by wyplacic." to be unstealable
- effect limit %player%:
- set {_p} to expression-1
- if amount of enchanted golden apple in {_p}'s inventory is greater than {@kox-limit}:
- set {_a} to amount of enchanted golden apple in {_p}'s inventory - {@kox-limit}
- remove {_a} of enchanted golden apple from {_p}'s inventory
- add {_a} to {koxy::%{_p}%}
- send " &8» &7Posiadasz przy sobie wiecej niz &c{@kox-limit} koxów." to {_p}
- send " &8» &c%{_a}% koxów &7zostaje przeniesionych do schowka." to {_p}
- if amount of golden apple:0 in {_p}'s inventory is greater than {@apple-limit}:
- set {_a} to amount of golden apple:0 in {_p}'s inventory - {@apple-limit}
- remove {_a} of golden apple:0 from {_p}'s inventory
- add {_a} to {refile::%{_p}%}
- send " &8» &7Posiadasz przy sobie wiecej niz &c{@apple-limit} refilii." to {_p}
- send " &8» &c%{_a}% refilii &7zostaje przeniesionych do schowka." to {_p}
- if amount of ender pearl in {_p}'s inventory is greater than {@pearl-limit}:
- set {_a} to amount of ender pearl in {_p}'s inventory - {@pearl-limit}
- remove {_a} of ender pearl from {_p}'s inventory
- add {_a} to {perly::%{_p}%}
- send " &8» &7Posiadasz przy sobie wiecej niz &c{@pearl-limit} perel." to {_p}
- send " &8» &c%{_a}% perel &7zostaje przeniesionych do schowka." to {_p}
- on pickup of enchanted golden apple or golden apple or ender pearl:
- wait a tick
- player is not holding enchanted golden apple or golden apple:0 or ender pearl:
- difference between {dmg::%player%} and now is smaller than 19.9 seconds:
- limit player
- every 10 hours:
- set {_} to now
- loop all players:
- {rangaop::%loop-player%} is set:
- limit loop-player
- on damage of player:
- victim is not holding enchanted golden apple or golden apple:0 or ender pearl:
- {rangaop::%victim%} is not set:
- stop
- limit victim
- attacker is player:
- attacker is not holding enchanted golden apple or golden apple:0 or ender pearl:
- {rangaop::%attacker%} is not set:
- stop
- limit attacker
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement