Skript Paylaşımı axBitcoin | Klasik Bitcoin sistemlerinden sıkılmadınızmı ? ne duruyorsun içeri gir! [1.16]

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Deleted User 131734

Kızılsakal Kızıltaş?
Katılım
23 Şubat 2021
Mesajlar
522
Elmaslar
394
Puan
4.075
Konum
Avusturya
Ön Söz

Selam değerli MC-TR forum ailesi! Artık her yerde bu skript'i görüyorum ve ücretsiz olarak paylaşılan "En iyi" Bitcoin skript'i olabilir :)

Sunucunuzda güzel bir Sistem olacağını düşünüyorum ve tanıtım'a geçelim :)

Skriptimiz bitcoin fiyatını internettden çekip 100 ile bölüyordur.

Tanıtım

ezgif.com-gif-maker (1).gif

BTC-2.gif



Gerekli Addonlar ve Sürümleri:

TuSke PikachuPatch v3
SkRayFall (Son Sürüm)
Skript (Son Sürüm)


Not: Bu Skript sadece 1.16 da çalışmaktadır


Kod:
on first join:
    set {bitcoin::cüzdan::%player%} to 0
   
every 10 seconds:
    set {_btc} to text from url "https://api.coindesk.com/v1/bpi/currentprice.json"
    set {_btcc::*} to {_btc} split at ","
    replace all """" with "" in {_btcc::11}
    replace all "." with "" in {_btcc::11}
    set {bitcoin::kur} to {_btcc::11} parsed as number / 100
command /bitcoin:
    trigger:
        open virtual chest with size 3 named "&8&nBitcoin" to player
        make gui slot 10 of player with (* wool named "&aBitcoin Satın al") to run:
            open virtual chest with size 3 named "&8&nBitcoin > Satın Al" to player
            set {_i} to 0
            loop 27 times:
                if {_i} is not 1 or 2 or 3 or 5 or 6 or 7 or 13 or 19 or 20 or 21 or 23 or 24 or 25:
                    make gui slot {_i} of player with (black stained glass pane named "&e") to nothing
                add 1 to {_i}
            make gui slot 1 of player with (* wool named "&a+1") to run:
                add 1 to {miktar::%player%}
                make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Eklenen Miktar: %{miktar::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 2 of player with (* wool named "&a+5") to run:
                add 5 to {miktar::%player%}
                make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Eklenen Miktar: %{miktar::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 3 of player with (* wool named "&a+10") to run:
                add 10 to {miktar::%player%}
                make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Eklenen Miktar: %{miktar::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
               
            make gui slot 5 of player with (* wool named "&a+15") to run:
                add 15 to {miktar::%player%}
                make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Eklenen Miktar: %{miktar::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 6 of player with (* wool named "&a+20") to run:
                add 20 to {miktar::%player%}
                make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Eklenen Miktar: %{miktar::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 7 of player with (* wool named "&a+25") to run:
                add 25 to {miktar::%player%}
                make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Eklenen Miktar: %{miktar::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
           
            make gui slot 19 of player with (red wool named "&c-1") to run:
                if {miktar::%player%} is bigger or equal to 1:
                    remove 1 from {miktar::%player%}
                    make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Eklenen Miktar: %{miktar::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 20 of player with (red wool named "&c-5") to run:
                if {miktar::%player%} is bigger or equal to 5:
                    remove 5 from {miktar::%player%}
                    make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Eklenen Miktar: %{miktar::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 21 of player with (red wool named "&c-10") to run:
                if {miktar::%player%} is bigger or equal to 10:
                    remove 10 from {miktar::%player%}
                    make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Eklenen Miktar: %{miktar::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
               
            make gui slot 23 of player with (red wool named "&c-15") to run:
                if {miktar::%player%} is bigger or equal to 15:
                    remove 15 from {miktar::%player%}
                    make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Eklenen Miktar: %{miktar::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 24 of player with (red wool named "&c-20") to run:
                if {miktar::%player%} is bigger or equal to 20:
                    remove 20 from {miktar::%player%}
                    make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Eklenen Miktar: %{miktar::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 25 of player with (red wool named "&c-25") to run:
                if {miktar::%player%} is bigger or equal to 25:
                    remove 25 from {miktar::%player%}
                    make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Eklenen Miktar: %{miktar::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
           
            make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Eklenen Miktar: %{miktar::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
           
        make gui slot 13 of player with (knowledge book named "&eDurum" with lore "&7" and "&8• &7Bitcoin fiyatı: &f%{bitcoin::kur}%" and "&8• &7Bitcoin Cüzdanın: &f%{bitcoin::cüzdan::%player%}%" and "" and "&eBitcoin fiyatını Güncellemek için tıklayın.") to run:
            execute player command "bitcoin"
        make gui slot 16 of player with (red wool named "&cBitcoin Sat") to run:
            open virtual chest with size 3 named "&8&nBitcoin > Sat" to player
            set {_i} to 0
            loop 27 times:
                if {_i} is not 1 or 2 or 3 or 5 or 6 or 7 or 13 or 19 or 20 or 21 or 23 or 24 or 25:
                    make gui slot {_i} of player with (black stained glass pane named "&e") to nothing
                add 1 to {_i}
            make gui slot 1 of player with (* wool named "&a+1") to run:
                add 1 to {miktarsat::%player%}
                make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Satılcak Miktar: %{miktarsat::%player%}%" and "&8• &7Fiyat: %{miktarsat::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 2 of player with (* wool named "&a+5") to run:
                add 5 to {miktarsat::%player%}
                make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Satılcak Miktar: %{miktarsat::%player%}%" and "&8• &7Fiyat: %{miktarsat::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 3 of player with (* wool named "&a+10") to run:
                add 10 to {miktarsat::%player%}
                make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Satılcak Miktar: %{miktarsat::%player%}%" and "&8• &7Fiyat: %{miktarsat::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
               
            make gui slot 5 of player with (* wool named "&a+15") to run:
                add 15 to {miktarsat::%player%}
                make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Satılcak Miktar: %{miktarsat::%player%}%" and "&8• &7Fiyat: %{miktarsat::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 6 of player with (* wool named "&a+20") to run:
                add 20 to {miktarsat::%player%}
                make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Satılcak Miktar: %{miktarsat::%player%}%" and "&8• &7Fiyat: %{miktarsat::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 7 of player with (* wool named "&a+25") to run:
                add 25 to {miktarsat::%player%}
                make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Satılcak Miktar: %{miktarsat::%player%}%" and "&8• &7Fiyat: %{miktarsat::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
           
            make gui slot 19 of player with (red wool named "&c-1") to run:
                if {miktarsat::%player%} is bigger or equal to 1:
                    remove 1 from {miktarsat::%player%}
                    make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Satılcak Miktar: %{miktarsat::%player%}%" and "&8• &7Fiyat: %{miktarsat::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 20 of player with (red wool named "&c-5") to run:
                if {miktarsat::%player%} is bigger or equal to 5:
                    remove 5 from {miktarsat::%player%}
                    make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Satılcak Miktar: %{miktarsat::%player%}%" and "&8• &7Fiyat: %{miktarsat::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 21 of player with (red wool named "&c-10") to run:
                if {miktarsat::%player%} is bigger or equal to 10:
                    remove 10 from {miktarsat::%player%}
                    make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Satılcak Miktar: %{miktarsat::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
               
            make gui slot 23 of player with (red wool named "&c-15") to run:
                if {miktarsat::%player%} is bigger or equal to 15:
                    remove 15 from {miktarsat::%player%}
                    make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Satılcak Miktar: %{miktarsat::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 24 of player with (red wool named "&c-20") to run:
                if {miktarsat::%player%} is bigger or equal to 20:
                    remove 20 from {miktarsat::%player%}
                    make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Satılcak Miktar: %{miktarsat::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 25 of player with (red wool named "&c-25") to run:
                if {miktarsat::%player%} is bigger or equal to 25:
                    remove 25 from {miktarsat::%player%}
                    make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Satılcak Miktar: %{miktarsat::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
           
            make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Satılcak Miktar: %{miktarsat::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
           
        set {_i} to 0
        loop 27 times:
            if {_i} is not 10 or 13 or 16:
                make gui slot {_i} of player with (black stained glass pane named "&e") to nothing
            add 1 to {_i}

on inventory click:
    # Satın Alma
    if name of event-inventory = "&8&nBitcoin > Satın Al":
        if event-slot is knowledge book:
            if {miktar::%player%} is set:
                open virtual chest with size 1 named "&8&nBitcoin > Satın Al > Onayla" to player
                set {_i} to 0
                loop 9 times:
                    if {_i} is not 1 or 7:
                        make gui slot {_i} of player with (black stained glass pane named "&e") to nothing
                    add 1 to {_i}
                make gui slot 1 of player with (* wool named "&aOnayla") to run:
                    set {_fiyat} to {miktar::%player%} * {bitcoin::kur}
                    if player's balance is bigger or equal to {_fiyat}:
                        remove {_fiyat} from player's balance
                        add {miktar::%player%} to {bitcoin::cüzdan::%player%}
                        send "&6Bitcoin &8» &7Hesabınıza &e%{miktar::%player%}% &7adet bitcoin eklendi."
                        send "&6Bitcoin &8» &7Hesabınızdan &e%{_fiyat}% &7Para çekildi."
                        delete {miktar::%player%}
                        close player's inventory
                    else:
                        delete {miktar::%player%}
                        send "&6Bitcoin &8» &7Hesabınızda yetersiz miktarda Para bulunmaktadır."
                        close player's inventory
                make gui slot 7 of player with (red wool named "&cReddet") to run:
                    delete {miktar::%player%}
                    send "&6Bitcoin &8» &7Satın Alım işlemi iptal edildi."
                    close player's inventory
    # Satış
    if name of event-inventory = "&8&nBitcoin > Sat":
        if event-slot is knowledge book:
            if {miktarsat::%player%} is set:
                open virtual chest with size 1 named "&8&nBitcoin > Sat > Onayla" to player
                set {_i} to 0
                loop 9 times:
                    if {_i} is not 1 or 7:
                        make gui slot {_i} of player with (black stained glass pane named "&e") to nothing
                    add 1 to {_i}
                make gui slot 1 of player with (* wool named "&aOnayla") to run:
                    set {_fiyat} to {miktarsat::%player%} * {bitcoin::kur}
                    if {bitcoin::cüzdan::%player%} is bigger or equal to {miktarsat::%player%}:
                        add {_fiyat} to player's balance
                        remove {miktarsat::%player%} from {bitcoin::cüzdan::%player%}
                        send "&6Bitcoin &8» &e%{miktarsat::%player%}% &7adet Bitcoin satıldı."
                        send "&6Bitcoin &8» &7Hesabınıza &e%{_fiyat}% &7Para eklendi."
                        delete {miktarsat::%player%}
                        close player's inventory
                    else:
                        delete {miktarsat::%player%}
                        send "&6Bitcoin &8» &7Hesabınızda yetersiz miktarda Bitcoin bulunmaktadır."
                        close player's inventory
                make gui slot 7 of player with (red wool named "&cReddet") to run:
                    delete {miktarsat::%player%}
                    send "&6Bitcoin &8» &7Satın Alım işlemi iptal edildi."
                    close player's inventory

on inventory close:
    if name of event-inventory = "&8&nBitcoin > Satın Al > Onayla":
        if {miktar::%player%} is set:
            delete {miktar::%player%}
            send "&6Bitcoin &8» &7Satın Alım işlemi iptal edildi."
    if name of event-inventory = "&8&nBitcoin > Sat > Onayla":
        if {miktarsat::%player%} is set:
            delete {miktarsat::%player%}
            send "&6Bitcoin &8» &7Satış işlemi iptal edildi."



İyi Günlerde Kullanın.
 
Ön Söz

Selam değerli MC-TR forum ailesi! Artık her yerde bu skript'i görüyorum ve ücretsiz olarak paylaşılan "En iyi" Bitcoin skript'i olabilir :)

Sunucunuzda güzel bir Sistem olacağını düşünüyorum ve tanıtım'a geçelim :)

Tanıtım

Ekli dosyayı görüntüle 169391
Ekli dosyayı görüntüle 169397


Gerekli Addonlar ve Sürümleri:

TuSke PikachuPatch v3
SkRayFall (Son Sürüm)
Skript (Son Sürüm)


Not: Bu Skript sadece 1.16 da çalışmaktadır


Kod:
on first join:
    set {bitcoin::cüzdan::%player%} to 0
   
every 10 seconds:
    set {_btc} to text from url "https://api.coindesk.com/v1/bpi/currentprice.json"
    set {_btcc::*} to {_btc} split at ","
    replace all """" with "" in {_btcc::11}
    replace all "." with "" in {_btcc::11}
    set {bitcoin::kur} to {_btcc::11} parsed as number / 100
