Çözüldü Skript plugininde bir komuta sınır getirme.

  • Konuyu Başlatan Konuyu Başlatan BlackKpoT
  • Başlangıç tarihi Başlangıç tarihi
  • Görüntüleme 3.212
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

BlackKpoT

İlim Sahibi Olmak İsteyen
Hosting Görevlisi
Katılım
3 Şubat 2015
Mesajlar
1.059
Elmaslar
540
Puan
16.750
Konum
Türkiye
Minecraft
BlackKpoT

Discord:

BlackKpoT#3087

Merhabalar MC-TR forumu kullanıcıları.

Şöyle bir ricam var örneğin /inekal diye bir komutumuz var skript ile oluşturulmuş.Onu max 20 kere kullanabilsinler. Öyle bir şey mümkün mü @LeBlach isimli üyenin Sanal Çiftlik skriptini kullanıyorum. İnek alma sınırı getirmek istiyorum. Nasıl yapacağız.Teşekkürler.

Konu: Burası
 
Son düzenleme:
Skripti atabilir misiniz ?
 
JavaScript:
command /xd:
    if {sınır::%player%} isn't 20:
        add 1 to {sınır::%player%}

Skriptine bunu ekle
 
JavaScript:
            if arg-1 is "inekal":
                if {ciftlik.%player%} is true:
                    if {max::%player%} isn't 20:
                        if player's balance is greater than 69999999:
                            if {inek.%player%} is smaller than 10000:
                                remove 70000000 from player's balance
                                add 1 to {inek.%player%}
                                send "&6Sanal Çiftlik &8» &aInek Başarıyla Alindi !" to player
                        else:
                            send "&6Sanal Çiftlik &8» &aSatin Almak Icin Yeterli Paraniz Bulunmamakta !" to player
                    else:
                        send "&6Zaten 20 Tane Hayvanın Var"
 
JavaScript:
            if arg-1 is "inekal":
                if {ciftlik.%player%} is true:
                    if {max::%player%} isn't 20:
                        if player's balance is greater than 69999999:
                            if {inek.%player%} is smaller than 10000:
                                remove 70000000 from player's balance
                                add 1 to {inek.%player%}
                                send "&6Sanal Çiftlik &8» &aInek Başarıyla Alindi !" to player
                        else:
                            send "&6Sanal Çiftlik &8» &aSatin Almak Icin Yeterli Paraniz Bulunmamakta !" to player
                    else:
                        send "&6Zaten 20 Tane Hayvanın Var"
Parayla bir işim yok dostum birinin bakiyesinden 70m silmek istemiyorum :D Ya da çalışır mı?
 
Olmadı.
 
Bunu denermisin?
Kod:
variables:
    {ciftlik.%player%} = false
    {tavuk.%player%} = 0
    {koyun.%player%} = 0
    {inek.%player%} = 0
    {yumurta.%player%} = 0
    {sut.%player%} = 0
    {limit.%player%} = 20
    
  
  
