Guest User

Untitled

a guest
Dec 1st, 2013
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.58 KB | None | 0 0
  1. #================================#
  2. # Script by Dzikoysk #
  3. # Name: SafeOre #
  4. # Version: 1.4 Release #
  5. # Skript: Beta 10 #
  6. #================================#
  7.  
  8. #================================#
  9. # Licencja | SafeOre #
  10. # by Dzikoysk #
  11. #--------------------------------#
  12. # ~ Nie zezwalam na: #
  13. # - Zarabianie na skrypcie #
  14. # - Przerabianie/modyfikowanie #
  15. # zmienianie tresci dla grona #
  16. # publicznego #
  17. # - Wykorzystywanie kodu skryptu #
  18. # w swoich skryptach #
  19. # - Udostepnianiu skryptu innym* #
  20. # - Usuwanie tresci #
  21. # zawierajacych autora #
  22. # - Podszywaniu sie pod autora #
  23. # * - Tylko za zgoda autora #
  24. #--------------------------------#
  25. # Mylnie odczytana licencja nie #
  26. # zwalnia z przestrzegania jej #
  27. #================================#
  28.  
  29. #---------------------------------------------------------------#
  30. # #
  31. # #
  32. # #
  33. # Config #
  34. # #
  35. # #
  36. # #
  37. #---------------------------------------------------------------#
  38.  
  39. #------#
  40. # Info #
  41. #------#
  42.  
  43. # Skrypt z obecnymi ustawieniami dziala w pelni poprawnie. Dlatego umiejetnie posluguj sie konfiguracja, a wszystko bedzie dobrze.
  44. # Krótkie wyjasnienie/wstep: W wielu wiadmosciach widoczne sa rzeczy typu: {@tekst}. Sa to zmienne.
  45. # Pozwalaja one wlasnie na latwa konfiguracje róznych wartosci, oraz na wyswietlanie ustawionych tekstów.
  46. # Dlatego zmieniajac tekst zrozum do czego sluza, bedzie Ci prosciej dopasowac np. tekst do swoich potrzeb.
  47. # Skrypt jest w pelni do konfiguracji i prawie wszystko da sie zmienic za pomoa ustawien!
  48. # Powodzenia! ;)
  49.  
  50.  
  51. #---------#
  52. # General #
  53. #---------#
  54.  
  55. # Options - Config / Ustawienia skryptu
  56. options:
  57. # Tag skryptu
  58. tag: &b[SafeOre]
  59.  
  60. # Ruda diamentu
  61. diamondore: diamond ore
  62. # Ruda emeraldu
  63. emeraldore: emerald ore
  64. # Ruda zelaza
  65. ironore: iron ore
  66. # Ruda zlota
  67. goldore: gold ore
  68. # Ruda redstona
  69. redstoneore: redstone ore
  70. # Ruda Lapisu
  71. lapisore: lapis lazuli ore
  72.  
  73. # Na co ma sie zminic ruda, która ktos próbuje wykopac, domyslnie stone. Aby ruda znikala wpisz: air
  74. set: stone
  75.  
  76. # Przedmity wpadajace z poszczegolnych rud:
  77. # Diament
  78. item1: diamond
  79. # Emerald
  80. item2: emerald
  81. # Zelazo
  82. item3: iron ingot
  83. # Zloto
  84. item4: gold ingot
  85. # Redstone:
  86. item5: 5 redstone
  87. # Lapis:
  88. item6: 6 lapis lazuli
  89.  
  90.  
  91.  
  92. # =====================================
  93. # Procentowe szanse dla zwyklych graczy
  94. # =====================================
  95. #Procenty - Nie mozna pisac wartosci typu o.4, 1.5.
  96. #Aby takowe uzyskac wpisz 4 dla o.4, 15 dla 1.5 itd.
  97. # ---------------------
  98. # Procentowa szana
  99. # Wyswietlany procent
  100. #----------------------
  101. # Diament:
  102. szansa: 8
  103. procent: 0.8
  104. # Emerald:
  105. szansa1: 12
  106. procent1: 1.2
  107. # Zelazo:
  108. szansa2: 10
  109. procent2: 10
  110. # Zloto
  111. szansa3: 14
  112. procent3: 1.4
  113. # Redstone
  114. szansa4: 20
  115. procent4: 2
  116. # Lapis
  117. szansa5: 9
  118. procent5: 0.9
  119. # ==========================================================
  120. # Procentowe szanse dla grupy VIP. (Odpowiednie permissions)
  121. # ==========================================================
  122. # ---------------------
  123. # Procentowa szana
  124. # Wyswietlany procent
  125. #----------------------
  126. # Diament:
  127. vipszansa: 12
  128. vipprocent: 1.2
  129. # Emerald:
  130. vipszansa1: 15
  131. vipprocent1: 1.5
  132. # Zelazo:
  133. vipszansa2: 30
  134. vipprocent2: 3
  135. # Zloto:
  136. vipszansa3: 25
  137. vipprocent3: 2.5
  138. # Redstone:
  139. vipszansa4: 30
  140. vipprocent4: 3
  141. # Lapis:
  142. vipszansa5: 15
  143. vipprocent5: 1.5
  144.  
  145.  
  146.  
  147. # Wysokosci wydobycia:
  148. # Diament
  149. yDiamond: 20
  150. # Emerald
  151. yEmerald: 20
  152. # Zelazo
  153. yIron: 250
  154. # Zloto
  155. yGold: 40
  156. # Redstone
  157. yRedstone: 50
  158. #Lapis
  159. yLapis: 50
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168. #------------------------------------------#
  169. # Bezsensowna, ale możlwia konfiguracja <: #
  170. #------------------------------------------#
  171.  
  172.  
  173. # Wiadmosc, która pokaze sie po zniszczeniu rudy diamentu
  174. message5: &bDiamenty &7wypadaja tylko ze stone. Masz na to
  175. msg1: {@procent}
  176. msg2: &6procent &7szans
  177. # Wiadmosc, która pokaze sie po zniszczeniu rudy emeraldu
  178. message6: &aEmeraldy &7wypadaja tylko ze stone. Masz na to
  179. msg3: {@procent1}
  180. msg4: &6procent &7szans
  181. # Wiadmosc, która pokaze sie po zniszczeniu rudy zelaza
  182. message7: &fZelazo &7wypada tylko ze stone. Masz na to
  183. msg5: {@procent2}
  184. msg6: &6procent &7szans
  185. # Wiadmosc, która pokaze sie po zniszczeniu rudy zlota
  186. message8: &6Zloto &7wypada tylko ze stone. Masz na to
  187. msg7: {@procent3}
  188. msg8: &6procent &7szans
  189. # Wiadmosc, która pokaze sie po zniszczeniu rudy redstona
  190. message12: &cRedstone &7wypada tylko ze stone. Masz na to
  191. msg9: {@procent4}
  192. msg10: &6procent &7szans
  193. # Wiadmosc, która pokaze sie po zniszczeniu rudy lapisu
  194. message11: &9Lapis &7wypada tylko ze stone. Masz na to
  195. msg11: {@procent5}
  196. msg12: &6procent &7szans
  197.  
  198.  
  199.  
  200. # Alias do komendy /stone [Alias - Inna nazwa tej samej komendy]
  201. alias1: rudy
  202.  
  203. # Tego radze nie konfigurowac pod wzgledem wygladu - w znaczeniu ulozenia tesktu
  204. # Tu niestety musialem wklepac niektóre rzeczy na sztywno w kod, dlatego nie radze dotykac sie
  205. # linijek send7, send8, send9 i send10 poniewaz tu sa one tylko czysto informacyjne.
  206. # Wiadmosc, która zobaczy gracz po wpisaniu komendy /stone
  207. # Jedna linijka = 1 linijka na chacie w grze
  208. # Tu piszemy pierwsza czesc wiadomosci bez zmiennych i tesktu za nimi
  209. # Zapisy od send1 do send6 sa pierwsza czescia wiadomosci (przed zmienna)
  210. # Zapisy od send7 do send10 sa to zmienne wystepujace w wiadmosci [I]
  211. # Zapis send11, jest to tekst po zmiennej
  212. send1: "&3Aby wydobyc rudy &bdiamentow&3, &aemeraldow&3, &fzelaza&3, oraz &6zlota"
  213. send2: "&3musisz kopac &7stone&3. Na poszczegolne rudy masz takie szanse:"
  214. send3: - &bDiamenty
  215. send4: - &aEmeraldy
  216. send5: - &fZelazo
  217. send6: - &6Zloto
  218. send7: {@procent} oraz {@vipprocent}
  219. send8: {@procent1} oraz {@vipprocent1}
  220. send9: {@procent2} oraz {@vipprocent2}
  221. send10: {@procent3} oraz {@vipprocent3}
  222. send11: &3procent
  223. # Dodatkowe +
  224. send12: - &cRedstone
  225. send13: - &9Lapis
  226. send14: {@procent4} oraz {@vipprocent4}
  227. send15: {@procent5} oraz {@vipprocent5}
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237. #-----------------------------------------------------------------------#
  238. # Code - tu ponizej nic juz nie zmieniaj #
  239. #-----------------------------------------------------------------------#
  240.  
  241. variables:
  242. # Aktywne rudy
  243. {safeore.iron} = true
  244. {safeore.gold} = true
  245. {safeore.diamond} = true
  246. {safeore.emerald} = true
  247. {safeore.redstone} = false
  248. {safeore.lapis} = false
  249. {chance.%player%} = 1
  250.  
  251.  
  252.  
  253. #-------------#
  254. # Kod wspólny #
  255. #-------------#
  256.  
  257. #Rudy ze stone
  258. on break of stone:
  259. if {safeore.diamond} is true:
  260. player has permissions "safeore.vip.diamond":
  261. if player's y-coordinate is smaller than {@yDiamond}:
  262. if player's tool is a diamond pickaxe of fortune:
  263. if chance of {@vipszansa}%:
  264. if chance of 10%:
  265. chance of 50%:
  266. drop 1 {@item1}
  267. message "&7Znaleziono &bDiament&7!"
  268. clear {chance.%player%}
  269. stop
  270. chance of 50%:
  271. drop 2 {@item1}
  272. message "&7Znaleziono 2 &bDiamenty&7!"
  273. clear {chance.%player%}
  274. stop
  275. if player's tool is a diamond pickaxe of fortune 2:
  276. if chance of {@vipszansa}%:
  277. if chance of 10%:
  278. chance of 33%:
  279. drop 1 {@item1}
  280. message "&7Znaleziono &bDiament&7!"
  281. clear {chance.%player%}
  282. stop
  283. chance of 33%:
  284. drop 2 {@item1}
  285. message "&7Znaleziono 2 &bDiamenty&7!"
  286. clear {chance.%player%}
  287. stop
  288. chance of 33%:
  289. drop 3 {@item1}
  290. message "&7Znaleziono 3 &bDiamenty&7!"
  291. clear {chance.%player%}
  292. stop
  293. if player's tool is a diamond pickaxe of fortune 3:
  294. if chance of {@vipszansa}%:
  295. if chance of 10%:
  296. chance of 25%:
  297. drop 1 {@item1}
  298. message "&7Znaleziono &bDiament&7!"
  299. clear {chance.%player%}
  300. stop
  301. chance of 25%:
  302. drop 2 {@item1}
  303. message "&7Znaleziono 2 &bDiamenty&7!"
  304. clear {chance.%player%}
  305. stop
  306. chance of 25%:
  307. drop 3 {@item1}
  308. message "&7Znaleziono 3 &bDiamenty&7!"
  309. clear {chance.%player%}
  310. stop
  311. chance of 25%:
  312. drop 4 {@item1}
  313. message "&7Znaleziono 4 &bDiamenty&7!"
  314. clear {chance.%player%}
  315. stop
  316. else:
  317. if chance of {@vipszansa}%:
  318. if chance of 10%:
  319. drop {@item1}
  320. message "&7Znaleziono &bDiament&7!"
  321. stop
  322. else:
  323. if player's y-coordinate is smaller than {@yDiamond}:
  324. if player's tool is a diamond pickaxe of fortune:
  325. if chance of {@szansa}%:
  326. if chance of 10%:
  327. chance of 50%:
  328. drop 1 {@item1}
  329. message "&7Znaleziono &bDiament&7!"
  330. clear {chance.%player%}
  331. stop
  332. chance of 50%:
  333. drop 2 {@item1}
  334. message "&7Znaleziono 2 &bDiamenty&7!"
  335. clear {chance.%player%}
  336. stop
  337. if player's tool is a diamond pickaxe of fortune 2:
  338. if chance of {@szansa}%:
  339. if chance of 10%:
  340. chance of 33%:
  341. drop 1 {@item1}
  342. message "&7Znaleziono &bDiament&7!"
  343. clear {chance.%player%}
  344. stop
  345. chance of 33%:
  346. drop 2 {@item1}
  347. message "&7Znaleziono 2 &bDiamenty&7!"
  348. clear {chance.%player%}
  349. stop
  350. chance of 33%:
  351. drop 3 {@item1}
  352. message "&7Znaleziono 3 &bDiamenty&7!"
  353. clear {chance.%player%}
  354. stop
  355. if player's tool is a diamond pickaxe of fortune 3:
  356. if chance of {@szansa}%:
  357. if chance of 10%:
  358. chance of 25%:
  359. drop 1 {@item1}
  360. message "&7Znaleziono &bDiament&7!"
  361. clear {chance.%player%}
  362. stop
  363. chance of 25%:
  364. drop 2 {@item1}
  365. message "&7Znaleziono 2 &bDiamenty&7!"
  366. clear {chance.%player%}
  367. stop
  368. chance of 25%:
  369. drop 3 {@item1}
  370. message "&7Znaleziono 3 &bDiamenty&7!"
  371. clear {chance.%player%}
  372. stop
  373. chance of 25%:
  374. drop 4 {@item1}
  375. message "&7Znaleziono 4 &bDiamenty&7!"
  376. clear {chance.%player%}
  377. stop
  378. else:
  379. if chance of {@szansa}%:
  380. if chance of 10%:
  381. drop {@item1}
  382. message "&7Znaleziono &bDiament&7!"
  383. stop
  384.  
  385. if {safeore.emerald} is true:
  386. player has permissions "safeore.vip.emerald":
  387. if player's y-coordinate is smaller than {@yEmerald}:
  388. if player's tool is a diamond pickaxe of fortune:
  389. if chance of {@vipszansa1}%:
  390. if chance of 10%:
  391. chance of 50%:
  392. drop 1 {@item2}
  393. message "&7Znaleziono &aEmerald&7!"
  394. clear {chance.%player%}
  395. stop
  396. chance of 50%:
  397. drop 2 {@item2}
  398. message "&7Znaleziono 2 &aEmeraldy&7!"
  399. clear {chance.%player%}
  400. stop
  401. if player's y-coordinate is smaller than {@yEmerald}:
  402. if player's tool is a diamond pickaxe of fortune 2:
  403. if chance of {@vipszansa1}%:
  404. if chance of 10%:
  405. chance of 33%:
  406. drop 1 {@item2}
  407. message "&7Znaleziono &aEmerald&7!"
  408. clear {chance.%player%}
  409. stop
  410. chance of 33%:
  411. drop 2 {@item2}
  412. message "&7Znaleziono 2 &aEmeraldy&7!"
  413. clear {chance.%player%}
  414. stop
  415. chance of 33%:
  416. drop 3 {@item2}
  417. message "&7Znaleziono 3 &aEmeraldy&7!"
  418. clear {chance.%player%}
  419. stop
  420. if player's y-coordinate is smaller than {@yEmerald}:
  421. if player's tool is a diamond pickaxe of fortune 3:
  422. if chance of {@vipszansa1}%:
  423. if chance of 10%:
  424. chance of 25%:
  425. drop 1 {@item2}
  426. message "&7Znaleziono &aEmerald&7!"
  427. clear {chance.%player%}
  428. stop
  429. chance of 25%:
  430. drop 2 {@item2}
  431. message "&7Znaleziono 2 &aEmeraldy&7!"
  432. clear {chance.%player%}
  433. stop
  434. chance of 25%:
  435. drop 3 {@item2}
  436. message "&7Znaleziono 3 &aEmeraldy&7!"
  437. clear {chance.%player%}
  438. stop
  439. chance of 25%:
  440. drop 4 {@item2}
  441. message "&7Znaleziono 4 &aEmeraldy&7!"
  442. clear {chance.%player%}
  443. stop
  444. else:
  445. if chance of {@vipszansa1}%:
  446. if chance of 10%:
  447. drop {@item2}
  448. message "&7Znaleziono &aEmerald&7!"
  449. stop
  450. else:
  451. if player's y-coordinate is smaller than {@yEmerald}:
  452. if player's tool is a diamond pickaxe of fortune:
  453. if chance of {@szansa1}%:
  454. if chance of 10%:
  455. chance of 50%:
  456. drop 1 {@item2}
  457. message "&7Znaleziono &aEmerald&7!"
  458. clear {chance.%player%}
  459. stop
  460. chance of 50%:
  461. drop 2 {@item2}
  462. message "&7Znaleziono 2 &aEmeraldy&7!"
  463. clear {chance.%player%}
  464. stop
  465. if player's tool is a diamond pickaxe of fortune 2:
  466. if chance of {@szansa1}%:
  467. if chance of 10%:
  468. chance of 33%:
  469. drop 1 {@item2}
  470. message "&7Znaleziono &aEmerald&7!"
  471. clear {chance.%player%}
  472. stop
  473. chance of 33%:
  474. drop 2 {@item2}
  475. message "&7Znaleziono 2 &aEmeraldy&7!"
  476. clear {chance.%player%}
  477. stop
  478. chance of 33%:
  479. drop 3 {@item2}
  480. message "&7Znaleziono 3 &aEmeraldy&7!"
  481. clear {chance.%player%}
  482. stop
  483. if player's tool is a diamond pickaxe of fortune 3:
  484. if chance of {@szansa1}%:
  485. if chance of 10%:
  486. chance of 25%:
  487. drop 1 {@item2}
  488. message "&7Znaleziono &aEmerald&7!"
  489. clear {chance.%player%}
  490. stop
  491. chance of 25%:
  492. drop 2 {@item2}
  493. message "&7Znaleziono 2 &aEmeraldy&7!"
  494. clear {chance.%player%}
  495. stop
  496. chance of 25%:
  497. drop 3 {@item2}
  498. message "&7Znaleziono 3 &aEmeraldy&7!"
  499. clear {chance.%player%}
  500. stop
  501. chance of 25%:
  502. drop 4 {@item2}
  503. message "&7Znaleziono 4 &aEmeraldy&7!"
  504. clear {chance.%player%}
  505. stop
  506. else:
  507. if chance of {@szansa1}%:
  508. if chance of 10%:
  509. drop {@item2}
  510. message "&7Znaleziono &aEmerald&7!"
  511. stop
  512. if {safeore.iron} is true:
  513. player has permissions "safeore.vip.iron":
  514. if player's y-coordinate is smaller than {@yIron}:
  515. if player's tool is a diamond pickaxe of fortune:
  516. if chance of {@vipszansa2}%:
  517. if chance of 10%:
  518. chance of 50%:
  519. drop 1 {@item3}
  520. message "&7Znaleziono &8Zelazo&7!"
  521. clear {chance.%player%}
  522. stop
  523. chance of 50%:
  524. drop 2 {@item3}
  525. message "&7Znaleziono 2 sztuki &8Zelaza&7!"
  526. clear {chance.%player%}
  527. stop
  528. if player's tool is a diamond pickaxe of fortune 2:
  529. if chance of {@vipszansa2}%:
  530. if chance of 10%:
  531. chance of 33%:
  532. drop 1 {@item3}
  533. message "&7Znaleziono &8Zelazo&7!"
  534. clear {chance.%player%}
  535. stop
  536. chance of 33%:
  537. drop 2 {@item3}
  538. message "&7Znaleziono 2 sztuki &8Zelaza&7!"
  539. clear {chance.%player%}
  540. stop
  541. chance of 33%:
  542. drop 3 {@item3}
  543. message "&7Znaleziono 3 sztuki &8Zelaza&7!"
  544. clear {chance.%player%}
  545. stop
  546. if player's tool is a diamond pickaxe of fortune 3:
  547. if chance of {@vipszansa2}%:
  548. if chance of 10%:
  549. chance of 25%:
  550. drop 1 {@item3}
  551. message "&7Znaleziono &8Zelazo&7!"
  552. clear {chance.%player%}
  553. stop
  554. chance of 25%:
  555. drop 2 {@item3}
  556. message "&7Znaleziono 2 sztuki &8Zelaza&7!"
  557. clear {chance.%player%}
  558. stop
  559. chance of 25%:
  560. drop 3 {@item3}
  561. message "&7Znaleziono 3 sztuki &8Zelaza&7!"
  562. clear {chance.%player%}
  563. stop
  564. chance of 25%:
  565. drop 3 {@item3}
  566. message "&7Znaleziono 4 sztuki &8Zelaza&7!"
  567. clear {chance.%player%}
  568. stop
  569. else:
  570. if chance of {@vipszansa2}%:
  571. if chance of 10%:
  572. drop {@item3}
  573. message "&7Znaleziono &8Zelazo&7!"
  574. stop
  575. else:
  576. if player's y-coordinate is smaller than {@yIron}:
  577. if player's tool is a diamond pickaxe of fortune:
  578. if chance of {@szansa2}%:
  579. if chance of 10%:
  580. chance of 50%:
  581. drop 1 {@item3}
  582. message "&7Znaleziono &8Zelazo&7!"
  583. clear {chance.%player%}
  584. stop
  585. chance of 50%:
  586. drop 2 {@item3}
  587. message "&7Znaleziono 2 sztuki &8Zelaza&7!"
  588. clear {chance.%player%}
  589. stop
  590. if player's tool is a diamond pickaxe of fortune 2:
  591. if chance of {@szansa2}%:
  592. if chance of 10%:
  593. chance of 33%:
  594. drop 1 {@item3}
  595. message "&7Znaleziono &8Zelazo&7!"
  596. clear {chance.%player%}
  597. stop
  598. chance of 33%:
  599. drop 2 {@item3}
  600. message "&7Znaleziono 2 sztuki &8Zelaza&7!"
  601. clear {chance.%player%}
  602. stop
  603. chance of 33%:
  604. drop 3 {@item3}
  605. message "&7Znaleziono 3 sztuki &8Zelaza&7!"
  606. clear {chance.%player%}
  607. stop
  608. if player's tool is a diamond pickaxe of fortune 3:
  609. if chance of {@szansa2}%:
  610. if chance of 10%:
  611. chance of 25%:
  612. drop 1 {@item3}
  613. message "&7Znaleziono &8Zelazo&7!"
  614. clear {chance.%player%}
  615. stop
  616. chance of 25%:
  617. drop 2 {@item3}
  618. message "&7Znaleziono 2 sztuki &8Zelaza&7!"
  619. clear {chance.%player%}
  620. stop
  621. chance of 25%:
  622. drop 3 {@item3}
  623. message "&7Znaleziono 3 sztuki &8Zelaza&7!"
  624. clear {chance.%player%}
  625. stop
  626. chance of 25%:
  627. drop 3 {@item3}
  628. message "&7Znaleziono 4 sztuki &8Zelaza&7!"
  629. clear {chance.%player%}
  630. stop
  631. else:
  632. if chance of {@szansa2}%:
  633. if chance of 10%:
  634. drop {@item3}
  635. message "&7Znaleziono &8Zelazo&7!"
  636. stop
  637. if {safeore.gold} is true:
  638. player has permissions "safeore.vip.gold":
  639. if player's y-coordinate is smaller than {@yGold}:
  640. if player's tool is a diamond pickaxe of fortune:
  641. if chance of {@vipszansa3}%:
  642. if chance of 10%:
  643. chance of 50%:
  644. drop 1 {@item4}
  645. message "&7Znaleziono &6Zloto&7!"
  646. clear {chance.%player%}
  647. stop
  648. chance of 50%:
  649. drop 2 {@item4}
  650. message "&7Znaleziono &6Zloto&7!"
  651. clear {chance.%player%}
  652. stop
  653. if player's tool is a diamond pickaxe of fortune 2:
  654. if chance of {@vipszansa3}%:
  655. if chance of 10%:
  656. chance of 33%:
  657. drop 1 {@item4}
  658. message "&7Znaleziono &6Zloto&7!"
  659. clear {chance.%player%}
  660. stop
  661. chance of 33%:
  662. drop 2 {@item4}
  663. message "&7Znaleziono &6Zloto&7!"
  664. clear {chance.%player%}
  665. stop
  666. chance of 33%:
  667. drop 3 {@item4}
  668. message "&7Znaleziono &6Zloto&7!"
  669. clear {chance.%player%}
  670. stop
  671. if player's tool is a diamond pickaxe of fortune 3:
  672. if chance of {@vipszansa3}%:
  673. if chance of 10%:
  674. chance of 25%:
  675. drop 1 {@item4}
  676. message "&7Znaleziono &6Zloto&7!"
  677. clear {chance.%player%}
  678. stop
  679. chance of 25%:
  680. drop 2 {@item4}
  681. message "&7Znaleziono 2 sztuki &6Zlota&7!"
  682. clear {chance.%player%}
  683. stop
  684. chance of 25%:
  685. drop 3 {@item4}
  686. message "&7Znaleziono 3 sztuki &6Zlota&7!"
  687. clear {chance.%player%}
  688. stop
  689. chance of 25%:
  690. drop 4 {@item4}
  691. message "&7Znaleziono 4 sztuki &6Zlota&7!"
  692. clear {chance.%player%}
  693. stop
  694. else:
  695. if chance of {@vipszansa3}%:
  696. if chance of 10%:
  697. drop {@item4}
  698. message "&7Znaleziono &6Zloto&7!"
  699. stop
  700. else:
  701. if player's y-coordinate is smaller than {@yGold}:
  702. if player's tool is a diamond pickaxe of fortune:
  703. if chance of {@vipszansa}%:
  704. if chance of 10%:
  705. chance of 50%:
  706. drop 1 {@item4}
  707. message "&7Znaleziono &6Zloto&7!"
  708. clear {chance.%player%}
  709. stop
  710. chance of 50%:
  711. drop 2 {@item4}
  712. message "&7Znaleziono &6Zloto&7!"
  713. clear {chance.%player%}
  714. stop
  715. if player's tool is a diamond pickaxe of fortune:
  716. if chance of {@vipszansa}%:
  717. if chance of 10%:
  718. chance of 33%:
  719. drop 1 {@item4}
  720. message "&7Znaleziono &6Zloto&7!"
  721. clear {chance.%player%}
  722. stop
  723. chance of 33%:
  724. drop 2 {@item4}
  725. message "&7Znaleziono &6Zloto&7!"
  726. clear {chance.%player%}
  727. stop
  728. chance of 33%:
  729. drop 3 {@item4}
  730. message "&7Znaleziono &6Zloto&7!"
  731. clear {chance.%player%}
  732. stop
  733. if player's tool is a diamond pickaxe of fortune:
  734. if chance of {@vipszansa}%:
  735. if chance of 10%:
  736. chance of 25%:
  737. drop 1 {@item4}
  738. message "&7Znaleziono &6Zloto&7!"
  739. clear {chance.%player%}
  740. stop
  741. chance of 25%:
  742. drop 2 {@item4}
  743. message "&7Znaleziono 2 sztuki &6Zlota&7!"
  744. clear {chance.%player%}
  745. stop
  746. chance of 25%:
  747. drop 3 {@item4}
  748. message "&7Znaleziono 3 sztuki &6Zlota&7!"
  749. clear {chance.%player%}
  750. stop
  751. chance of 25%:
  752. drop 4 {@item4}
  753. message "&7Znaleziono 4 sztuki &6Zlota&7!"
  754. clear {chance.%player%}
  755. stop
  756. else:
  757. if chance of {@szansa3}%:
  758. if chance of 10%:
  759. drop {@item4}
  760. message "&7Znaleziono &6Zloto&7!"
  761. stop
  762.  
  763. if {safeore.redstone} is true:
  764. player has permissions "safeore.vip.redstone":
  765. if player's y-coordinate is smaller than {@yRedstone}:
  766. if player's tool is a diamond pickaxe of fortune:
  767. if chance of {@vipszansa4}%:
  768. if chance of 10%:
  769. drop {@item5}
  770. message "&7Znaleziono &cRedstone&7!"
  771. stop
  772. else:
  773. if chance of {@vipszansa4}%:
  774. if chance of 10%:
  775. drop {@item5}
  776. message "&7Znaleziono &cRedstone&7!"
  777. stop
  778. else:
  779. if {safeore.redstone} is true:
  780. if player's y-coordinate is smaller than {@yRedstone}:
  781. if player's tool is a diamond pickaxe of fortune:
  782. if chance of {@szansa4}%:
  783. if chance of 10%:
  784. drop {@item5}
  785. message "&7Znaleziono &cRedstone&7!"
  786. stop
  787. else:
  788. if chance of {@szansa4}%:
  789. if chance of 10%:
  790. drop {@item5}
  791. message "&7Znaleziono &cRedstone&7!"
  792. stop
  793.  
  794.  
  795. if {safeore.lapis} is true:
  796. player has permissions "safeore.vip.lapis":
  797. if player's y-coordinate is smaller than {@yLapis}:
  798. if player's tool is a diamond pickaxe of fortune:
  799. if chance of {@vipszansa5}%:
  800. if chance of 10%:
  801. if chance of {@vipszansa5}%:
  802. if chance of 10%:
  803. drop {@item6}
  804. message "&7Znaleziono &cLapis&7!"
  805. stop
  806. else:
  807. if chance of {@vipszansa5}%:
  808. if chance of 10%:
  809. drop {@item6}
  810. message "&7Znaleziono &cLapis&7!"
  811. stop
  812. else:
  813. if player's y-coordinate is smaller than {@yLapis}:
  814. if player's tool is a diamond pickaxe of fortune:
  815. if {safeore.lapis} is true:
  816. if chance of {@szansa5}%:
  817. if chance of 10%:
  818. drop {@item6}
  819. message "&7Znaleziono &cLapis&7!"
  820. stop
  821. else:
  822. if chance of {@szansa5}%:
  823. if chance of 10%:
  824. drop {@item6}
  825. message "&7Znaleziono &cLapis&7!"
  826. stop
  827. else:
  828. drop 1 cobblestone
  829. set {chance.%player%} to 1
  830. stop
  831.  
  832.  
  833.  
  834.  
  835. #Zmiana rud na stone
  836. on break of {@emeraldore}:
  837. if {safeore.emerald} is true:
  838. player has permissions "safeore.player":
  839. cancel event
  840. block is {@emeraldore}
  841. set block to {@set}
  842. send "{@message11} &6{@vipprocent1} {@msg4}" to player
  843. stop
  844. else:
  845. cancel event
  846. block is {@emeraldore}
  847. set block to {@set}
  848. send "{@message11} &6{@procent1} {@msg4}" to player
  849. else:
  850. stop
  851.  
  852. on break of {@ironore}:
  853. if {safeore.iron} is true:
  854. player has permissions "safeore.player":
  855. cancel event
  856. block is {@ironore}
  857. set block to {@set}
  858. send "{@message7} &6{@vipprocent2} {@msg6}" to player
  859. stop
  860. else:
  861. cancel event
  862. block is {@ironore}
  863. set block to {@set}
  864. send "{@message7} &6{@procent2} {@msg6}" to player
  865. else:
  866. stop
  867.  
  868. on break of {@goldore}:
  869. if {safeore.gold} is true:
  870. player has permissions "safeore.player":
  871. cancel event
  872. block is {@goldore}
  873. set block to {@set}
  874. send "{@message8} &6{@vipprocent3} {@msg8}" to player
  875. stop
  876. else:
  877. cancel event
  878. block is {@goldore}
  879. set block to {@set}
  880. send "{@message8} &6{@procent3} {@msg8}" to player
  881. else:
  882. stop
  883.  
  884. on break of {@diamondore}:
  885. if {safeore.diamond} is true:
  886. player has permissions "safeore.player":
  887. cancel event
  888. block is {@diamondore}
  889. set block to {@set}
  890. send "{@message5} &6{@vipprocent} {@msg2}" to player
  891. stop
  892. else:
  893. cancel event
  894. block is {@diamondore}
  895. set block to {@set}
  896. send "{@message5} &6{@procent} {@msg2}" to player
  897. else:
  898. stop
  899.  
  900. on break of {@redstoneore}:
  901. if {safeore.redstone} is true:
  902. player has permissions "safeore.player":
  903. cancel event
  904. block is {@diamondore}
  905. set block to {@set}
  906. send "{@message12} &6{@vipprocent4} {@msg10}" to player
  907. stop
  908. else:
  909. cancel event
  910. block is {@diamondore}
  911. set block to {@set}
  912. send "{@message12} &6{@procent4} {@msg10}" to player
  913. else:
  914. stop
  915.  
  916. on break of {@lapisore}:
  917. if {safeore.lapis} is true:
  918. player has permissions "safeore.player":
  919. cancel event
  920. block is {@diamondore}
  921. set block to {@set}
  922. send "{@message11} &6{@vipprocent5} {@msg12}" to player
  923. stop
  924. else:
  925. cancel event
  926. block is {@diamondore}
  927. set block to {@set}
  928. send "{@message5} &6{@procent5} {@msg2}" to player
  929. else:
  930. stop
  931.  
  932.  
  933. #---------#
  934. # Komendy #
  935. #---------#
  936.  
  937. command /stone:
  938. description: Pokazuje jakie sa szanse na wpyadniecie przedmiotów ze stone
  939. aliases: {@alias1}
  940. trigger:
  941. player has permissions "safeore.vip.command.stone":
  942. send "&8========================&6VIP&8=========================" to player
  943. send {@send1} to player
  944. send {@send2} to player
  945. if {safeore.diamond} is true:
  946. send "{@send3} &7{@vipprocent} {@send11}" to player
  947. if {safeore.emerald} is true:
  948. send "{@send4} &7{@vipprocent1} {@send11}" to player
  949. if {safeore.iron} is true:
  950. send "{@send5} &7{@vipprocent2} {@send11}" to player
  951. if {safeore.gold} is true:
  952. send "{@send6} &7{@vipprocent3} {@send11}" to player
  953. if {safeore.redstone} is true:
  954. send "{@send12} &7{@vipprocent4} {@send11}" to player
  955. if {safeore.lapis} is true:
  956. send "{@send13} &7{@vipprocent5} {@send11}" to player
  957. send "&8====================================================" to player
  958. stop
  959. else:
  960. send "&8====================================================" to player
  961. send {@send1} to player
  962. send {@send2} to player
  963. if {safeore.diamond} is true:
  964. send "{@send3} &7{@procent} {@send11}" to player
  965. if {safeore.emerald} is true:
  966. send "{@send4} &7{@procent1} {@send11}" to player
  967. if {safeore.iron} is true:
  968. send "{@send5} &7{@procent2} {@send11}" to player
  969. if {safeore.gold} is true:
  970. send "{@send6} &7{@procent3} {@send11}" to player
  971. if {safeore.redstone} is true:
  972. send "{@send12} &7{@procent4} {@send11}" to player
  973. if {safeore.lapis} is true:
  974. send "{@send13} &7{@procent5} {@send11}" to player
  975. send "&8====================================================" to player
  976. stop
  977.  
  978.  
  979. #Enable:
  980. on Skript Start:
  981. send "" to the console
  982. send "&8--------------------------------------------------------------" to the console
  983. send "&8| |" to the console
  984. send "&8| Enable &2&lSafeOre&8 |" to the console
  985. send "&8| |" to the console
  986. send "&8--------------------------------------------------------------" to the console
  987. send "&8Author: &2&lDzikoysk" to the console
  988. send "&8Version: &71.4 Release" to the console
  989. send "" to the console
  990. stop
  991.  
  992. command /safeore <text>:
  993. trigger:
  994. if player has permissions "safeore.enable.ore":
  995. if arg 1 is not set:
  996. send "&aMozesz wlaczyc/wylaczyc rudy poprzez komende &6/safeore <ruda>"
  997. send "&Dostepne rudy: &6 Iron, Gold, Diamond, Emerald, Redstone, Lapis"
  998. stop
  999. if argument 1 is "iron" or "zelazo":
  1000. if {safeore.iron} is true:
  1001. set {safeore.iron} to false
  1002. send "{@tag} &7Wylaczono wypadanie zelaza ze stone"
  1003. stop
  1004. if {safeore.iron} is false:
  1005. set {safeore.iron} to true
  1006. send "{@tag} &7Wlaczono wypadanie zelaza ze stone"
  1007. stop
  1008. if argument 1 is "gold" or "zloto":
  1009. if {safeore.gold} is true:
  1010. set {safeore.iron} to false
  1011. send "{@tag} &7Wylaczono wypadanie zlota ze stone"
  1012. stop
  1013. if {safeore.gold} is false:
  1014. set {safeore.gold} to true
  1015. send "{@tag} &7Wlaczono wypadanie zlota ze stone"
  1016. stop
  1017. if argument 1 is "diamond" or "diament" or "diamenty":
  1018. if {safeore.diamond} is true:
  1019. set {safeore.diamond} to false
  1020. send "{@tag} &7Wylaczono wypadanie diamentow ze stone"
  1021. stop
  1022. if {safeore.diamond} is false:
  1023. set {safeore.diamond} to true
  1024. send "{@tag} &7Wlaczono wypadanie diamentow ze stone"
  1025. stop
  1026. if argument 1 is "emerald" or "emeraldy" or "szmaragd" or "szmaragdy":
  1027. if {safeore.emerald} is true:
  1028. set {safeore.emerald} to false
  1029. send "{@tag} &7Wylaczono wypadanie emeraldow ze stone"
  1030. stop
  1031. if {safeore.emerald} is false:
  1032. set {safeore.emerald} to true
  1033. send "{@tag} &7Wlaczono wypadanie emeraldow ze stone"
  1034. stop
  1035. if argument 1 is "redstone":
  1036. if {safeore.redstone} is true:
  1037. set {safeore.redstone} to false
  1038. send "{@tag} &7Wylaczono wypadanie redstonea ze stone"
  1039. stop
  1040. if {safeore.redstone} is false:
  1041. set {safeore.redstone} to true
  1042. send "{@tag} &7Wlaczono wypadanie redstonea ze stone"
  1043. stop
  1044. if argument 1 is "lapis":
  1045. if {safeore.lapis} is true:
  1046. set {safeore.lapis} to false
  1047. send "{@tag} &7Wylaczono wypadanie lapisu ze stone"
  1048. stop
  1049. if {safeore.lapis} is false:
  1050. set {safeore.lapis} to true
  1051. send "{@tag} &7Wlaczono wypadanie lapisu ze stone"
  1052. stop
Advertisement
Add Comment
Please, Sign In to add comment