Kondi60PL

KondiDrop v1.2

Nov 11th, 2014
836
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.50 KB | None | 0 0
  1. #===============#
  2. # KondiDrop®™ #
  3. #~~~~~~~~~~~~~~~#
  4. # by #
  5. #~~~~~~~~~~~~~~~#
  6. # Kondi60PL #
  7. #~~~~~~~~~~~~~~~#
  8. # v1.2 #
  9. #===============#
  10. #-> Uprawnienia #
  11. #~~~~~~~~~~~~~~~#
  12. # kondidrop.gracz <- Umozliwia drop itemow randze Gracz #
  13. # kondidrop.fortune <- Drop z Fortune #
  14. # kondidrop.* <- Permisja Admina #
  15.  
  16. #~~WSZELKIE PRAWA ZASTRZEŻONE COPRIGHT©~~#
  17.  
  18. #--------------------------------------#
  19. #LICENCJA:#
  20. #[Nie zezwalam na]#
  21. #-publikowanie skryptu w swoich plikach serwerowych!#
  22. #-podszywanie sie za autora skryptu!#
  23. #-usuwanie informacji o autorze skryptu!#
  24. #-kopiowanie kodu skryptu i uzywanie go w swoich kodach!#
  25. #-zarabianie na skrypcie!#
  26. #[Zezwalam na]#
  27. #-zmiane tekstu wiadomosci (dla wlasnych potrzeb)#
  28. #-dopisywanie wlasnych fragmentow#
  29. #--------------------------------------#
  30. variables:
  31. {diamond.%player} = 0
  32. {zloto.%player%} = 0
  33. {zelazo.%player%} = 0
  34. {emerald.%player%} = 0
  35. {wegiel.%player%} = 0
  36. {lapis.%player%} = 0
  37. {redstone.%player%} = 0
  38. {tnt.%player%} = 0
  39. {obsydian.%player%} = 0
  40. {bookshelf.%player%} = 0
  41. {enderpearl.%player%} = 0
  42. {apple.%player%} = 0
  43. {stone.%player%} = 0
  44. #-------------------#
  45. # CONFIG #
  46. #-------------------#
  47. options:
  48. #-------------------#
  49. # Ogolne #
  50. #-------------------#
  51. # Autor Skryptu.
  52. author: Kondi60PL
  53.  
  54. # Wersja Skryptu.
  55. version: v1.2
  56.  
  57. # Nazwa Skryptu.
  58. skName: KondiDrop
  59.  
  60. # Tag Skryptu.
  61. tag: &c&lKondi&a&lDrop
  62. #-------------------#
  63. # Config dropu #
  64. #-------------------#
  65. # True = Odpalony
  66. # False = Wylaczany
  67.  
  68. # Info o dropie diamentow.
  69. diament: true
  70. procentdiament: 0.75
  71. wysokoscdiament: 21
  72.  
  73. # Info o dropie zlota.
  74. zloto: true
  75. procentzloto: 0.75
  76. wysokosczloto: 21
  77.  
  78. # Info o dropie zelaza.
  79. zelazo: true
  80. procentzelazo: 1.25
  81. wysokosczelazo: 61
  82.  
  83. # Info o dropie szmaragdow.
  84. emerald: true
  85. procentemerald: 0.25
  86. wysokoscemerald: 21
  87.  
  88. # Info o dropie wegiela.
  89. wegiel: true
  90. procentwegiel: 1.25
  91. wysokoscwegiel: 100
  92.  
  93. # Info o dropie lapisu.
  94. lapis: true
  95. procentlapis: 1.00
  96. wysokosclapis: 21
  97.  
  98. # Info o dropie redstone.
  99. redstone: true
  100. procentredstone: 1.00
  101. wysokoscredstone: 21
  102.  
  103. # Info o dropie tnt.
  104. tnt: true
  105. procenttnt: 0.10
  106. wysokosctnt: 12
  107.  
  108. # Info o dropie obsa.
  109. obsydian: true
  110. procentobsydian: 0.13
  111. wysokoscobsydian: 12
  112.  
  113. # Info o dropie biblio.
  114. bookshelf: true
  115. procentbookshelf: 0.05
  116. wysokoscbookshelf: 12
  117.  
  118. # Info o dropie perel.
  119. enderpearl: true
  120. procentenderpearl: 0.20
  121. wysokoscenderpearl: 12
  122.  
  123. # Info o dropie jablek.
  124. apple: true
  125. procentapple: 0.10
  126. wysokoscapple: 12
  127. #-------------------#
  128. # INNE #
  129. #-------------------#
  130. on mine of stone:
  131. give a random number between 1 and 10 xp to the player
  132.  
  133. on mine of any ore:
  134. canel event
  135. set block to air
  136. send "&7Na serwerze jest drop ze stone &6/stone&7!"
  137. #-------------------#
  138. # DROP GRACZA #
  139. #-------------------#
  140. on mine of stone:
  141. if player has permission "kondidrop.gracz":
  142. if {@diament} is true:
  143. chance of {@procentdiament}:
  144. if block's y-coordinate is smaller than {@wysokoscdiament}:
  145. drop diamond
  146. add 1 to {diamond.%player%}
  147. message "&6Trafiles na: &bDiament&6!"
  148. if {@diament} is false:
  149. drop cobblestone
  150. add 1 to {stone.%player%}
  151.  
  152. if {@zloto} is true:
  153. chance of {@procentzloto}:
  154. if block's y-coordinate is smaller than {@wysokosczloto}:
  155. drop gold ore
  156. add 1 to {zloto.%player%}
  157. message "&6Trafiles na: &6Zloto&6!"
  158. if {@zloto} is false:
  159. drop cobblestone
  160. add 1 to {stone.%player%}
  161.  
  162. if {@zelazo} is true:
  163. chance of {@procentzelazo}:
  164. if block's y-coordinate is smaller than {@wysokosczelazo}:
  165. drop iron ore
  166. add 1 to {zelazo.%player%}
  167. message "&6Trafiles na: &7Zelazo&6!"
  168. if {@zelazo} is false:
  169. drop cobblestone
  170. add 1 to {stone.%player%}
  171.  
  172. if {@emerald} is true:
  173. chance of {@procentemerald}:
  174. if block's y-coordinate is smaller than {@wysokoscemerald}:
  175. drop emerald
  176. add 1 to {emerald.%player%}
  177. message "&6Trafiles na: &2Emerald&6!"
  178. if {@emerald} is false:
  179. drop cobblestone
  180. add 1 to {stone.%player%}
  181.  
  182. if {@wegiel} is true:
  183. chance of {@procentwegiel}:
  184. if block's y-coordinate is smaller than {@wysokoscwegiel}:
  185. drop coal
  186. add 1 to {wegiel.%player%}
  187. message "&6Trafiles na: &0Wegiel&6!"
  188. if {@wegiel} is false:
  189. drop cobblestone
  190. add 1 to {stone.%player%}
  191.  
  192. if {@lapis} is true:
  193. chance of {@procentlapis}:
  194. if block's y-coordinate is smaller than {@wysokosclapis}:
  195. drop 351:4
  196. add 1 to {lapis.%player%}
  197. message "&6Trafiles na: &9Lapis Lazuli&6!"
  198. if {@lapis} is false:
  199. drop cobblestone
  200. add 1 to {stone.%player%}
  201.  
  202. if {@redstone} is true:
  203. chance of {@procentredstone}:
  204. if block's y-coordinate is smaller than {@wysokoscredstone}:
  205. drop a random number between 1 and 4 redstone
  206. add 1 to {redstone.%player%}
  207. message "&6Trafiles na: &4RedStone&6!"
  208. if {@redstone} is false:
  209. drop cobblestone
  210. add 1 to {stone.%player%}
  211.  
  212. if {@tnt} is true:
  213. chance of {@procenttnt}:
  214. if block's y-coordinate is smaller than {@wysokosctnt}:
  215. drop tnt
  216. add 1 to {tnt.%player%}
  217. message "&6Trafiles na: &cTNT&6!"
  218. if {@tnt} is false:
  219. drop cobblestone
  220. add 1 to {stone.%player%}
  221.  
  222. if {@obsydian} is true:
  223. chance of {@procentobsydian}:
  224. if block's y-coordinate is smaller than {@wysokoscobsydian}:
  225. drop obsdidian
  226. add 1 to {obsydian.%player%}
  227. message "&6Trafiles na: &65Obsydian
  228. if {@obsydian} is false:
  229. drop cobblestone
  230. add 1 to {stone.%player%}
  231.  
  232. if {@bookshelf} is true:
  233. chance of {@procentbookshelf}:
  234. if block's y-coordinate is smaller than {@wysokoscbookshelf}:
  235. drop bookshelf
  236. add 1 to {biblio.%player%}
  237. message "&6Trafiles na: &aBiblio&6!"
  238. if {@bookshelf} is false:
  239. drop cobblestone
  240. add 1 to {stone.%player%}
  241.  
  242. if {@enderpearl} is true:
  243. chance of {@procentenderpearl}:
  244. if block's y-coordinate is smaller than {@wysokoscenderpearl}:
  245. drop ender pearl
  246. add 1 to {enderpearl.%player%}
  247. message "&6Trafiles na: &3Ender Perle&6!"
  248. if {@enderpearl} is false:
  249. drop cobblestone
  250. add 1 to {stone.%player%}
  251.  
  252. if {@apple} is true:
  253. chance of {@procentapple}:
  254. if block's y-coordinate is smaller than {@wysokoscapple}:
  255. drop apple
  256. add 1 to {apple.%player%}
  257. message "&6Trafiles na: &cJablko&6!"
  258. if {@wegiel} is false:
  259. drop cobblestone
  260. add 1 to {stone.%player%}
  261.  
  262. #-------------------#
  263. # DROP Z FORTUNE #
  264. #-------------------#
  265. on mine of stone:
  266. if player has permission "kondidrop.fortune":
  267. if player's tool is pickaxe of fortune 1:
  268. if {@diament} is true:
  269. chance of {@procentdiament}:
  270. if block's y-coordinate is smaller than {@wysokoscdiament}:
  271. drop a random number betwwen 3 and 1 of diamond to the player
  272. add 1 to {diamond.%player%}
  273. message "&6Trafiles na: &bDiament&6!"
  274. if {@diament} is false:
  275. drop cobblestone
  276. add 1 to {stone.%player%}
  277. else:
  278. if player's tool is pickaxe of fortune 2:
  279. chance of {@procentdiament}:
  280. if block's y-coordinate is smaller than {@wysokoscdiament}:
  281. drop a random number betwwen 4 and 1 of diamond to the player
  282. add 1 to {diamond.%player%}
  283. message "&6Trafiles na: &bDiament&6!"
  284. else:
  285. if player's tool is pickaxe of fortune 3:
  286. chance of {@procentdiament}:
  287. if block's y-coordinate is smaller than {@wysokoscdiament}:
  288. drop a random number betwwen 5 and 1 of diamond to the player
  289. add 1 to {diamond.%player%}
  290. message "&6Trafiles na: &bDiament&6!"
  291.  
  292. if {@zloto} is true:
  293. chance of {@procentzloto}:
  294. if block's y-coordinate is smaller than {@wysokosczloto}:
  295. drop gold ore
  296. add 1 to {zloto.%player%}
  297. message "&6Trafiles na: &6Zloto&6!"
  298. if {@zloto} is false:
  299. drop cobblestone
  300. add 1 to {stone.%player%}
  301.  
  302. if {@zelazo} is true:
  303. chance of {@procentzelazo}:
  304. if block's y-coordinate is smaller than {@wysokosczelazo}:
  305. drop iron ore
  306. add 1 to {zelazo.%player%}
  307. message "&6Trafiles na: &7Zelazo&6!"
  308. if {@zelazo} is false:
  309. drop cobblestone
  310. add 1 to {stone.%player%}
  311.  
  312. if player's tool is pickaxe of fortune 1:
  313. if {@emerald} is true:
  314. chance of {@procentemerald}:
  315. if block's y-coordinate is smaller than {@wysokoscemerald}:
  316. drop a random number between 3 and 1 of emerald
  317. add 1 to {emerald.%player%}
  318. message "&6Trafiles na: &2Emerald&6!"
  319. if {@emerald} is false:
  320. drop cobblestone
  321. add 1 to {stone.%player%}
  322. else:
  323. if player's tool is pickaxe of fortune 2:
  324. chance of {@procentemerald}:
  325. if block's y-coordinate is smaller than {@wysokoscemerald}:
  326. drop a random number betwwen 4 and 1 of emerald to the player
  327. add 1 to {emerald.%player%}
  328. message "&6Trafiles na: &2Emerald&6!"
  329. else:
  330. if player's tool is pickaxe of fortune 3:
  331. chance of {@procentdiament}:
  332. if block's y-coordinate is smaller than {@wysokoscdiament}:
  333. drop a random number betwwen 5 and 1 of emerald to the player
  334. add 1 to {emerald.%player%}
  335. message "&6Trafiles na: &2Emerald&6!"
  336.  
  337. if {@wegiel} is true:
  338. chance of {@procentwegiel}:
  339. if block's y-coordinate is smaller than {@wysokoscwegiel}:
  340. drop coal
  341. add 1 to {wegiel.%player%}
  342. message "&6Trafiles na: &0Wegiel&6!"
  343. if {@wegiel} is false:
  344. drop cobblestone
  345. add 1 to {stone.%player%}
  346.  
  347. if {@lapis} is true:
  348. chance of {@procentlapis}:
  349. if block's y-coordinate is smaller than {@wysokosclapis}:
  350. drop 351:4
  351. add 1 to {lapis.%player%}
  352. message "&6Trafiles na: &9Lapis Lazuli&6!"
  353. if {@lapis} is false:
  354. drop cobblestone
  355. add 1 to {stone.%player%}
  356.  
  357. if {@redstone} is true:
  358. chance of {@procentredstone}:
  359. if block's y-coordinate is smaller than {@wysokoscredstone}:
  360. drop a random number between 1 and 4 redstone
  361. add 1 to {redstone.%player%}
  362. message "&6Trafiles na: &4RedStone&6!"
  363. if {@redstone} is false:
  364. drop cobblestone
  365. add 1 to {stone.%player%}
  366.  
  367. if {@tnt} is true:
  368. chance of {@procenttnt}:
  369. if block's y-coordinate is smaller than {@wysokosctnt}:
  370. drop tnt
  371. add 1 to {tnt.%player%}
  372. message "&6Trafiles na: &cTNT&6!"
  373. if {@tnt} is false:
  374. drop cobblestone
  375. add 1 to {stone.%player%}
  376.  
  377. if {@obsydian} is true:
  378. chance of {@procentobsydian}:
  379. if block's y-coordinate is smaller than {@wysokoscobsydian}:
  380. drop obsdidian
  381. add 1 to {obsydian.%player%}
  382. message "&6Trafiles na: &65Obsydian
  383. if {@obsydian} is false:
  384. drop cobblestone
  385. add 1 to {stone.%player%}
  386.  
  387. if {@bookshelf} is true:
  388. chance of {@procentbookshelf}:
  389. if block's y-coordinate is smaller than {@wysokoscbookshelf}:
  390. drop bookshelf
  391. add 1 to {biblio.%player%}
  392. message "&6Trafiles na: &aBiblio&6!"
  393. if {@bookshelf} is false:
  394. drop cobblestone
  395. add 1 to {stone.%player%}
  396.  
  397. if {@enderpearl} is true:
  398. chance of {@procentenderpearl}:
  399. if block's y-coordinate is smaller than {@wysokoscenderpearl}:
  400. drop ender pearl
  401. add 1 to {enderpearl.%player%}
  402. message "&6Trafiles na: &3Ender Perle&6!"
  403. if {@enderpearl} is false:
  404. drop cobblestone
  405. add 1 to {stone.%player%}
  406.  
  407. if {@apple} is true:
  408. chance of {@procentapple}:
  409. if block's y-coordinate is smaller than {@wysokoscapple}:
  410. drop apple
  411. add 1 to {apple.%player%}
  412. message "&6Trafiles na: &cJablko&6!"
  413. if {@apple} is false:
  414. drop cobblestone
  415. add 1 to {stone.%player%}
  416.  
  417. #-------------------#
  418. # KOMENDY #
  419. #-------------------#
  420. command /statystyki [<text>]:
  421. aliases: staty
  422. trigger:
  423. if arg 1 is player:
  424. send "&7Statystyki gracza: &c%arg 1%"
  425. send "&7Wykopany Stone: &c{stone.%arg 1%}"
  426. send "&7Wykopany Diament: &c{diament.%arg 1%}"
  427. send "&7Wykopane Zloto: &c{zloto.%arg 1%}"
  428. send "&7Wykopane Zelazo: &c{zelazo.%arg 1%}"
  429. send "&7Wykopany Emerald: &c{emerald.%arg 1%}"
  430. send "&7Wykopany Wegiel: &c{wegiel.%arg 1%}"
  431. send "&7Wykopany Lapis lazuli: &c{lapis.%arg 1%}"
  432. send "&7Wykopany Redstone: &c{redstone.%arg 1%}"
  433. send "&7Wykopane TNT: &c{tnt.%arg 1%}"
  434. send "&7Wykopany Obsydian: &c{obsydian.%arg 1%}"
  435. send "&7Wykopane Biblio: &c{bookshelf.%arg 1%}"
  436. send "&7Wykopana Ender Perla: &c{enderpearl.%arg 1%}"
  437. send "&7Wykopane Jablko: &c{apple.%arg 1%}"
  438. if arg 1 is not set:
  439. send "&7Statystyki gracza: &c%player%"
  440. send "&7Wykopany Stone: &c{stone.%player%}"
  441. send "&7Wykopany Diament: &c{diament.%player%}"
  442. send "&7Wykopane Zloto: &c{zloto.%player%}"
  443. send "&7Wykopane Zelazo: &c{zelazo.%player%}"
  444. send "&7Wykopany Emerald: &c{emerald.%player%}"
  445. send "&7Wykopany Wegiel: &c{wegiel.%player%}"
  446. send "&7Wykopany Lapis lazuli: &c{lapis.%player%}"
  447. send "&7Wykopany Redstone: &c{redstone.%player%}"
  448. send "&7Wykopane TNT: &c{tnt.%player%}"
  449. send "&7Wykopany Obsydian: &c{obsydian.%player%}"
  450. send "&7Wykopane Biblio: &c{bookshelf.%player%}"
  451. send "&7Wykopana Ender Perla: &c{enderpearl.%player%}"
  452. send "&7Wykopane Jablko: &c{apple.%player%}"
  453. command /stone:
  454. aliases: drop, kamien, stone
  455. trigger:
  456. open chest with 2 rows named "{@tag}" to player
  457. wait 1 tick
  458. format slot 0 of player with 1 of diamond named "&bDiament" with lore "&4» &7Szansa: &c{@procentdiament}%%||&4» &7Wysokosc: &c{@wysokoscdiament}" to be unstealable
  459. format slot 1 of player with 1 of gold ore named "&6Zoto" with lore "&4» &7Szansa: &c{@procentzloto}%%||&4» &7Wysokosc: &c{@wysokoscdiament}" to be unstealable
  460. format slot 2 of player with 1 of iron ore named "&7Zelazo" with lore "&4» &7Szansa: &c{@procentzelazo}%%||&4» &7Wysokosc: &c{@wysokoscdiament}" to be unstealable
  461. format slot 3 of player with 1 of emerald named "&2Emerald" with lore "&4» &7Szansa: &c{@procentemerald}%%||&4» &7Wysokosc: &c{@wysokoscdiament}" to be unstealable
  462. format slot 4 of player with 1 of coal named "&0Wegiel" with lore "&4» &7Szansa: &c{@procentwegiel}%%||&4» &7Wysokosc: &c{@wysokoscdiament}" to be unstealable
  463. format slot 5 of player with 1 of 351:4 named "&9Lapis Lazuli" with lore "&4» &7Szansa: &c{@procentlapis}%%||&4» &7Wysokosc: &c{@wysokoscdiament}" to be unstealable
  464. format slot 6 of player with 1 of redstone named "&4Redstone" with lore "&4» &7Szansa: &c{@procentredstone}%%||&4» &7Wysokosc: &c{@wysokoscdiament}" to be unstealable
  465. format slot 7 of player with 1 of tnt named "&cTNT" with lore "&4» &7Szansa: &c{@procenttnt}%%||&4» &7Wysokosc: &c{@wysokoscdiament}" to be unstealable
  466. format slot 8 of player with 1 of obsidian named "&5Obsydian" with lore "&4» &7Szansa: &c{@procentobsydian}%%||&4» &7Wysokosc: &c{@wysokoscdiament}" to be unstealable
  467. format slot 9 of player with 1 of bookshelf named "&aBiblio" with lore "&4» &7Szansa: &c{procentbookshelf}%%||&4» &7Wysokosc: &c{@wysokoscdiament}" to be unstealable
  468. format slot 10 of player with 1 of ender pearl named "&3Ender Perla" with lore "&4» &7Szansa: &c{@procentenderpearl}%%||&4» &7Wysokosc: &c{@wysokoscdiament}" to be unstealable
  469. format slot 11 of player with 1 of apple named "&4Jablko" with lore "&4» &7Szansa: &c{@procentapple}%%||&4» &7Wysokosc: &c{@wysokoscdiament}" to be unstealable
  470. stop
  471.  
  472. #-------------------#
  473. # CONSOLE #
  474. #-------------------#
  475. on Skript load:
  476. send "" to console
  477. send "" to console
  478. send "" to console
  479. send "" to console
  480. send "" to console
  481. send "" to console
  482. send "===============[ KondiDrop ]===============" to console
  483. send "" to console
  484. send " Autor: {@author} " to console
  485. send " Wersja: {@version} " to console
  486. send " Nazwa: {@skName} " to console
  487. send "" to console
  488. send "===============[ KondiDrop ]===============" to console
  489. send "" to console
  490. send "" to console
  491. send "" to console
Advertisement
Add Comment
Please, Sign In to add comment