command /çiftlik [<text>]:
    trigger:
        if arg-1 is not set:
            if {ciftlik.%player%} is false:
                wait 3 tick
                open chest with 1 row named "&6Çiftlik &8» &aSatin Al" to player
                format slot 4 of player with book named "&6Sanal Çiftlik" with lore "&aSatin Almak Icin Tikla &cFiyat: &a1 Milyon TL" to close then run [execute player command "/çiftlik satinal"]
            if {ciftlik.%player%} is true:
                wait 3 tick
                open chest with 3 row named "&6Çiftlik &8» &aAna Menu" to player
                format slot 10 of player with 383 named "&6Hayvan Alma Menusu" with lore "&aBuradan Hayvan Satin Alabilirsin" to close then run [execute player command "/çiftlik hayvanal"]
                format slot 13 of player with book named "&6Çiftlik Bilgileri" with lore "&aBuradan Çiftlik Bilgilerine Bakabilirsin" to close then run [execute player command "/çiftlik bilgi"]
                format slot 16 of player with milk bucket named "&6Satma Menusu" with lore "&aBuradan Sut Ve Yumurtalarini Satabilirsin" to close then run [execute player command "/çiftlik sat"]
        if arg-1 is set:
            if arg-1 is "satinal":
                if {ciftlik.%player%} is false:
                    if player's balance is greater than 999999:
                        remove 1000000 from player's balance
                        set {ciftlik.%player%} to true
                        send "&6Sanal Çiftlik &8» &aÇiftlik Başarıyla Alindi !" to player
                    else:
                        send "&6Sanal Çiftlik &8» &aSatin Almak Icin Yeterli Paraniz Bulunmamakta !" to player
            if arg-1 is "hayvanal":
                if {ciftlik.%player%} is true:
                    wait 3 tick
                    open chest with 1 row named "&6Çiftlik &8» &aHayvan Alma" to player
                    format slot 0 of player with red glass named "&6Ana Menu" with lore "&aAna Menuye Donmek Icin Tikla" to close then run [execute player command "çiftlik"]
                    format slot 2 of player with 383:93 named "&6Tavuk" with lore "&aFiyat: &c10M &aSaatlik Uretim: &c5k" to run [execute player command "çiftlik tavukal"]
                    format slot 4 of player with 383:91 named "&6Koyun" with lore "&aFiyat: &c50M &aSaatlik Uretim: &c50k" to run [execute player command "çiftlik koyunal"]
                    format slot 6 of player with 383:92 named "&6Inek" with lore "&aFiyat: &c70 Milyon &aSaatlik Uretim: &c250k" to run [execute player command "çiftlik inekal"]
                    format slot 8 of player with red glass named "&6Ana Menu" with lore "&aAna Menuye Donmek Icin Tikla" to close then run [execute player command "çiftlik"]
            if arg-1 is "tavukal":
                if {ciftlik.%player%} is true:
                    if {limit.%player%} is bigger than or equal to {limit.%player%}:
                        if player's balance is greater than 9999999:
                            if {tavuk.%player%} is smaller than 10000:
                                remove 10000000 from player's balance
                                add 1 to {tavuk.%player%}
                                send "&6Sanal Çiftlik &8» &aTavuk Başarıyla Alindi !" to player
                        else:
                            send "&6Sanal Çiftlik &8» &aSatin Almak Icin Yeterli Paraniz Bulunmamakta !" to player
                    else:
                        send "&cLimit &8» &eSatın alma limitine ulaştın." to player
            if arg-1 is "koyunal":
                if {ciftlik.%player%} is true:
                    if {limit.%player%} is bigger than or equal to {limit.%player%}:
                        if player's balance is greater than 49999999:
                            if {koyun.%player%} is smaller than 10000:
                                remove 50000000 from player's balance
                                add 1 to {koyun.%player%}
                                send "&6Sanal Çiftlik &8» &aKoyun Başarıyla Alindi !" to player
                        else:
                            send "&6Sanal Çiftlik &8» &aSatin Almak Icin Yeterli Paraniz Bulunmamakta !" to player
                    else:
                        send "&cLimit &8» &eSatın alma limitine ulaştın." to player
            if arg-1 is "inekal":
                if {ciftlik.%player%} is true:
                    if {limit.%player%} is bigger than or equal to {limit.%player%}:
                        if player's balance is greater than 69999999:
                            if {inek.%player%} is smaller than 10000:
                                remove 70000000 from player's balance
                                add 1 to {inek.%player%}
                                send "&6Sanal Çiftlik &8» &aInek Başarıyla Alindi !" to player
                        else:
                            send "&6Sanal Çiftlik &8» &aSatin Almak Icin Yeterli Paraniz Bulunmamakta !" to player
                    else:
                        send "&cLimit &8» &eSatın alma limitine ulaştın." to player
            if arg-1 is "bilgi":
                if {ciftlik.%player%} is true:
                    wait 3 tick
                    open chest with 1 row named "&6Çiftlik &8» &aÇiftlik Bilgi" to player
                    format slot 0 of player with 383:93 named "&6Tavuk" with lore "&a%{tavuk.%player%}% Adet" to close
                    format slot 1 of player with red glass named "&6Ana Menu" with lore "&aAna Menuye Donmek Icin Tikla" to close then run [execute player command "çiftlik"]
                    format slot 2 of player with 383:91 named "&6Koyun" with lore "&a%{koyun.%player%}% Adet" to close
                    format slot 3 of player with red glass named "&6Ana Menu" with lore "&aAna Menuye Donmek Icin Tikla" to close then run [execute player command "çiftlik"]
                    format slot 4 of player with 383:92 named "&6Inek" with lore "&a%{inek.%player%}% Adet" to close
                    format slot 5 of player with red glass named "&6Ana Menu" with lore "&aAna Menuye Donmek Icin Tikla" to close then run [execute player command "çiftlik"]     
                    format slot 6 of player with egg named "&6Yumurta" with lore "&a%{yumurta.%player%}% Adet" to close
                    format slot 7 of player with red glass named "&6Ana Menu" with lore "&aAna Menuye Donmek Icin Tikla" to close then run [execute player command "çiftlik"]
                    format slot 8 of player with milk bucket named "&6Süt" with lore "&a%{sut.%player%}% Litre" to close
            if arg-1 is "sat":
                if {ciftlik.%player%} is true:
                    wait 3 tick
                    open chest with 1 row named "&6Çiftlik &8» &aSatma Menusu" to player
                    format slot 0 of player with red glass named "&6Ana Menu" with lore "&aAna Menuye Donmek Icin Tikla" to close then run [execute player command "çiftlik"]
                    format slot 2 of player with egg named "&6Yumurta" with lore "&a%{yumurta.%player%}% Adet" to run [execute player command "çiftlik yumurtasat"]
                    format slot 4 of player with red glass named "&6Ana Menu" with lore "&aAna Menuye Donmek Icin Tikla" to close then run [execute player command "çiftlik"]
                    format slot 6 of player with milk bucket named "&6Süt" with lore "&a%{sut.%player%}% Litre" to run [execute player command "çiftlik sutsat"]
                    format slot 8 of player with red glass named "&6Ana Menu" with lore "&aAna Menuye Donmek Icin Tikla" to close then run [execute player command "çiftlik"]
            if arg-1 is "yumurtasat":
                if {ciftlik.%player%} is true:
                    if {yumurta.%player%} is greater than 0:
                        add {yumurta.%player%} to player's balance
                        send "&6Sanal Çiftlik &8» &c%{yumurta.%player%}% &aAdet Yumurta &c%{yumurta.%player%}% &aTL Karsiliginda Satildi !" to player
                        set {yumurta.%player%} to 0
                    else:
                        send "&6Sanal Çiftlik &8» &aÇiftliğinde Satilacak Yumurta Yok !" to player
            if arg-1 is "sutsat":
                if {ciftlik.%player%} is true:
                    if {sut.%player%} is greater than 0:
                        add {sut.%player%} to player's balance
                        send "&6Sanal Çiftlik &8» &c%{sut.%player%}% &aLitre Süt &c%{sut.%player%}% &aTL Karsiliginda Satildi !" to player
                        set {sut.%player%} to 0
                    else:
                        send "&6Sanal Çiftlik &8» &aÇiftliğinde Satilacak Süt Yok !" to player
      
every hours:
    loop all players:
        if {tavuk.%loop-player%} is greater than 0:
            set {_itemcountt} to {tavuk.%loop-player%}
            add 5000 * {_itemcountt} to {yumurta.%loop-player%}

every hours:
    loop all players:
        if {koyun.%loop-player%} is greater than 0:
            set {_itemcountk} to {koyun.%loop-player%}
            add 50000 * {_itemcountk} to {sut.%loop-player%}
          
every hours:
    loop all players:
        if {inek.%loop-player%} is greater than 0:
            set {_itemcounti} to {inek.%loop-player%}
            add 250000 * {_itemcounti} to {sut.%loop-player%}
 
Zaten bu skripti kullanıyorum. Benim derdim inek alma sınırı koyma lütfen doğru okuyun.
 
İnsanlar sende ki skriptin üzerinden geliştirerek sana gönderiyor lütfen skriptleri daha dikkatli oku.Olur da yazılanlar çalışmazsa bir de bunu dene.
Kod:
variables:
    {ciftlik.%player%} = false
    {tavuk.%player%} = 0
    {koyun.%player%} = 0
    {inek.%player%} = 0
    {yumurta.%player%} = 0
    {sut.%player%} = 0
  
  
command /çiftlik [<text>]:
    trigger:
        if arg-1 is not set:
            if {ciftlik.%player%} is false:
                wait 3 tick
                open chest with 1 row named "&6Çiftlik &8» &aSatin Al" to player
                format slot 4 of player with book named "&6Sanal Çiftlik" with lore "&aSatin Almak Icin Tikla &cFiyat: &a1 Milyon TL" to close then run [execute player command "/çiftlik satinal"]
            if {ciftlik.%player%} is true:
                wait 3 tick
                open chest with 3 row named "&6Çiftlik &8» &aAna Menu" to player
                format slot 10 of player with 383 named "&6Hayvan Alma Menusu" with lore "&aBuradan Hayvan Satin Alabilirsin" to close then run [execute player command "/çiftlik hayvanal"]
                format slot 13 of player with book named "&6Çiftlik Bilgileri" with lore "&aBuradan Çiftlik Bilgilerine Bakabilirsin" to close then run [execute player command "/çiftlik bilgi"]
                format slot 16 of player with milk bucket named "&6Satma Menusu" with lore "&aBuradan Sut Ve Yumurtalarini Satabilirsin" to close then run [execute player command "/çiftlik sat"]
        if arg-1 is set:
            if arg-1 is "satinal":
                if {ciftlik.%player%} is false:
                    if player's balance is greater than 999999:
                        remove 1000000 from player's balance
                        set {ciftlik.%player%} to true
                        send "&6Sanal Çiftlik &8» &aÇiftlik Başarıyla Alindi !" to player
                    else:
                        send "&6Sanal Çiftlik &8» &aSatin Almak Icin Yeterli Paraniz Bulunmamakta !" to player
            if arg-1 is "hayvanal":
                if {ciftlik.%player%} is true:
                    wait 3 tick
                    open chest with 1 row named "&6Çiftlik &8» &aHayvan Alma" to player
                    format slot 0 of player with red glass named "&6Ana Menu" with lore "&aAna Menuye Donmek Icin Tikla" to close then run [execute player command "çiftlik"]
                    format slot 2 of player with 383:93 named "&6Tavuk" with lore "&aFiyat: &c10M &aSaatlik Uretim: &c5k" to run [execute player command "çiftlik tavukal"]
                    format slot 4 of player with 383:91 named "&6Koyun" with lore "&aFiyat: &c50M &aSaatlik Uretim: &c50k" to run [execute player command "çiftlik koyunal"]
                    format slot 6 of player with 383:92 named "&6Inek" with lore "&aFiyat: &c70 Milyon &aSaatlik Uretim: &c250k" to run [execute player command "çiftlik inekal"]
                    format slot 8 of player with red glass named "&6Ana Menu" with lore "&aAna Menuye Donmek Icin Tikla" to close then run [execute player command "çiftlik"]
            if arg-1 is "tavukal":
                if {ciftlik.%player%} is true:
                    if player's balance is greater than 9999999:
                        if {tavuk.%player%} is smaller than 10000:
                            remove 10000000 from player's balance
                            add 1 to {tavuk.%player%}
                            send "&6Sanal Çiftlik &8» &aTavuk Başarıyla Alindi !" to player
                    else:
                        send "&6Sanal Çiftlik &8» &aSatin Almak Icin Yeterli Paraniz Bulunmamakta !" to player         
            if arg-1 is "koyunal":
                if {ciftlik.%player%} is true:
                    if player's balance is greater than 49999999:
                        if {koyun.%player%} is smaller than 10000:
                            remove 50000000 from player's balance
                            add 1 to {koyun.%player%}
                            send "&6Sanal Çiftlik &8» &aKoyun Başarıyla Alindi !" to player
                    else:
                        send "&6Sanal Çiftlik &8» &aSatin Almak Icin Yeterli Paraniz Bulunmamakta !" to player
            if arg-1 is "inekal":
                if {ciftlik.%player%} is true:
                    if player's balance is greater than 69999999:
                        if {inek.%player%} is smaller than 20:
                            remove 70000000 from player's balance
                            add 1 to {inek.%player%}
                            send "&6Sanal Çiftlik &8» &aInek Başarıyla Alindi !" to player
                        else:
                            send "&cZaten 20 tane ineğiniz bulunuyor." to player
                    else:
                        send "&6Sanal Çiftlik &8» &aSatin Almak Icin Yeterli Paraniz Bulunmamakta !" to player
            if arg-1 is "bilgi":
                if {ciftlik.%player%} is true:
                    wait 3 tick
                    open chest with 1 row named "&6Çiftlik &8» &aÇiftlik Bilgi" to player
                    format slot 0 of player with 383:93 named "&6Tavuk" with lore "&a%{tavuk.%player%}% Adet" to close
                    format slot 1 of player with red glass named "&6Ana Menu" with lore "&aAna Menuye Donmek Icin Tikla" to close then run [execute player command "çiftlik"]
                    format slot 2 of player with 383:91 named "&6Koyun" with lore "&a%{koyun.%player%}% Adet" to close
                    format slot 3 of player with red glass named "&6Ana Menu" with lore "&aAna Menuye Donmek Icin Tikla" to close then run [execute player command "çiftlik"]
                    format slot 4 of player with 383:92 named "&6Inek" with lore "&a%{inek.%player%}% Adet" to close
                    format slot 5 of player with red glass named "&6Ana Menu" with lore "&aAna Menuye Donmek Icin Tikla" to close then run [execute player command "çiftlik"]     
                    format slot 6 of player with egg named "&6Yumurta" with lore "&a%{yumurta.%player%}% Adet" to close
                    format slot 7 of player with red glass named "&6Ana Menu" with lore "&aAna Menuye Donmek Icin Tikla" to close then run [execute player command "çiftlik"]
                    format slot 8 of player with milk bucket named "&6Süt" with lore "&a%{sut.%player%}% Litre" to close
            if arg-1 is "sat":
                if {ciftlik.%player%} is true:
                    wait 3 tick
                    open chest with 1 row named "&6Çiftlik &8» &aSatma Menusu" to player
                    format slot 0 of player with red glass named "&6Ana Menu" with lore "&aAna Menuye Donmek Icin Tikla" to close then run [execute player command "çiftlik"]
                    format slot 2 of player with egg named "&6Yumurta" with lore "&a%{yumurta.%player%}% Adet" to run [execute player command "çiftlik yumurtasat"]
                    format slot 4 of player with red glass named "&6Ana Menu" with lore "&aAna Menuye Donmek Icin Tikla" to close then run [execute player command "çiftlik"]
                    format slot 6 of player with milk bucket named "&6Süt" with lore "&a%{sut.%player%}% Litre" to run [execute player command "çiftlik sutsat"]
                    format slot 8 of player with red glass named "&6Ana Menu" with lore "&aAna Menuye Donmek Icin Tikla" to close then run [execute player command "çiftlik"]
            if arg-1 is "yumurtasat":
                if {ciftlik.%player%} is true:
                    if {yumurta.%player%} is greater than 0:
                        add {yumurta.%player%} to player's balance
                        send "&6Sanal Çiftlik &8» &c%{yumurta.%player%}% &aAdet Yumurta &c%{yumurta.%player%}% &aTL Karsiliginda Satildi !" to player
                        set {yumurta.%player%} to 0
                    else:
                        send "&6Sanal Çiftlik &8» &aÇiftliğinde Satilacak Yumurta Yok !" to player
            if arg-1 is "sutsat":
                if {ciftlik.%player%} is true:
                    if {sut.%player%} is greater than 0:
                        add {sut.%player%} to player's balance
                        send "&6Sanal Çiftlik &8» &c%{sut.%player%}% &aLitre Süt &c%{sut.%player%}% &aTL Karsiliginda Satildi !" to player
                        set {sut.%player%} to 0
                    else:
                        send "&6Sanal Çiftlik &8» &aÇiftliğinde Satilacak Süt Yok !" to player
      
every hours:
    loop all players:
        if {tavuk.%loop-player%} is greater than 0:
            set {_itemcountt} to {tavuk.%loop-player%}
            add 5000 * {_itemcountt} to {yumurta.%loop-player%}

every hours:
    loop all players:
        if {koyun.%loop-player%} is greater than 0:
            set {_itemcountk} to {koyun.%loop-player%}
            add 50000 * {_itemcountk} to {sut.%loop-player%}
          
every hours:
    loop all players:
        if {inek.%loop-player%} is greater than 0:
            set {_itemcounti} to {inek.%loop-player%}
            add 250000 * {_itemcounti} to {sut.%loop-player%}
 
Bunu denermisin?
Kod:
variables:
    {ciftlik.%player%} = false
    {tavuk.%player%} = 0
    {koyun.%player%} = 0
    {inek.%player%} = 0
    {yumurta.%player%} = 0
    {sut.%player%} = 0
    {limit.%player%} = 20
  


command /çiftlik [<text>]:
    trigger:
        if arg-1 is not set:
            if {ciftlik.%player%} is false:
                wait 3 tick
                open chest with 1 row named "&6Çiftlik &8» &aSatin Al" to player
                format slot 4 of player with book named "&6Sanal Çiftlik" with lore "&aSatin Almak Icin Tikla &cFiyat: &a1 Milyon TL" to close then run [execute player command "/çiftlik satinal"]
            if {ciftlik.%player%} is true:
                wait 3 tick
                open chest with 3 row named "&6Çiftlik &8» &aAna Menu" to player
                format slot 10 of player with 383 named "&6Hayvan Alma Menusu" with lore "&aBuradan Hayvan Satin Alabilirsin" to close then run [execute player command "/çiftlik hayvanal"]
                format slot 13 of player with book named "&6Çiftlik Bilgileri" with lore "&aBuradan Çiftlik Bilgilerine Bakabilirsin" to close then run [execute player command "/çiftlik bilgi"]
                format slot 16 of player with milk bucket named "&6Satma Menusu" with lore "&aBuradan Sut Ve Yumurtalarini Satabilirsin" to close then run [execute player command "/çiftlik sat"]
        if arg-1 is set:
            if arg-1 is "satinal":
                if {ciftlik.%player%} is false:
                    if player's balance is greater than 999999:
                        remove 1000000 from player's balance
                        set {ciftlik.%player%} to true
                        send "&6Sanal Çiftlik &8» &aÇiftlik Başarıyla Alindi !" to player
                    else:
                        send "&6Sanal Çiftlik &8» &aSatin Almak Icin Yeterli Paraniz Bulunmamakta !" to player
            if arg-1 is "hayvanal":
                if {ciftlik.%player%} is true:
                    wait 3 tick
                    open chest with 1 row named "&6Çiftlik &8» &aHayvan Alma" to player
                    format slot 0 of player with red glass named "&6Ana Menu" with lore "&aAna Menuye Donmek Icin Tikla" to close then run [execute player command "çiftlik"]
                    format slot 2 of player with 383:93 named "&6Tavuk" with lore "&aFiyat: &c10M &aSaatlik Uretim: &c5k" to run [execute player command "çiftlik tavukal"]
                    format slot 4 of player with 383:91 named "&6Koyun" with lore "&aFiyat: &c50M &aSaatlik Uretim: &c50k" to run [execute player command "çiftlik koyunal"]
                    format slot 6 of player with 383:92 named "&6Inek" with lore "&aFiyat: &c70 Milyon &aSaatlik Uretim: &c250k" to run [execute player command "çiftlik inekal"]
                    format slot 8 of player with red glass named "&6Ana Menu" with lore "&aAna Menuye Donmek Icin Tikla" to close then run [execute player command "çiftlik"]
            if arg-1 is "tavukal":
                if {ciftlik.%player%} is true:
                    if {limit.%player%} is bigger than or equal to {limit.%player%}:
                        if player's balance is greater than 9999999:
                            if {tavuk.%player%} is smaller than 10000:
                                remove 10000000 from player's balance
                                add 1 to {tavuk.%player%}
                                send "&6Sanal Çiftlik &8» &aTavuk Başarıyla Alindi !" to player
                        else:
                            send "&6Sanal Çiftlik &8» &aSatin Almak Icin Yeterli Paraniz Bulunmamakta !" to player
                    else:
                        send "&cLimit &8» &eSatın alma limitine ulaştın." to player
            if arg-1 is "koyunal":
                if {ciftlik.%player%} is true:
                    if {limit.%player%} is bigger than or equal to {limit.%player%}:
                        if player's balance is greater than 49999999:
                            if {koyun.%player%} is smaller than 10000:
                                remove 50000000 from player's balance
                                add 1 to {koyun.%player%}
                                send "&6Sanal Çiftlik &8» &aKoyun Başarıyla Alindi !" to player
                        else:
                            send "&6Sanal Çiftlik &8» &aSatin Almak Icin Yeterli Paraniz Bulunmamakta !" to player
                    else:
                        send "&cLimit &8» &eSatın alma limitine ulaştın." to player
            if arg-1 is "inekal":
                if {ciftlik.%player%} is true:
                    if {limit.%player%} is bigger than or equal to {limit.%player%}:
                        if player's balance is greater than 69999999:
                            if {inek.%player%} is smaller than 10000:
                                remove 70000000 from player's balance
                                add 1 to {inek.%player%}
                                send "&6Sanal Çiftlik &8» &aInek Başarıyla Alindi !" to player
                        else:
                            send "&6Sanal Çiftlik &8» &aSatin Almak Icin Yeterli Paraniz Bulunmamakta !" to player
                    else:
                        send "&cLimit &8» &eSatın alma limitine ulaştın." to player
            if arg-1 is "bilgi":
                if {ciftlik.%player%} is true:
                    wait 3 tick
                    open chest with 1 row named "&6Çiftlik &8» &aÇiftlik Bilgi" to player
                    format slot 0 of player with 383:93 named "&6Tavuk" with lore "&a%{tavuk.%player%}% Adet" to close
                    format slot 1 of player with red glass named "&6Ana Menu" with lore "&aAna Menuye Donmek Icin Tikla" to close then run [execute player command "çiftlik"]
                    format slot 2 of player with 383:91 named "&6Koyun" with lore "&a%{koyun.%player%}% Adet" to close
                    format slot 3 of player with red glass named "&6Ana Menu" with lore "&aAna Menuye Donmek Icin Tikla" to close then run [execute player command "çiftlik"]
                    format slot 4 of player with 383:92 named "&6Inek" with lore "&a%{inek.%player%}% Adet" to close
                    format slot 5 of player with red glass named "&6Ana Menu" with lore "&aAna Menuye Donmek Icin Tikla" to close then run [execute player command "çiftlik"]   
                    format slot 6 of player with egg named "&6Yumurta" with lore "&a%{yumurta.%player%}% Adet" to close
                    format slot 7 of player with red glass named "&6Ana Menu" with lore "&aAna Menuye Donmek Icin Tikla" to close then run [execute player command "çiftlik"]
                    format slot 8 of player with milk bucket named "&6Süt" with lore "&a%{sut.%player%}% Litre" to close
            if arg-1 is "sat":
                if {ciftlik.%player%} is true:
                    wait 3 tick
                    open chest with 1 row named "&6Çiftlik &8» &aSatma Menusu" to player
                    format slot 0 of player with red glass named "&6Ana Menu" with lore "&aAna Menuye Donmek Icin Tikla" to close then run [execute player command "çiftlik"]
                    format slot 2 of player with egg named "&6Yumurta" with lore "&a%{yumurta.%player%}% Adet" to run [execute player command "çiftlik yumurtasat"]
                    format slot 4 of player with red glass named "&6Ana Menu" with lore "&aAna Menuye Donmek Icin Tikla" to close then run [execute player command "çiftlik"]
                    format slot 6 of player with milk bucket named "&6Süt" with lore "&a%{sut.%player%}% Litre" to run [execute player command "çiftlik sutsat"]
                    format slot 8 of player with red glass named "&6Ana Menu" with lore "&aAna Menuye Donmek Icin Tikla" to close then run [execute player command "çiftlik"]
            if arg-1 is "yumurtasat":
                if {ciftlik.%player%} is true:
                    if {yumurta.%player%} is greater than 0:
                        add {yumurta.%player%} to player's balance
                        send "&6Sanal Çiftlik &8» &c%{yumurta.%player%}% &aAdet Yumurta &c%{yumurta.%player%}% &aTL Karsiliginda Satildi !" to player
                        set {yumurta.%player%} to 0
                    else:
                        send "&6Sanal Çiftlik &8» &aÇiftliğinde Satilacak Yumurta Yok !" to player
            if arg-1 is "sutsat":
                if {ciftlik.%player%} is true:
                    if {sut.%player%} is greater than 0:
                        add {sut.%player%} to player's balance
                        send "&6Sanal Çiftlik &8» &c%{sut.%player%}% &aLitre Süt &c%{sut.%player%}% &aTL Karsiliginda Satildi !" to player
                        set {sut.%player%} to 0
                    else:
                        send "&6Sanal Çiftlik &8» &aÇiftliğinde Satilacak Süt Yok !" to player
    
