Çözüldü Sell

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

Crypton

Örümcek Hoşt!
Katılım
7 Mayıs 2020
Mesajlar
352
Elmaslar
110
Puan
1.560
Yaş
27
Konum
Danimarka - Kopenhag
Minecraft
Crypton

Discord:

Crypton#0161

Kod:
options:
    fiyat.diamond: 100
    fiyat.emerald: 70
    fiyat.gold ingot: 50
    fiyat.iron ingot: 40
    #SADECE 1 ADET ESYA FIYATI

command /sell <text> [<integer>]:
    usage: &c/sell <hand|all> [miktar]
    trigger:
        if arg 1 is "hand" or "held":
            if "{@fiyat.%type of player's tool%}" is set:
                if arg 2 is set:
                    if arg 2 is greater than 0:
                        set {_miktar} to arg 2
                    else:
                        send "&cMiktar sayisi 0 veya daha kucuk olamaz!"
                        stop trigger
                else:
                    set {_miktar} to number of player's tool in player's inventory
                add ({_miktar} * {@fiyat.%type of player's tool%}) to player's balance
                remove {_miktar} of player's tool from player
                send "&b%type of player's tool% &cesyanizdan &b%{_miktar}% &aadet &6%({_miktar} * {@fiyat.%type of player's tool%})$ &akarsiliginda satildi."
            else:
                send "&cBu esya satilamaz."
        else if arg 1 is "all" or "every":
            loop items in player's inventory:
                if "{@fiyat.%loop-item%}" is set:
                    add "&a%number of loop-item in player's inventory% adet %type of loop-item% &6(%(number of loop-item in player's inventory * {@fiyat.%loop-item%})%$)" to {_esyaBilgileri::*}     
                    add (number of loop-item in player's inventory * {@fiyat.%type of player's tool%}) to player's balance
                    remove number of loop-item in player's inventory of loop-item from player
            if {_esyalar::*} is set:
                send "&bSatilan esyalar, sayilari ve fiyatlari:"
                send "&c%{_esyalar::*}%"
            else:
                send "&cEnvanterinizde satilmasi mumkun olan bir esya bulunamadi!"
        else:
            send "&c/sell <hand|all> [miktar]"
bu skript lag yaparmı?
 
Çok ufakta olsa yapabilir ama sunucuyu zorlamaz rahat rahat kullanabilirsin.
 
Yapmaz
 
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