Guest User

xdrops by Xer0sPL

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