Onaylı Tanıtım Adetli satış çıbığı

SkyHell

Ağaç Yumruklayıcı
Mesajlar
23
En iyi cevaplar
0
Beğeniler
1
Puanları
80
Bu satış çubuğu skriptine 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%::*}
 


Bernard

Бернард
Site Danışmanı
Geliştirici
Mesajlar
1,286
En iyi cevaplar
61
Beğeniler
2,129
Puanları
5,790
Skript bilgim çok olmasa bile yapmaya çalıştım. Herkesin 50 hakkı var ve bitince dediğin şeyi yapamıyorlar. Hakkını görmek için /hakkım komutunu kullanabilirsin. Hak komutunu kullanabilmek için "sk.hak" yetkisine sahip olmalısın. Eğer oyuncunun "sk.hak" yetkisi yoksa haklarını göremeyecek.

Skript:
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

command /hakkım:
    permission: sk.hak
    trigger:
        send "{@p} {hak.%player%} adet kullanım hakkın var."

       
on leftclick on chest with stick:
    if player has permission "sk.oto":
        if name of player's tool is "{@cubukismi}":
            if {hak.%player%} less than 51:
                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
                    remove 1 from {hak.%player%}
                    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
                    remove 1 from {hak.%player%}
                    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
                    remove 1 from {hak.%player%}
                    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} Tüm haklarını bitirdiğin için bunu yapamazsın."
    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%::*}
       
on join:
    if {hak.%player%} is not set:
        set {hak.%player%} to 50
 

SkyHell

Ağaç Yumruklayıcı
Mesajlar
23
En iyi cevaplar
0
Beğeniler
1
Puanları
80
Skript bilgim çok olmasa bile yapmaya çalıştım. Herkesin 50 hakkı var ve bitince dediğin şeyi yapamıyorlar. Hakkını görmek için /hakkım komutunu kullanabilirsin. Hak komutunu kullanabilmek için "sk.hak" yetkisine sahip olmalısın. Eğer oyuncunun "sk.hak" yetkisi yoksa haklarını göremeyecek.

Skript:
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

command /hakkım:
    permission: sk.hak
    trigger:
        send "{@p} {hak.%player%} adet kullanım hakkın var."

       
on leftclick on chest with stick:
    if player has permission "sk.oto":
        if name of player's tool is "{@cubukismi}":
            if {hak.%player%} less than 51:
                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
                    remove 1 from {hak.%player%}
                    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
                    remove 1 from {hak.%player%}
                    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
                    remove 1 from {hak.%player%}
                    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} Tüm haklarını bitirdiğin için bunu yapamazsın."
    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%::*}
       
on join:
    if {hak.%player%} is not set:
        set {hak.%player%} to 50
teşekkürler fakat 50 hak bittiğinde eksiye gitmekte ve kullanabilmekteyim
 

Bernard

Бернард
Site Danışmanı
Geliştirici
Mesajlar
1,286
En iyi cevaplar
61
Beğeniler
2,129
Puanları
5,790
teşekkürler fakat 50 hak bittiğinde eksiye gitmekte ve kullanabilmekteyim
Ah, doğru. Aşağıdakini dener misin?

Skript:
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

command /hakkım:
    permission: sk.hak
    trigger:
        send "{@p} {hak.%player%} adet kullanım hakkın var."

     
on leftclick on chest with stick:
    if player has permission "sk.oto":
        if name of player's tool is "{@cubukismi}":
            if {hak.%player%} less than 51 and greater than 0:
                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
                    remove 1 from {hak.%player%}
                    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
                    remove 1 from {hak.%player%}
                    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
                    remove 1 from {hak.%player%}
                    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} Tüm haklarını bitirdiğin için bunu yapamazsın."
    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%::*}
     
on join:
    if {hak.%player%} is not set:
        set {hak.%player%} to 50
 

SkyHell

Ağaç Yumruklayıcı
Mesajlar
23
En iyi cevaplar
0
Beğeniler
1
Puanları
80
Ah, doğru. Aşağıdakini dener misin?

Skript:
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

command /hakkım:
    permission: sk.hak
    trigger:
        send "{@p} {hak.%player%} adet kullanım hakkın var."

     
on leftclick on chest with stick:
    if player has permission "sk.oto":
        if name of player's tool is "{@cubukismi}":
            if {hak.%player%} less than 51 and greater than 0:
                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
                    remove 1 from {hak.%player%}
                    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
                    remove 1 from {hak.%player%}
                    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
                    remove 1 from {hak.%player%}
                    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} Tüm haklarını bitirdiğin için bunu yapamazsın."
    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%::*}
     
on join:
    if {hak.%player%} is not set:
        set {hak.%player%} to 50
Çalıştı teşekkürer yardımlarınız için
 

Üst