TheBlooes

MyPoints v.1.1

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