SkyHell
Ağaç Yumruklayıcı
- En iyi cevaplar
- 0
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
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%::*}