variables: #-----------------------WALUTA----------------------- {kasa::%player%} = 0 #-----------------------TURBODROP----------------------- {turbodrop::%player%} = "false" {turbodrop::serwer} = "false" options: #-----------------------CONFIG----------------------- #szanse na drop waluta: {kasa::%player%} szansa_kwota1: 10% szansa_kwota2: 5% szansa_kwota3: 3% szansa_kwota4: 1% szansa_kwota5: 0.5% #wyskakujący Tekst przy dropie droptitle: &cGratulacje! dropsubtitle: &7Wydropiłeś #wartosc kwot w PLN kwota1: 1 kwota2: 2 kwota3: 3 kwota4: 4 kwota5: 5 #Kolory kwot np. 3 PLN kolorkwotadrop: &c #dzwiek przy wydropieniu pieniedzy dzwiek: random.levelup #komenda na pokazywanie kasy config komenda: /kasa usage: &7Poprawne użycie tej komendy to&c cooldown: 2 kolorczas_msg: &c jednostkaczasu_msg: sekundy jednostka_czasu: seconds # seconds - sekund, #minutes - minut, #hours - godzin, #days - dni cooldown-message1: &7Odczekaj cooldown-message2: &7zanim zrobisz to ponownie #turbodrop config mnoznik:* 1.5 turbodrop_on: &aTurbodrop został włączony przez turbodrop_off: &cTurbodrop został wyłączony turbodrop_czas: 20 #liczba jednostki np. 20 (sekund) turbodrop_jednostka: seconds #jednostka funkcjonalna td_jednostka_msg: sekund #widzialna jednostka na czacie on break of stone: if player is "%player%": if {turbodrop::serwer} and {turbodrop::%player%} = "false": chance of {@szansa_kwota1}: send title "{@droptitle}" with subtitle "{@dropsubtitle} {@kolorkwotadrop}{@kwota1} PLN" to player play sound "{@dzwiek}" to player add {@kwota1} to {@waluta} chance of {@szansa_kwota2}: send title "{@droptitle}" with subtitle "{@dropsubtitle} {@kolorkwotadrop}{@kwota2} PLN" to player play sound "{@dzwiek}" to player add {@kwota2} to {@waluta} chance of {@szansa_kwota3}: send title "{@droptitle}" with subtitle "{@dropsubtitle} {@kolorkwotadrop}{@kwota3} PLN" to player play sound "{@dzwiek}" to player add {@kwota3} to {@waluta} chance of {@szansa_kwota4}: send title "{@droptitle}" with subtitle "{@dropsubtitle} {@kolorkwotadrop}{@kwota4} PLN" to player play sound "{@dzwiek}" to player add {@kwota4} to {@waluta} chance of {@szansa_kwota5}: send title "{@droptitle}" with subtitle "{@dropsubtitle} {@kolorkwotadrop}{@kwota5} PLN" to player play sound "{@dzwiek}" to player add {@kwota5} to {@waluta} if {turbodrop::serwer} or {turbodrop::%player%} = "true": chance of {@szansa_kwota1} {@mnoznik}: send title "{@droptitle}" with subtitle "{@dropsubtitle} {@kolorkwotadrop}{@kwota1} PLN" to player play sound "{@dzwiek}" to player add {@kwota1} {@mnoznik} to {@waluta} chance of {@szansa_kwota2} {@mnoznik}: send title "{@droptitle}" with subtitle "{@dropsubtitle} {@kolorkwotadrop}{@kwota2} PLN" to player play sound "{@dzwiek}" to player add {@kwota2} {@mnoznik} to {@waluta} chance of {@szansa_kwota3} {@mnoznik}: send title "{@droptitle}" with subtitle "{@dropsubtitle} {@kolorkwotadrop}{@kwota3} PLN" to player play sound "{@dzwiek}" to player add {@kwota3} {@mnoznik} to {@waluta} chance of {@szansa_kwota4} {@mnoznik}: send title "{@droptitle}" with subtitle "{@dropsubtitle} {@kolorkwotadrop}{@kwota4} PLN" to player play sound "{@dzwiek}" to player add {@kwota4} {@mnoznik} to {@waluta} chance of {@szansa_kwota5} {@mnoznik}: send title "{@droptitle}" with subtitle "{@dropsubtitle} {@kolorkwotadrop}{@kwota5} PLN" to player play sound "{@dzwiek}" to player add {@kwota5} {@mnoznik} to {@waluta} command {@komenda} []: cooldown: {@cooldown} {@jednostka_czasu} cooldown message: {@cooldown-message1} {@kolorczas_msg}{@cooldown} {@jednostkaczasu_msg} {@cooldown-message2} usage: {@usage} trigger: if arg is not set: send "&aTen gracz posiada kwotę &7>> &c%{kasa::%player%}% PLN" if arg is offline player: send "&aTen gracz posiada kwotę &7>> &c%{kasa::%arg%}% PLN" command /turbodrop [] [] []: permission: td.gracz usage: {@usage} /turbodrop [] [] | [] [] trigger: if player has permission "td.gracz": if arg 1 is "on" or "wlacz": if arg 2 is "serwer" or "s": set {turbodrop::serwer} to "true" broadcast "{@turbodrop_on} %player% na czas &c{@turbodrop_czas} {@td_jednostka_msg}" wait {@turbodrop_czas} {@turbodrop_jednostka} set {turbodrop::serwer} to "false" if arg 2 is "simple": if arg 3 is offline player: set {turbodrop::%arg-3%} to "true" send "{@turbodrop_on} %player% dla gracza %arg-3% na czas &c{@turbodrop_czas} {@td_jednostka_msg}" to player and arg-3 wait {@turbodrop_czas} {@turbodrop_jednostka} set {turbodrop::%arg-3%} to "false" send "{@turbodrop_off}" to player and arg-3 if arg 1 is "off" or "wylacz": if arg 2 is "serwer" or "s": set {turbodrop::serwer} to "false" broadcast "{@turbodrop_off} przez %player%" if arg 2 is "simple": if arg 3 is offline player: set {turbodrop::%arg-3%} to "false" send "{@turbodrop_off} przez %player% dla gracza %arg-3%" to player and arg-3 if arg 1 is "status": if {turbodrop::serwer} = "false": send "&aStatus &2TurboDropu &adla serwera = &c%{turbodrop::serwer}%" to player if {turbodrop::serwer} = "true": send "&aStatus &2TurboDropu &adla serwera = &a%{turbodrop::serwer}%" to player if {turbodrop::%player%} = "false": send "&aStatus &2TurboDropu &adla osoby = &c%{turbodrop::%player%}%" to player if {turbodrop::%player%} = "true": send "&aStatus &2TurboDropu &adla osoby = &a%{turbodrop::%player%}%" to player if arg 1 is not set: send "&cDLA SERWERA > {@usage} &a/turbodrop on/off serwer" to player send "&cDLA OSOBY > {@usage} &a/turbodrop on/off simple []" to player