Advertisement
Guest User

HF_Drop v2

a guest
Oct 31st, 2014
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.53 KB | None | 0 0
  1. # Autor: MrVoul- kamyk25902
  2. # Nazwa: Mini_Drop skrypt z serwera MiniHC
  3. # Versja: 1.0
  4.  
  5. # Info:
  6. # Opcje nie sa podloczne zrobilem je sobie tylko tak D:
  7. # Skrypt pisany przeze mnie
  8.  
  9. #Licenja:
  10. # Nie zmieniac Autora!
  11. # Nie Rozpowrzechniac!
  12. # Kod Mozna zmieniac !
  13.  
  14.  
  15.  
  16.  
  17. options:
  18. drop.diamond: 0.85
  19. drop.emerald: 0.90
  20. drop.iron: 2.20
  21. drop.gold: 1.35
  22. drop.coal: 1.60
  23. drop.enderpearl: 0.20
  24. drop.gunpowder: 1.20
  25. drop.slimeball: 0.5
  26. drop.exp: 1000
  27. #------------------------------------
  28. wysokosc.diamond: 40
  29. wysokosc.emerald: 120
  30. wysokosc.iron: 1000
  31. wysokosc.gold: 45
  32. wysokosc.coal: 60
  33. wysokosc.enderpearl: 70
  34. wysokosc.gunpowder: 120
  35. wysokosc.slimeball: 120
  36. wysokosc.exp: 700
  37. #------------------------------------
  38. fortuna1: 50
  39. fortuna2: 30
  40. fortuna3: 10
  41. #------------------------------------
  42. ilosc.fortuny1: 1-2
  43. ilosc.fortuny2: 1-3
  44. ilosc:fortuny3: 1-5
  45.  
  46. variables:
  47. {lvl.%player%} = 1
  48. {pkt.%player%} = 0
  49. {cb.%player%} = true
  50.  
  51. command /stone:
  52. aliases: /drop, /kamien, /surowce
  53. trigger:
  54. send "&6Diament: &70.85%% &8| &7y: 40"
  55. send "&6Szmaragd: &70.90%% &8| &7y: 120"
  56. send "&6Zelazo: &72.20%% &8| &7y: 1000"
  57. send "&6Zloto: &71.35%% &8| &7y: 45"
  58. send "&6Wegiel: &71.60%% &8| &7y: 60"
  59. send "&6Perla: &70.20%% &8| &7y: 70"
  60. send "&6Proch: &71.20%% &8| &7y: 120"
  61. send "&6Slimeball &70.5%% &8| &7y: 120"
  62. send "&7Konto Vip posiada drop &6+0.40%%"
  63. send "&7Fortuna zwieksza drop oraz ilosc"
  64. command /pkt:
  65. trigger:
  66. send "&9Aktulanie posiadasz &c%{pkt.%player%}% &9punktow czyli &c%{lvl.%player%}% &9lvl"
  67. command /pktreset:
  68. trigger:
  69. set {pkt.%player%} to 0
  70. set {lvl.%player%} to 0
  71. command /cobble:
  72. trigger:
  73. if {cb.%player%} is true:
  74. set {cb.%player%} to false
  75. send " &6» &7Wylaczyles drop cobblestone!"
  76. stop
  77. if {cb.%player%} is false:
  78. set {cb.%player%} to true
  79. send " &6» &7Wlaczyles drop cobblestone!"
  80. stop
  81.  
  82. #-------------------Koniec Komend-----------------------
  83. on explode:
  84. if {drop} is true:
  85. loop blocks in radius 10:
  86. if loop-block is diamond ore:
  87. set loop-block to air
  88. if loop-block is emerald ore:
  89. set loop-block to air
  90. if loop-block is gold ore:
  91. set loop-block to air
  92. if loop-block is iron ore:
  93. set loop-block to air
  94.  
  95.  
  96.  
  97.  
  98. on mine of diamond ore:
  99. if {drop} is true:
  100. cancel event
  101. set block to air
  102. send " &6» &7Drop z tej rudy jest wylaczony!"
  103. send " &6» &7Aby zobaczyc szanse na drop wpisz &6/drop&7!"
  104. stop
  105. else:
  106. stop
  107. on mine of emerald ore:
  108. if {drop} is true:
  109. cancel event
  110. set block to air
  111. send " &6» &7Drop z tej rudy jest wylaczony!"
  112. send " &6» &7Aby zobaczyc szanse na drop wpisz &6/drop&7!"
  113. stop
  114. else:
  115. stop
  116. on mine of gold ore:
  117. if {drop} is true:
  118. cancel event
  119. set block to air
  120. send " &6» &7Drop z tej rudy jest wylaczony!"
  121. send " &6» &7Aby zobaczyc szanse na drop wpisz &6/drop&7!"
  122. stop
  123. else:
  124. stop
  125. on mine of iron ore:
  126. if {drop} is true:
  127. cancel event
  128. set block to air
  129. send " &6» &7Drop z tej rudy jest wylaczony!"
  130. send " &6» &7Aby zobaczyc szanse na drop wpisz &6/drop&7!"
  131. stop
  132. else:
  133. stop
  134. on chat:
  135. set the player's display name to "&7[&6%{lvl.%player%}%&7] &7%display name of player%"
  136.  
  137. on mine of stone:
  138. chance of 0.85%:
  139. if player's y-coordinate is less than 40:
  140. give 10 xp to the player
  141. add 25 to {pkt.%player%}
  142. give 1 diamond to the player
  143. send "&6Wydobyles:&bDiament &6(+25 pkt)"
  144. stop
  145. chance of 0.90%:
  146. if player's y-coordinate is less than 120:
  147. give 10 xp to the player
  148. add 12 to {pkt.%player%}
  149. give 1 emerald to the player
  150. send "&6Wydobyles:&aSzmaragd &6(+12 pkt)"
  151. chance of 2.20%:
  152. if player's y-coordinate is less than 1000:
  153. give 10 xp to the player
  154. add 5 to {pkt.%player%}
  155. give 1 iron ore to the player
  156. send "&6Wydobyles:&7Zelazo &6(+5 pkt)"
  157. chance of 1.35%:
  158. if player's y-coordinate is less than 45:
  159. give 10 xp to the player
  160. add 8 to {pkt.%player%}
  161. give 1 gold ore to the player
  162. send "&6Wydobyles:&eZloto &6(+8 pkt)"
  163. chance of 1.60%:
  164. if player's y-coordinate is less than 60:
  165. give 12 xp to the player
  166. add 18 to {pkt.%player%}
  167. give 1 coal to the player
  168. send "&6Wydobyles:&8Wegiel &6(+18 pkt)"
  169. chance of 0.20%:
  170. if player's y-coordinate is less than 70:
  171. give 28 xp to the player
  172. add 80 to {pkt.%player%}
  173. give 1 ender pearl to the player
  174. send "&6Wydobyles:&5Perle &6(+80 pkt)"
  175. chance of 1.20%:
  176. if player's y-coordinate is less than 120:
  177. give 15 xp to the player
  178. add 14 to {pkt.%player%}
  179. give 1 gunpowder to the player
  180. send "&6Wydobyles:&7Proch &6(+14 pkt)"
  181. chance of 0.5%:
  182. if player's y-coordinate is less than 120:
  183. give 9 xp to the player
  184. add 38 to {pkt.%player%}
  185. give 1 slimeball to the player
  186. send "&6Wydobyles:&aSlimeBall &6(+38 pkt)"
  187. chance of 0.85%:
  188. if player's y-coordinate is less than 40:
  189. if player is holding diamond pickaxe of fortune 1:
  190. chance of 50%:
  191. give 2 diamond to the player
  192. give 12 xp to the player
  193. add 25 to {pkt.%player%}
  194. send "&6Wydobyles:&bDiament &7[2 szt.] &6(+25 pkt)"
  195. chance of 0.85%:
  196. if player's y-coordinate is less than 40:
  197. if player is holding diamond pickaxe of fortune 2:
  198. chance of 70%:
  199. give 3 diamond to the player
  200. give 12 xp to the player
  201. add 48 to {pkt.%player%}
  202. send "&6Wydobyles:&bDiament &7[3 szt.] &6(+48 pkt)"
  203. chance of 0.85%:
  204. if player's y-coordinate is less than 40:
  205. if player is holding diamond pickaxe of fortune 3:
  206. chance of 90%:
  207. give 4 diamond to the player
  208. give 12 xp to the player
  209. add 49 to {pkt.%player%}
  210. send "&6Wydobyles:&bDiament &7[4 szt.] &6(+49 pkt)"
  211. chance of 0.90%:
  212. if player's y-coordinate is less than 120:
  213. if player is holding diamond pickaxe of fortune 1:
  214. chance of 50%:
  215. give 2 emerald to the player
  216. give 12 xp to the player
  217. add 25 to {pkt.%player%}
  218. send "&6Wydobyles:&aSzmaragd &7[2 szt.] &6(+25 pkt)"
  219. chance of 0.90%:
  220. if player's y-coordinate is less than 120:
  221. if player is holding diamond pickaxe of fortune 2:
  222. chance of 70%:
  223. give 3 emerald to the player
  224. give 12 xp to the player
  225. add 25 to {pkt.%player%}
  226. send "&6Wydobyles:&aSzmaragd &7[3 szt.] &6(+25 pkt)"
  227. chance of 0.90%:
  228. if player's y-coordinate is less than 120:
  229. if player is holding diamond pickaxe of fortune 3:
  230. chance of 90%:
  231. give 4 emerald to the player
  232. give 12 xp to the player
  233. add 25 to {pkt.%player%}
  234. send "&6Wydobyles:&aSzmaragd &7[4 szt.] &6(+25 pkt)"
  235. chance of 2.20%:
  236. if player's y-coordinate is less than 1000:
  237. if player is holding diamond pickaxe of fortune 1:
  238. chance of 50%:
  239. give 2 iron ore to the player
  240. give 12 xp to the player
  241. add 25 to {pkt.%player%}
  242. send "&6Wydobyles:&7Zelazo &7[2 szt.] &6(+25 pkt)"
  243. chance of 2.20%:
  244. if player's y-coordinate is less than 1000:
  245. if player is holding diamond pickaxe of fortune 2:
  246. chance of 70%:
  247. give 3 iron ore to the player
  248. give 12 xp to the player
  249. add 25 to {pkt.%player%}
  250. send "&6Wydobyles:&7Zelazo &7[3 szt.] &6(+25 pkt)"
  251. chance of 2.20%:
  252. if player's y-coordinate is less than 1000:
  253. if player is holding diamond pickaxe of fortune 3:
  254. chance of 90%:
  255. give 4 iron ore to the player
  256. give 12 xp to the player
  257. add 25 to {pkt.%player%}
  258. send "&6Wydobyles:&7Zelazo &7[4 szt.] &6(+25 pkt)"
  259. chance of 1.35%:
  260. if player's y-coordinate is less than 45:
  261. if player is holding diamond pickaxe of fortune 1:
  262. chance of 50%:
  263. give 2 gold ore to the player
  264. give 12 xp to the player
  265. add 25 to {pkt.%player%}
  266. send "&6Wydobyles:&eZloto &7[2 szt.] &6(+25 pkt)"
  267. chance of 1.35%:
  268. if player's y-coordinate is less than 45:
  269. if player is holding diamond pickaxe of fortune 2:
  270. chance of 70%:
  271. give 3 gold ore to the player
  272. give 12 xp to the player
  273. add 25 to {pkt.%player%}
  274. send "&6Wydobyles:&eZloto &7[3 szt.] &6(+25 pkt)"
  275. chance of 1.35%:
  276. if player's y-coordinate is less than 45:
  277. if player is holding diamond pickaxe of fortune 3:
  278. chance of 90%:
  279. give 4 gold ore to the player
  280. give 12 xp to the player
  281. add 25 to {pkt.%player%}
  282. send "&6Wydobyles:&eZloto &7[4 szt.] &6(+25 pkt)"
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289. chance of 100%:
  290. if player's y-coordinate is less than 1000:
  291. give 10 xp to the player
  292. give 1 cobblestone to the player
  293. if {pkt.%player%} is larger than 60:
  294. if {lvl.%player%} is less than 2:
  295. set {lvl.%player%} to 2
  296. send " &6» &7Awansowales na: &62 Poziom&7!"
  297. stop
  298. if {pkt.%player%} is larger than 180:
  299. if {lvl.%player%} is less than 3:
  300. set {lvl.%player%} to 3
  301. send " &6» &7Awansowales na: &63 Poziom&7!"
  302. stop
  303. if {pkt.%player%} is larger than 238:
  304. if {lvl.%player%} is less than 4:
  305. set {lvl.%player%} to 4
  306. send " &6» &7Awansowales na: &64 Poziom&7!"
  307. stop
  308. if {pkt.%player%} is larger than 289:
  309. if {lvl.%player%} is less than 5:
  310. set {lvl.%player%} to 5
  311. send " &6» &7Awansowales na: &65 Poziom&7!"
  312. stop
  313. if {pkt.%player%} is larger than 348:
  314. if {lvl.%player%} is less than 6:
  315. set {lvl.%player%} to 6
  316. send " &6» &7Awansowales na: &66 Poziom&7!"
  317. stop
  318. if {pkt.%player%} is larger than 423:
  319. if {lvl.%player%} is less than 7:
  320. set {lvl.%player%} to 7
  321. send " &6» &7Awansowales na: &67 Poziom&7!"
  322. stop
  323. if {pkt.%player%} is larger than 500:
  324. if {lvl.%player%} is less than 8:
  325. set {lvl.%player%} to 8
  326. send " &6» &7Awansowales na: &68 Poziom&7!"
  327. stop
  328. if {pkt.%player%} is larger than 582:
  329. if {lvl.%player%} is less than 9:
  330. set {lvl.%player%} to 9
  331. send " &6» &7Awansowales na: &69 Poziom&7!"
  332. stop
  333. if {pkt.%player%} is larger than 653:
  334. if {lvl.%player%} is less than 10:
  335. set {lvl.%player%} to 10
  336. send " &6» &7Awansowales na: &610 Poziom&7!"
  337. stop
  338. if {pkt.%player%} is larger than 721:
  339. if {lvl.%player%} is less than 11:
  340. set {lvl.%player%} to 11
  341. send " &6» &7Awansowales na: &611 Poziom&7!"
  342. stop
  343. if {pkt.%player%} is larger than 810:
  344. if {lvl.%player%} is less than 12:
  345. set {lvl.%player%} to 12
  346. send " &6» &7Awansowales na: &612 Poziom&7!"
  347. stop
  348. if {pkt.%player%} is larger than 982:
  349. if {lvl.%player%} is less than 13:
  350. set {lvl.%player%} to 13
  351. send " &6» &7Awansowales na: &613 Poziom&7!"
  352. stop
  353. if {pkt.%player%} is larger than 1100:
  354. if {lvl.%player%} is less than 14:
  355. set {lvl.%player%} to 14
  356. send " &6» &7Awansowales na: &614 Poziom&7!"
  357. stop
  358. if {pkt.%player%} is larger than 1189:
  359. if {lvl.%player%} is less than 15:
  360. set {lvl.%player%} to 15
  361. send " &6» &7Awansowales na: &615 Poziom&7!"
  362. stop
  363. if {pkt.%player%} is larger than 1348:
  364. if {lvl.%player%} is less than 16:
  365. set {lvl.%player%} to 16
  366. send " &6» &7Awansowales na: &616 Poziom&7!"
  367. stop
  368. if {pkt.%player%} is larger than 1496:
  369. if {lvl.%player%} is less than 17:
  370. set {lvl.%player%} to 17
  371. send " &6» &7Awansowales na: &617 Poziom&7!"
  372. stop
  373. if {pkt.%player%} is larger than 1582:
  374. if {lvl.%player%} is less than 18:
  375. set {lvl.%player%} to 18
  376. send " &6» &7Awansowales na: &618 Poziom&7!"
  377. stop
  378. if {pkt.%player%} is larger than 1672:
  379. if {lvl.%player%} is less than 19:
  380. set {lvl.%player%} to 19
  381. send " &6» &7Awansowales na: &619 Poziom&7!"
  382. stop
  383. if {pkt.%player%} is larger than 1785:
  384. if {lvl.%player%} is less than 20:
  385. set {lvl.%player%} to 20
  386. send " &6» &7Awansowales na: &620 Poziom&7!"
  387. stop
  388. if {pkt.%player%} is larger than 1859:
  389. if {lvl.%player%} is less than 21:
  390. set {lvl.%player%} to 21
  391. send " &6» &7Awansowales na: &621 Poziom&7!"
  392. stop
  393. if {pkt.%player%} is larger than 1958:
  394. if {lvl.%player%} is less than 22:
  395. set {lvl.%player%} to 22
  396. send " &6» &7Awansowales na: &622 Poziom&7!"
  397. stop
  398. if {pkt.%player%} is larger than 2024:
  399. if {lvl.%player%} is less than 23:
  400. set {lvl.%player%} to 23
  401. send " &6» &7Awansowales na: &623 Poziom&7!"
  402. stop
  403. if {pkt.%player%} is larger than 2104:
  404. if {lvl.%player%} is less than 24:
  405. set {lvl.%player%} to 24
  406. send " &6» &7Awansowales na: &624 Poziom&7!"
  407. stop
  408. if {pkt.%player%} is larger than 2189:
  409. if {lvl.%player%} is less than 25:
  410. set {lvl.%player%} to 25
  411. send " &6» &7Awansowales na: &625 Poziom&7!"
  412. stop
  413. if {pkt.%player%} is larger than 2269:
  414. if {lvl.%player%} is less than 26:
  415. set {lvl.%player%} to 26
  416. send " &6» &7Awansowales na: &626 Poziom&7!"
  417. stop
  418. if {pkt.%player%} is larger than 2345:
  419. if {lvl.%player%} is less than 27:
  420. set {lvl.%player%} to 27
  421. send " &6» &7Awansowales na: &627 Poziom&7!"
  422. stop
  423. if {pkt.%player%} is larger than 2453:
  424. if {lvl.%player%} is less than 28:
  425. set {lvl.%player%} to 28
  426. send " &6» &7Awansowales na: &628 Poziom&7!"
  427. stop
  428. if {pkt.%player%} is larger than 2500:
  429. if {lvl.%player%} is less than 29:
  430. set {lvl.%player%} to 29
  431. send " &6» &7Awansowales na: &629 Poziom&7!"
  432. stop
  433. if {pkt.%player%} is larger than 3000:
  434. if {lvl.%player%} is less than 30:
  435. set {lvl.%player%} to 30
  436. send " &6» &7Awansowales na: &630 Poziom&7!"
  437. broadcast "&9%player% awansowal na 30 lvl Gratulacje"
  438. stop
  439. if {pkt.%player%} is larger than 3283:
  440. if {lvl.%player%} is less than 31:
  441. set {lvl.%player%} to 31
  442. send " &6» &7Awansowales na: &631 Poziom&7!"
  443. stop
  444. if {pkt.%player%} is larger than 3485:
  445. if {lvl.%player%} is less than 32:
  446. set {lvl.%player%} to 32
  447. send " &6» &7Awansowales na: &632 Poziom&7!"
  448. stop
  449. if {pkt.%player%} is larger than 3981:
  450. if {lvl.%player%} is less than 33:
  451. set {lvl.%player%} to 33
  452. send " &6» &7Awansowales na: &633 Poziom&7!"
  453. stop
  454. if {pkt.%player%} is larger than 4123:
  455. if {lvl.%player%} is less than 34:
  456. set {lvl.%player%} to 34
  457. send " &6» &7Awansowales na: &634 Poziom&7!"
  458. stop
  459. if {pkt.%player%} is larger than 4854:
  460. if {lvl.%player%} is less than 35:
  461. set {lvl.%player%} to 35
  462. send " &6» &7Awansowales na: &635 Poziom&7!"
  463. stop
  464. if {pkt.%player%} is larger than 5000:
  465. if {lvl.%player%} is less than 36:
  466. set {lvl.%player%} to 36
  467. send " &6» &7Awansowales na: &636 Poziom&7!"
  468. stop
  469. if {pkt.%player%} is larger than 5348:
  470. if {lvl.%player%} is less than 37:
  471. set {lvl.%player%} to 37
  472. send " &6» &7Awansowales na: &637 Poziom&7!"
  473. stop
  474. if {pkt.%player%} is larger than 5982:
  475. if {lvl.%player%} is less than 38:
  476. set {lvl.%player%} to 38
  477. send " &6» &7Awansowales na: &638 Poziom&7!"
  478. stop
  479. if {pkt.%player%} is larger than 6500:
  480. if {lvl.%player%} is less than 39:
  481. set {lvl.%player%} to 39
  482. send " &6» &7Awansowales na: &639 Poziom&7!"
  483. stop
  484. if {pkt.%player%} is larger than 6800:
  485. if {lvl.%player%} is less than 40:
  486. set {lvl.%player%} to 40
  487. send " &6» &7Awansowales na: &640 Poziom&7!"
  488. broadcast "&6%player% awansowal na 40 lvl Gratulacje"
  489. stop
  490. if {pkt.%player%} is larger than 7000:
  491. if {lvl.%player%} is less than 41:
  492. set {lvl.%player%} to 41
  493. send " &6» &7Awansowales na: &641 Poziom&7!"
  494. stop
  495. if {pkt.%player%} is larger than 7458:
  496. if {lvl.%player%} is less than 42:
  497. set {lvl.%player%} to 42
  498. send " &6» &7Awansowales na: &642 Poziom&7!"
  499. stop
  500. if {pkt.%player%} is larger than 8000:
  501. if {lvl.%player%} is less than 43:
  502. set {lvl.%player%} to 43
  503. send " &6» &7Awansowales na: &643 Poziom&7!"
  504. stop
  505. if {pkt.%player%} is larger than 9000:
  506. if {lvl.%player%} is less than 44:
  507. set {lvl.%player%} to 44
  508. send " &6» &7Awansowales na: &644 Poziom&7!"
  509. stop
  510. if {pkt.%player%} is larger than 10000:
  511. if {lvl.%player%} is less than 45:
  512. set {lvl.%player%} to 45
  513. send " &6» &7Awansowales na: &645 Poziom&7!"
  514. broadcast "%player% awansowal na 45 lvl Czyli najwiekszy poziom ! Gratulacje"
  515. stop
  516. if {pkt.%player%} is larger than 10000:
  517. if {lvl.%player%} is less than 45:
  518. set {lvl.%player%} to 45
  519. send " &6» &7Awansowales na: &645 Poziom&7!"
  520. broadcast "%player% awansowal na 45 lvl Czyli najwiekszy poziom ! Gratulacje"
  521. stop
  522.  
  523.  
  524. on mine of stone:
  525. if player has permission "kamilo.drop.vip":
  526. chance of 1.25%:
  527. add 20 to {pkt.%player%}
  528. give 1 diamond to the player
  529. send "&6Wydobyles: &bDiament &6(+25 pkt)"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement