Satış Çubuğu Skripti (lütfen konuyu inceleyin)

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

mertpro123

Koydum Çalışma Masasını
Katılım
17 Aralık 2016
Mesajlar
62
Elmaslar
11
Puan
0
Yaş
31
Bu skript şu hatayı veriyor:



Sandığı ben koyuyorum ama genede bu hata geliyor.

Kod:
options:
    p: &eBlade&3Craft &7» #Mesaj başlarındaki prefix
    cubukismi: &aSatma Çubuğu #Sandıktaki itemleri satmak için tıklanılacak çubuğun ismi
    1demirfiyati: 75 #1 demirin satma fiyatı
    1altinfiyati: 50 #1 altının satma fiyatı
    1elmasfiyati: 250 #1 elmasın satma fiyatı
    1zumrutfiyati: 50 #1 zümrütün satma fiyatı
    1demirblock: 675 #1 demir bloğunun satma fiyatı
    1goldblock: 450 #1 altın bloğunun satma fiyatı
    1diablock: 2250 #1 elmas bloğunun satma fiyatı
    1zumrutblock: 450 #1 zümrüt bloğunun satma fiyatı

command /çubuk:
    trigger:
        give 1 stick named "{@cubukismi}" to player
on leftclick on chest with stick:
    if name of player's tool is "{@cubukismi}":
        if {chests::%player%::*} contains location of clicked chest:
            if clicked chest contains iron ingot:
                set {_itemcounti} to number of all iron ingots in clicked chest
                remove {_itemcounti} of iron ingots from clicked chest's inventory
                add {@1demirfiyati} * {_itemcounti} to the player's money
                send "{@p} &7%{_itemcounti}% demir satıldı. Kazanılan para: &a%{@1demirfiyati} * {_itemcounti}%"
            if clicked chest contains gold ingot:
                set {_itemcountg} to number of all gold ingots in clicked chest
                remove {_itemcountg} of gold ingots from clicked chest's inventory
                add {@1altinfiyati} * {_itemcountg} to the player's money
                send "{@p} &7%{_itemcountg}% altın satıldı. Kazanılan para: &a%{@1altinfiyati} * {_itemcountg}%"
            if clicked chest contains diamond:
                set {_itemcountd} to number of all diamonds in clicked chest
                remove {_itemcountd} of diamonds from clicked chest's inventory
                add {@1elmasfiyati} * {_itemcountd} to the player's money
                send "{@p} &7%{_itemcountd}% elmas satıldı. Kazanılan para: &a%{@1elmasfiyati} * {_itemcountd}%"
            if clicked chest contains emerald:
                set {_itemcounte} to number of all emeralds in clicked chest
                remove {_itemcounte} of emeralds from clicked chest's inventory
                add {@1zumrutfiyati} * {_itemcounte} to the player's money
                send "{@p} &7%{_itemcounte}% zümrüt satıldı. Kazanılan para: &a%{@1zumrutfiyati} * {_itemcounte}%"
            if clicked chest contains iron block:
                set {_itemcountib} to number of all iron blocks in clicked chest
                remove {_itemcountib} of iron blocks from clicked chest's inventory
                add {@1demirblock} * {_itemcountib} to the player's money
                send "{@p} &7%{_itemcountib}% demir blok satıldı. Kazanılan para: &a%{@1demirblock} * {_itemcountib}%"
            if clicked chest contains gold block:
                set {_itemcountgb} to number of all gold blocks in clicked chest
                remove {_itemcountgb} of gold blocks from clicked chest's inventory
                add {@1goldblock} * {_itemcountgb} to the player's money
                send "{@p} &7%{_itemcountgb}% altın blok satıldı. Kazanılan para: &a%{@1goldblock} * {_itemcountgb}%"
            if clicked chest contains diamond block:
                set {_itemcountdb} to number of all diamond blocks in clicked chest
                remove {_itemcountdb} of diamond blocks from clicked chest's inventory
                add {@1diablock} * {_itemcountdb} to the player's money
                send "{@p} &7%{_itemcountdb}% elmas blok satıldı. Kazanılan para: &a%{@1diablock} * {_itemcountdb}%"
            if clicked chest contains emerald block:
                set {_itemcounteb} to number of all emerald blocks in clicked chest
                remove {_itemcounteb} of emerald blocks from clicked chest's inventory
                add {@1zumrutblock} * {_itemcounteb} to the player's money
                send "{@p} &7%{_itemcounteb}% zümrüt blok satıldı. Kazanılan para: &a%{@1zumrutblock} * {_itemcounteb}%"
        else:
            send "{@p} &aSadece kendi sandığındaki madenleri satabilirsin."
 
on place of chest:
    add event-block's location to {chests::%player%::*}
on break of chest:
    if {chests::%player%::*} contains event-block's location:
        remove event-block's location from {chests::%player%::*}
 

Ekli dosyalar

  • 2018-12-26_22.37.09.png
    2018-12-26_22.37.09.png
    135,8 KB · Görüntüleme: 276
Moderatör tarafından düzenlendi:
komutlarını azcık anlatabilirmisiniz?
 
Komutları orada belli alt kısımları incelerseniz bulabilirsiniz.
 
Way be ismimizi de çalmışlar iyimi :)

O pl sw ne biraz lag yaratır düzgün bir sk bulman öneririm.
 
yeni bir satış çubuğu sk atabilirim kasıntı 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