format slot 5 of player with bucket named "&dDepo" to close then run [execute player command "ciftlik depo"] if arg-1 is "market": if {oyuncuinek::%player%} is not set: set {_inek} to 0 else: set {_inek} to {oyuncuinek::%player%} wait 3 ticks open chest with 1 rows named "&6Çiftlik - Market" to player format slot 4 of player with leather named "&6İnek satın al" with lore "&dDakikada 1 litre süt üretir.||&fSahip olunan inek sayısı: %{_inek}%" to close then run [execute player command "ciftlik inekal"] if arg-1 is "inekal": if player's balance is greater than or equal to 5000: send "&dBaşarıyla bir adet inek satın aldın!" add 1 to {oyuncuinek::%player%} else: send "&4Hata! &cBir inek almak için 5000ın olmalı!" if arg-1 is "depo": if {oyuncuinek::%player%} is not set: set {_inek} to 0 else: set {_inek} to {oyuncuinek::%player%} if {oyuncusut::%player%} is not set: set {_sut} to 0 else: set {_sut} to {oyuncusut::%player%} wait 3 ticks open chest with 1 rows named "&6Çiftlik - Depo" to player format slot 3 of player with leather named "&eSahip olduğun inekler" with lore "&d%{_inek}% tane" to close then run [execute player command "ciftlik market"] format slot 5 of player with milk named "&eBiriken süt" with lore "&d%{_sut}% Litre|| ||&fSatmak için tıkla!" to close then run [execute player command "ciftlik sutsat"] if arg-1 is "sutsat": if {oyuncusut::%player%} > 0: set {_kazanc} to 1000 * {oyuncusut::%player%} send "&d%{oyuncusut::%player%}% litre süt satarak toplam %{_kazanc}%$ kazandın!" execute console command "eco give %player% %{_kazanc}%" else: send "&4Hata! &cHiç sütün kalmamış!" every minute: loop all players: add {oyuncuinek::%loop-player%} to {oyuncusut::%loop-player%}"]
Attachments
Last edited: