Guest User

skillStones

a guest
Jul 18th, 2015
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.18 KB | None | 0 0
  1. # Skrypt by WiczekPG
  2. # Zezwalam:
  3. # - Na edycje kodu w miare swoich potrzeb
  4. # Nie zezwalam:
  5. # - na kopiowanie skryptu
  6. # - na podszywanie sie pod autora
  7. # - na sprzedawanie skryptu (Jak by komuś coś się pokręciło ;o)
  8. on join:
  9. if {stonemined::%player%} is not set:
  10. set {stonemined::%player%} to 0
  11. if {coins::%player%} is not set:
  12. set {coins::%player%} to 0
  13. if {stonemustmined::%player%} is not set:
  14. set {stonemustmined::%player%} to 15
  15. if {poziom::%player%} is not set:
  16. set {poziom::%player%} to 0
  17. if {drzewko::%player%} is not set:
  18. set {drzewko::%player%} to 0
  19. if {coins2::%player%} is not set:
  20. set {coins2::%player%} to 0
  21. loop 6 times:
  22. if {skill%loop-number%::%player%} is not set:
  23. set {skill%loop-number%::%player%} to 0
  24. on mine stone:
  25. add 1 to {stonemined::%player%}
  26. add 1 to {stone::%player%}
  27. if {coins2::%player%} is 2 or 3 or 4:
  28. add {coins2::%player%} to {coins::%player%}
  29. wait 10 seconds
  30. set {coins2::%player%} to 0
  31. else:
  32. add 1 to {coins::%player%}
  33. if {stonemined::%player%} is higher than {stonemustmined::%player%}-1:
  34. add 1 to {poziom::%player%}
  35. set {stonemined::%player%} to 0
  36. send "&7Awansowales na kolejny poziom kopania! &8(&c%{poziom::%player%}% &7LvL&8)"
  37. spawn 250 of particle spell:1 offset by 0, 0, 0 at location of player
  38. add 15 to {stonemustmined::%player%}
  39. give 1 gold ingot to player
  40. command /profil:
  41. trigger:
  42. open chest with 1 rows named "&7Profil&8: &c%player%" to player
  43. wait 1 tick
  44. format slot 0 of player with player head named "&7Gracz&8: &c%player%" with lore "&7Coinsy&8: &c%{coins::%player%}%||&7Wykopany stone ogolnie&8: &c%{stone::%player%}%||&7LvL&8: &c%{poziom::%player%}%||&7Nastepny LvL&8: &c%{stonemined::%player%}%&8/&c%{stonemustmined::%player%}%" to be unstealable
  45. format slot 8 of player with diamond pickaxe named "&7Skille" with lore "&7Kliknij, aby zobaczyc!||&7Takze pod komenda &c/skille" to run "sudo %player% skille"
  46. on rightclick on player:
  47. if player is sneaking:
  48. send "&8&m-------------------------"
  49. send "&7Gracz&8: &c%clicked entity%"
  50. send "&7Coinsy&8: &c%{coins::%clicked entity%}%"
  51. send "&7Wykopane ogolnie&8: &c%{stone::%clicked entity%}%"
  52. send "&7LvL&8: &c%{poziom::%clicked entity%}%"
  53. send "&7Nastepny LvL&8: &c%{stonemined::%clicked entity%}%&8/&c%{stonemustmined::%clicked entity%}%"
  54. send "&8&m-------------------------"
  55. command /reset [<player>]:
  56. trigger:
  57. if player has permission "skillStones.admin":
  58. if arg is not set:
  59. set {stonemined::%player%} to 0
  60. set {coins::%player%} to 0
  61. set {stonemustmined::%player%} to 25
  62. set {poziom::%player%} to 0
  63. set {stone::%player%} to 0
  64. loop 6 times:
  65. set {skill%loop-number%::%player%} to 0
  66. else:
  67. set {stonemined::%arg%} to 0
  68. set {coins::%arg%} to 0
  69. set {stonemustmined::%arg%} to 25
  70. set {poziom::%arg%} to 0
  71. set {stone::%arg%} to 0
  72. loop 6 times:
  73. set {skill%loop-number%::%arg%} to 0
  74. else:
  75. send "&cBlad: &4Nie masz uprawnien do tego!"
  76. command /skille:
  77. trigger:
  78. open chest with 6 rows named "&cDrzewko Skilla" to player
  79. wait 1 tick
  80. format slot 49 of player with brown stained glass pane named "&7" to be unstealable
  81. format slot 40 of player with brown stained glass pane named "&7" to be unstealable
  82. format slot 39 of player with brown stained glass pane named "&7" to be unstealable
  83. format slot 41 of player with brown stained glass pane named "&7" to be unstealable
  84. format slot 31 of player with brown stained glass pane named "&7" to be unstealable
  85. if {skill6::%player%} is 0:
  86. format slot 36 of player with red stained glass pane named "&c&l✘ &7Coin x4 &c&l✘" with lore "&7Minimum LvL&8: &c75||&7Zaplata&8: &c500 Coins" to run "addskill %player% 6"
  87. else:
  88. format slot 36 of player with light green stained glass pane named "&a&l✔ &7Coin x4 &a&l✔" with lore "&7Odblokowane!" to be unstealable
  89. if {skill5::%player%} is 0:
  90. format slot 37 of player with red stained glass pane named "&c&l✘ &7Coin x3 &c&l✘" with lore "&7Minimum LvL&8: &c50||&7Zaplata&8: &c250 Coins" to run "addskill %player% 5"
  91. else:
  92. format slot 37 of player with light green stained glass pane named "&a&l✔ &7Coin x3 &a&l✔" with lore "&7Odblokowane!" to be unstealable
  93. if {skill4::%player%} is 0:
  94. format slot 38 of player with red stained glass pane named "&c&l✘ &7Coin x2 &c&l✘" with lore "&7Minimum LvL&8: &c25||&7Zaplata&8: &c250 Coins" to run "addskill %player% 4"
  95. else:
  96. format slot 38 of player with light green stained glass pane named "&a&l✔ &7Coin x2 &a&l✔" with lore "&7Odblokowane!" to be unstealable
  97. if {skill1::%player%} is 0:
  98. format slot 42 of player with red stained glass pane named "&c&l✘ &7Haste I &c&l✘" with lore "&7Minimum LvL&8: &c25||&7Zaplata&8: &c250 Coins" to run "addskill %player% 1"
  99. else:
  100. format slot 42 of player with light green stained glass pane named "&a&l✔ &7Haste I &a&l✔" with lore "&7Odblokowane!" to be unstealable
  101. if {skill2::%player%} is 0:
  102. format slot 43 of player with red stained glass pane named "&c&l✘ &7Haste II &c&l✘" with lore "&7Minimum LvL&8: &c25||&7Zaplata&8: &c250 Coins" to run "addskill %player% 2"
  103. else:
  104. format slot 43 of player with light green stained glass pane named "&a&l✔ &7Haste II &a&l✔" with lore "&7Odblokowane!" to be unstealable
  105. if {skill3::%player%} is 0:
  106. format slot 44 of player with red stained glass pane named "&c&l✘ &7Haste III &c&l✘" with lore "&7Minimum LvL&8: &c75||&7Zaplata&8: &c500 Coins" to run "addskill %player% 3"
  107. else:
  108. format slot 44 of player with light green stained glass pane named "&a&l✔ &7Haste III &a&l✔" with lore "&7Odblokowane!" to be unstealable
  109. command /addskill <player> <number>:
  110. executable by: console
  111. trigger:
  112. if arg 2 is 1:
  113. if {poziom::%arg 1%} is higher than 24:
  114. if {skill1::%arg 1%} is 0:
  115. if {coins::%arg 1%} is higher than 249:
  116. set {skill1::%arg 1%} to 1
  117. remove 250 from {coins::%arg 1%}
  118. close arg 1's inventory
  119. send "&7Skille&8: &7Skill &cHaste I &7zostal aktywowany !" to arg 1
  120. else:
  121. close arg 1's inventory
  122. send "&7Skille&8: &7Nie posiadasz tylu &cCoinsow&7!" to arg 1
  123. else:
  124. close arg 1's inventory
  125. send "&7Skille&8: &7Posiadasz juz ten skill!" to arg 1
  126. else:
  127. close arg 1's inventory
  128. send "&7Skille&8: &7Masz za maly poziom! &8(&7min. &c25&8)" to arg 1
  129. if arg 2 is 2:
  130. if {poziom::%arg 1%} is higher than 49:
  131. if {skill1::%arg 1%} is 1:
  132. if {skill2::%arg 1%} is 0:
  133. if {coins::%arg 1%} is higher than 249:
  134. set {skill2::%arg 1%} to 1
  135. remove 250 from {coins::%arg 1%}
  136. close arg 1's inventory
  137. send "&7Skille&8: &7Skill &cHaste II &7zostal aktywowany !" to arg 1
  138. else:
  139. close arg 1's inventory
  140. send "&7Skille&8: &7Nie posiadasz tylu &cCoinsow&7!" to arg 1
  141. else:
  142. close arg 1's inventory
  143. send "&7Skille&8: &7Posiadasz juz ten skill!" to arg 1
  144. else:
  145. close arg 1's inventory
  146. send "&7Skille&8: &7Nie posiadasz skilla &cHaste I&7!" to arg 1
  147. else:
  148. close arg 1's inventory
  149. send "&7Skille&8: &7Masz za maly poziom! &8(&7min. &c50&8)" to arg 1
  150. if arg 2 is 3:
  151. if {poziom::%arg 1%} is higher than 74:
  152. if {skill1::%arg 1%} is 1:
  153. if {skill2::%arg 1%} is 1:
  154. if {skill3::%arg 1%} is 0:
  155. if {coins::%arg 1%} is higher than 499:
  156. set {skill3::%arg 1%} to 1
  157. remove 500 from {coins::%arg 1%}
  158. close arg 1's inventory
  159. send "&7Skille&8: &7Skill &cHaste III &7zostal aktywowany !" to arg 1
  160. else:
  161. close arg 1's inventory
  162. send "&7Skille&8: &7Nie masz tylu &cCoinsow&7!" to arg 1
  163. else:
  164. close arg 1's inventory
  165. send "&7Skille&8: &7Posiadasz juz ten skill!" to arg 1
  166. else:
  167. close arg 1's inventory
  168. send "&7Skille&8: &7Nie posiadasz skilla &cHaste II&7!" to arg 1
  169. else:
  170. close arg 1's inventory
  171. send "&7Skille&8: &7Nie posiadasz skilla &cHaste I&7!" to arg 1
  172. else:
  173. close arg 1's inventory
  174. send "&7Skille&8: &7Masz za maly poziom! &8(&7min. &c75&8)" to arg 1
  175. if arg 2 is 4:
  176. if {poziom::%arg 1%} is higher than 24:
  177. if {skill4::%arg 1%} is 0:
  178. if {coins::%arg 1%} is higher than 249:
  179. set {skill4::%arg 1%} to 1
  180. remove 250 from {coins::%arg 1%}
  181. close arg 1's inventory
  182. send "&7Skille&8: &7Skill &cCoin 2x &7zostal aktywowany !" to arg 1
  183. else:
  184. close arg 1's inventory
  185. send "&7Skille&8: &7Nie posiadasz tylu &cCoinsow&7!" to arg 1
  186. else:
  187. close arg 1's inventory
  188. send "&7Skille&8: &7Posiadasz juz ten skill!" to arg 1
  189. else:
  190. close arg 1's inventory
  191. send "&7Skille&8: &7Masz za maly poziom! &8(&7min. &c25&8)" to arg 1
  192. if arg 2 is 5:
  193. if {poziom::%arg 1%} is higher than 49:
  194. if {skill4::%arg 1%} is 1:
  195. if {skill5::%arg 1%} is 0:
  196. if {coins::%arg 1%} is higher than 249:
  197. set {skill5::%arg 1%} to 1
  198. remove 250 from {coins::%arg 1%}
  199. close arg 1's inventory
  200. send "&7Skille&8: &7Skill &cCoin x3 &7zostal aktywowany !" to arg 1
  201. else:
  202. close arg 1's inventory
  203. send "&7Skille&8: &7Nie posiadasz tylu &cCoinsow&7!" to arg 1
  204. else:
  205. close arg 1's inventory
  206. send "&7Skille&8: &7Posiadasz juz ten skill!" to arg 1
  207. else:
  208. close arg 1's inventory
  209. send "&7Skille&8: &7Nie posiadasz skilla &cCoin x2&7!" to arg 1
  210. else:
  211. close arg 1's inventory
  212. send "&7Skille&8: &7Masz za maly poziom! &8(&7min. &c50&8)" to arg 1
  213. if arg 2 is 6:
  214. if {poziom::%arg 1%} is higher than 74:
  215. if {skill4::%arg 1%} is 1:
  216. if {skill5::%arg 1%} is 1:
  217. if {skill6::%arg 1%} is 0:
  218. if {coins::%arg 1%} is higher than 499:
  219. set {skill6::%arg 1%} to 1
  220. remove 500 from {coins::%arg 1%}
  221. close arg 1's inventory
  222. send "&7Skille&8: &7Skill &cCoin x4 &7zostal aktywowany !" to arg 1
  223. else:
  224. close arg 1's inventory
  225. send "&7Skille&8: &7Nie masz tylu &cCoinsow&7!" to arg 1
  226. else:
  227. close arg 1's inventory
  228. send "&7Skille&8: &7Posiadasz juz ten skill!" to arg 1
  229. else:
  230. close arg 1's inventory
  231. send "&7Skille&8: &7Nie posiadasz skilla &cCoin x3&7!" to arg 1
  232. else:
  233. close arg 1's inventory
  234. send "&7Skille&8: &7Nie posiadasz skilla &cCoin x2&7!" to arg 1
  235. else:
  236. close arg 1's inventory
  237. send "&7Skille&8: &7Masz za maly poziom! &8(&7min. &c75&8)" to arg 1
  238. on rightclick with pickaxe:
  239. if {cooldown::%player%} is 0:
  240. send "&7Aktywowales umiejetosci!"
  241. if {skill1::%player%} is 1:
  242. apply haste 1 to player for 10 seconds
  243. if {skill2::%player%} is 1:
  244. apply haste 2 to player for 10 seconds
  245. if {skill3::%player%} is 1:
  246. apply haste 3 to player for 10 seconds
  247. if {skill4::%player%} is 1:
  248. set {coins2::%player%} to 2
  249. if {skill5::%player%} is 1:
  250. set {coins2::%player%} to 3
  251. if {skill6::%player%} is 1:
  252. set {coins2::%player%} to 4
  253. set {cooldown::%player%} to 600
  254. else:
  255. send "&7Musisz odczekac jeszcze &c%{cooldown::%player%}% &7sekund przed uzyciem skilla!"
  256. every 1 second:
  257. loop all players:
  258. if {cooldown::%loop-player%} is 0:
  259. stop
  260. else:
  261. remove 1 from {cooldown::%loop-player%}
Advertisement
Add Comment
Please, Sign In to add comment