Guest User

Untitled

a guest
Oct 2nd, 2016
383
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.75 KB | None | 0 0
  1. variables:
  2. {hajs::%player%} = 50
  3. {hps::%player%} = 0
  4. {hpc::%player%} = 2
  5. {koszthpc::%player%} = 50
  6. {kosztcd::%player%} = 300
  7. {koszthps::%player%} = 1000
  8. {cd::%player%} = 0
  9. {czas::%player%} = 120
  10. every 5 seconds:
  11. loop all players:
  12. add {hps::%loop-player%} to {hajs::%loop-player%}
  13. command /clicker:
  14. trigger:
  15. open chest with 1 rows named "&c✖ &6&lClicker Game! &c✖" to player
  16. set {inventory.%player%.Open} to true
  17. wait 2 ticks
  18. if {inventory.%player%.Open} is true:
  19. 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%"]
  20. 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
  21. 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%"]
  22. else:
  23. stop
  24. command /ghajs [<text>] [<player>]:
  25. trigger:
  26. if arg 1 is "add":
  27. if {cd::%player-arg%} is 0:
  28. set {cd::%player-arg%} to {czas::%player-arg%}
  29. send "&9&lClick! &c+%{hpc::%player-arg%}% &9zl" to player-arg
  30. add {hpc::%player-arg%} to {hajs::%player-arg%}
  31. while {cd::%player-arg%} is more than 0:
  32. wait 1 second
  33. remove 1 from {cd::%player-arg%}
  34. if {cd::%player-arg%} is more than 0:
  35. send "&bZostalo ci jeszcze &c%{cd::%player-arg%}% &bsekund!" to player-arg
  36. else:
  37. send "&BTwoj czas odnowienia clicka skonczyl sie!!" to player-arg
  38. command /bank:
  39. trigger:
  40. send "&6&lTwoje pieniadze to : %{hajs::%player%}% zl"
  41. command /shop [<player>]:
  42. executable by: console
  43. trigger:
  44. wait 5 tick
  45. open chest with 5 rows named "&c✖ &9&lUpdate &c✖" to player-arg
  46. wait 2 tick
  47. if {inventory.%player%.Open} is true:
  48. 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%"]
  49. 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%"]
  50. 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%"]
  51. else:
  52. stop
  53. command /kup [<text>] [<player>]:
  54. executable by:console
  55. trigger:
  56. if argument 1 is "hpc":
  57. if {hajs::%player-arg%} is more or equal to {koszthpc::%player-arg%}:
  58. send "&bPomyslnie zakupiles update za &c%{koszthpc::%player-arg%}%&b zl" to player-arg
  59. remove {koszthpc::%player-arg%} from {hajs::%player-arg%}
  60. add 2 to {hpc::%player-arg%}
  61. add {koszthpc::%player-arg%} to {koszthpc::%player-arg%}
  62. else:
  63. send "&B&l Nie masz &c%{koszthpc::%player-arg%}% &b&lzl" to player-arg
  64. if argument 1 is "cd":
  65. if {hajs::%player-arg%} is more or equal to {kosztcd::%player-arg%}:
  66. send "&bPomyslnie zakupiles update za &c%{kosztcd::%player-arg%}%&b zl" to player-arg
  67. remove {kosztcd::%player-arg%} from {hajs::%player-arg%}
  68. remove 20 from {czas::%player-arg%}
  69. add {kosztcd::%player-arg%} to {kosztcd::%player-arg%}
  70. else:
  71. send "&B&LNie masz &c%{kosztcd::%player-arg%}% &b&lzl" to player-arg
  72. if argument 1 is "hps":
  73. if {hajs::%player-arg%} is more or equal to {koszthps::%player-arg%}:
  74. send "&bPomyslnie zakupiles update za &c%{koszthps::%player-arg%}%&b zl" to player-arg
  75. remove {koszthps::%player-arg%} from {hajs::%player-arg%}
  76. add 1 to {hps::%player-arg%}
  77. add {koszthps::%player-arg%} to {koszthps::%player-arg%}
  78. else:
  79. send "&B&LNie masz &c%{koszthps::%player-arg%}% &b&lzl" to player-arg
  80. command /resetuj [<player>]:
  81. permission: clicker.admin
  82. trigger:
  83. if player have permissions "clicker.admin":
  84. set {hajs::%player-arg%} to 50
  85. set {hps::%player-arg%} to 0
  86. set {hpc::%player-arg%} to 2
  87. set {koszthpc::%player-arg%} to 50
  88. set {kosztcd::%player-arg%} to 300
  89. set {czas::%player-arg%} to 120
  90. set {cd::%player-arg%} to 0
  91. send "&2Pomyslnie zresetowales statystyki gracza &b%player%" to player
  92. else:
  93. send "&cNie posiadasz permissji!" to player
  94. command /dodaj [<integer>] [<player>]:
  95. permission: clicker.admin
  96. trigger:
  97. if player have permissions "clicker.admin":
  98. add arg 1 to {hajs::%player-arg%}
  99. send "&bPomyslnie dodales &c%arg-1% &bdla gracza &c%player-arg%" to player
  100. else:
  101. send "&cNie posiadasz permissji!" to player
Advertisement
Add Comment
Please, Sign In to add comment