Sol Reklam
Sağ Reklam

Çözüldü Adetli Satış Çubuğu

Durum
Mesaj gönderimine kapalı.

HcaTR

Odunlara Vur Vur Vur!
Katılım
16 Ekim 2016
Mesajlar
36
Elmaslar
3
Puanlar
13.210
Yaş
26
Merhaba! bu satış çubuğu skriptinde 50 adet sınırı getirebilir misiniz?
yani 50 kullanımdan sonra kullanamasın ve hakkım yazdığında kalan satış hakkı gözükürse çok güzel olur Teşekkürler

Kod:
command /çıbık:
    permission: sk.op
    trigger:
        give 1 stick named "{@cubukismi}" with lore "&eSol Tıklayarak Kullan (Kullanmak için /vip)" to player

       
on leftclick on chest with stick:
    if player has permission "sk.oto":
        if name of player's tool is "{@cubukismi}":
            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 {@demirfiyat} * {_itemcounti} to the player's money
                send "{@p} &7Sandığınızdaki &7&n%{_itemcounti}%&r &c&nDemir&r &7Satıldı. &c&n%{@demirfiyat} * {_itemcounti}%&rt &7Gelir Elde Ettiniz."
            if clicked chest contains gold ingot:
                set {_itemcounti} to number of all gold ingots in clicked chest
                remove {_itemcounti} of gold ingots from clicked chest's inventory
                add {@altınfiyat} * {_itemcounti} to the player's money
                send "{@p} &7Sandığınızdaki &7&n%{_itemcounti}%&r &c&nAltın&r &7Satıldı. &c&n%{@altınfiyat} * {_itemcounti}%&rt &7Gelir Elde Ettiniz."       
            if clicked chest contains diamond:
                set {_itemcounti} to number of all diamond in clicked chest
                remove {_itemcounti} of diamond from clicked chest's inventory
                add {@elmasfiyat} * {_itemcounti} to the player's money
                send "{@p} &7Sandığınızdaki &7&n%{_itemcounti}%&r &c&nElmas&r &7Satıldı. &c&n%{@elmasfiyat} * {_itemcounti}%&rt &7Gelir Elde Ettiniz."   
    else:
        send "{@p} &aBunu yapabilmen için vip+,mvip,mvip+ olman gereklidir." 
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%::*}
 

FatihE

Java Dev

Discord:

Fatih#1469

Katılım
19 Ağustos 2019
Mesajlar
153
Elmaslar
115
Puanlar
1.290
Yer
Ankara
Minecraft
Fatih
C++:
on first join:
    set {hak::%player%} to 0

command /çıbık [<text>]:
    permission: sk.op
    trigger:
        if arg-1 is not set:
            if {hak::%player%} is greater than or equal to 50:
                send "{@p} &7Hakkın Dolmuş!"
            else:
                give 1 stick named "{@cubukismi}" with lore "&eSol Tıklayarak Kullan (Kullanmak için /vip)" to player
                add 1 to {hak::%player%}
        else if arg-1 is set:
            if arg-1 is "hak":
                send "{@p} &7Kalan kullanım: &a%50 - {hak::%player%}%"

      
on leftclick on chest with stick:
    if player has permission "sk.oto":
        if name of player's tool is "{@cubukismi}":
            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 {@demirfiyat} * {_itemcounti} to the player's money
                send "{@p} &7Sandığınızdaki &7&n%{_itemcounti}%&r &c&nDemir&r &7Satıldı. &c&n%{@demirfiyat} * {_itemcounti}%&rt &7Gelir Elde Ettiniz."
            if clicked chest contains gold ingot:
                set {_itemcounti} to number of all gold ingots in clicked chest
                remove {_itemcounti} of gold ingots from clicked chest's inventory
                add {@altınfiyat} * {_itemcounti} to the player's money
                send "{@p} &7Sandığınızdaki &7&n%{_itemcounti}%&r &c&nAltın&r &7Satıldı. &c&n%{@altınfiyat} * {_itemcounti}%&rt &7Gelir Elde Ettiniz."       
            if clicked chest contains diamond:
                set {_itemcounti} to number of all diamond in clicked chest
                remove {_itemcounti} of diamond from clicked chest's inventory
                add {@elmasfiyat} * {_itemcounti} to the player's money
                send "{@p} &7Sandığınızdaki &7&n%{_itemcounti}%&r &c&nElmas&r &7Satıldı. &c&n%{@elmasfiyat} * {_itemcounti}%&rt &7Gelir Elde Ettiniz."   
    else:
        send "{@p} &aBunu yapabilmen için vip+,mvip,mvip+ olman gereklidir."
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%::*}
dener misin?
 
Durum
Mesaj gönderimine kapalı.
Neden altınlarını Discord sunucumuzda kazmıyorsun? TIKLA VE KATIL!
Yukarı