TheMrkoia

KDrop by TheMrkoia

Oct 10th, 2014
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 33.51 KB | None | 0 0
  1. variables:
  2. {wykopanystone.%player%} = 0
  3. {exp.%player%} = 0
  4. {diamenty.%player%} = 0
  5. {zloto.%player%} = 0
  6. {zelazo.%player%} = 0
  7. {wegiel.%player%} = 0
  8. {emerald.%player%} = 0
  9. {proch.%player%} = 0
  10. {redstone.%player%} = 0
  11. {lapis.%player%} = 0
  12. #================================
  13. #Author: TheMrkoia
  14. #Name: KDrop
  15. #================================
  16.  
  17. #================================
  18. #Zakaz podszywania się pod autora
  19. #Zakaz umieszczania skryptu na forach etc. bez podania autora
  20. #Zakaz czerpania jakich kolwiek korzysci materialnych
  21. #=================================
  22.  
  23.  
  24. options:
  25. chance_diamond: 0.75 #Szansa na diament
  26. chance_gold: 2.5 #Szansa na zloto
  27. chance_iron: 1.5 #Szansa na zelazo
  28. chance_coal: 2 #Szansa na wegiel
  29. chance_emerald: 0.5 #Szansa na emerald
  30. chance_gunpowder: 1.2 #Szansa na proch
  31. chance_redstone: 1 #Szansa na redstone
  32. chance_lapis: 1 #Szansa na lapis
  33. #------------------------------
  34. wysokosc_diamond: 25 #Wysokosc na wypadniecie diamentu
  35. wysokosc_gold: 35 #Wysokosc na wypadniecie zlota
  36. wysokosc_iron: 60 #Wysokosc na wypadniecie zelaza
  37. wysokosc_coal: 100 #Wysokosc na wypadniecie wegla
  38. wysokosc_emerald: 30 #Wysokosc na wypadniecie emeraldu
  39. wysokosc_gunpowder: 40 #Wysokosc na wypadniecie prochu
  40. wysokosc_redstone: 55 #Wysokosc na wypadniecie redstona
  41. wysokosc_lapis: 55 #Wysokosc na wypadniecie lapisu
  42. #-----------------------------
  43. ilosc_expa: 2 #Ilosc wypadanego expa
  44. szansa_expa: 100 #Szansa na wypadniecie expa
  45. wysokosc_expa: 75 #Wysokosc na wypadniecie expa
  46. #-----------------------------
  47.  
  48. command /stone:
  49. aliases: kamien, drop
  50. trigger:
  51. send "&8=============================="
  52. send "&8> &7Diamenty: &6{@chance_diamond} &7Wysokosc: &6{@wysokosc_diamond}"
  53. send "&8> &7Zloto: &6{@chance_gold} &7Wysokosc: &6{@wysokosc_gold}"
  54. send "&8> &7Zelazo: &6{@chance_iron} &7Wysokosc: &6{@wysokosc_iron}"
  55. send "&8> &7Wegiel: &6{@chance_coal} &7Wysokosc: &6{@wysokosc_coal}"
  56. send "&8> &7Emerald: &6{@chance_emerald} &7Wysokosc: &6{@wysokosc_emerald}"
  57. send "&8> &7Proch: &6{@chance_gunpowder} &7Wysokosc: &6{@wysokosc_gunpowder}"
  58. send "&8> &7Redstone: &6{@chance_redstone} &7Wysokosc: &6{@wysokosc_redstone}"
  59. send "&8> &7Lapis: &6{@chance_lapis} &7Wysokosc: &6{@wysokosc_lapis}"
  60. send "&8=============================="
  61.  
  62. command /statystyki [<text>]:
  63. aliases: staty
  64. trigger:
  65. if arg 1 is not set:
  66. send "&8====================="
  67. send "&7Wykopane &bDiamenty: &7%{diamenty.%player%}%"
  68. send "&7Wykopane &eZloto: &7%{zloto.%player%}%"
  69. send "&7Wykopane &8Zelazo: &7%{zelazo.%player%}%"
  70. send "&7Wykopany &0Wegiel: &7%{wegiel.%player%}%"
  71. send "&7Wykopane &aEmeraldy: &7%{emerald.%player%}%"
  72. send "&7Wykopane &7Proch: &7%{proch.%player%}%"
  73. send "&7Wykopane &cRedstone: &7%{redstone.%player%}%"
  74. send "&7Wykopane &9Lapis: &7%{lapis.%player%}%"
  75. send "&7Wykopany &6STONE: &7%{wykopanystone.%player%}%"
  76. send "&7Wykopany &2EXP: &7%{exp.%player%}%"
  77. send "&8====================="
  78. if arg 1 is set:
  79. if arg 1 is player:
  80. send "&8====================="
  81. send "&7Gracz: &6&o%arg 1%"
  82. send "&7Wykopane &bDiamenty: &7%{diamenty.%arg 1%}%"
  83. send "&7Wykopane &eZloto: &7%{zloto.%arg 1%}%"
  84. send "&7Wykopane &8Zelazo: &7%{zelazo.%arg 1%}%"
  85. send "&7Wykopany &0Wegiel: &7%{wegiel.%arg 1%}%"
  86. send "&7Wykopane &aEmeraldy: &7%{emerald.%arg 1%}%"
  87. send "&7Wykopane &7Proch: &7%{proch.%arg 1%}%"
  88. send "&7Wykopane &cRedstone: &7%{redstone.%arg 1%}%"
  89. send "&7Wykopane &9Lapis: &7%{lapis.%arg 1%}%"
  90. send "&7Wykopany &6STONE: &7%{wykopanystone.%arg 1%}%"
  91. send "&7Wykopany &2EXP: &7%{exp.%arg 1%}%"
  92. send "&8====================="
  93. else:
  94. send "&cTakiego gracza nie ma na serwerze!"
  95.  
  96.  
  97. on mine of stone:
  98. if player's gamemode is survival:
  99. add 1 to {wykopanystone.%player%}
  100. if block's y-coordinate is smaller than {@wysokosc_expa}:
  101. chance of {@szansa_expa}:
  102. add {@ilosc_expa} xp to the player
  103. add {@ilosc_expa} to {exp.%player%}
  104.  
  105. on mine of any ore:
  106. cancel event
  107. set block to air
  108.  
  109. on mine of stone:
  110. if player's gamemode is survival:
  111. if player's y-coordinate is smaller than {@wysokosc_diamond}:
  112. chance of {@chance_diamond}%:
  113. if player's tool is pickaxe of fortune 0:
  114. add diamond to the player's inventory
  115. add 1 to {diamenty.%player%}
  116. else:
  117. if player's tool is pickaxe of fortune 1:
  118. chance of 50%:
  119. add diamond to the player's inventory
  120. add 1 to {diamenty.%player%}
  121. else:
  122. add 2 diamond to the player's inventory
  123. add 2 to {diamenty.%player%}
  124. else:
  125. if player's tool is pickaxe of fortune 2:
  126. chance of 33%:
  127. add diamond to the player's inventory
  128. add 1 to {diamenty.%player%}
  129. else:
  130. chance of 33%:
  131. add 2 diamond to the player's inventory
  132. add 2 to {diamenty.%player%}
  133. else:
  134. add 3 diamond to the player's inventory
  135. add 3 to {diamenty.%player%}
  136. else:
  137. if player's tool is pickaxe of fortune 3:
  138. chance of 25%:
  139. add diamond to the player's inventory
  140. add 1 to {diamenty.%player%}
  141. else:
  142. chance of 25%:
  143. add 2 diamond to the player's inventory
  144. add 2 to {diamenty.%player%}
  145. else:
  146. chance of 25%:
  147. add 3 diamond to the player's inventory
  148. add 3 to {diamenty.%player%}
  149. else:
  150. chance of 25%:
  151. add 4 diamond to the player's inventory
  152. add 4 to {diamenty.%player%}
  153. on mine of stone:
  154. if player's gamemode is survival:
  155. if player's y-coordinate is smaller than {@wysokosc_gold}:
  156. chance of {@chance_gold}%:
  157. if player's tool is pickaxe of fortune 0:
  158. add gold ore to the player's inventory
  159. add 1 to {zloto.%player%}
  160. else:
  161. if player's tool is pickaxe of fortune 1:
  162. chance of 50%:
  163. add gold ore to the player's inventory
  164. add 1 to {zloto.%player%}
  165. else:
  166. add 2 gold ore to the player's inventory
  167. add 2 to {zloto.%player%}
  168. else:
  169. if player's tool is pickaxe of fortune 2:
  170. chance of 33%:
  171. add gold ore to the player's inventory
  172. add 2 to {zloto.%player%}
  173. else:
  174. chance of 33%:
  175. add 2 gold ore to the player's inventory
  176. add 2 to {zloto.%player%}
  177. else:
  178. add 3 gold ore to the player's inventory
  179. add 3 to {zloto.%player%}
  180. else:
  181. if player's tool is pickaxe of fortune 3:
  182. chance of 25%:
  183. add gold ore to the player's inventory
  184. add 1 to {zloto.%player%}
  185. else:
  186. chance of 25%:
  187. add 2 gold ore to the player's inventory
  188. add 2 to {zloto.%player%}
  189. else:
  190. chance of 25%:
  191. add 3 gold ore to the player's inventory
  192. add 3 to {zloto.%player%}
  193. else:
  194. chance of 25%:
  195. add 4 gold ore to the player's inventory
  196. add 4 to {zloto.%player%}
  197. on mine of stone:
  198. if player's gamemode is survival:
  199. if player's y-coordinate is smaller than {@wysokosc_iron}:
  200. chance of {@chance_iron}%:
  201. if player's tool is pickaxe of fortune 0:
  202. add iron ore to the player's inventory
  203. add 1 to {zelazo.%player%}
  204. else:
  205. if player's tool is pickaxe of fortune 1:
  206. chance of 50%:
  207. add iron ore to the player's inventory
  208. add 1 to {zelazo.%player%}
  209. else:
  210. add 2 iron ore to the player's inventory
  211. add 2 to {zelazo.%player%}
  212. else:
  213. if player's tool is pickaxe of fortune 2:
  214. chance of 33%:
  215. add iron ore to the player's inventory
  216. add 1 to {zelazo.%player%}
  217. else:
  218. chance of 33%:
  219. add 2 iron ore to the player's inventory
  220. add 2 to {zelazo.%player%}
  221. else:
  222. add 3 iron ore to the player's inventory
  223. add 3 to {zelazo.%player%}
  224. else:
  225. if player's tool is pickaxe of fortune 3:
  226. chance of 25%:
  227. add iron ore to the player's inventory
  228. add 1 to {zelazo.%player%}
  229. else:
  230. chance of 25%:
  231. add 2 iron ore to the player's inventory
  232. add 2 to {zelazo.%player%}
  233. else:
  234. chance of 25%:
  235. add 3 iron ore to the player's inventory
  236. add 3 to {zelazo.%player%}
  237. else:
  238. chance of 25%:
  239. add 4 iron ore to the player's inventory
  240. add 4 to {zelazo.%player%}
  241.  
  242. on mine of stone:
  243. if player's gamemode is survival:
  244. if player's y-coordinate is smaller than {@wysokosc_coal}:
  245. chance of {@chance_coal}%:
  246. if player's tool is pickaxe of fortune 0:
  247. add coal to the player's inventory
  248. add 1 to {wegiel.%player%}
  249. else:
  250. if player's tool is pickaxe of fortune 1:
  251. chance of 50%:
  252. add coal to the player's inventory
  253. add 1 to {wegiel.%player%}
  254. else:
  255. add 2 coal to the player's inventory
  256. add 2 to {wegiel.%player%}
  257. else:
  258. if player's tool is pickaxe of fortune 2:
  259. chance of 33%:
  260. add coal to the player's inventory
  261. add 1 to {wegiel.%player%}
  262. else:
  263. chance of 33%:
  264. add 2 coal to the player's inventory
  265. add 2 to {wegiel.%player%}
  266. else:
  267. add 3 coal to the player's inventory
  268. add 3 to {wegiel.%player%}
  269. else:
  270. if player's tool is pickaxe of fortune 3:
  271. chance of 25%:
  272. add coal to the player's inventory
  273. add 1 to {wegiel.%player%}
  274. else:
  275. chance of 25%:
  276. add 2 coal to the player's inventory
  277. add 2 to {wegiel.%player%}
  278. else:
  279. chance of 25%:
  280. add 3 coal to the player's inventory
  281. add 3 to {wegiel.%player%}
  282. else:
  283. chance of 25%:
  284. add 4 coal to the player's inventory
  285. add 4 to {wegiel.%player%}
  286.  
  287. on mine of stone:
  288. if player's gamemode is survival:
  289. if player's y-coordinate is smaller than {@wysokosc_emerald}:
  290. chance of {@chance_emerald}%:
  291. if player's tool is pickaxe of fortune 0:
  292. add emerald to the player's inventory
  293. add 1 to {emerald.%player%}
  294. else:
  295. if player's tool is pickaxe of fortune 1:
  296. chance of 50%:
  297. add emerald to the player's inventory
  298. add 1 to {emerald.%player%}
  299. else:
  300. add 2 emerald to the player's inventory
  301. add 2 to {emerald.%player%}
  302. else:
  303. if player's tool is pickaxe of fortune 2:
  304. chance of 33%:
  305. add emerald to the player's inventory
  306. add 1 to {emerald.%player%}
  307. else:
  308. chance of 33%:
  309. add 2 emerald to the player's inventory
  310. add 2 to {emerald.%player%}
  311. else:
  312. add 3 emerald to the player's inventory
  313. add 3 to {emerald.%player%}
  314. else:
  315. if player's tool is pickaxe of fortune 3:
  316. chance of 25%:
  317. add emerald to the player's inventory
  318. add 1 to {emerald.%player%}
  319. else:
  320. chance of 25%:
  321. add 2 emerald to the player's inventory
  322. add 2 to {emerald.%player%}
  323. else:
  324. chance of 25%:
  325. add 3 emerald to the player's inventory
  326. add 3 to {emerald.%player%}
  327. else:
  328. chance of 25%:
  329. add 4 emerald to the player's inventory
  330. add 4 to {emerald.%player%}
  331. on mine of stone:
  332. if player's gamemode is survival:
  333. if player's y-coordinate is smaller than {@wysokosc_gunpowder}:
  334. chance of {@chance_gunpowder}%:
  335. if player's tool is pickaxe of fortune 0:
  336. add gunpowder to the player's inventory
  337. add 1 to {proch.%player%}
  338. else:
  339. if player's tool is pickaxe of fortune 1:
  340. chance of 40%:
  341. add gunpowder to the player's inventory
  342. add 1 to {proch.%player%}
  343. else:
  344. add 2 gunpowder to the player's inventory
  345. add 2 to {proch.%player%}
  346. else:
  347. if player's tool is pickaxe of fortune 2:
  348. chance of 40%:
  349. add gunpowder to the player's inventory
  350. add 1 to {proch.%player%}
  351. else:
  352. add 2 gunpowder to the player's inventory
  353. add 2 to {proch.%player%}
  354. else:
  355. if player's tool is pickaxe of fortune 3:
  356. chance of 40%:
  357. add gunpowder to the player's inventory
  358. add 1 to {proch.%player%}
  359. else:
  360. add 2 gunpowder to the player's inventory
  361. add 2 to {proch.%player%}
  362. on mine of stone:
  363. if player's gamemode is survival:
  364. if player's y-coordinate is smaller than {@wysokosc_redstone}:
  365. chance of {@chance_redstone}%:
  366. if player's tool is pickaxe of fortune 0:
  367. add redstone to the player's inventory
  368. add 1 to {redstone.%player%}
  369. else:
  370. if player's tool is pickaxe of fortune 1:
  371. chance of 50%:
  372. add redstone to the player's inventory
  373. add 1 to {redstone.%player%}
  374. else:
  375. add 2 redstone to the player's inventory
  376. add 2 to {redstone.%player%}
  377. else:
  378. if player's tool is pickaxe of fortune 2:
  379. chance of 33%:
  380. add redstone to the player's inventory
  381. add 1 to {redstone.%player%}
  382. else:
  383. chance of 33%:
  384. add 2 redstone to the player's inventory
  385. add 2 to {redstone.%player%}
  386. else:
  387. add 3 redstone to the player's inventory
  388. add 3 to {redstone.%player%}
  389. else:
  390. if player's tool is pickaxe of fortune 3:
  391. chance of 25%:
  392. add redstone to the player's inventory
  393. add 1 to {redstone.%player%}
  394. else:
  395. chance of 25%:
  396. add 2 redstone to the player's inventory
  397. add 2 to {redstone.%player%}
  398. else:
  399. chance of 25%:
  400. add 3 redstone to the player's inventory
  401. add 3 to {redstone.%player%}
  402. else:
  403. chance of 25%:
  404. add 4 redstone to the player's inventory
  405. add 4 to {redstone.%player%}
  406.  
  407. on mine of stone:
  408. if player's gamemode is survival:
  409. if player's y-coordinate is smaller than {@wysokosc_lapis}:
  410. chance of {@chance_lapis}%:
  411. if player's tool is pickaxe of fortune 0:
  412. add lapis lazuli to the player's inventory
  413. add 1 to {lapis.%player%}
  414. else:
  415. if player's tool is pickaxe of fortune 1:
  416. chance of 50%:
  417. add lapis lazuli to the player's inventory
  418. add 1 to {lapis.%player%}
  419. else:
  420. add 2 lapis lazuli to the player's inventory
  421. add 2 to {lapis.%player%}
  422. else:
  423. if player's tool is pickaxe of fortune 2:
  424. chance of 33%:
  425. add lapis lazuli to the player's inventory
  426. add 1 to {lapis.%player%}
  427. else:
  428. chance of 33%:
  429. add 2 lapis lazuli to the player's inventory
  430. add 2 to {lapis.%player%}
  431. else:
  432. add 3 lapis lazuli to the player's inventory
  433. add 3 to {lapis.%player%}
  434. else:
  435. if player's tool is pickaxe of fortune 3:
  436. chance of 25%:
  437. add lapis lazuli to the player's inventory
  438. add 1 to {lapis.%player%}
  439. else:
  440. chance of 25%:
  441. add 2 lapis lazuli to the player's inventory
  442. add 2 to {lapis.%player%}
  443. else:
  444. chance of 25%:
  445. add 3 lapis lazuli to the player's inventory
  446. add 3 to {lapis.%player%}
  447. else:
  448. chance of 25%:
  449. add 4 lapis lazuli to the player's inventory
  450. add 4 to {lapis.%player%}
Advertisement
Add Comment
Please, Sign In to add comment