every hours:
    loop all players:
        if {tavuk.%loop-player%} is greater than 0:
            set {_itemcountt} to {tavuk.%loop-player%}
            add 5000 * {_itemcountt} to {yumurta.%loop-player%}

every hours:
    loop all players:
        if {koyun.%loop-player%} is greater than 0:
            set {_itemcountk} to {koyun.%loop-player%}
            add 50000 * {_itemcountk} to {sut.%loop-player%}
        
every hours:
    loop all players:
        if {inek.%loop-player%} is greater than 0:
            set {_itemcounti} to {inek.%loop-player%}
            add 250000 * {_itemcounti} to {sut.%loop-player%}
Bunu yaptım ama daha önceden inek alanların hepsinin inekleri falan hepsi gitti. Lütfen şu skripti editler misin sana zahmet olmazsa bu arada kusura bakma ayrıntılı incelememiştim. Çalışıyor skriptin.

Kod:
variables:
    {ciftlik.%player%} = false
    {tavuk.%player%} = 0
    {koyun.%player%} = 0
    {inek.%player%} = 0
    {yumurta.%player%} = 0
    {sut.%player%} = 0
 
 
command /asdgfg4545 [<text>]:
    trigger:
        if arg-1 is not set:
            if {ciftlik.%player%} is false:
                wait 3 tick
                open chest with 1 row named "&6Çiftlik &8» &aSatin Al" to player
                format slot 4 of player with book named "&6Creation Çiftlik" with lore "&aSatin Almak Icin Tikla &cFiyat: &a50K" to close then run [execute player command "/çiftlik satinal"]
            if {ciftlik.%player%} is true:
                wait 3 tick
                open chest with 3 row named "&6Çiftlik &8» &aAna Menu" to player
                format slot 10 of player with spawn chicken named "&6Hayvan Alma Menusu" with lore "&aBuradan Hayvan Satin Alabilirsin" to close then run [execute player command "/çiftlik hayvanal"]
                format slot 13 of player with book named "&6Çiftlik Bilgileri" with lore "&aBuradan Çiftlik Bilgilerine Bakabilirsin" to close then run [execute player command "/çiftlik bilgi"]
                format slot 16 of player with milk bucket named "&6Satma Menusu" with lore "&aBuradan Sut Ve Yumurtalarini Satabilirsin" to close then run [execute player command "/çiftlik sat"]
        if arg-1 is set:
            if arg-1 is "satinal":
                if {ciftlik.%player%} is false:
                    if player's balance is greater than 49999:
                        remove 50000 from player's balance
                        set {ciftlik.%player%} to true
                        send "&6Sanal Çiftlik &8» &aÇiftlik Başarıyla Alindi !" to player
                    else:
                        send "&6Sanal Çiftlik &8» &aSatin Almak Icin Yeterli Paraniz Bulunmamakta !" to player
            if arg-1 is "hayvanal":
                if {ciftlik.%player%} is true:
                    wait 3 tick
                    open chest with 1 row named "&6Çiftlik &8» &aHayvan Alma" to player
                    format slot 0 of player with red glass named "&6Ana Menu" with lore "&aAna Menuye Donmek Icin Tikla" to close then run [execute player command "çiftlik"]
                    format slot 2 of player with spawn chicken named "&6Tavuk" with lore "&aFiyat: &c25K &aSaatlik Uretim: &c500TL" to run [execute player command "çiftlik tavukal"]
                    format slot 4 of player with spawn sheep named "&6Koyun" with lore "&aFiyat: &c75K &aSaatlik Uretim: &c2500TL" to run [execute player command "çiftlik koyunal"]
                    format slot 6 of player with spawn cow named "&6Inek" with lore "&aFiyat: &c200K &aSaatlik Uretim: &c10000TL" to run [execute player command "çiftlik inekal"]
                    format slot 8 of player with red glass named "&6Ana Menu" with lore "&aAna Menuye Donmek Icin Tikla" to close then run [execute player command "çiftlik"]
            if arg-1 is "tavukal":
                if {ciftlik.%player%} is true:
                    if player's balance is greater than 24999:
                        if {tavuk.%player%} is smaller than 10000:
                            remove 25000 from player's balance
                            add 1 to {tavuk.%player%}
                            send "&6Sanal Çiftlik &8» &aTavuk Başarıyla Alindi !" to player
                    else:
                        send "&6Sanal Çiftlik &8» &aSatin Almak Icin Yeterli Paraniz Bulunmamakta !" to player         
            if arg-1 is "koyunal":
                if {ciftlik.%player%} is true:
                    if player's balance is greater than 74999:
                        if {koyun.%player%} is smaller than 10000:
                            remove 75000 from player's balance
                            add 1 to {koyun.%player%}
                            send "&6Sanal Çiftlik &8» &aKoyun Başarıyla Alindi !" to player
                    else:
                        send "&6Sanal Çiftlik &8» &aSatin Almak Icin Yeterli Paraniz Bulunmamakta !" to player
            if arg-1 is "inekal":
                if {ciftlik.%player%} is true:
                    if player's balance is greater than 199999:
                        if {inek.%player%} is smaller than 10000:
                            remove 200000 from player's balance
                            add 1 to {inek.%player%}
                            send "&6Sanal Çiftlik &8» &aInek Başarıyla Alindi !" to player
                    else:
                        send "&6Sanal Çiftlik &8» &aSatin Almak Icin Yeterli Paraniz Bulunmamakta !" to player
            if arg-1 is "bilgi":
                if {ciftlik.%player%} is true:
                    wait 3 tick
                    open chest with 1 row named "&6Çiftlik &8» &aÇiftlik Bilgi" to player
                    format slot 0 of player with spawn chicken named "&6Tavuk" with lore "&a%{tavuk.%player%}% Adet" to close
                    format slot 1 of player with red glass named "&6Ana Menu" with lore "&aAna Menuye Donmek Icin Tikla" to close then run [execute player command "çiftlik"]
                    format slot 2 of player with spawn sheep named "&6Koyun" with lore "&a%{koyun.%player%}% Adet" to close
                    format slot 3 of player with red glass named "&6Ana Menu" with lore "&aAna Menuye Donmek Icin Tikla" to close then run [execute player command "çiftlik"]
                    format slot 4 of player with spawn cow named "&6Inek" with lore "&a%{inek.%player%}% Adet" to close
                    format slot 5 of player with red glass named "&6Ana Menu" with lore "&aAna Menuye Donmek Icin Tikla" to close then run [execute player command "çiftlik"]     
                    format slot 6 of player with egg named "&6Yumurta" with lore "&a%{yumurta.%player%}% Adet" to close
                    format slot 7 of player with red glass named "&6Ana Menu" with lore "&aAna Menuye Donmek Icin Tikla" to close then run [execute player command "çiftlik"]
                    format slot 8 of player with milk bucket named "&6Süt" with lore "&a%{sut.%player%}% Litre" to close
            if arg-1 is "sat":
                if {ciftlik.%player%} is true:
                    wait 3 tick
                    open chest with 1 row named "&6Çiftlik &8» &aSatma Menusu" to player
                    format slot 0 of player with red glass named "&6Ana Menu" with lore "&aAna Menuye Donmek Icin Tikla" to close then run [execute player command "çiftlik"]
                    format slot 2 of player with egg named "&6Yumurta" with lore "&a%{yumurta.%player%}% Adet" to run [execute player command "çiftlik yumurtasat"]
                    format slot 4 of player with red glass named "&6Ana Menu" with lore "&aAna Menuye Donmek Icin Tikla" to close then run [execute player command "çiftlik"]
                    format slot 6 of player with milk bucket named "&6Süt" with lore "&a%{sut.%player%}% Litre" to run [execute player command "çiftlik sutsat"]
                    format slot 8 of player with red glass named "&6Ana Menu" with lore "&aAna Menuye Donmek Icin Tikla" to close then run [execute player command "çiftlik"]
            if arg-1 is "yumurtasat":
                if {ciftlik.%player%} is true:
                    if {yumurta.%player%} is greater than 0:
                        add {yumurta.%player%} to player's balance
                        send "&6Sanal Çiftlik &8» &c%{yumurta.%player%}% &aAdet Yumurta &c%{yumurta.%player%}% &aTL Karsiliginda Satildi !" to player
                        set {yumurta.%player%} to 0
                    else:
                        send "&6Sanal Çiftlik &8» &aÇiftliğinde Satilacak Yumurta Yok !" to player
            if arg-1 is "sutsat":
                if {ciftlik.%player%} is true:
                    if {sut.%player%} is greater than 0:
                        add {sut.%player%} to player's balance
                        send "&6Sanal Çiftlik &8» &c%{sut.%player%}% &aLitre Süt &c%{sut.%player%}% &aTL Karsiliginda Satildi !" to player
                        set {sut.%player%} to 0
                    else:
                        send "&6Sanal Çiftlik &8» &aÇiftliğinde Satilacak Süt Yok !" to player
      
every hours:
    loop all players:
        if {tavuk.%loop-player%} is greater than 0:
            set {_itemcountt} to {tavuk.%loop-player%}
            add 500 * {_itemcountt} to {yumurta.%loop-player%}

every hours:
    loop all players:
        if {koyun.%loop-player%} is greater than 0:
            set {_itemcountk} to {koyun.%loop-player%}
            add 2500 * {_itemcountk} to {sut.%loop-player%}
          
every hours:
    loop all players:
        if {inek.%loop-player%} is greater than 0:
            set {_itemcounti} to {inek.%loop-player%}
            add 10000 * {_itemcounti} to {sut.%loop-player%}
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Hala Discord sunucumuza katılmadın mı?

Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!

Şimdi Katıl
Üst