TheBlooes

MyPoints v1.0

May 18th, 2014
391
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 33.60 KB | None | 0 0
  1. variables:
  2. {punkty.%player%} = 0 # jak sie nie znasz nie zmieniaj !
  3. {maxpkt.%player%} = true # jak sie nie znasz nie zmieniaj !
  4. {mypkt.wlacz} = false # jak sie nie znasz nie zmieniaj !
  5. {myexp.wlacz} = true # jak sie nie znasz nie zmieniaj !
  6. options:
  7. #===============================#
  8. # Nagroda za punkty #
  9. #===============================#
  10. w1_n1: diamond # Nagroda za ilosc punktow w1
  11. w2_n2: 2 diamond # Nagroda za ilosc punktow w2
  12. w3_n3: 3 diamond # Nagroda za ilosc punktow w3
  13. w4_n4: 4 diamond # Nagroda za ilosc punktow w4
  14. w5_n5: 5 diamond # Nagroda za ilosc punktow w5
  15. w6_n6: 6 diamond # Nagroda za ilosc punktow w6
  16. w7_n7: 7 diamond # Nagroda za ilosc punktow w7
  17. w8_n8: 8 diamond # Nagroda za ilosc punktow w8
  18. w9_n9: 9 diamond # Nagroda za ilosc punktow w9
  19. #===============================#
  20. # Ilosc punktow na tabliczce #
  21. #===============================#
  22. w1: 10000 # Ilosc punktow na wymiane
  23. w2: 20000 # Ilosc punktow na wymiane
  24. w3: 30000 # Ilosc punktow na wymiane
  25. w4: 40000 # Ilosc punktow na wymiane
  26. w5: 50000 # Ilosc punktow na wymiane
  27. w6: 60000 # Ilosc punktow na wymiane
  28. w7: 70000 # Ilosc punktow na wymiane
  29. w8: 80000 # Ilosc punktow na wymiane
  30. w9: 90000 # Ilosc punktow na wymiane
  31. #================================
  32. #================================
  33. tag: &e» # nazwa wyswietlana podczas wydobycia czegos ze stona ;) Albo odebrania nagrody :)
  34. #================================
  35. #================================
  36. pkt_perla: 20 # ilosc punktow za wydobycie enderperly ;) Wpisywac tylko cyfry !
  37. pkt_diax: 17 # ilosc punktow za wydobycie diamenta ;) Wpisywac tylko cyfry !
  38. pkt_emerald: 15 # ilosc punktow za wydobycie emeralda ;) Wpisywac tylko cyfry !
  39. pkt_zloto: 10 # ilosc punktow za wydobycie zlota ;) Wpisywac tylko cyfry !
  40. pkt_zelazo: 7 # ilosc punktow za wydobycie zelaza ;) Wpisywac tylko cyfry !
  41. pkt_wegiel: 3 # ilosc punktow za wydobycie wegla ;) Wpisywac tylko cyfry !
  42. pkt_obsydian: 13 # ilosc punktow za wydobycie obsydianu ;) Wpisywac tylko cyfry !
  43. pkt_redstone: 5 # ilosc punktow za wydobycie redstona ;) Wpisywac tylko cyfry !
  44. #================================
  45. #================================
  46. szansa_perla: 0.5 # szansa na drop enderperly ! Nie wpisywac % ;)
  47. szansa_diax: 0.7 # szansa na drop diamentu ! Nie wpisywac % ;)
  48. szansa_emerald: 1.2 # szansa na drop emeraldu ! Nie wpisywac % ;)
  49. szansa_zloto: 1.5 # szansa na drop zlota ! Nie wpisywac % ;)
  50. szansa_zelazo: 2 # szansa na drop zelaza ! Nie wpisywac % ;)
  51. szansa_wegiel: 3 # szansa na drop wegla ! Nie wpisywac % ;)
  52. szansa_obsydian: 0.5 # szansa na drop obsydianu ! Nie wpisywac % ;)
  53. szansa_redstone: 4 # szansa na drop redstona ! Nie wpisywac % ;)
  54. szansa_exp: 75 # szansa na zdobycie expa ze stona ! Nie wpisywac % :D
  55. #================================
  56. #================================
  57. pkt: 500
  58. #================================
  59. #-\/-\/-\/-Zakaz Zmieniania !-\/-\/-\/-#
  60. nazwa: &eMyPoints # Nazwa skryptu
  61. autor: &eTheBlooes # Autor skryptu
  62. wersja: &ev1.0 # Wersja skryptu
  63. #-/\-/\-/\-Zakaz Zmieniania !-/\-/\-/\-#
  64.  
  65. #============= Permissie =============#
  66. # mypkt.wlacz - wlaczanie skryptu #
  67. # mypkt.wylacz - wylaczanie skryptu #
  68. # mypkt.resetuj - resetowanie punktow #
  69. # mypkt.daj - dawanie punktow #
  70. # myexp.wlacz - wlaczanie dropu expa #
  71. # myexp.wylacz - wylaczanie dropu expa#
  72. #============= Permissie =============#
  73.  
  74. #=======================================================================================================================#
  75. # LICENCJA #
  76. #=======================================================================================================================#
  77. # ZAKAZ: #
  78. # * Modyfikowania treści skryptu #
  79. # * Przywłaszczania sobie autorstwa skryptu #
  80. # * Zarabiania na skrypcie #
  81. # * Udostepniania skryptu w swoich paczkach serwerowych #
  82. # * Usuwania tresci zawierajacych informacje o autorze #
  83. # * Podszywania sie pod autora #
  84. #=======================================================================================================================#
  85. # POZWOLENIA: #
  86. # * Modyfikowanie wiadomości skryptu na wlasne potrzeby #
  87. #=======================================================================================================================#
  88. # Mylnie odczytana licencja nie zwalnia z przestrzegania jej. #
  89. #=======================================================================================================================#
  90.  
  91. #-----------#
  92. #Kod skryptu#
  93. #-----------#
  94. on mine of stone:
  95. if {myexp.wlacz} is true:
  96. if player's gamemode is survival:
  97. chance of {@szansa_exp}%:
  98. if player's tool is pickaxe of fortune 0:
  99. give 2 xp to the player
  100. else:
  101. if player's tool is pickaxe of fortune 1:
  102. chance of 50%:
  103. give 2 xp to the player
  104. else:
  105. give 4 xp to the player
  106. else:
  107. if player's tool is pickaxe of fortune 2:
  108. chance of 33%:
  109. give 2 xp to the player
  110. else:
  111. chance of 33%:
  112. give 4 xp to the player
  113. else:
  114. give 6 xp to the player
  115. else:
  116. if player's tool is pickaxe of fortune 3:
  117. chance of 25%:
  118. give 2 xp to the player
  119. else:
  120. chance of 25%:
  121. give 4 xp to the player
  122. else:
  123. chance of 25%:
  124. give 6 xp to the player
  125. else:
  126. chance of 25%:
  127. give 8 xp to the player
  128. on mine of stone:
  129. if {punkty.%player%} is 15000 or 20000 or 25000 or 30000 or 35000 or 40000 or 45000 or 50000 or 55000 or 60000 or 65000 or 70000 or 75000 or 80000 or 85000 or 90000 or 95000 or 100000:
  130. broadcast "&a%player% &7ma juz &e%{punkty.%player%}% &7punktow! &eGratulacje &7!"
  131. if {maxpkt.%player%} is 100000:
  132. if {maxpkt.%player%} is true:
  133. set {maxpkt.%player%} to false
  134. broadcast "&a%player% &7zdobyl maxymalna ilosc punktow ( &b100000 &7)"
  135. stop
  136. on mine of stone:
  137. if {mypkt.wlacz} is true:
  138. if player's gamemode is survival:
  139. chance of {@szansa_perla}%:
  140. if player's tool is pickaxe of fortune 0:
  141. give ender pearl to the player
  142. add {@pkt_perla} to {punkty.%player%}
  143. send "{@tag} &6Odnalazles &bEnder Perle &6! Otrzymujesz &7+20 &6pkt !"
  144. else:
  145. if player's tool is pickaxe of fortune 1:
  146. chance of 50%:
  147. give ender pearl to the player
  148. add {@pkt_perla} to {punkty.%player%}
  149. send "{@tag} &6Odnalazles &bEnder Perle &6! Otrzymujesz &7+20 &6pkt !"
  150. else:
  151. give 2 ender pearl to the player
  152. add {@pkt_perla} to {punkty.%player%}
  153. send "{@tag} &6Odnalazles &bEnder Perle &6! Otrzymujesz &7+20 &6pkt !"
  154. else:
  155. if player's tool is pickaxe of fortune 2:
  156. chance of 33%:
  157. give ender pearl to the player
  158. add {@pkt_perla} to {punkty.%player%}
  159. send "{@tag} &6Odnalazles &bEnder Perle &6! Otrzymujesz &7+20 &6pkt !"
  160. else:
  161. chance of 33%:
  162. give 2 ender pearl to the player
  163. add {@pkt_perla} to {punkty.%player%}
  164. send "{@tag} &6Odnalazles &bEnder Perle &6! Otrzymujesz &7+20 &6pkt !"
  165. else:
  166. give 3 ender pearl to the player
  167. add {@pkt_perla} to {punkty.%player%}
  168. send "{@tag} &6Odnalazles &bEnder Perle &6! Otrzymujesz &7+20 &6pkt !"
  169. else:
  170. if player's tool is pickaxe of fortune 3:
  171. chance of 25%:
  172. give ender pearl to the player
  173. add {@pkt_perla} to {punkty.%player%}
  174. send "{@tag} &6Odnalazles &bEnder Perle &6! Otrzymujesz &7+20 &6pkt !"
  175. else:
  176. chance of 25%:
  177. give 2 ender pearl to the player
  178. add {@pkt_perla} to {punkty.%player%}
  179. send "{@tag} &6Odnalazles &bEnder Perle &6! Otrzymujesz &7+20 &6pkt !"
  180. else:
  181. chance of 25%:
  182. give 3 ender pearl to the player
  183. add {@pkt_perla} to {punkty.%player%}
  184. send "{@tag} &6Odnalazles &bEnder Perle &6! Otrzymujesz &7+20 &6pkt !"
  185. else:
  186. chance of 25%:
  187. give 4 ender pearl to the player
  188. add {@pkt_perla} to {punkty.%player%}
  189. send "{@tag} &6Odnalazles &bEnder Perle &6! Otrzymujesz &7+20 &6pkt !"
  190. on mine of stone:
  191. if {mypkt.wlacz} is true:
  192. if player's gamemode is survival:
  193. chance of {@szansa_diax}%:
  194. if player's tool is pickaxe of fortune 0:
  195. give diamond to the player
  196. add {@pkt_diax} to {punkty.%player%}
  197. send "{@tag} &6Odnalazles &bDiament &6! Otrzymujesz &7+17 &6pkt !"
  198. else:
  199. if player's tool is pickaxe of fortune 1:
  200. chance of 50%:
  201. give diamond to the player
  202. add {@pkt_diax} to {punkty.%player%}
  203. send "{@tag} &6Odnalazles &bDiament &6! Otrzymujesz &7+17 &6pkt !"
  204. else:
  205. give 2 diamond to the player
  206. add {@pkt_diax} to {punkty.%player%}
  207. send "{@tag} &6Odnalazles &bDiament &6! Otrzymujesz &7+17 &6pkt !"
  208. else:
  209. if player's tool is pickaxe of fortune 2:
  210. chance of 33%:
  211. give diamond to the player
  212. add {@pkt_diax} to {punkty.%player%}
  213. send "{@tag} &6Odnalazles &bDiament &6! Otrzymujesz &7+17 &6pkt !"
  214. else:
  215. chance of 33%:
  216. give 2 diamond to the player
  217. add {@pkt_diax} to {punkty.%player%}
  218. send "{@tag} &6Odnalazles &bDiament &6! Otrzymujesz &7+17 &6pkt !"
  219. else:
  220. give 3 diamond to the player
  221. add {@pkt_diax} to {punkty.%player%}
  222. send "{@tag} &6Odnalazles &bDiament &6! Otrzymujesz &7+17 &6pkt !"
  223. else:
  224. if player's tool is pickaxe of fortune 3:
  225. chance of 25%:
  226. give diamond to the player
  227. add {@pkt_diax} to {punkty.%player%}
  228. send "{@tag} &6Odnalazles &bDiament &6! Otrzymujesz &7+17 &6pkt !"
  229. else:
  230. chance of 25%:
  231. give 2 diamond to the player
  232. add {@pkt_diax} to {punkty.%player%}
  233. send "{@tag} &6Odnalazles &bDiament &6! Otrzymujesz &7+17 &6pkt !"
  234. else:
  235. chance of 25%:
  236. give 3 diamond to the player
  237. add {@pkt_diax} to {punkty.%player%}
  238. send "{@tag} &6Odnalazles &bDiament &6! Otrzymujesz &7+17 &6pkt !"
  239. else:
  240. chance of 25%:
  241. give 4 diamond to the player
  242. add {@pkt_diax} to {punkty.%player%}
  243. send "{@tag} &6Odnalazles &bDiament &6! Otrzymujesz &7+17 &6pkt !"
  244. on mine of stone:
  245. if {mypkt.wlacz} is true:
  246. if player's gamemode is survival:
  247. chance of {@szansa_emerald}%:
  248. if player's tool is pickaxe of fortune 0:
  249. give emerald to the player
  250. add {@pkt_emerald} to {punkty.%player%}
  251. send "{@tag} &6Odnalazles &bEmerald &6! Otrzymujesz &7+15 &6pkt !"
  252. else:
  253. if player's tool is pickaxe of fortune 1:
  254. chance of 50%:
  255. give emerald to the player
  256. add {@pkt_emerald} to {punkty.%player%}
  257. send "{@tag} &6Odnalazles &bEmerald &6! Otrzymujesz &7+15 &6pkt !"
  258. else:
  259. give 2 emerald to the player
  260. add {@pkt_emerald} to {punkty.%player%}
  261. send "{@tag} &6Odnalazles &bEmerald &6! Otrzymujesz &7+15 &6pkt !"
  262. else:
  263. if player's tool is pickaxe of fortune 2:
  264. chance of 33%:
  265. give emerald to the player
  266. add {@pkt_emerald} to {punkty.%player%}
  267. send "{@tag} &6Odnalazles &bEmerald &6! Otrzymujesz &7+15 &6pkt !"
  268. else:
  269. chance of 33%:
  270. give 2 emerald to the player
  271. add {@pkt_emerald} to {punkty.%player%}
  272. send "{@tag} &6Odnalazles &bEmerald &6! Otrzymujesz &7+15 &6pkt !"
  273. else:
  274. give 3 emerald to the player
  275. add {@pkt_emerald} to {punkty.%player%}
  276. send "{@tag} &6Odnalazles &bEmerald &6! Otrzymujesz &7+15 &6pkt !"
  277. else:
  278. if player's tool is pickaxe of fortune 3:
  279. chance of 25%:
  280. give emerald to the player
  281. add {@pkt_emerald} to {punkty.%player%}
  282. send "{@tag} &6Odnalazles &bEmerald &6! Otrzymujesz &7+15 &6pkt !"
  283. else:
  284. chance of 25%:
  285. give 2 emerald to the player
  286. add {@pkt_emerald} to {punkty.%player%}
  287. send "{@tag} &6Odnalazles &bEmerald &6! Otrzymujesz &7+15 &6pkt !"
  288. else:
  289. chance of 25%:
  290. give 3 emerald to the player
  291. add {@pkt_emerald} to {punkty.%player%}
  292. send "{@tag} &6Odnalazles &bEmerald &6! Otrzymujesz &7+15 &6pkt !"
  293. else:
  294. chance of 25%:
  295. give 4 emerald to the player
  296. add {@pkt_emerald} to {punkty.%player%}
  297. send "{@tag} &6Odnalazles &bEmerald &6! Otrzymujesz &7+15 &6pkt !"
  298. on mine of stone:
  299. if {mypkt.wlacz} is true:
  300. if player's gamemode is survival:
  301. chance of {@szansa_zloto}%:
  302. if player's tool is pickaxe of fortune 0:
  303. give Gold Ingot to the player
  304. add {@pkt_zloto} to {punkty.%player%}
  305. send "{@tag} &6Odnalazles &bZloto &6! Otrzymujesz &7+10 &6pkt !"
  306. else:
  307. if player's tool is pickaxe of fortune 1:
  308. chance of 50%:
  309. give Gold Ingot to the player
  310. add {@pkt_zloto} to {punkty.%player%}
  311. send "{@tag} &6Odnalazles &bZloto &6! Otrzymujesz &7+10 &6pkt !"
  312. else:
  313. give 2 Gold Ingot to the player
  314. add {@pkt_zloto} to {punkty.%player%}
  315. send "{@tag} &6Odnalazles &bZloto &6! Otrzymujesz &7+10 &6pkt !"
  316. else:
  317. if player's tool is pickaxe of fortune 2:
  318. chance of 33%:
  319. give Gold Ingot to the player
  320. add {@pkt_zloto} to {punkty.%player%}
  321. send "{@tag} &6Odnalazles &bZloto &6! Otrzymujesz &7+10 &6pkt !"
  322. else:
  323. chance of 33%:
  324. give 2 Gold Ingot to the player
  325. add {@pkt_zloto} to {punkty.%player%}
  326. send "{@tag} &6Odnalazles &bZloto &6! Otrzymujesz &7+10 &6pkt !"
  327. else:
  328. give 3 Gold Ingot to the player
  329. add {@pkt_zloto} to {punkty.%player%}
  330. send "{@tag} &6Odnalazles &bZloto &6! Otrzymujesz &7+10 &6pkt !"
  331. else:
  332. if player's tool is pickaxe of fortune 3:
  333. chance of 25%:
  334. give Gold Ingot to the player
  335. add {@pkt_zloto} to {punkty.%player%}
  336. send "{@tag} &6Odnalazles &bZloto &6! Otrzymujesz &7+10 &6pkt !"
  337. else:
  338. chance of 25%:
  339. give 2 Gold Ingot to the player
  340. add {@pkt_zloto} to {punkty.%player%}
  341. send "{@tag} &6Odnalazles &bZloto &6! Otrzymujesz &7+10 &6pkt !"
  342. else:
  343. chance of 25%:
  344. give 3 Gold Ingot to the player
  345. add {@pkt_zloto} to {punkty.%player%}
  346. send "{@tag} &6Odnalazles &bZloto &6! Otrzymujesz &7+10 &6pkt !"
  347. else:
  348. chance of 25%:
  349. give 4 Gold Ingot to the player
  350. add {@pkt_zloto} to {punkty.%player%}
  351. send "{@tag} &6Odnalazles &bZloto &6! Otrzymujesz &7+10 &6pkt !"
  352. on mine of stone:
  353. if {mypkt.wlacz} is true:
  354. if player's gamemode is survival:
  355. chance of {@szansa_zelazo}%:
  356. if player's tool is pickaxe of fortune 0:
  357. give Iron Ingot to the player
  358. add {@pkt_zelazo} to {punkty.%player%}
  359. send "{@tag} &6Odnalazles &bZelazo &6! Otrzymujesz &7+7 &6pkt !"
  360. else:
  361. if player's tool is pickaxe of fortune 1:
  362. chance of 50%:
  363. give Iron Ingot to the player
  364. add {@pkt_zelazo} to {punkty.%player%}
  365. send "{@tag} &6Odnalazles &bZelazo &6! Otrzymujesz &7+7 &6pkt !"
  366. else:
  367. give 2 Iron Ingot to the player
  368. add {@pkt_zelazo} to {punkty.%player%}
  369. send "{@tag} &6Odnalazles &bZelazo &6! Otrzymujesz &7+7 &6pkt !"
  370. else:
  371. if player's tool is pickaxe of fortune 2:
  372. chance of 33%:
  373. give Iron Ingot to the player
  374. add {@pkt_zelazo} to {punkty.%player%}
  375. send "{@tag} &6Odnalazles &bZelazo &6! Otrzymujesz &7+7 &6pkt !"
  376. else:
  377. chance of 33%:
  378. give 2 Iron Ingot to the player
  379. add {@pkt_zelazo} to {punkty.%player%}
  380. send "{@tag} &6Odnalazles &bZelazo &6! Otrzymujesz &7+7 &6pkt !"
  381. else:
  382. give 3 Iron Ingot to the player
  383. add {@pkt_zelazo} to {punkty.%player%}
  384. send "{@tag} &6Odnalazles &bZelazo &6! Otrzymujesz &7+7 &6pkt !"
  385. else:
  386. if player's tool is pickaxe of fortune 3:
  387. chance of 25%:
  388. give Iron Ingot to the player
  389. add {@pkt_zelazo} to {punkty.%player%}
  390. send "{@tag} &6Odnalazles &bZelazo &6! Otrzymujesz &7+7 &6pkt !"
  391. else:
  392. chance of 25%:
  393. give 2 Iron Ingot to the player
  394. add {@pkt_zelazo} to {punkty.%player%}
  395. send "{@tag} &6Odnalazles &bZelazo &6! Otrzymujesz &7+7 &6pkt !"
  396. else:
  397. chance of 25%:
  398. give 3 Iron Ingot to the player
  399. add {@pkt_zelazo} to {punkty.%player%}
  400. send "{@tag} &6Odnalazles &bZelazo &6! Otrzymujesz &7+7 &6pkt !"
  401. else:
  402. chance of 25%:
  403. give 4 Iron Ingot to the player
  404. add {@pkt_zelazo} to {punkty.%player%}
  405. send "{@tag} &6Odnalazles &bZelazo &6! Otrzymujesz &7+7 &6pkt !"
  406. on mine of stone:
  407. if {mypkt.wlacz} is true:
  408. if player's gamemode is survival:
  409. chance of {@szansa_wegiel}%:
  410. if player's tool is pickaxe of fortune 0:
  411. give Coal to the player
  412. add {@pkt_wegiel} to {punkty.%player%}
  413. send "{@tag} &6Odnalazles &bWegiel &6! Otrzymujesz &7+3 &6pkt !"
  414. else:
  415. if player's tool is pickaxe of fortune 1:
  416. chance of 50%:
  417. give Coal to the player
  418. add {@pkt_wegiel} to {punkty.%player%}
  419. send "{@tag} &6Odnalazles &bWegiel &6! Otrzymujesz &7+3 &6pkt !"
  420. else:
  421. give 2 Coal to the player
  422. add {@pkt_wegiel} to {punkty.%player%}
  423. send "{@tag} &6Odnalazles &bWegiel &6! Otrzymujesz &7+3 &6pkt !"
  424. else:
  425. if player's tool is pickaxe of fortune 2:
  426. chance of 33%:
  427. give Coal to the player
  428. add {@pkt_wegiel} to {punkty.%player%}
  429. send "{@tag} &6Odnalazles &bWegiel &6! Otrzymujesz &7+3 &6pkt !"
  430. else:
  431. chance of 33%:
  432. give 2 Coal to the player
  433. add {@pkt_wegiel} to {punkty.%player%}
  434. send "{@tag} &6Odnalazles &bWegiel &6! Otrzymujesz &7+3 &6pkt !"
  435. else:
  436. give 3 Coal to the player
  437. add {@pkt_wegiel} to {punkty.%player%}
  438. send "{@tag} &6Odnalazles &bWegiel &6! Otrzymujesz &7+3 &6pkt !"
  439. else:
  440. if player's tool is pickaxe of fortune 3:
  441. chance of 25%:
  442. give Coal to the player
  443. add {@pkt_wegiel} to {punkty.%player%}
  444. send "{@tag} &6Odnalazles &bWegiel &6! Otrzymujesz &7+3 &6pkt !"
  445. else:
  446. chance of 25%:
  447. give 2 Coal to the player
  448. add {@pkt_wegiel} to {punkty.%player%}
  449. send "{@tag} &6Odnalazles &bWegiel &6! Otrzymujesz &7+3 &6pkt !"
  450. else:
  451. chance of 25%:
  452. give 3 Coal to the player
  453. add {@pkt_wegiel} to {punkty.%player%}
  454. send "{@tag} &6Odnalazles &bWegiel &6! Otrzymujesz &7+3 &6pkt !"
  455. else:
  456. chance of 25%:
  457. give 4 Coal to the player
  458. add {@pkt_wegiel} to {punkty.%player%}
  459. send "{@tag} &6Odnalazles &bWegiel &6! Otrzymujesz &7+3 &6pkt !"
  460. on mine of stone:
  461. if {mypkt.wlacz} is true:
  462. if player's gamemode is survival:
  463. chance of {@szansa_obsydian}%:
  464. if player's tool is pickaxe of fortune 0:
  465. give Obsidian to the player
  466. add {@pkt_obsydian} to {punkty.%player%}
  467. send "{@tag} &6Odnalazles &bObsydian &6! Otrzymujesz &7+13 &6pkt !"
  468. else:
  469. if player's tool is pickaxe of fortune 1:
  470. chance of 50%:
  471. give Obsidian to the player
  472. add {@pkt_obsydian} to {punkty.%player%}
  473. send "{@tag} &6Odnalazles &bObsydian &6! Otrzymujesz &7+13 &6pkt !"
  474. else:
  475. give 2 Obsidian to the player
  476. add {@pkt_obsydian} to {punkty.%player%}
  477. send "{@tag} &6Odnalazles &bObsydian &6! Otrzymujesz &7+13 &6pkt !"
  478. else:
  479. if player's tool is pickaxe of fortune 2:
  480. chance of 33%:
  481. give Obsidian to the player
  482. add {@pkt_obsydian} to {punkty.%player%}
  483. send "{@tag} &6Odnalazles &bObsydian &6! Otrzymujesz &7+13 &6pkt !"
  484. else:
  485. chance of 33%:
  486. give 2 Obsidian to the player
  487. add {@pkt_obsydian} to {punkty.%player%}
  488. send "{@tag} &6Odnalazles &bObsydian &6! Otrzymujesz &7+13 &6pkt !"
  489. else:
  490. give 3 Obsidian to the player
  491. add {@pkt_obsydian} to {punkty.%player%}
  492. send "{@tag} &6Odnalazles &bObsydian &6! Otrzymujesz &7+13 &6pkt !"
  493. else:
  494. if player's tool is pickaxe of fortune 3:
  495. chance of 25%:
  496. give Obsidian to the player
  497. add {@pkt_obsydian} to {punkty.%player%}
  498. send "{@tag} &6Odnalazles &bObsydian &6! Otrzymujesz &7+13 &6pkt !"
  499. else:
  500. chance of 25%:
  501. give 2 Obsidian to the player
  502. add {@pkt_obsydian} to {punkty.%player%}
  503. send "{@tag} &6Odnalazles &bObsydian &6! Otrzymujesz &7+13 &6pkt !"
  504. else:
  505. chance of 25%:
  506. give 3 Obsidian to the player
  507. add {@pkt_obsydian} to {punkty.%player%}
  508. send "{@tag} &6Odnalazles &bObsydian &6! Otrzymujesz &7+13 &6pkt !"
  509. else:
  510. chance of 25%:
  511. give 4 Obsidian to the player
  512. add {@pkt_obsydian} to {punkty.%player%}
  513. send "{@tag} &6Odnalazles &bObsydian &6! Otrzymujesz &7+13 &6pkt !"
  514. on mine of stone:
  515. if {mypkt.wlacz} is true:
  516. if player's gamemode is survival:
  517. chance of {@szansa_redstone}%:
  518. if player's tool is pickaxe of fortune 0:
  519. give Redstone to the player
  520. add {@pkt_redstone} to {punkty.%player%}
  521. send "{@tag} &6Odnalazles &bRedstone &6! Otrzymujesz &7+5 &6pkt !"
  522. else:
  523. if player's tool is pickaxe of fortune 1:
  524. chance of 50%:
  525. give Redstone to the player
  526. add {@pkt_redstone} to {punkty.%player%}
  527. send "{@tag} &6Odnalazles &bRedstone &6! Otrzymujesz &7+5 &6pkt !"
  528. else:
  529. give 2 Redstone to the player
  530. add {@pkt_redstone} to {punkty.%player%}
  531. send "{@tag} &6Odnalazles &bRedstone &6! Otrzymujesz &7+5 &6pkt !"
  532. else:
  533. if player's tool is pickaxe of fortune 2:
  534. chance of 33%:
  535. give Redstone to the player
  536. add {@pkt_redstone} to {punkty.%player%}
  537. send "{@tag} &6Odnalazles &bRedstone &6! Otrzymujesz &7+5 &6pkt !"
  538. else:
  539. chance of 33%:
  540. give 2 Redstone to the player
  541. add {@pkt_redstone} to {punkty.%player%}
  542. send "{@tag} &6Odnalazles &bRedstone &6! Otrzymujesz &7+5 &6pkt !"
  543. else:
  544. give 3 Redstone to the player
  545. add {@pkt_redstone} to {punkty.%player%}
  546. send "{@tag} &6Odnalazles &bRedstone &6! Otrzymujesz &7+5 &6pkt !"
  547. else:
  548. if player's tool is pickaxe of fortune 3:
  549. chance of 25%:
  550. give Redstone to the player
  551. add {@pkt_redstone} to {punkty.%player%}
  552. send "{@tag} &6Odnalazles &bRedstone &6! Otrzymujesz &7+5 &6pkt !"
  553. else:
  554. chance of 25%:
  555. give 2 Redstone to the player
  556. add {@pkt_redstone} to {punkty.%player%}
  557. send "{@tag} &6Odnalazles &bRedstone &6! Otrzymujesz &7+5 &6pkt !"
  558. else:
  559. chance of 25%:
  560. give 3 Redstone to the player
  561. add {@pkt_redstone} to {punkty.%player%}
  562. send "{@tag} &6Odnalazles &bRedstone &6! Otrzymujesz &7+5 &6pkt !"
  563. else:
  564. chance of 25%:
  565. give 4 Redstone to the player
  566. add {@pkt_redstone} to {punkty.%player%}
  567. send "{@tag} &6Odnalazles &bRedstone &6! Otrzymujesz &7+5 &6pkt !"
  568. on mine of diamond ore:
  569. if {mypkt.wlacz} is true:
  570. cancel event
  571. set block to air
  572. send "{@tag} &7Drop z tej rudy jest wylaczony!"
  573. send "{@tag} &7Aby zobaczyc % szans na drop wpisz &6/drop&7!"
  574. stop
  575. else:
  576. stop
  577. on mine of emerald ore:
  578. if {mypkt.wlacz} is true:
  579. cancel event
  580. set block to air
  581. send "{@tag} &7Drop z tej rudy jest wylaczony!"
  582. send "{@tag} &7Aby zobaczyc % szans na drop wpisz &6/drop&7!"
  583. stop
  584. else:
  585. stop
  586. on mine of gold ore:
  587. if {mypkt.wlacz} is true:
  588. cancel event
  589. set block to air
  590. send "{@tag} &7Drop z tej rudy jest wylaczony!"
  591. send "{@tag} &7Aby zobaczyc % szans na drop wpisz &6/drop&7!"
  592. stop
  593. else:
  594. stop
  595. on mine of iron ore:
  596. if {mypkt.wlacz} is true:
  597. cancel event
  598. set block to air
  599. send "{@tag} &7Drop z tej rudy jest wylaczony!"
  600. send "{@tag} &7Aby zobaczyc % szans na drop wpisz &6/drop&7!"
  601. stop
  602. else:
  603. stop
  604. on rightclick on sign:
  605. if line 1 is "&aMy&fPoints":
  606. if line 2 is "&9Wymiana":
  607. set {_x} to "%line 3%"
  608. if {_x} is "w1":
  609. set line 1 to "&b&l[MP]"
  610. set line 2 to "&f&lWYMIANA"
  611. set line 3 to "Punkty: 10000"
  612. set line 4 to "&aAKTYWOWANO!"
  613. wait 5 seconds
  614. stop
  615. if {_x} is "w2":
  616. set line 1 to "&b&l[MP]"
  617. set line 2 to "&f&lWYMIANA"
  618. set line 3 to "Punkty: 20000"
  619. set line 4 to "&aAKTYWOWANO!"
  620. wait 5 seconds
  621. stop
  622. if {_x} is "w3":
  623. set line 1 to "&b&l[MP]"
  624. set line 2 to "&f&lWYMIANA"
  625. set line 3 to "Punkty: 30000"
  626. set line 4 to "&aAKTYWOWANO!"
  627. wait 5 seconds
  628. stop
  629. if {_x} is "w4":
  630. set line 1 to "&b&l[MP]"
  631. set line 2 to "&f&lWYMIANA"
  632. set line 3 to "Punkty: 40000"
  633. set line 4 to "&aAKTYWOWANO!"
  634. wait 5 seconds
  635. stop
  636. if {_x} is "w5":
  637. set line 1 to "&b&l[MP]"
  638. set line 2 to "&f&lWYMIANA"
  639. set line 3 to "Punkty: 50000"
  640. set line 4 to "&aAKTYWOWANO!"
  641. wait 5 seconds
  642. stop
  643. if {_x} is "w6":
  644. set line 1 to "&b&l[MP]"
  645. set line 2 to "&f&lWYMIANA"
  646. set line 3 to "Punkty: 60000"
  647. set line 4 to "&aAKTYWOWANO!"
  648. wait 5 seconds
  649. stop
  650. if {_x} is "w7":
  651. set line 1 to "&b&l[MP]"
  652. set line 2 to "&f&lWYMIANA"
  653. set line 3 to "Punkty: 70000"
  654. set line 4 to "&aAKTYWOWANO!"
  655. wait 5 seconds
  656. stop
  657. if {_x} is "w8":
  658. set line 1 to "&b&l[MP]"
  659. set line 2 to "&f&lWYMIANA"
  660. set line 3 to "Punkty: 80000"
  661. set line 4 to "&aAKTYWOWANO!"
  662. wait 5 seconds
  663. stop
  664. if {_x} is "w9":
  665. set line 1 to "&b&l[MP]"
  666. set line 2 to "&f&lWYMIANA"
  667. set line 3 to "Punkty: 90000"
  668. set line 4 to "&aAKTYWOWANO!"
  669. wait 5 seconds
  670. stop
  671. on rightclick on sign:
  672. if line 1 is "&b&l[MP]":
  673. if line 2 is "&f&lWYMIANA":
  674. if {punkty.%player%} is greater than {@w1}:
  675. set {_x} to {@w1}
  676. remove {_x} from {punkty.%player%}
  677. give {@w1_n1} to player
  678. send "{@tag} &7Wymieniles swoje punkty kopania na nagrode!"
  679. stop
  680. if {punkty.%player%} is greater than {@w2}:
  681. set {_x} to {@w2}
  682. remove {_x} from {punkty.%player%}
  683. give {@w2_n2} to player
  684. send "{@tag} &7Wymieniles swoje punkty kopania na nagrode!"
  685. stop
  686. if {punkty.%player%} is greater than {@w3}:
  687. set {_x} to {@w3}
  688. remove {_x} from {punkty.%player%}
  689. give {@w3_n3} to player
  690. send "{@tag} &7Wymieniles swoje punkty kopania na nagrode!"
  691. stop
  692. if {punkty.%player%} is greater than {@w4}:
  693. set {_x} to {@w4}
  694. remove {_x} from {punkty.%player%}
  695. give {@w4_n4} to player
  696. send "{@tag} &7Wymieniles swoje punkty kopania na nagrode!"
  697. stop
  698. if {punkty.%player%} is greater than {@w5}:
  699. set {_x} to {@w5}
  700. remove {_x} from {punkty.%player%}
  701. give {@w5_n5} to player
  702. send "{@tag} &7Wymieniles swoje punkty kopania na nagrode!"
  703. stop
  704. if {punkty.%player%} is greater than {@w6}:
  705. set {_x} to {@w6}
  706. remove {_x} from {punkty.%player%}
  707. give {@w6_n6} to player
  708. send "{@tag} &7Wymieniles swoje punkty kopania na nagrode!"
  709. stop
  710. if {punkty.%player%} is greater than {@w7}:
  711. set {_x} to {@w7}
  712. remove {_x} from {punkty.%player%}
  713. give {@w7_n7} to player
  714. send "{@tag} &7Wymieniles swoje punkty kopania na nagrode!"
  715. stop
  716. if {punkty.%player%} is greater than {@w8}:
  717. set {_x} to {@w8}
  718. remove {_x} from {punkty.%player%}
  719. give {@w8_n8} to player
  720. send "{@tag} &7Wymieniles swoje punkty kopania na nagrode!"
  721. stop
  722. if {punkty.%player%} is greater than {@w9}:
  723. set {_x} to {@w9}
  724. remove {_x} from {punkty.%player%}
  725. give {@w9_n9} to player
  726. send "{@tag} &7Wymieniles swoje punkty kopania na nagrode!"
  727. stop
  728. command /mypkt [<text>] [<text>]:
  729. trigger:
  730. if arg 1 is not set:
  731. send "&9-=-=-=-=-=- {@nazwa} &9-=-=-=-=-=-"
  732. send "&a/mypkt autor &b- autor skryptu"
  733. send "&a/mypkt daj [nick] &b- daje danemu graczowi 5000 punktow"
  734. send "&a/mypkt sprawdz [nick] &b- sprawdza statystyki danego gracza"
  735. send "&a/mypkt resetuj [nick] &b- resetuje punkty graczowi"
  736. send "&a/mypkt wlacz &b- wlacza skrypt"
  737. send "&a/mypkt wylacz &b- wylacza skrypt"
  738. send "&a/myexp wlacz &b- wlacza drop expa"
  739. send "&a/myexp wylacz &b- wylacza drop expa"
  740. send "&9-=-=-=-=-=- {@nazwa} &9-=-=-=-=-=-"
  741. stop
  742. if arg 1 is "wlacz":
  743. if {mypkt.wlacz} is false:
  744. if has permissions "mypkt.wlacz":
  745. set {mypkt.wlacz} to true
  746. send "&cWlaczyles skrypt !"
  747. else:
  748. send "&cNie masz na to pozwolenia !"
  749. else:
  750. send "&cNie mozesz tego wykonac poniewaz skrypt jest juz wlaczony !"
  751. stop
  752. if arg 1 is "wylacz":
  753. if {mypkt.wlacz} is true:
  754. if has permissions "mypkt.wylacz":
  755. set {mypkt.wlacz} to false
  756. send "&cWylaczyles skrypt !"
  757. else:
  758. send "&cNie masz na to pozwolenia !"
  759. else:
  760. send "&cNie mozesz tego zrobic poniewaz skrypt jest wylaczony !"
  761. stop
  762. if arg 1 is "sprawdz":
  763. if arg 2 is not empty:
  764. send "&3Sprawdzasz statystyki od &e%arg 2%"
  765. send "&9* &bPunkty kopania: &e%{punkty.%arg 2%}%"
  766. send "&9* &bMaksymalna ilosc punktow to &e100000"
  767. stop
  768. if arg 1 is "resetuj":
  769. if arg 2 is not empty:
  770. if has permissions "mypkt.resetuj":
  771. set {punkty.%arg 2%} to 0
  772. send "&cZresetowales punkty graczowi &a%arg 2%"
  773. else:
  774. send "&cNie masz pozwolenia na uzywanie tej komendy !"
  775. stop
  776. if arg 1 is "autor":
  777. send "&9-=-=-=-=-=- {@nazwa} &9-=-=-=-=-=-"
  778. send "&aAutor - {@autor}"
  779. send "&aWersja - {@wersja}"
  780. send "&9-=-=-=-=-=- {@nazwa} &9-=-=-=-=-=-"
  781. stop
  782. if arg 1 is "daj":
  783. if arg 2 is not empty:
  784. if player has permission "mypkt.daj":
  785. add 5000 to {punkty.%arg 2%}
  786. send "&aDodales graczowi &7%arg 2% &a5000 punktow!"
  787. else:
  788. send "&cNie masz pozwolenia na uzywanie tej komendy !"
  789. stop
  790. command /myexp [<text>]:
  791. trigger:
  792. if arg 1 is "wlacz":
  793. if {myexp.wlacz} is false:
  794. if has permissions "myexp.wlacz":
  795. set {mypkt.wlacz} to true
  796. send "&cWlaczyles drop expa !"
  797. else:
  798. send "&cNie masz na to pozwolenia !"
  799. else:
  800. send "&cNie mozesz tego wykonac poniewaz exp jest juz wlaczony !"
  801. stop
  802. if arg 1 is "wylacz":
  803. if {myexp.wlacz} is true:
  804. if has permissions "myexp.wylacz":
  805. set {mypkt.wlacz} to false
  806. send "&cWylaczyles drop expa !"
  807. else:
  808. send "&cNie masz na to pozwolenia !"
  809. else:
  810. send "&cNie mozesz tego zrobic poniewaz exp jest wylaczony !"
  811. stop
  812. command /drop:
  813. trigger:
  814. send ""
  815. send "&aEnderperla - &7{@szansa_perla}%"
  816. send "&aDiament - &7{@szansa_diax}%"
  817. send "&aZloto - &7{@szansa_zloto}%"
  818. send "&aZelazo - &7{@szansa_zelazo}%"
  819. send "&aRedstone - &7{@szansa_redstone}%"
  820. send "&aObydian - &7{@szansa_obsydian}%"
  821. send "&aEmerald - &7{@szansa_emerald}%"
  822. send "&aWegiel - &7{@szansa_wegiel}%"
  823. send ""
Advertisement
Add Comment
Please, Sign In to add comment