on script load: set {s.di} to 3.0 set {s.sz} to 2.0 set {s.zl} to 3.5 set {s.ze} to 4.0 set {s.we} to 8.0 set {w.di} to 30 set {w.sz} to 30 set {w.zl} to 30 set {w.ze} to 65 set {w.we} to 90 set {p.di} to 15 set {p.sz} to 20 set {p.zl} to 7 set {p.ze} to 5 set {p.we} to 3 set {d.vip} to 0.2 set {d.turbo} to 1.0 set {d.exp} to 2 set {przedmiot.poziom} to "obsidian" set {ilosc.przedmiotow} to 64 on first join: set {PRODrop::%player%::turbodrop::pozostalo} to 0 set {PRODrop::%player%::turbodrop::czas} to "-" set {PRODrop::%player%::staty::di} to 0 set {PRODrop::%player%::staty::sz} to 0 set {PRODrop::%player%::staty::zl} to 0 set {PRODrop::%player%::staty::ze} to 0 set {PRODrop::%player%::staty::we} to 0 set {PRODrop::%player%::staty::ob} to 0 set {PRODrop::%player%::turbodrop} to "&4nie" set {PRODrop::%player%::staty::br} to 0 set {PRODrop::%player%::aktywny::di} to "&2tak" set {PRODrop::%player%::aktywny::sz} to "&2tak" set {PRODrop::%player%::aktywny::zl} to "&2tak" set {PRODrop::%player%::aktywny::ze} to "&2tak" set {PRODrop::%player%::aktywny::we} to "&2tak" set {PRODrop::%player%::poziom} to 1 set {PRODrop::%player%::punkty} to 0 set {PRODrop::%player%::nastepnypoziom} to 500 set {PRODrop::%player%::brakuje} to 500 set {PRODrop::%player%::aktywny::br} to "&2tak" set {PRODrop::%player%::turboexp} to "&4nie" set {PRODrop::%player%::turboexp::pozostalo} to 0 set {PRODrop::%player%::turboexp::czas} to "-" on chat: set message to "%displayname of player%&7: &f%message%" on mine of obsidian: add 1 to {PRODrop::%player%::staty::ob} on mine of stone: add 1 to {PRODrop::%player%::staty::br} if {PRODrop::%player%::aktywny::br} is "&4nie": set {cobble} to true set {_drop} to "di" or "sz" or "zl" or "ze" or "we" set {_wysokosc} to {w.%{_drop}%} set {_punkty} to {p.%{_drop}%} set {_player} to player if {PRODrop::%player%::turboexp} is "&4nie": give xp of {d.exp} to player else: give xp of {d.exp}*2 to player add 1 to {PRODrop::%player%::wykopany::stone} if {PRODrop::%player%::turbodrop} is "&2tak": set {_turbo} to {d.turbo} if player has permission "vip": set {_vip} to {d.vip} if {_drop} is "di": set {_item} to "diamond" set {_przedmiot} to "&3diament" if {_drop} is "sz": set {_item} to "emerald" set {_przedmiot} to "&2szmaragd" if {_drop} is "zl": set {_item} to "14" set {_przedmiot} to "&6zloto" if {_drop} is "ze": set {_item} to "15" set {_przedmiot} to "&8zelazo" if {_drop} is "we": set {_item} to "coal" set {_przedmiot} to "&0wegiel" if y-coordinates of event-block < {_wysokosc}+1: if {PRODrop::%{_drop}%} is true: if {PRODrop::%player%::aktywny::%{_drop}%} is "&2tak": set {_szansa} to {s.%{_drop}%}+{_vip} if chance of {_szansa}*{_turbo}%: if player is holding any pickaxe of fortune 3: set {_liczba} to 1 or 2 or 3 or 4 set {_points} to {_liczba}*{_punkty} add {_points} to {PRODrop::%player%::punkty} remove {_points} from {PRODrop::%player%::brakuje} send "&7Znalazles: %{_przedmiot}%&7 (%{_liczba}% szt.)! +%{_points}% pkt." add {_liczba} to {PRODrop::%player%::staty::%{_drop}%} give xp of {d.exp}*{_liczba} to player give {_item} of {_liczba} to player else if player is holding any pickaxe of fortune 2: set {_liczba} to "1" or "2" or "3" set {_points} to {_liczba}*{_punkty} add {_points} to {PRODrop::%player%::punkty} remove {_points} from {PRODrop::%player%::brakuje} send "&7Znalazles: %{_przedmiot}%&7 (%{_liczba}% szt.)! +%{_points}% pkt." add {_liczba} to {PRODrop::%player%::staty::%{_drop}%} give xp of {d.exp}*{_liczba} to player give {_item} of {_liczba} to player else if player is holding any pickaxe of fortune 1: set {_liczba} to "1" or "2" set {_points} to {_liczba}*{_punkty} add {_points} to {PRODrop::%player%::punkty} remove {_points} from {PRODrop::%player%::brakuje} send "&7Znalazles: %{_przedmiot}%&7 (%{_liczba}% szt.)! +%{_points}% pkt." add {_liczba} to {PRODrop::%player%::staty::%{_drop}%} give xp of {d.exp}*{_liczba} to player give {_item} of {_liczba} to player ese if player is holding any pickaxe: add 1 to {PRODrop::%player%::staty::%{_drop}%} give xp of {d.exp}*{_liczba} to player give {_item} of {_liczba} to player add {_punkty} to {PRODrop::%player%::punkty} remove {_punkty} from {PRODrop::%player%::brakuje} send "&7Znalazles: %{_przedmiot}%&7 (1 szt.)! +%{_punkty}% pkt." stop if {PRODrop::%player%::poziom} < 100: if {PRODrop::%player%::punkty} >= {PRODrop::%player%::nastepnypoziom}: add 1 to {PRODrop::%player%::poziom} set {_nast} to {PRODrop::%player%::nastepnypoziom} set {PRODrop::%player%::nastepnypoziom} to {PRODrop::%player%::nastepnypoziom}*{PRODrop::%player%::poziom} set {PRODrop::%player%::brakuje} to {_nast}*{PRODrop::%player%::poziom}-{PRODrop::%player%::punkty} send "&7Osiagnales nowy poziom: &6%{PRODrop::%player%::poziom}%&7! Gratulacje!" if {PRODrop::%player%::poziom} is 10 or 20 or 30 or 40 pr 50 or 60 or 70 or 80 or 90 or 100: broadcast "&7Gracz: &6%player% &7awansowal na: &6%{PRODrop::%player%::poziom}% &7poziom kopania! Otrzymal za to: &6%{przedmiot.poziom}%&7 w ilosci: &6%{ilosc.przedmiotow}%&7!" give {przedmiot.poziom} of {ilosc.przedmiotow} to player on item spawn of cobblestone: if {cobble} is true: cancel event set {cobble} to false command /drop [] []: trigger: if arg 1 is not set: open chest with 3 rows named "MENU" to player wait a tick format slot 10 of player with 1 of stone named "&6DROP Z KAMIENIA" to run [execute player command "drop drop"] format slot 12 of player with 1 of paper named "&6STATYSTYKI" to run [execute player command "drop staty"] format slot 14 of player with 1 of 384 named "&6USLUGI" with lore "&6TURBODROP:|| &7Aktywny: %{PRODrop::%player%::turbodrop}%|| &7Do godziny: &6%{PRODrop::%player%::turbodrop::czas}%|| &7Pozostalo: &6%{PRODrop::%player%::turbodrop::pozostalo}% minut||&6TURBOEXP:|| &7Aktywny: %{PRODrop::%player%::turboexp}%|| &7Do godziny: &6%{PRODrop::%player%::turboexp::czas}%|| &7Pozostalo: &6%{PRODrop::%player%::turboexp::pozostalo}% minut" to close format slot 16 of player with 1 of 278 named "&6POZIOM KOPANIA" with lore "&7Poziom: &6%{PRODrop::%player%::poziom}%||&7Punktow: &6%{PRODrop::%player%::punkty}%||&7Nastepny poziom: &6%{PRODrop::%player%::nastepnypoziom}%||&7Brakuje: &6%{PRODrop::%player%::brakuje}%" to run [execute player command "drop poziom"] stop if arg 1 is "drop": if {PRODrop::%player%::turbodrop} is "&2tak": set {_turbo} to {d.turbo} if player has permission "vip": set {_vip} to {d.vip} open chest with 3 rows to player wait 2 tick if {PRODrop::di} is true: format slot 2 of player with 1 of diamond named "&3DIAMENT" with lore "&7Szansa: &6%{s.di}/2%%% &7(&6+%{_turbo}+{_vip}%%%&7)||&7Wysokosc: &6<%{w.di}%||&7Szczescie: &2tak||&7Wlaczony: %{PRODrop::%player%::aktywny::di}%" to run [execute player command "drop wylacz di"] else: format slot 2 of player with 1 of diamond named "&3DIAMENT" with lore "&7Szansa: &6%{s.di}/2%%% &7(&6+%{_turbo}+{_vip}%%%&7)||&7Wysokosc: &6<%{w.di}%||&7Szczescie: &2tak||&7Wlaczony: %{PRODrop::%player%::aktywny::di}%||&cDROP WYLACZONY PRZEZ ADMINISTRATORA" to run [execute player command "drop wylacz di"] if {PRODrop::sz} is true: format slot 3 of player with 1 of emerald named "&2SZMARAGD" with lore "&7Szansa: &6%{s.sz}/2%%% &7(&6+%{_turbo}+{_vip}%%%&7)||&7Wysokosc: &6<%{w.sz}%||&7Szczescie: &2tak||&7Wlaczony: %{PRODrop::%player%::aktywny::sz}%" to run [execute player command "drop wylacz sz"] else: format slot 3 of player with 1 of emerald named "&2SZMARAGD" with lore "&7Szansa: &6%{s.sz}/2%%% &7(&6+%{_turbo}+{_vip}%%%&7)||&7Wysokosc: &6<%{w.sz}%||&7Szczescie: &2tak||&7Wlaczony: %{PRODrop::%player%::aktywny::sz}%||&cDROP WYLACZONY PRZEZ ADMINISTRATORA" to run [execute player command "drop wylacz sz"] if {PRODrop::zl} is true: format slot 4 of player with 1 of 14 named "&6RUDA ZLOTA" with lore "&7Szansa: &6%{s.zl}/2%%% &7(&6+%{_turbo}+{_vip}%%%&7)||&7Wysokosc: &6<%{w.zl}%||&7Szczescie: &2tak||&7Wlaczony: %{PRODrop::%player%::aktywny::zl}%" to run [execute player command "drop wylacz zl"] else: format slot 4 of player with 1 of 14 named "&6RUDA ZLOTA" with lore "&7Szansa: &6%{s.zl}/2%%% &7(&6+%{_turbo}+{_vip}%%%&7)||&7Wysokosc: &6<%{w.zl}%||&7Szczescie: &2tak||&7Wlaczony: %{PRODrop::%player%::aktywny::zl}%||&cDROP WYLACZONY PRZEZ ADMINISTRATORA" to run [execute player command "drop wylacz zl"] if {PRODrop::ze} is true: format slot 5 of player with 1 of 15 named "&8RUDA ZELAZA" with lore "&7Szansa: &6%{s.ze}/2%%% &7(&6+%{_turbo}+{_vip}%%%&7)||&7Wysokosc: &6<%{w.ze}%||&7Szczescie: &2tak||&7Wlaczony: %{PRODrop::%player%::aktywny::ze}%" to run [execute player command "drop wylacz ze"] else: format slot 5 of player with 1 of 15 named "&8RUDA ZELAZA" with lore "&7Szansa: &6%{s.ze}/2%%% &7(&6+%{_turbo}+{_vip}%%%&7)||&7Wysokosc: &6<%{w.ze}%||&7Szczescie: &2tak||&7Wlaczony: %{PRODrop::%player%::aktywny::ze}%||&cDROP WYLACZONY PRZEZ ADMINISTRATORA" to run [execute player command "drop wylacz ze"] if {PRODrop::we} is true: format slot 6 of player with 1 of 263 named "&0WEGIEL" with lore "&7Szansa: &6%{s.we}/2%%% &7(&6+%{_turbo}+{_vip}%%%&7)||&7Wysokosc: &6<%{w.we}%||&7Szczescie: &2tak||&7Wlaczony: %{PRODrop::%player%::aktywny::we}%" to run [execute player command "drop wylacz we"] else: format slot 6 of player with 1 of 263 named "&0WEGIEL" with lore "&7Szansa: &6%{s.we}/2%%%||&7Wysokosc: &6<%{w.we}%||&7Szczescie: &2tak||&7Wlaczony: %{PRODrop::%player%::aktywny::we}%||&cDROP WYLACZONY PRZEZ ADMINISTRATORA" to run [execute player command "drop wyla we"] format slot 22 of player with 1 of cobblestone named "&7BRUK" with lore "&7Wlaczony: %{PRODrop::%player%::aktywny::br}%" to run [execute player command "drop wylacz br"] format slot 26 of player with 1 of red wool named "&4COFNIJ" to run [execute player command "drop"] stop if arg 1 is "wylacz": if arg 2 is set: if {PRODrop::%player%::aktywny::%arg 2%} is "&2tak": set {PRODrop::%player%::aktywny::%arg 2%} to "&4nie" execute player command "drop drop" else: set {PRODrop::%player%::aktywny::%arg 2%} to "&2tak" execute player command "drop drop" if arg 1 is "staty": open chest with 3 rows named "&6STATYSTYKI" to player wait 1 tick format slot 10 of player with 1 of diamond named "&6DIAMENT" with lore "&7Znalazles: &6%{PRODrop::%player%::staty::di}%" to close format slot 11 of player with 1 of emerald named "&6SZMARAGD" with lore "&7Znalazles: &6%{PRODrop::%player%::staty::sz}%" to close format slot 12 of player with 1 of gold ore named "&6RUDA ZLOTA" with lore "&7Znalazles: &6%{PRODrop::%player%::staty::zl}%" to close format slot 13 of player with 1 of iron ore named "&6RUDA ZELAZA" with lore "&7Znalazles: &6%{PRODrop::%player%::staty::ze}%" to close format slot 14 of player with 1 of 263 named "&6WEGIEL" with lore "&7Znalazles: &6%{PRODrop::%player%::staty::we}%" to close format slot 15 of player with 1 of cobblestone named "&6BRUK" with lore "&7Wykopales: &6%{PRODrop::%player%::staty::br}%" to close format slot 16 of player with 1 of obsidian named "&6OBSYDIAN" with lore "&7Wykopales: &6%{PRODrop::%player%::staty::ob}%" to close format slot 26 of player with 1 of red wool named "&4COFNIJ" to run [execute player command "drop"] if arg 1 is "resetujpunkty" or "resetujpkt": if arg 2 is player: set {PRODrop::%player%::poziom} to 1 set {PRODrop::%player%::punkty} to 0 set {PRODrop::%player%::nastepnypoziom} to 500 set {PRODrop::%player%::brakuje} to 500 stop if arg 1 is "poziom" or "lvl": send "&7Poziom: &6%{PRODrop::%player%::poziom}%" send "&7Punktow: &6%{PRODrop::%player%::punkty}%" send "&7Nastepny poziom: &6%{PRODrop::%player%::nastepnypoziom}%" send "&7Brakuje: &6%{PRODrop::%player%::brakuje}%" stop command /turbo [] [] []: permission: turbo.drop trigger: if arg 1 is "drop": if arg 2 is player: set {_pl} to arg 2 set {_number} to arg 3 if {_number} <= 60: if arg 3 is set: if {PRODrop::%arg 2%::turbodrop} is "&4nie": set {PRODrop::%arg 2%::turbodrop} to "&2tak" set {PRODrop::%arg 2%::turbodrop::czas} to now set {PRODrop::%arg 2%::turbodrop::pozostalo} to arg 3 broadcast "&7Gracz &2%arg 2% &7zakupil usluge: &2TURBODROP (%{_number}% minut)&f!" loop {_number} times: add 1 minutes to {PRODrop::%arg 2%::turbodrop::czas} loop {_number} times: wait 1 minutes remove 1 from {PRODrop::%arg 2%::turbodrop::pozostalo} if {PRODrop::%arg 2%::turbodrop::pozostalo} = 0: broadcast "&7Usluga: &2TURBODROP &7gracza: &c%arg 2% &7zakonczyla sie!" set {PRODrop::%arg 2%::turbodrop} to "&4nie" set {PRODrop::%arg 2%::turbodrop::czas} to "-" set {PRODrop::%arg 2%::turbodrop::pozostalo} to 0 else: send "&4BLAD: &cMaksymalnie czas turbodropu to: &460 minut&c!" else: send "&4BLAD: &cTen gracz ma juz aktywna ta usluge! &4(TURBODROP)" else: send "&4BLAD: &cMusisz podac czas w minutach! &4(Maksymalnie: 60 minut)" if arg 2 is "all" or "wszyscy": loop all players: set {_number} to arg 3 if {_number} <= 60: if arg 3 is set: if {PRODrop::%loop-player%::turbodrop} is "&4nie": set {PRODrop::%loop-player%::turbodrop} to "&2tak" set {PRODrop::%loop-player%::turbodrop::czas} to now set {PRODrop::%loop-player%::turbodrop::pozostalo} to arg 3 broadcast "&7Usluga: &2TURBODROP &7zostala uaktywniona dla wszystkich graczy obecnych wlasnie na serwerze! (%{_number}% minut)&f!" loop {_number} times: add 1 minutes to {PRODrop::%loop-player%::turbodrop::czas} loop {_number} times: wait 1 minutes remove 1 from {PRODrop::%loop-player%::turbodrop::pozostalo} if {PRODrop::%loop-player%::turbodrop::pozostalo} = 0: broadcast "&7Usluga: &2TURBODROP &7gracza: &c%arg 2% &7zakonczyla sie!" set {PRODrop::%loop-player%::turbodrop} to "&4nie" set {PRODrop::%loop-player%::turbodrop::czas} to "-" set {PRODrop::%loop-player%::turbodrop::pozostalo} to 0 else: send "&4BLAD: &cMaksymalnie czas turbodropu to: &460 minut&c!" else: send "&4BLAD: &cTen gracz ma juz aktywna ta usluge! &4(TURBODROP)" else: send "&4BLAD: &cMusisz podac czas w minutach! &4(Maksymalnie: 60 minut)" if arg 1 is "exp": if arg 2 is player: set {_pl} to arg 2 set {_number} to arg 3 if {_number} <= 60: if arg 3 is set: if {PRODrop::%arg 2%::turboexp} is "&4nie": set {PRODrop::%arg 2%::turboexp} to "&2tak" set {PRODrop::%arg 2%::turboexp::czas} to now set {PRODrop::%arg 2%::turboexp::pozostalo} to arg 3 broadcast "&7Gracz &2%arg 2% &7zakupil usluge: &2TURBOEXP (%{_number}% minut)&f!" loop {_number} times: add 1 minutes to {PRODrop::%arg 2%::turboexp::czas} loop {_number} times: wait 1 minutes remove 1 from {PRODrop::%arg 2%::turboexp::pozostalo} if {PRODrop::%arg 2%::turbodrop::pozostalo} = 0: broadcast "&7Usluga: &2TURBOEXP &7gracza: &c%arg 2% &7zakonczyla sie!" set {PRODrop::%arg 2%::turboexp} to "&4nie" set {PRODrop::%arg 2%::turboexp::czas} to "-" set {PRODrop::%arg 2%::turboexp::pozostalo} to 0 else: send "&4BLAD: &cMaksymalnie czas turboexpa to: &460 minut&c!" else: send "&4BLAD: &cTen gracz ma juz aktywna ta usluge! &4(TURBOEXP)" else: send "&4BLAD: &cMusisz podac czas w minutach! &4(Maksymalnie: 60 minut)" if arg 2 is "all" or "wszyscy": loop all players: set {_number} to arg 3 if {_number} <= 60: if arg 3 is set: if {PRODrop::%loop-player%::turboexp} is "&4nie": set {PRODrop::%loop-player%::turboexp} to "&2tak" set {PRODrop::%loop-player%::turboexp::czas} to now set {PRODrop::%loop-player%::turboexp::pozostalo} to arg 3 broadcast "&7Usluga: &2TURBOEXP &7zostala uaktywniona dla wszystkich graczy obecnych wlasnie na serwerze! (%{_number}% minut)&f!" loop {_number} times: add 1 minutes to {PRODrop::%loop-player%::turboexp::czas} loop {_number} times: wait 1 minutes remove 1 from {PRODrop::%loop-player%::turboexp::pozostalo} if {PRODrop::%loop-player%::turboexp::pozostalo} = 0: broadcast "&7Usluga: &2TURBOEXP &7gracza: &c%arg 2% &7zakonczyla sie!" set {PRODrop::%loop-player%::turboexp} to "&4nie" set {PRODrop::%loop-player%::turboexp::czas} to "-" set {PRODrop::%loop-player%::turboexp::pozostalo} to 0 else: send "&4BLAD: &cMaksymalnie czas turboexpa to: &460 minut&c!" else: stop else: send "&4BLAD: &cMusisz podac czas w minutach! &4(Maksymalnie: 60 minut)" if arg 1 is "dropusun": if arg 2 is player: if {PRODrop::%arg 2%::turbodrop} is "&2tak": set {PRODrop::%arg 2%::turbodrop} to "&4nie" set {PRODrop::%arg 2%::turbodrop::czas} to "-" set {PRODrop::%arg 2%::turbodrop::pozostalo} to 0 send "&7Usluga: &2TURBODROP &7zostala dezaktywowana graczowi: &2%arg 2%&7!" command /wylaczdrop []: trigger: if arg 1 is not set: send "&6Pierwsze 2 litery od nazwy polskiej, np: &7/wylaczdrop di - diament" stop if arg 1 is "di" or "sz" or "ze" or "zl" or "we": if {PRODrop::%arg 1%} is true: set {PRODrop::%arg 1%} to false else if {PRODrop::%arg 1%} is false: set {PRODrop::%arg 1%} to true else: set {PRODrop::%arg 1%} to true command /kolornick [] []: trigger: if arg 1 is set: if arg 2 is set: if arg 2 is "gracz": set display name of player to "&8[&9%{PRODrop::%arg 1%::poziom}%&8] &7%arg 1%" stop if arg 2 is "vip": set display name of player to "&8[&9%{PRODrop::%arg 1%::poziom}%&8] &6%arg 1%" stop