command /bitcoin:
    trigger:
        open virtual chest with size 3 named "&8&nBitcoin" to player
        make gui slot 10 of player with (* wool named "&aBitcoin Satın al") to run:
            open virtual chest with size 3 named "&8&nBitcoin > Satın Al" to player
            set {_i} to 0
            loop 27 times:
                if {_i} is not 1 or 2 or 3 or 5 or 6 or 7 or 13 or 19 or 20 or 21 or 23 or 24 or 25:
                    make gui slot {_i} of player with (black stained glass pane named "&e") to nothing
                add 1 to {_i}
            make gui slot 1 of player with (* wool named "&a+1") to run:
                add 1 to {miktar::%player%}
                make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Eklenen Miktar: %{miktar::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 2 of player with (* wool named "&a+5") to run:
                add 5 to {miktar::%player%}
                make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Eklenen Miktar: %{miktar::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 3 of player with (* wool named "&a+10") to run:
                add 10 to {miktar::%player%}
                make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Eklenen Miktar: %{miktar::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
               
            make gui slot 5 of player with (* wool named "&a+15") to run:
                add 15 to {miktar::%player%}
                make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Eklenen Miktar: %{miktar::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 6 of player with (* wool named "&a+20") to run:
                add 20 to {miktar::%player%}
                make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Eklenen Miktar: %{miktar::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 7 of player with (* wool named "&a+25") to run:
                add 25 to {miktar::%player%}
                make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Eklenen Miktar: %{miktar::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
           
            make gui slot 19 of player with (red wool named "&c-1") to run:
                if {miktar::%player%} is bigger or equal to 1:
                    remove 1 from {miktar::%player%}
                    make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Eklenen Miktar: %{miktar::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 20 of player with (red wool named "&c-5") to run:
                if {miktar::%player%} is bigger or equal to 5:
                    remove 5 from {miktar::%player%}
                    make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Eklenen Miktar: %{miktar::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 21 of player with (red wool named "&c-10") to run:
                if {miktar::%player%} is bigger or equal to 10:
                    remove 10 from {miktar::%player%}
                    make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Eklenen Miktar: %{miktar::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
               
            make gui slot 23 of player with (red wool named "&c-15") to run:
                if {miktar::%player%} is bigger or equal to 15:
                    remove 15 from {miktar::%player%}
                    make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Eklenen Miktar: %{miktar::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 24 of player with (red wool named "&c-20") to run:
                if {miktar::%player%} is bigger or equal to 20:
                    remove 20 from {miktar::%player%}
                    make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Eklenen Miktar: %{miktar::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 25 of player with (red wool named "&c-25") to run:
                if {miktar::%player%} is bigger or equal to 25:
                    remove 25 from {miktar::%player%}
                    make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Eklenen Miktar: %{miktar::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
           
            make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Eklenen Miktar: %{miktar::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
           
        make gui slot 13 of player with (knowledge book named "&eDurum" with lore "&7" and "&8• &7Bitcoin fiyatı: &f%{bitcoin::kur}%" and "&8• &7Bitcoin Cüzdanın: &f%{bitcoin::cüzdan::%player%}%" and "" and "&eBitcoin fiyatını Güncellemek için tıklayın.") to run:
            execute player command "bitcoin"
        make gui slot 16 of player with (red wool named "&cBitcoin Sat") to run:
            open virtual chest with size 3 named "&8&nBitcoin > Sat" to player
            set {_i} to 0
            loop 27 times:
                if {_i} is not 1 or 2 or 3 or 5 or 6 or 7 or 13 or 19 or 20 or 21 or 23 or 24 or 25:
                    make gui slot {_i} of player with (black stained glass pane named "&e") to nothing
                add 1 to {_i}
            make gui slot 1 of player with (* wool named "&a+1") to run:
                add 1 to {miktarsat::%player%}
                make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Satılcak Miktar: %{miktarsat::%player%}%" and "&8• &7Fiyat: %{miktarsat::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 2 of player with (* wool named "&a+5") to run:
                add 5 to {miktarsat::%player%}
                make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Satılcak Miktar: %{miktarsat::%player%}%" and "&8• &7Fiyat: %{miktarsat::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 3 of player with (* wool named "&a+10") to run:
                add 10 to {miktarsat::%player%}
                make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Satılcak Miktar: %{miktarsat::%player%}%" and "&8• &7Fiyat: %{miktarsat::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
               
            make gui slot 5 of player with (* wool named "&a+15") to run:
                add 15 to {miktarsat::%player%}
                make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Satılcak Miktar: %{miktarsat::%player%}%" and "&8• &7Fiyat: %{miktarsat::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 6 of player with (* wool named "&a+20") to run:
                add 20 to {miktarsat::%player%}
                make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Satılcak Miktar: %{miktarsat::%player%}%" and "&8• &7Fiyat: %{miktarsat::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 7 of player with (* wool named "&a+25") to run:
                add 25 to {miktarsat::%player%}
                make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Satılcak Miktar: %{miktarsat::%player%}%" and "&8• &7Fiyat: %{miktarsat::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
           
            make gui slot 19 of player with (red wool named "&c-1") to run:
                if {miktarsat::%player%} is bigger or equal to 1:
                    remove 1 from {miktarsat::%player%}
                    make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Satılcak Miktar: %{miktarsat::%player%}%" and "&8• &7Fiyat: %{miktarsat::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 20 of player with (red wool named "&c-5") to run:
                if {miktarsat::%player%} is bigger or equal to 5:
                    remove 5 from {miktarsat::%player%}
                    make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Satılcak Miktar: %{miktarsat::%player%}%" and "&8• &7Fiyat: %{miktarsat::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 21 of player with (red wool named "&c-10") to run:
                if {miktarsat::%player%} is bigger or equal to 10:
                    remove 10 from {miktarsat::%player%}
                    make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Satılcak Miktar: %{miktarsat::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
               
            make gui slot 23 of player with (red wool named "&c-15") to run:
                if {miktarsat::%player%} is bigger or equal to 15:
                    remove 15 from {miktarsat::%player%}
                    make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Satılcak Miktar: %{miktarsat::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 24 of player with (red wool named "&c-20") to run:
                if {miktarsat::%player%} is bigger or equal to 20:
                    remove 20 from {miktarsat::%player%}
                    make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Satılcak Miktar: %{miktarsat::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 25 of player with (red wool named "&c-25") to run:
                if {miktarsat::%player%} is bigger or equal to 25:
                    remove 25 from {miktarsat::%player%}
                    make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Satılcak Miktar: %{miktarsat::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
           
            make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Satılcak Miktar: %{miktarsat::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
           
        set {_i} to 0
        loop 27 times:
            if {_i} is not 10 or 13 or 16:
                make gui slot {_i} of player with (black stained glass pane named "&e") to nothing
            add 1 to {_i}

on inventory click:
    # Satın Alma
    if name of event-inventory = "&8&nBitcoin > Satın Al":
        if event-slot is knowledge book:
            if {miktar::%player%} is set:
                open virtual chest with size 1 named "&8&nBitcoin > Satın Al > Onayla" to player
                set {_i} to 0
                loop 9 times:
                    if {_i} is not 1 or 7:
                        make gui slot {_i} of player with (black stained glass pane named "&e") to nothing
                    add 1 to {_i}
                make gui slot 1 of player with (* wool named "&aOnayla") to run:
                    set {_fiyat} to {miktar::%player%} * {bitcoin::kur}
                    if player's balance is bigger or equal to {_fiyat}:
                        remove {_fiyat} from player's balance
                        add {miktar::%player%} to {bitcoin::cüzdan::%player%}
                        send "&6Bitcoin &8» &7Hesabınıza &e%{miktar::%player%}% &7adet bitcoin eklendi."
                        send "&6Bitcoin &8» &7Hesabınızdan &e%{_fiyat}% &7Para çekildi."
                        delete {miktar::%player%}
                        close player's inventory
                    else:
                        delete {miktar::%player%}
                        send "&6Bitcoin &8» &7Hesabınızda yetersiz miktarda Para bulunmaktadır."
                        close player's inventory
                make gui slot 7 of player with (red wool named "&cReddet") to run:
                    delete {miktar::%player%}
                    send "&6Bitcoin &8» &7Satın Alım işlemi iptal edildi."
                    close player's inventory
    # Satış
    if name of event-inventory = "&8&nBitcoin > Sat":
        if event-slot is knowledge book:
            if {miktarsat::%player%} is set:
                open virtual chest with size 1 named "&8&nBitcoin > Sat > Onayla" to player
                set {_i} to 0
                loop 9 times:
                    if {_i} is not 1 or 7:
                        make gui slot {_i} of player with (black stained glass pane named "&e") to nothing
                    add 1 to {_i}
                make gui slot 1 of player with (* wool named "&aOnayla") to run:
                    set {_fiyat} to {miktarsat::%player%} * {bitcoin::kur}
                    if {bitcoin::cüzdan::%player%} is bigger or equal to {miktarsat::%player%}:
                        add {_fiyat} to player's balance
                        remove {miktarsat::%player%} from {bitcoin::cüzdan::%player%}
                        send "&6Bitcoin &8» &e%{miktarsat::%player%}% &7adet Bitcoin satıldı."
                        send "&6Bitcoin &8» &7Hesabınıza &e%{_fiyat}% &7Para eklendi."
                        delete {miktarsat::%player%}
                        close player's inventory
                    else:
                        delete {miktarsat::%player%}
                        send "&6Bitcoin &8» &7Hesabınızda yetersiz miktarda Bitcoin bulunmaktadır."
                        close player's inventory
                make gui slot 7 of player with (red wool named "&cReddet") to run:
                    delete {miktarsat::%player%}
                    send "&6Bitcoin &8» &7Satın Alım işlemi iptal edildi."
                    close player's inventory

on inventory close:
    if name of event-inventory = "&8&nBitcoin > Satın Al > Onayla":
        if {miktar::%player%} is set:
            delete {miktar::%player%}
            send "&6Bitcoin &8» &7Satın Alım işlemi iptal edildi."
    if name of event-inventory = "&8&nBitcoin > Sat > Onayla":
        if {miktarsat::%player%} is set:
            delete {miktarsat::%player%}
            send "&6Bitcoin &8» &7Satış işlemi iptal edildi."



İyi Günlerde Kullanın.
Merhabalar , güzel bir skript olmuş elinize sağlık ancak ilk olarak sunucu piyasası %80 oranla 1.8.X de dönerken 1.16 olması skriptin şahsen bir büyük bir dezavantajdır ancak tabiki tercih meselesidir saygı duyarım 2.olarak ise internetden veri çekmesi güzel ancak büyük sunucularda sürekli veri çekme işleminden dolayı laga/pinge neden olacağını düşünüyorum
ancak genel olarak güzel bir çalışma olmuş başarılar dilerim.

İyi Forumlar...

Saygılarımla...
 
Bu kadar güzel bir skriptin bedava olması gerçekten mükemmel. Başarılar dilerim @eyyüp.
Teşekürler.

Merhabalar , güzel bir skript olmuş elinize sağlık ancak ilk olarak sunucu piyasası %80 oranla 1.8.X de dönerken 1.16 olması skriptin şahsen bir büyük bir dezavantajdır ancak tabiki tercih meselesidir saygı duyarım 2.olarak ise internetden veri çekmesi güzel ancak büyük sunucularda sürekli veri çekme işleminden dolayı laga/pinge neden olacağını düşünüyorum
ancak genel olarak güzel bir çalışma olmuş başarılar dilerim.

İyi Forumlar...

Saygılarımla...
Teşekür Ederim Aki reis .d
 
Güzel skript yapmışsınız ama yasaklandığınızı görmek üzdü.
 
Çok güzel bir skript gerçekten başarılarınızın devamını diliyorum
 
Ön Söz

Selam değerli MC-TR forum ailesi! Artık her yerde bu skript'i görüyorum ve ücretsiz olarak paylaşılan "En iyi" Bitcoin skript'i olabilir :)

Sunucunuzda güzel bir Sistem olacağını düşünüyorum ve tanıtım'a geçelim :)

Skriptimiz bitcoin fiyatını internettden çekip 100 ile bölüyordur.

Tanıtım

Ekli dosyayı görüntüle 169391
Ekli dosyayı görüntüle 169397


Gerekli Addonlar ve Sürümleri:

TuSke PikachuPatch v3
SkRayFall (Son Sürüm)
Skript (Son Sürüm)


Not: Bu Skript sadece 1.16 da çalışmaktadır


Kod:
on first join:
    set {bitcoin::cüzdan::%player%} to 0
  
every 10 seconds:
    set {_btc} to text from url "https://api.coindesk.com/v1/bpi/currentprice.json"
    set {_btcc::*} to {_btc} split at ","
    replace all """" with "" in {_btcc::11}
    replace all "." with "" in {_btcc::11}
    set {bitcoin::kur} to {_btcc::11} parsed as number / 100
command /bitcoin:
    trigger:
        open virtual chest with size 3 named "&8&nBitcoin" to player
        make gui slot 10 of player with (* wool named "&aBitcoin Satın al") to run:
            open virtual chest with size 3 named "&8&nBitcoin > Satın Al" to player
            set {_i} to 0
            loop 27 times:
                if {_i} is not 1 or 2 or 3 or 5 or 6 or 7 or 13 or 19 or 20 or 21 or 23 or 24 or 25:
                    make gui slot {_i} of player with (black stained glass pane named "&e") to nothing
                add 1 to {_i}
            make gui slot 1 of player with (* wool named "&a+1") to run:
                add 1 to {miktar::%player%}
                make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Eklenen Miktar: %{miktar::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 2 of player with (* wool named "&a+5") to run:
                add 5 to {miktar::%player%}
                make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Eklenen Miktar: %{miktar::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 3 of player with (* wool named "&a+10") to run:
                add 10 to {miktar::%player%}
                make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Eklenen Miktar: %{miktar::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
              
            make gui slot 5 of player with (* wool named "&a+15") to run:
                add 15 to {miktar::%player%}
                make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Eklenen Miktar: %{miktar::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 6 of player with (* wool named "&a+20") to run:
                add 20 to {miktar::%player%}
                make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Eklenen Miktar: %{miktar::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 7 of player with (* wool named "&a+25") to run:
                add 25 to {miktar::%player%}
                make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Eklenen Miktar: %{miktar::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
          
            make gui slot 19 of player with (red wool named "&c-1") to run:
                if {miktar::%player%} is bigger or equal to 1:
                    remove 1 from {miktar::%player%}
                    make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Eklenen Miktar: %{miktar::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 20 of player with (red wool named "&c-5") to run:
                if {miktar::%player%} is bigger or equal to 5:
                    remove 5 from {miktar::%player%}
                    make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Eklenen Miktar: %{miktar::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 21 of player with (red wool named "&c-10") to run:
                if {miktar::%player%} is bigger or equal to 10:
                    remove 10 from {miktar::%player%}
                    make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Eklenen Miktar: %{miktar::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
              
            make gui slot 23 of player with (red wool named "&c-15") to run:
                if {miktar::%player%} is bigger or equal to 15:
                    remove 15 from {miktar::%player%}
                    make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Eklenen Miktar: %{miktar::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 24 of player with (red wool named "&c-20") to run:
                if {miktar::%player%} is bigger or equal to 20:
                    remove 20 from {miktar::%player%}
                    make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Eklenen Miktar: %{miktar::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 25 of player with (red wool named "&c-25") to run:
                if {miktar::%player%} is bigger or equal to 25:
                    remove 25 from {miktar::%player%}
                    make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Eklenen Miktar: %{miktar::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
          
            make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Eklenen Miktar: %{miktar::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
          
        make gui slot 13 of player with (knowledge book named "&eDurum" with lore "&7" and "&8• &7Bitcoin fiyatı: &f%{bitcoin::kur}%" and "&8• &7Bitcoin Cüzdanın: &f%{bitcoin::cüzdan::%player%}%" and "" and "&eBitcoin fiyatını Güncellemek için tıklayın.") to run:
            execute player command "bitcoin"
        make gui slot 16 of player with (red wool named "&cBitcoin Sat") to run:
            open virtual chest with size 3 named "&8&nBitcoin > Sat" to player
            set {_i} to 0
            loop 27 times:
                if {_i} is not 1 or 2 or 3 or 5 or 6 or 7 or 13 or 19 or 20 or 21 or 23 or 24 or 25:
                    make gui slot {_i} of player with (black stained glass pane named "&e") to nothing
                add 1 to {_i}
            make gui slot 1 of player with (* wool named "&a+1") to run:
                add 1 to {miktarsat::%player%}
                make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Satılcak Miktar: %{miktarsat::%player%}%" and "&8• &7Fiyat: %{miktarsat::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 2 of player with (* wool named "&a+5") to run:
                add 5 to {miktarsat::%player%}
                make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Satılcak Miktar: %{miktarsat::%player%}%" and "&8• &7Fiyat: %{miktarsat::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 3 of player with (* wool named "&a+10") to run:
                add 10 to {miktarsat::%player%}
                make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Satılcak Miktar: %{miktarsat::%player%}%" and "&8• &7Fiyat: %{miktarsat::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
              
            make gui slot 5 of player with (* wool named "&a+15") to run:
                add 15 to {miktarsat::%player%}
                make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Satılcak Miktar: %{miktarsat::%player%}%" and "&8• &7Fiyat: %{miktarsat::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 6 of player with (* wool named "&a+20") to run:
                add 20 to {miktarsat::%player%}
                make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Satılcak Miktar: %{miktarsat::%player%}%" and "&8• &7Fiyat: %{miktarsat::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 7 of player with (* wool named "&a+25") to run:
                add 25 to {miktarsat::%player%}
                make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Satılcak Miktar: %{miktarsat::%player%}%" and "&8• &7Fiyat: %{miktarsat::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
          
            make gui slot 19 of player with (red wool named "&c-1") to run:
                if {miktarsat::%player%} is bigger or equal to 1:
                    remove 1 from {miktarsat::%player%}
                    make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Satılcak Miktar: %{miktarsat::%player%}%" and "&8• &7Fiyat: %{miktarsat::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 20 of player with (red wool named "&c-5") to run:
                if {miktarsat::%player%} is bigger or equal to 5:
                    remove 5 from {miktarsat::%player%}
                    make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Satılcak Miktar: %{miktarsat::%player%}%" and "&8• &7Fiyat: %{miktarsat::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 21 of player with (red wool named "&c-10") to run:
                if {miktarsat::%player%} is bigger or equal to 10:
                    remove 10 from {miktarsat::%player%}
                    make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Satılcak Miktar: %{miktarsat::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
              
            make gui slot 23 of player with (red wool named "&c-15") to run:
                if {miktarsat::%player%} is bigger or equal to 15:
                    remove 15 from {miktarsat::%player%}
                    make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Satılcak Miktar: %{miktarsat::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 24 of player with (red wool named "&c-20") to run:
                if {miktarsat::%player%} is bigger or equal to 20:
                    remove 20 from {miktarsat::%player%}
                    make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Satılcak Miktar: %{miktarsat::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
            make gui slot 25 of player with (red wool named "&c-25") to run:
                if {miktarsat::%player%} is bigger or equal to 25:
                    remove 25 from {miktarsat::%player%}
                    make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Satılcak Miktar: %{miktarsat::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
          
            make gui slot 13 of player with (knowledge book named "&eDurum" with lore "" and "&8• &7Satılcak Miktar: %{miktarsat::%player%}%" and "&8• &7Fiyat: %{miktar::%player%} * {bitcoin::kur}%" and "" and "&8• &eOnaylamak için Tıklayın") to nothing
          
        set {_i} to 0
        loop 27 times:
            if {_i} is not 10 or 13 or 16:
                make gui slot {_i} of player with (black stained glass pane named "&e") to nothing
            add 1 to {_i}

on inventory click:
    # Satın Alma
    if name of event-inventory = "&8&nBitcoin > Satın Al":
        if event-slot is knowledge book:
            if {miktar::%player%} is set:
                open virtual chest with size 1 named "&8&nBitcoin > Satın Al > Onayla" to player
                set {_i} to 0
                loop 9 times:
                    if {_i} is not 1 or 7:
                        make gui slot {_i} of player with (black stained glass pane named "&e") to nothing
                    add 1 to {_i}
                make gui slot 1 of player with (* wool named "&aOnayla") to run:
                    set {_fiyat} to {miktar::%player%} * {bitcoin::kur}
                    if player's balance is bigger or equal to {_fiyat}:
                        remove {_fiyat} from player's balance
                        add {miktar::%player%} to {bitcoin::cüzdan::%player%}
                        send "&6Bitcoin &8» &7Hesabınıza &e%{miktar::%player%}% &7adet bitcoin eklendi."
                        send "&6Bitcoin &8» &7Hesabınızdan &e%{_fiyat}% &7Para çekildi."
                        delete {miktar::%player%}
                        close player's inventory
                    else:
                        delete {miktar::%player%}
                        send "&6Bitcoin &8» &7Hesabınızda yetersiz miktarda Para bulunmaktadır."
                        close player's inventory
                make gui slot 7 of player with (red wool named "&cReddet") to run:
                    delete {miktar::%player%}
                    send "&6Bitcoin &8» &7Satın Alım işlemi iptal edildi."
                    close player's inventory
    # Satış
    if name of event-inventory = "&8&nBitcoin > Sat":
        if event-slot is knowledge book:
            if {miktarsat::%player%} is set:
                open virtual chest with size 1 named "&8&nBitcoin > Sat > Onayla" to player
                set {_i} to 0
                loop 9 times:
                    if {_i} is not 1 or 7:
                        make gui slot {_i} of player with (black stained glass pane named "&e") to nothing
                    add 1 to {_i}
                make gui slot 1 of player with (* wool named "&aOnayla") to run:
                    set {_fiyat} to {miktarsat::%player%} * {bitcoin::kur}
                    if {bitcoin::cüzdan::%player%} is bigger or equal to {miktarsat::%player%}:
                        add {_fiyat} to player's balance
                        remove {miktarsat::%player%} from {bitcoin::cüzdan::%player%}
                        send "&6Bitcoin &8» &e%{miktarsat::%player%}% &7adet Bitcoin satıldı."
                        send "&6Bitcoin &8» &7Hesabınıza &e%{_fiyat}% &7Para eklendi."
                        delete {miktarsat::%player%}
                        close player's inventory
                    else:
                        delete {miktarsat::%player%}
                        send "&6Bitcoin &8» &7Hesabınızda yetersiz miktarda Bitcoin bulunmaktadır."
                        close player's inventory
                make gui slot 7 of player with (red wool named "&cReddet") to run:
                    delete {miktarsat::%player%}
                    send "&6Bitcoin &8» &7Satın Alım işlemi iptal edildi."
                    close player's inventory

on inventory close:
    if name of event-inventory = "&8&nBitcoin > Satın Al > Onayla":
        if {miktar::%player%} is set:
            delete {miktar::%player%}
            send "&6Bitcoin &8» &7Satın Alım işlemi iptal edildi."
    if name of event-inventory = "&8&nBitcoin > Sat > Onayla":
        if {miktarsat::%player%} is set:
            delete {miktarsat::%player%}
            send "&6Bitcoin &8» &7Satış işlemi iptal edildi."



İyi Günlerde Kullanın.
Kod baya kısaltılabilir, Gereksiz variable kullanıyor, sadece 1.16, beğenmedim.
 
Kod baya kısaltılabilir, Gereksiz variable kullanıyor, sadece 1.16, beğenmedim.
Kod kısaltmaya gerek duymadım, gereksiz variable dedikleriniz otomatik siliniyor oyundan çıkılınca veya menü kapatılınca {_miktar} yaptığımda ise Kod bozulduğu için boş variable ile uğraştım.
 
Güzel Skript'e benziyor, kendi sunucumda kullanacağım. Teşekkürler Eyyüp.
 
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