Guest User

XrayOff

a guest
Apr 21st, 2014
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.38 KB | None | 0 0
  1. # XrayOff
  2. # Autor - DJQuares
  3.  
  4. variables:
  5. {lvl.%player%} = 1
  6. {pkt.%player%} = 0
  7. {cb.%player%} = true
  8. command /punkty:
  9. aliases: pkt, poziom, lvl
  10. trigger:
  11. send "&7##&6=============&7## &6Punkty &7##&6=============&7##"
  12. send "&6&l>> &7Posiadasz: &6%{pkt.%player%}% &7lvl"
  13. send "&6&l>> &7Posiadasz: &6%{lvl.%player%}% &7poziom"
  14. send "&7##&6=============&7## &6Punkty &7##&6=============&7##"
  15. stop
  16. command /bruk:
  17. trigger:
  18. if {cb.%player%} is true:
  19. set {cb.%player%} to false
  20. send "&6&l>> &7Wylaczyles wypadanie bruku!"
  21. stop
  22. if {cb.%player%} is false:
  23. set {cb.%player%} to true
  24. send "&6&l>> &7Wlaczyles wypadanie bruku!"
  25. stop
  26. options:
  27. yd: 25
  28. dc: 1.0
  29. ec: 1.3
  30. gc: 1.6
  31. ic: 2.45
  32. epc: 0.1
  33. command /kamien [<text>]:
  34. trigger:
  35. if arg 1 is not set:
  36. send "&7##&6=============&7## &6Kamien &7##&6=============&7##"
  37. send "&6&l>> &r&6Diamenty:"
  38. send "&7+ Wykopac mozesz: &6diamentowym i zelaznym kilofem"
  39. send "&7+ Od poziomu: &6Y:<25"
  40. send "&7+ Szansa: &6{@dc}%"
  41. send "&6&l>> &r&6Szmaragdy:"
  42. send "&7+ Wykopac mozesz: &6diamentowym, zelaznym i kamiennym kilofem"
  43. send "&7+ Biom: &6Gorzysty"
  44. send "&7+ Szansa: &6{@ec}%"
  45. send "&6&l>> &r&6Ruda Zlota:"
  46. send "&7+ Wykopac mozesz: &6diamentowym i zelaznym kilofem"
  47. send "&7+ Szansa: &6{@gc}%"
  48. send "&6&l>> &r&6Ruda Zelaza:"
  49. send "&7+ Wykopac mozesz: &6diamentowym, zelaznym i kamiennym kilofem"
  50. send "&7+ Szansa: &6{@ic}%"
  51. send "&6&l>> &r&6Perla:"
  52. send "&7+ Wykopac mozesz: &6diamentowym i zelaznym kilofem"
  53. send "&7+ Szansa: &6{@epc}%"
  54. send "&7##&6=============&7## &6Kamien &7##&6=============&7##"
  55. if arg 1 is "autor":
  56. send "&7##&6=============&7## &6Skrypt &7##&6=============&7##"
  57. send "&6&l>> &r&7Autor: &6DtNPlay"
  58. send "&6&l>> &r&7Wersja: &6v1.3.3"
  59. send "&7##&6=============&7## &6Skrypt &7##&6=============&7##"
  60. stop
  61. on mine of diamond ore:
  62. cancel event
  63. set block to air
  64. send "&6&l>> &r&7Drop z tej rudy jest wylaczony!"
  65. send "&6&l>> &r&7Aby zobaczyc % szans na drop wpisz &6/kamien&7!"
  66. stop
  67. on mine of emerald ore:
  68. cancel event
  69. set block to air
  70. send "&6&l>> &r&7Drop z tej rudy jest wylaczony!"
  71. send "&6&l>> &r&7Aby zobaczyc % szans na drop wpisz &6/kamien&7!"
  72. stop
  73. on mine of gold ore:
  74. cancel event
  75. set block to air
  76. send "&6&l>> &r&7Drop z tej rudy jest wylaczony!"
  77. send "&6&l>> &r&7Aby zobaczyc % szans na drop wpisz &6/kamien&7!"
  78. stop
  79. on mine of iron ore:
  80. cancel event
  81. set block to air
  82. send "&6&l>> &r&7Drop z tej rudy jest wylaczony!"
  83. send "&6&l>> &r&7Aby zobaczyc % szans na drop wpisz &6/kamien&7!"
  84. stop
  85. on mine of stone:
  86. cancel event
  87. set block to air
  88. damage player's tool by 1
  89. if {cb.%player%} is true:
  90. drop 1 cobblestone
  91. give 2 xp to the player
  92. if chance of 100%:
  93. if chance of {@epc}%:
  94. if player is holding diamond pickaxe or iron pickaxe:
  95. drop 1 ender pearl
  96. give 25 xp to the player
  97. add 26 to {pkt.%player%}
  98. send "&6&l>> &r&7Trafiles na: &6perle &7(&6+26 pkt&7)"
  99. stop
  100. if chance of {@ic}%:
  101. if player is holding diamond pickaxe or iron pickaxe or stone pickaxe:
  102. drop 1 iron ore
  103. give 2 xp to the player
  104. add 3 to {pkt.%player%}
  105. send "&6&l>> &r&7Trafiles na: &6rude zelaza &7(&6+3 pkt&7)"
  106. stop
  107. if chance of {@gc}%:
  108. if player is holding diamond pickaxe or iron pickaxe:
  109. drop 1 gold ore
  110. give 5 xp to the player
  111. add 6 to {pkt.%player%}
  112. send "&6&l>> &r&7Trafiles na: &6rude zlota &7(&6+6 pkt&7)"
  113. stop
  114. if chance of {@ec}%:
  115. if player's biome is extreme hills:
  116. if player is holding diamond pickaxe or iron pickaxe or stone pickaxe:
  117. drop 1 emerald
  118. give 4 xp to the player
  119. add 5 to {pkt.%player%}
  120. send "&6&l>> &r&7Trafiles na: &6szmaragd &7(&6+5 pkt&7)"
  121. stop
  122. if chance of {@dc}%:
  123. if player's y-coordinate is less than {@yd}:
  124. if player is holding diamond pickaxe of fortune 3 or iron pickaxe of fortune 3:
  125. chance of 30%:
  126. drop 2 diamond
  127. give 12 xp to the player
  128. add 13 to {pkt.%player%}
  129. send "&6&l>> &r&7Trafiles na: &62 diamenty &7(&6+13 pkt&7)"
  130. stop
  131. chance of 20%:
  132. drop 3 diamond
  133. give 17 xp to the player
  134. add 18 to {pkt.%player%}
  135. send "&6&l>> &r&7Trafiles na: &63 diamenty &7(&6+18 pkt&7)"
  136. stop
  137. chance of 10%:
  138. drop 4 diamond
  139. give 26 xp to the player
  140. add 27 to {pkt.%player%}
  141. send "&6&l>> &r&7Trafiles na: &64 diamenty &7(&6+27 pkt&7)"
  142. stop
  143. else:
  144. drop 1 diamond
  145. give 6 xp to the player
  146. add 7 to {pkt.%player%}
  147. send "&6&l>> &r&7Trafiles na: &6diament &7(&6+7 pkt&7)"
  148. stop
  149. if player is holding diamond pickaxe of fortune 2 or iron pickaxe of fortune 2:
  150. chance of 30%:
  151. drop 2 diamond
  152. give 12 xp to the player
  153. add 13 to {pkt.%player%}
  154. send "&6&l>> &r&7Trafiles na: &62 diamenty &7(&6+13 pkt&7)"
  155. stop
  156. chance of 20%:
  157. drop 3 diamond
  158. give 17 xp to the player
  159. add 18 to {pkt.%player%}
  160. send "&6&l>> &r&7Trafiles na: &63 diamenty &7(&6+18 pkt&7)"
  161. stop
  162. else:
  163. drop 1 diamond
  164. give 6 xp to the player
  165. add 7 to {pkt.%player%}
  166. send "&6&l>> &r&7Trafiles na: &6diament &7(&6+7 pkt&7)"
  167. stop
  168. if player is holding diamond pickaxe of fortune 1 or iron pickaxe of fortune 1:
  169. chance of 30%:
  170. drop 2 diamond
  171. give 12 xp to the player
  172. add 13 to {pkt.%player%}
  173. send "&6&l>> &r&7Trafiles na: &62 diamenty &7(&6+13 pkt&7)"
  174. stop
  175. else:
  176. drop 1 diamond
  177. give 6 xp to the player
  178. add 7 to {pkt.%player%}
  179. send "&6&l>> &r&7Trafiles na: &6diament &7(&6+7 pkt&7)"
  180. stop
  181. if player is holding diamond pickaxe or iron pickaxe:
  182. drop 1 diamond
  183. give 6 xp to the player
  184. add 7 to {pkt.%player%}
  185. send "&6&l>> &r&7Trafiles na: &6diament &7(&6+7 pkt&7)"
  186. stop
  187. if {cb.%player%} is false:
  188. give 2 xp to the player
  189. if chance of 100%:
  190. if chance of {@epc}%:
  191. if player is holding diamond pickaxe or iron pickaxe:
  192. drop 1 ender pearl
  193. give 25 xp to the player
  194. add 26 to {pkt.%player%}
  195. send "&6&l>> &r&7Trafiles na: &6perle &7(&6+26 pkt&7)"
  196. stop
  197. if chance of {@ic}%:
  198. if player is holding diamond pickaxe or iron pickaxe or stone pickaxe:
  199. drop 1 iron ore
  200. give 2 xp to the player
  201. add 3 to {pkt.%player%}
  202. send "&6&l>> &r&7Trafiles na: &6rude zelaza &7(&6+3 pkt&7)"
  203. stop
  204. if chance of {@gc}%:
  205. if player is holding diamond pickaxe or iron pickaxe:
  206. drop 1 gold ore
  207. give 5 xp to the player
  208. add 6 to {pkt.%player%}
  209. send "&6&l>> &r&7Trafiles na: &6rude zlota &7(&6+6 pkt&7)"
  210. stop
  211. if chance of {@ec}%:
  212. if player's biome is extreme hills:
  213. if player is holding diamond pickaxe or iron pickaxe or stone pickaxe:
  214. drop 1 emerald
  215. give 4 xp to the player
  216. add 5 to {pkt.%player%}
  217. send "&6&l>> &r&7Trafiles na: &6szmaragd &7(&6+5 pkt&7)"
  218. stop
  219. if chance of {@dc}%:
  220. if player's y-coordinate is less than {@yd}:
  221. if player is holding diamond pickaxe of fortune 3 or iron pickaxe of fortune 3:
  222. chance of 30%:
  223. drop 2 diamond
  224. give 12 xp to the player
  225. add 13 to {pkt.%player%}
  226. send "&6&l>> &r&7Trafiles na: &62 diamenty &7(&6+13 pkt&7)"
  227. stop
  228. chance of 20%:
  229. drop 3 diamond
  230. give 17 xp to the player
  231. add 18 to {pkt.%player%}
  232. send "&6&l>> &r&7Trafiles na: &63 diamenty &7(&6+18 pkt&7)"
  233. stop
  234. chance of 10%:
  235. drop 4 diamond
  236. give 26 xp to the player
  237. add 27 to {pkt.%player%}
  238. send "&6&l>> &r&7Trafiles na: &64 diamenty &7(&6+27 pkt&7)"
  239. stop
  240. else:
  241. drop 1 diamond
  242. give 6 xp to the player
  243. add 7 to {pkt.%player%}
  244. send "&6&l>> &r&7Trafiles na: &6diament &7(&6+7 pkt&7)"
  245. stop
  246. if player is holding diamond pickaxe of fortune 2 or iron pickaxe of fortune 2:
  247. chance of 30%:
  248. drop 2 diamond
  249. give 12 xp to the player
  250. add 13 to {pkt.%player%}
  251. send "&6&l>> &r&7Trafiles na: &62 diamenty &7(&6+13 pkt&7)"
  252. stop
  253. chance of 20%:
  254. drop 3 diamond
  255. give 17 xp to the player
  256. add 18 to {pkt.%player%}
  257. send "&6&l>> &r&7Trafiles na: &63 diamenty &7(&6+18 pkt&7)"
  258. stop
  259. else:
  260. drop 1 diamond
  261. give 6 xp to the player
  262. add 7 to {pkt.%player%}
  263. send "&6&l>> &r&7Trafiles na: &6diament &7(&6+7 pkt&7)"
  264. stop
  265. if player is holding diamond pickaxe of fortune 1 or iron pickaxe of fortune 1:
  266. chance of 30%:
  267. drop 2 diamond
  268. give 12 xp to the player
  269. add 13 to {pkt.%player%}
  270. send "&6&l>> &r&7Trafiles na: &62 diamenty &7(&6+13 pkt&7)"
  271. stop
  272. else:
  273. drop 1 diamond
  274. give 6 xp to the player
  275. add 7 to {pkt.%player%}
  276. send "&6&l>> &r&7Trafiles na: &6diament &7(&6+7 pkt&7)"
  277. stop
  278. if player is holding diamond pickaxe or iron pickaxe:
  279. drop 1 diamond
  280. give 6 xp to the player
  281. add 7 to {pkt.%player%}
  282. send "&6&l>> &r&7Trafiles na: &6diament &7(&6+7 pkt&7)"
  283. stop
  284. if {pkt.%player%} is larger than 60:
  285. if {lvl.%player%} is less than 2:
  286. set {lvl.%player%} to 2
  287. send "&6&l>> &r&7Awansowales na: &82 Poziom&7!"
  288. stop
  289. if {pkt.%player%} is larger than 120:
  290. if {lvl.%player%} is less than 3:
  291. set {lvl.%player%} to 3
  292. send "&6&l>> &r&7Awansowales na: &83 Poziom&7!"
  293. stop
  294. if {pkt.%player%} is larger than 180:
  295. if {lvl.%player%} is less than 4:
  296. set {lvl.%player%} to 4
  297. send "&6&l>> &r&7Awansowales na: &84 Poziom&7!"
  298. stop
  299. if {pkt.%player%} is larger than 240:
  300. if {lvl.%player%} is less than 5:
  301. set {lvl.%player%} to 5
  302. send "&6&l>> &r&7Awansowales na: &85 Poziom&7!"
  303. stop
  304. if {pkt.%player%} is larger than 320:
  305. if {lvl.%player%} is less than 6:
  306. set {lvl.%player%} to 6
  307. send "&6&l>> &r&7Awansowales na: &86 Poziom&7!"
  308. stop
  309. if {pkt.%player%} is larger than 460:
  310. if {lvl.%player%} is less than 7:
  311. set {lvl.%player%} to 7
  312. send "&6&l>> &r&7Awansowales na: &87 Poziom&7!"
  313. stop
  314. if {pkt.%player%} is larger than 580:
  315. if {lvl.%player%} is less than 8:
  316. set {lvl.%player%} to 8
  317. send "&6&l>> &r&7Awansowales na: &88 Poziom&7!"
  318. stop
  319. if {pkt.%player%} is larger than 760:
  320. if {lvl.%player%} is less than 9:
  321. set {lvl.%player%} to 9
  322. send "&6&l>> &r&7Awansowales na: &89 Poziom&7!"
  323. stop
  324. if {pkt.%player%} is larger than 960:
  325. if {lvl.%player%} is less than 10:
  326. set {lvl.%player%} to 10
  327. send "&6&l>> &r&7Awansowales na: &810 Poziom&7!"
  328. stop
  329. if {pkt.%player%} is larger than 1140:
  330. if {lvl.%player%} is less than 11:
  331. set {lvl.%player%} to 11
  332. send "&6&l>> &r&7Awansowales na: &811 Poziom&7!"
  333. stop
  334. if {pkt.%player%} is larger than 1320:
  335. if {lvl.%player%} is less than 12:
  336. set {lvl.%player%} to 12
  337. send "&6&l>> &r&7Awansowales na: &812 Poziom&7!"
  338. stop
  339. if {pkt.%player%} is larger than 1540:
  340. if {lvl.%player%} is less than 13:
  341. set {lvl.%player%} to 13
  342. send "&6&l>> &r&7Awansowales na: &813 Poziom&7!"
  343. stop
  344. if {pkt.%player%} is larger than 1760:
  345. if {lvl.%player%} is less than 14:
  346. set {lvl.%player%} to 14
  347. send "&6&l>> &r&7Awansowales na: &814 Poziom&7!"
  348. stop
  349. if {pkt.%player%} is larger than 1980:
  350. if {lvl.%player%} is less than 15:
  351. set {lvl.%player%} to 15
  352. send "&6&l>> &r&7Awansowales na: &815 Poziom&7!"
  353. broadcast "&7Gracz &8%player% &7awansowal na &815 poziom&7!"
  354. stop
  355. if {pkt.%player%} is larger than 2180:
  356. if {lvl.%player%} is less than 16:
  357. set {lvl.%player%} to 16
  358. send "&6&l>> &r&7Awansowales na: &816 Poziom&7!"
  359. stop
  360. if {pkt.%player%} is larger than 2300:
  361. if {lvl.%player%} is less than 17:
  362. set {lvl.%player%} to 17
  363. send "&6&l>> &r&7Awansowales na: &817 Poziom&7!"
  364. stop
  365. if {pkt.%player%} is larger than 2520:
  366. if {lvl.%player%} is less than 18:
  367. set {lvl.%player%} to 18
  368. send "&6&l>> &r&7Awansowales na: &818 Poziom&7!"
  369. stop
  370. if {pkt.%player%} is larger than 2740:
  371. if {lvl.%player%} is less than 19:
  372. set {lvl.%player%} to 19
  373. send "&6&l>> &r&7Awansowales na: &819 Poziom&7!"
  374. stop
  375. if {pkt.%player%} is larger than 2960:
  376. if {lvl.%player%} is less than 20:
  377. set {lvl.%player%} to 20
  378. send "&6&l>> &r&7Awansowales na: &820 Poziom&7!"
  379. stop
  380. if {pkt.%player%} is larger than 3180:
  381. if {lvl.%player%} is less than 21:
  382. set {lvl.%player%} to 21
  383. send "&6&l>> &r&7Awansowales na: &821 Poziom&7!"
  384. stop
  385. if {pkt.%player%} is larger than 3400:
  386. if {lvl.%player%} is less than 22:
  387. set {lvl.%player%} to 22
  388. send "&6&l>> &r&7Awansowales na: &822 Poziom&7!"
  389. stop
  390. if {pkt.%player%} is larger than 3620:
  391. if {lvl.%player%} is less than 23:
  392. set {lvl.%player%} to 23
  393. send "&6&l>> &r&7Awansowales na: &823 Poziom&7!"
  394. stop
  395. if {pkt.%player%} is larger than 3840:
  396. if {lvl.%player%} is less than 24:
  397. set {lvl.%player%} to 24
  398. send "&6&l>> &r&7Awansowales na: &824 Poziom&7!"
  399. stop
  400. if {pkt.%player%} is larger than 4060:
  401. if {lvl.%player%} is less than 25:
  402. set {lvl.%player%} to 25
  403. send "&6&l>> &r&7Awansowales na: &825 Poziom&7!"
  404. stop
  405. if {pkt.%player%} is larger than 4280:
  406. if {lvl.%player%} is less than 26:
  407. set {lvl.%player%} to 26
  408. send "&6&l>> &r&7Awansowales na: &826 Poziom&7!"
  409. stop
  410. if {pkt.%player%} is larger than 4500:
  411. if {lvl.%player%} is less than 27:
  412. set {lvl.%player%} to 27
  413. send "&6&l>> &r&7Awansowales na: &827 Poziom&7!"
  414. stop
  415. if {pkt.%player%} is larger than 4720:
  416. if {lvl.%player%} is less than 28:
  417. set {lvl.%player%} to 28
  418. send "&6>> &7Awansowales na: &828 Poziom&7!"
  419. stop
  420. if {pkt.%player%} is larger than 4940:
  421. if {lvl.%player%} is less than 29:
  422. set {lvl.%player%} to 29
  423. send "&6&l>> &r&7Awansowales na: &889 Poziom&7!"
  424. stop
  425. if {pkt.%player%} is larger than 5160:
  426. if {lvl.%player%} is less than 30:
  427. set {lvl.%player%} to 30
  428. send "&6&l>> &r&7Awansowales na: &830 Poziom&7!"
  429. broadcast "&7Gracz &8%player% &7awansowal na &830 Poziom&7!"
  430. stop
Advertisement
Add Comment
Please, Sign In to add comment