Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {hajs::%player%} = 50
- {hps::%player%} = 0
- {hpc::%player%} = 2
- {koszthpc::%player%} = 50
- {kosztcd::%player%} = 300
- {koszthps::%player%} = 1000
- {cd::%player%} = 0
- {czas::%player%} = 120
- every 5 seconds:
- loop all players:
- add {hps::%loop-player%} to {hajs::%loop-player%}
- command /clicker:
- trigger:
- open chest with 1 rows named "&c✖ &6&lClicker Game! &c✖" to player
- set {inventory.%player%.Open} to true
- wait 2 ticks
- if {inventory.%player%.Open} is true:
- format slot 4 of player with 1 of green wool named "&9Click!" with lore "Kliknij aby dostać &2%{hpc::%player%}% zl" to run [make console execute command "/ghajs add %player%"]
- format slot 8 of player with 1 of paper named "&2&lInformacje" with lore "&6>> &3Nick: %player%||&6>> &3Stan konta: %{hajs::%player%}%||&6>> &3Wartosc Clicka: %{hpc::%player%}%||&6>>&3 Co 5 sekund: %{hps::%player%}% zl" to close
- format slot 0 of player with 1 of sunflower named "&2Dodatki" with lore " Nacisnij aby otworzyc sklep!" to close then run [make console execute command "shop %player%"]
- else:
- stop
- command /ghajs [<text>] [<player>]:
- trigger:
- if arg 1 is "add":
- if {cd::%player-arg%} is 0:
- set {cd::%player-arg%} to {czas::%player-arg%}
- send "&9&lClick! &c+%{hpc::%player-arg%}% &9zl" to player-arg
- add {hpc::%player-arg%} to {hajs::%player-arg%}
- while {cd::%player-arg%} is more than 0:
- wait 1 second
- remove 1 from {cd::%player-arg%}
- if {cd::%player-arg%} is more than 0:
- send "&bZostalo ci jeszcze &c%{cd::%player-arg%}% &bsekund!" to player-arg
- else:
- send "&BTwoj czas odnowienia clicka skonczyl sie!!" to player-arg
- command /bank:
- trigger:
- send "&6&lTwoje pieniadze to : %{hajs::%player%}% zl"
- command /shop [<player>]:
- executable by: console
- trigger:
- wait 5 tick
- open chest with 5 rows named "&c✖ &9&lUpdate &c✖" to player-arg
- wait 2 tick
- if {inventory.%player%.Open} is true:
- format slot 0 of player-arg with 1 of wooden pickaxe named "&9Update clicka" with lore "&2Wartosc: &c+2||&2Koszt: &c%{koszthpc::%player-arg%}%" to close then run [make console execute command "kup hpc %player-arg%"]
- format slot 4 of player-arg with 1 of wooden shovel named "&9Update czasu odnowienia" with lore "&2Wartosc: &c-20s||&2Koszt: &c%{kosztcd::%player-arg%}%" to close then run [make console execute command "kup cd %player-arg%"]
- format slot 8 of player-arg with 1 of wooden axe named "&9Update pieniedzy per 5 sekund" with lore "&2Wartosc: &c+1zl/5sek||&2Koszt: &c%{koszthps::%player-arg%}%" to close then run [make console execute command "kup hps %player-arg%"]
- else:
- stop
- command /kup [<text>] [<player>]:
- executable by:console
- trigger:
- if argument 1 is "hpc":
- if {hajs::%player-arg%} is more or equal to {koszthpc::%player-arg%}:
- send "&bPomyslnie zakupiles update za &c%{koszthpc::%player-arg%}%&b zl" to player-arg
- remove {koszthpc::%player-arg%} from {hajs::%player-arg%}
- add 2 to {hpc::%player-arg%}
- add {koszthpc::%player-arg%} to {koszthpc::%player-arg%}
- else:
- send "&B&l Nie masz &c%{koszthpc::%player-arg%}% &b&lzl" to player-arg
- if argument 1 is "cd":
- if {hajs::%player-arg%} is more or equal to {kosztcd::%player-arg%}:
- send "&bPomyslnie zakupiles update za &c%{kosztcd::%player-arg%}%&b zl" to player-arg
- remove {kosztcd::%player-arg%} from {hajs::%player-arg%}
- remove 20 from {czas::%player-arg%}
- add {kosztcd::%player-arg%} to {kosztcd::%player-arg%}
- else:
- send "&B&LNie masz &c%{kosztcd::%player-arg%}% &b&lzl" to player-arg
- if argument 1 is "hps":
- if {hajs::%player-arg%} is more or equal to {koszthps::%player-arg%}:
- send "&bPomyslnie zakupiles update za &c%{koszthps::%player-arg%}%&b zl" to player-arg
- remove {koszthps::%player-arg%} from {hajs::%player-arg%}
- add 1 to {hps::%player-arg%}
- add {koszthps::%player-arg%} to {koszthps::%player-arg%}
- else:
- send "&B&LNie masz &c%{koszthps::%player-arg%}% &b&lzl" to player-arg
- command /resetuj [<player>]:
- permission: clicker.admin
- trigger:
- if player have permissions "clicker.admin":
- set {hajs::%player-arg%} to 50
- set {hps::%player-arg%} to 0
- set {hpc::%player-arg%} to 2
- set {koszthpc::%player-arg%} to 50
- set {kosztcd::%player-arg%} to 300
- set {czas::%player-arg%} to 120
- set {cd::%player-arg%} to 0
- send "&2Pomyslnie zresetowales statystyki gracza &b%player%" to player
- else:
- send "&cNie posiadasz permissji!" to player
- command /dodaj [<integer>] [<player>]:
- permission: clicker.admin
- trigger:
- if player have permissions "clicker.admin":
- add arg 1 to {hajs::%player-arg%}
- send "&bPomyslnie dodales &c%arg-1% &bdla gracza &c%player-arg%" to player
- else:
- send "&cNie posiadasz permissji!" to player
Advertisement
Add Comment
Please, Sign In to add comment