User987

Untitled

Aug 28th, 2014
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.36 KB | None | 0 0
  1. options:
  2. autor: Anastair
  3. nazwapliku: stoneplusplus.sk #Koniecznie prawdziwa i poprawna nazwa pliku, w ktorym jest skript. Inaczej beda bledy. Duże i male litery tez sa uwzglediane!!!
  4. #Ustawienia szans
  5. procentnadiament: 1.0 #szansa na diament
  6. procentnaemerald: 1.0 #szansa na emerald
  7. procentnazloto: 1.0 #szansa na zloto
  8. procentnazelazo: 1.0 #szansa na zelazo
  9. procentnatnt: 1.0 #szansa na tnt
  10. procentnaredstone: 1.0 #szansa na redstone
  11. procentnaperle: 1.0 #szansa na perle endermana
  12. procentnatokenvip: 0.01 #szansa na token na VIP (papier przyznajacy VIP)
  13. #Ustawienia EXP
  14. stonexp: 4 #Ilosc xp, ktora dostaniemy po wykopaniu stone (Aby xp nie przypadal wpisz 0)
  15. diamondxp: 18 #Ilosc xp, ktora dostaniemy po wykopaniu diamentu (Aby xp nie przypadal wpisz 0)
  16. emeraldxp: 15 #Ilosc xp, ktora dostaniemy po wykopaniu emeraldu (Aby xp nie przypadal wpisz 0)
  17. goldxp: 13 #Ilosc xp, ktora dostaniemy po wykopaniu zlota (Aby xp nie przypadal wpisz 0)
  18. ironxp: 10 #Ilosc xp, ktora dostaniemy po wykopaniu zelaza (Aby xp nie przypadal wpisz 0)
  19. redstonexp: 15 #Ilosc xp, ktora dostaniemy po wykopaniu redstone (Aby xp nie przypadal wpisz 0)
  20. pearlxp: 15 #Ilosc xp, ktora dostaniemy po wykopaniu perly endermana (Aby xp nie przypadal wpisz 0)
  21. tntxp: 20 #Ilosc xp, ktora dostaniemy po wykopaniu tnt (Aby xp nie przypadal wpisz 0)
  22. vipxp: 100 #Ilosc xp, ktora dostaniemy po wykopaniu tokena na vip (Aby xp nie przypadal wpisz 0)
  23. #Ustawienia systemu punktacji
  24. diamondpoints: 25 #Ile punktow dostaniemy za wykopanie diamentu
  25. emeraldpoints: 20 #Ile punktow dostaniemy za wykopanie emeraldu
  26. goldpoints: 17 #Ile punktow dostaniemy za wykopanie zlota
  27. ironpoints: 14 #Ile punktow dostaniemy za wykopanie zelaza
  28. redstonepoints: 18 #Ile punktow dostaniemy za wykopanie redstone
  29. pearlpoints: 19 #Ile punktow dostaniemy za wykopanie perly endermana
  30. tntpoints: 20 #Ile punktow dostaniemy za wykopanie tnt
  31. vippoints: 150 #Ile punktow dostaniemy za wykopanie tokenu na vip
  32. #Ustawienia kilofow
  33. #------------------------------------------------------------------------
  34. diamondkilof1: diamond pickaxe#Pierwszy kilof, ktorym mozna wykopac diamenty
  35. diamondkilof2: iron pickaxe #Drugi kilof
  36. diamondkilof3: none #Trzeci kilof
  37. diamondkilof4: none #Czwarty
  38. diamondkilof5: none #Piaty
  39. #------------------------------------------------------------------------
  40. emeraldkilof1: diamond pickaxe #Pierwszy kilof, ktorym mozna wykopac emeraldy
  41. emeraldkilof2: iron pickaxe #Drugi kilof
  42. emeraldkilof3: gold pickaxe #Trzeci kilof
  43. emeraldkilof4: none #Czwarty
  44. emeraldkilof5: none #Piaty
  45. #------------------------------------------------------------------------
  46. goldkilof1: diamond pickaxe #Pierwszy kilof, ktorym mozna wykopac zloto
  47. goldkilof2: iron pickaxe #Drugi kilof
  48. goldkilof3: gold pickaxe #Trzeci kilof
  49. goldkilof4: none #Czwarty
  50. goldkilof5: none #Piaty
  51. #------------------------------------------------------------------------
  52. ironkilof1: diamond pickaxe #Pierwszy kilof, ktorym mozna wykopac zelazo
  53. ironkilof2: iron pickaxe #Drugi kilof
  54. ironkilof3: gold pickaxe #Trzeci kilof
  55. ironkilof4: none #Czwarty
  56. ironkilof5: none #Piaty
  57. #------------------------------------------------------------------------
  58. coalkilof1: diamond pickaxe #Pierwszy kilof, ktorym mozna wykopac wegiel
  59. coalkilof2: iron pickaxe #Drugi kilof
  60. coalkilof3: gold pickaxe #Trzeci kilof
  61. coalkilof4: none #Czwarty
  62. coalkilof5: none #Piaty
  63. #------------------------------------------------------------------------
  64. tntkilof1: diamond #Pierwszy kilof, ktorym mozna wykopac tnt
  65. tntkilof2: iron #Drugi kilof
  66. tntkilof3: gold #Trzeci kilof
  67. tntkilof4: none #Czwarty
  68. tntkilof5: none #Piaty
  69. #------------------------------------------------------------------------
  70. pearlkilof1: diamond pickaxe #Pierwszy kilof, ktorym mozna wykopac perle endermana
  71. pearlkilof2: iron pickaxe #Drugi kilof
  72. pearlkilof3: gold pickaxe #Trzeci kilof
  73. pearlkilof4: none #Czwarty
  74. pearlkilof5: none #Piaty
  75. #------------------------------------------------------------------------
  76. tokenkilof1: diamond pickaxe #Pierwszy kilof, ktorym mozna wykopac token na VIP
  77. tokenkilof2: none #Drugi kilof
  78. tokenkilof3: none #Trzeci kilof
  79. tokenkilof4: none #Czwarty
  80. tokenkilof5: none #Piaty
  81. #------------------------------------------------------------------------
  82. redstonekilof1: diamond pickaxe #Pierwszy kilof, ktorym mozna wykopac redstone
  83. redstonekilof2: none #Drugi kilof
  84. redstonekilof3: none #Trzeci kilof
  85. redstonekilof4: none #Czwarty
  86. redstonekilof5: none #Piaty
  87. #------------------------------------------------------------------------
  88. #Ustawienia fajerwerek
  89. fajerdiamond: tak #Czy fajerwerki maja byc wystrzeliwane po wykopaniu diamentu (tak/nie)
  90. fajeremerald: tak #emerald
  91. fajergold: tak #zlota
  92. fajeriron: tak #zelaza
  93. fajerredstone: tak #redstone
  94. fajertnt: tak #tnt
  95. fajerpearl: tak #perla endermana
  96. fajertoken: tak #token vip
  97. fajercoal: tak #wegiel
  98. #Ustawienia wiadomosci
  99. wiadomosci: pokaz #Czy ma wyswietlac wiadomosci o wykopaniu surowca (na bossbar) (poka/ukryj)
  100. vip: vip #Ranga jaka ma byc przyznawana za token VIP.
  101. bossbarczas: 9 #Czas przez jaki ma byc wyswietlany bossbar z informacja o wykopaniu surowca
  102. infodrop: &eNa serwerze panuje /drop ze stone! #Wiadomosc na pasku smoka o dropie ze stone
  103. wykopalesdiament: &bGratulujemy, wykopales 1 diament!
  104. wykopalesemerald: &aGratulujemy, wykopales 1 emerald!
  105. wykopalesgold: &eGratulujemy, wykopales 1 zloto!
  106. wykopalespearl: &9Gratulujemy, wykopales 1 perle endermana!
  107. wykopalestnt: &cGratulujemy, wykopales 1 tnt!
  108. wykopalesredstone: &4Gratulujemy, wykopales redstone!
  109. wykopalestoken: &e&l&nGratulujemy, wykopales VIP!
  110. wykopalescoal: &0Gratulujemy, wykopales wegiel!
  111. #KONIEC USTAWIEN
  112. #KOD SKRYPTU
  113.  
  114. variables:
  115. {points.%player%} = 0
  116. {stone.%player%} = 0
  117. {diamond.%player%} = 0
  118. {pearl.%player%} = 0
  119. {gold.%player%} = 0
  120. {iron.%player%} = 0
  121. {coal.%player%} = 0
  122. {redstone.%player%} = 0
  123. {emerald.%player%} = 0
  124. {token.%player%} = 0
  125. {cobble.%player%} = true
  126.  
  127. #Blokada wypadania surowców z rudy
  128.  
  129. on mine of any ore:
  130. display "{@infodrop}" on bossbar with 100 percent by 10 seconds for player
  131. wait 1 second
  132. apply nausea 1 to player for 1 seconds
  133.  
  134. on mine of stone:
  135. if {cobble.%player%} is true:
  136. drop 1 cobblestone
  137. add 1 to {stone.%player%}
  138. give {@stonexp} to player
  139. else:
  140. add 1 to {stone.%player%}
  141. give {@stonexp} to player
  142.  
  143. on mine of stone:
  144. chance of {@procentnadiament}:
  145. if player is holding {@diamondkilof1} or {@diamondkilof2} or {@diamondkilof3} or {@diamondkilof4} or {@diamondkilof5}:
  146. drop 1 diamond
  147. give {@diamondxp} xp to the player
  148. add {@diamondpoints} to {points.%player%}
  149. add 1 to {diamond.%player%}
  150. if {@wiadomosci} is "pokaz":
  151. display "{@wykopalesdiament}" on bossbar with 100 percent by {@bossbarczas} seconds for player
  152. if {@fajerdiamond} is "tak":
  153. pop red firework at location of player
  154. pop blue firework at location of player
  155. pop black firework at location of player
  156. chance of {@procentnaemerald}:
  157. if player is holding {@emeraldkilof1} or {@emeraldkilof2} or {@emeraldkilof3} or {@emeraldkilof4} or {@emeraldkilof5} pickaxe:
  158. drop 1 emerald
  159. give {@emeraldxp} xp to the player
  160. add {@emeraldpoints} to {points.%player%}
  161. add 1 to {emerald.%player%}
  162. if {@wiadomosci} is "pokaz":
  163. display "{@wykopalesemerald}" on bossbar with 90 percent by {@bossbarczas} seconds for player
  164. if {@fajeremeraldi} is "tak":
  165. pop red firework at location of player
  166. pop green firework at location of player
  167. pop black firework at location of player
  168. chance of {@procentnazloto}:
  169. if player is holding {@goldkilof1} or {@goldkilof2} or {@goldkilof3} or {@goldkilof4} or {@goldkilof5}:
  170. drop 1 gold ingot
  171. give {@goldxp} xp to the player
  172. add {@goldpoints} to {points.%player%}
  173. add 1 to {gold.%player%}
  174. if {@wiadomosci} is "pokaz":
  175. display "{@wykopalesgold}" on bossbar with 75 percent by {@bossbarczas} seconds for player
  176. if {@fajergold} is "tak":
  177. pop red firework at location of player
  178. pop yellow firework at location of player
  179. pop black firework at location of player
  180. chance of {@procentnazelazo}:
  181. if player is holding {@ironkilof1} or {@ironkilof2} or {@ironkilof3} or {@ironkilof4} or {@ironkilof5}:
  182. drop 1 iron ingot
  183. give {@ironxp} xp to the player
  184. add {@ironpoints} to {points.%player%}
  185. add 1 to {iron.%player%}
  186. if {@wiadomosci} is "pokaz":
  187. display "{@wykopalesiron}" on bossbar with 65 percent by {@bossbarczas} seconds for player
  188. if {@fajeriron} is "tak":
  189. pop red firework at location of player
  190. pop yellow firework at location of player
  191. pop black firework at location of player
  192. chance of {@procentnatnt}:
  193. if player is holding {@tntkilof1} or {@tntkilof2} or {@tntkilof3} or {@tntkilof4} or {@tntkilof5}:
  194. drop 1 tnt
  195. give {@tntxp} xp to the player
  196. add {@tntpoints} to {points.%player%}
  197. add 1 to {tnt.%player%}
  198. if {@wiadomosci} is "pokaz":
  199. display "{@wykopalestnt}" on bossbar with 70 percent by {@bossbarczas} seconds for player
  200. if {@fajertnt} is "tak":
  201. pop red firework at location of player
  202. pop yellow firework at location of player
  203. chance of {@procentnaperle}:
  204. if player is holding {@pearlkilof1} or {@pearlkilof2} or {@pearlkilof3} or {@pearlkilof4} or {@pearlkilof5}:
  205. drop 1 ender pearl
  206. give {@pearlxp} xp to the player
  207. add {@pesrlpoints} to {points.%player%}
  208. add 1 to {pearl.%player%}
  209. if {@wiadomosci} is "pokaz":
  210. display "{@wykopalespearl}" on bossbar with 72 percent by {@bossbarczas} seconds for player
  211. if {@fajerpearl} is "tak":
  212. pop red firework at location of player
  213. pop yellow firework at location of player
  214. pop green firework at location of player
  215. chance of {@procentnaredstone}:
  216. if player is holding {@redstonekilof1} or {@redstonekilof2} or {@redstonekilof3} or {@redstonekilof4} or {@redstonekilof5}:
  217. drop 1 redstone
  218. give {@redstonexp} xp to the player
  219. add {@redstonepoints} to {points.%player%}
  220. add 1 to {redstone.%player%}
  221. if {@wiadomosci} is "pokaz":
  222. display "{@wykopalesredstone}" on bossbar with 69 percent by {@bossbarczas} seconds for player
  223. if {@fajerredstonel} is "tak":
  224. pop red firework at location of player
  225. pop yellow firework at location of player
  226. pop green firework at location of player
  227. chance of {@procentnatoken}:
  228. if player is holding {@tokenkilof1} or {@tokenkilof2} or {@tokenkilof3} or {@tokenkilof4} or {@tokenkilof5}:
  229. give 1 paper named "&e&lToken na {@vip}" to player
  230. give {@tokenxp} xp to the player
  231. add {@tokenpoints} to {points.%player%}
  232. add 1 to {token.%player%}
  233. if {@wiadomosci} is "pokaz":
  234. display "{@wykopalestoken}" on bossbar with 100 percent by {@bossbarczas} seconds for player
  235. broadcast "&c&l[Stone++]&7Jeden token na VIP juz znaleziony :)"
  236. if {@fajertoken} is "tak":
  237. pop red firework at location of player
  238. pop yellow firework at location of player
  239. pop green firework at location of player
  240. pop black firework at location to player
  241.  
  242. command /cobble:
  243. aliases: cobblestone
  244. trigger:
  245. if player has permission "stoneplusplus.cobble" or "stoneplusplus.*":
  246. if {cobble.%player%} is true:
  247. set {cobble.%player%} to false
  248. send " &e» &7Zablokowales drop cobblestone!"
  249. stop
  250. if {cobble.%player%} is false:
  251. set {cobble.%player%} to true
  252. send " &e» &7Aktywowales drop cobblestone"
  253. stop
  254.  
  255. command /drop:
  256. aliases: kamien
  257. trigger:
  258. if player has permission "stoneplusplus.drop" or "stoneplusplus.*":
  259. send "&a&l||==========|| &eDrop++ &a&l||==========||" to player
  260. send "&bDiament: &7{@procentnadiament}" to player
  261. send "&aEmerald: &7{@procentnaemerald" to player
  262. send "&9Perla endermana: &7{@procentnaperle}" to player
  263. send "&cTnt: &7{@procentnatnt}" to player
  264. send "&eZloto: &7{@procentnazloto}" to player
  265. send "&8Zelazo: &7{@procentnazelazo}" to player
  266. send "&0Wegiel: &7{@procentnawegiel}" to player
  267. send "&eVip: &7{@procentnatoken}" to player stop
  268.  
  269. command /zbiory [<text>]:
  270. trigger:
  271. if arg 1 is not set:
  272. send "&ePoprawne uzycie: &7/zbiory [1/2] lub /zbiory nick" to player
  273. if arg 1 is "1":
  274. if player has permission "stoneplusplus.zbiory.1" or "stoneplusplus.*":
  275. send "&a&l||==========|| &eZbiory 1/2 &a&l||==========||" to player
  276. send "&ePunkty: &7%{points.%player%}%" to player
  277. send "&bDiament: &7%{diamond.%player%}%" to player
  278. send "&aEmerald: &7%{emerald.%player%}%" to player
  279. send "&9Perly endermana: &7%{pearl.%player%}%" to player
  280. send "&cTnt: &7%{tnt.%player%}%" to player
  281. stop
  282. if arg 1 is "2":
  283. if player has permission "stoneplusplus.zbiory.2" or "stoneplusplus.*":
  284. send "&a&l||==========|| &eZbiory 2/2 &a&l||==========||" to player
  285. send "&eZloto: &7%{gold.%player%}%" to player
  286. send "&8Zelazo: &7%{iron.%player%}%" to player
  287. send "&0Wegiel: &7%{coal.%player%}%" to player
  288. send "&eVip: &7%{token.%player%}%" to player
  289. send "&6Kamien: &7%{stone.%player%}%" to player
  290. stop
  291.  
  292.  
  293. on rightclick holding a paper:
  294. if name of player's tool is "&e&lToken na {@vip}":
  295. if player has permission "stoneplusplus.token":
  296. send "&8Uzyles token {@vip}" to the player
  297. remove 1 paper named "&e&lToken na {@vip}" from player
  298. execute console command "pex user %player% group set {@vip}"
  299.  
  300. on script load:
  301. send "[Stone++] Skrypt zostal aktywowany!" to console
  302. send "[Stone++] Autor: User987 (Anastair)" to console
  303.  
  304. on script unload:
  305. send "[Stone++] Praca skryptu zostala wstrzymana!" to console
  306. send "[Stone++] Autor: User987 (Anastair)" to console
  307.  
  308. every 10 seconds:
  309. if "{@autor}" is not "Anastair":
  310. broadcast "&c&l[Stone++] &7Autorem skryptu jest Anastair! Naruszyles licencje skryptu zmieniajac autora!"
  311. broadcast "&c&l[Stone++] &7Prosze zmienic autora skryptu Stone++ na prawdziwego!"
  312. send "[Stone++] Zmieniles autora skryptu i zlamalales licencje, za 10 sekund skrypt zostanie usuniety" to console
  313. set motd to "&c[Stone++] Naruszyles licencje zmieniajac autora!"
  314. wait 10 seconds
  315. df "plugins/Skript/scripts/{@nazwapliku}"
  316. execute console command "sk reload all"
Advertisement
Add Comment
Please, Sign In to add comment