Çözüldü Oto sat çubuğu

  • Konuyu Başlatan Konuyu Başlatan xMaxBey
  • Başlangıç tarihi Başlangıç tarihi
  • Görüntüleme 850
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

xMaxBey

Fırında Isıttığım İlk Taş
Katılım
28 Ağustos 2019
Mesajlar
86
Elmaslar
11
Puan
950
Yaş
27
Selamun aleyküm arkadaşlar, sandığın içindeki itemleri bir çubuk ile tıkladığımızda satabileceğimiz bir skript istiyorum(buğday satacak), internette araştırdım bazıları buglu çok fazla para gönderiyor bazıları bu sandık senin değil diyor yardımcı olursanız sevinirim.
 
KARDEŞİM AL BENİM KULLANDIGIM FİYATLARI AYARLIYABİLİYORSUN [ALINTIDIR]
Kod:
command /sandiksatar:
    permission: ss.sandiksatar
    trigger:
        give 1 diamond hoe named "&eSandık Satar" to player


on right click with diamond hoe:
    if name of player's tool is "&eSandık Satar":
        if clicked block is a chest:
            if amount of iron block in clicked block is greater than 0:
                add (amount of iron block in clicked block * 5000) to player's money
                send "&a&l%amount of iron block in clicked block% &c&lDemir Blok Satildi &f&lKazanc: &e&l%(amount of iron block in clicked block * 5000)%" to player
                remove every iron blocks from clicked block
            else if amount of gold block in clicked block is greater than 0:
                add (amount of gold block in clicked block * 6740) to player's money
                send "&a&l%amount of gold block in clicked block% &c&lAltin Blok Satildi &f&lKazanc: &e&l%(amount of gold block in clicked block * 6740)%" to player
                remove every gold blocks from clicked block
            else if amount of emerald block in clicked block is greater than 0:
                add (amount of emerald block in clicked block * 26000) to player's money
                send "&a&l%amount of emerald block in clicked block% &c&lZumrut Blok Satildi &f&lKazanc: &e&l%(amount of emerald block in clicked block * 26000)%" to player
                remove every emerald blocks from clicked block
            else if amount of diamond block in clicked block is greater than 0:
                add (amount of diamond block in clicked block * 13000) to player's money
                send "&a&l%amount of diamond block in clicked block% &c&lElmas Blok Satildi &f&lKazanc: &e&l%(amount of diamond block in clicked block * 13000)%" to player
                remove every diamond blocks from clicked block
 
KARDEŞİM AL BENİM KULLANDIGIM FİYATLARI AYARLIYABİLİYORSUN [ALINTIDIR]
Kod:
command /sandiksatar:
    permission: ss.sandiksatar
    trigger:
        give 1 diamond hoe named "&eSandık Satar" to player


on right click with diamond hoe:
    if name of player's tool is "&eSandık Satar":
        if clicked block is a chest:
            if amount of iron block in clicked block is greater than 0:
                add (amount of iron block in clicked block * 5000) to player's money
                send "&a&l%amount of iron block in clicked block% &c&lDemir Blok Satildi &f&lKazanc: &e&l%(amount of iron block in clicked block * 5000)%" to player
                remove every iron blocks from clicked block
            else if amount of gold block in clicked block is greater than 0:
                add (amount of gold block in clicked block * 6740) to player's money
                send "&a&l%amount of gold block in clicked block% &c&lAltin Blok Satildi &f&lKazanc: &e&l%(amount of gold block in clicked block * 6740)%" to player
                remove every gold blocks from clicked block
            else if amount of emerald block in clicked block is greater than 0:
                add (amount of emerald block in clicked block * 26000) to player's money
                send "&a&l%amount of emerald block in clicked block% &c&lZumrut Blok Satildi &f&lKazanc: &e&l%(amount of emerald block in clicked block * 26000)%" to player
                remove every emerald blocks from clicked block
            else if amount of diamond block in clicked block is greater than 0:
                add (amount of diamond block in clicked block * 13000) to player's money
                send "&a&l%amount of diamond block in clicked block% &c&lElmas Blok Satildi &f&lKazanc: &e&l%(amount of diamond block in clicked block * 13000)%" to player
                remove every diamond blocks from clicked block
Bunu 64 buğdayı 600 tl ye satacak şekilde ayarlayabilir miyiz ya
 
MC-TR'de sandık satar üzerine açılan konular var zaten ordan ayarlamak basit :)
 
Benim Kullandığım Sandık Satar Skripti [ALINTIDIR] Kendine Göre Ayarlayabilirsin

Kod:
options:
    p: &eSATIS » #Mesaj başlarındaki prefix
    cubukismi: &aSandık Satar #Sandıktaki itemleri satmak için tıklanılacak çubuğun ismi
    1demirfiyati: 3000 #1 demirin satma fiyatı
    1altinfiyati: 4000 #1 altının satma fiyatı
    1elmasfiyati: 5000 #1 elmasın satma fiyatı
    1zumrutfiyati: 6000 #1 zümrütün satma fiyatı
    1demirblock: 27000 #1 demir bloğunun satma fiyatı
    1goldblock: 36000 #1 altın bloğunun satma fiyatı
    1diablock: 45000 #1 elmas bloğunun satma fiyatı
    1zumrutblock: 54000 #1 zümrüt bloğunun satma fiyatı

command /sandıksatar:
    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} &a%{_itemcounti}% demir satıldı. Kazanılan para: &c%{@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} &a%{_itemcountg}% altın satıldı. Kazanılan para: &c%{@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} &a%{_itemcountd}% elmas satıldı. Kazanılan para: &c%{@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} &a%{_itemcounte}% zümrüt satıldı. Kazanılan para: &c%{@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} &a%{_itemcountib}% demir blok satıldı. Kazanılan para: &c%{@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} &a%{_itemcountgb}% altın blok satıldı. Kazanılan para: &c%{@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} &a%{_itemcountdb}% elmas blok satıldı. Kazanılan para: &c%{@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} &a%{_itemcounteb}% zümrüt blok satıldı. Kazanılan para: &c%{@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 {chest::%player%::*} contains event-block's location:
        remove event-block's location from {chests::%player%::*}
 
Tamamdır hallettim
 
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