Bulundu Satis cubugu

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

ukaya

Odunlara Vur Vur Vur!
Katılım
7 Nisan 2020
Mesajlar
35
Elmaslar
12
Puan
2.005
Yaş
25
Minecraft
uKaya

Discord:

uKaya#3020

Arkadaslar bircok kisi paylaşmasina rağmen hatasiz bugsuz bir satış çubugu skript bulamadim. İstedigim şu oyunculara 'Satış çubugu' adında bi çubuk verilecek ve oyunlar o çubukla sandıga sol tıkladiklarında sandıgın icindekileri otomatik satacak. Bug'a gelirsek oyuncular sadece kendi sandıklarını degil başkalarının sadıklarınınkinide satabiliyor bu bugu kapatmanızı rica edicem yardımlarınızı bekliyorum.

İyi forumlar.
 

Denemiş olduğunuz sistemlerin çalışmama sebebi SkQuery, WildSkript, Skellet ve TuSke gibi temel eklentileri kurmamış olmanız olabilir ;)
Kod:
command /sandıksatar:
    trigger:
        give 1 stick named "&6Satış Çubuğu" to player


on left click with stick:
    if name of player's tool is "&6Satış Çubuğu":
        if clicked block is a chest or trapped chest:
            if amount of diamond in clicked block is greater than 0:
                add (amount of diamond in clicked block * 600) to player's money
                send "&eSandık Satar &8▸ &c%(amount of diamond in clicked block * 600)% &7hesabınıza eklendi" to player
                remove every diamonds from clicked block
            if amount of emerald in clicked block is greater than 0:
                add (amount of emerald in clicked block * 600) to player's money
                send "&eSandık Satar &8▸ &c%(amount of emerald in clicked block * 453)% &7hesabınıza eklendi" to player
                remove every emerald from clicked block
            if amount of iron ingot in clicked block is greater than 0:
                add (amount of iron ingot in clicked block * 300) to player's money
                send "&eSandık Satar &8▸ &c%(amount of iron ingot in clicked block * 300)% &7hesabınıza eklendi. " to player
                remove every iron ingot from clicked block
            if amount of iron block in clicked block is greater than 0:
                add (amount of iron block in clicked block * 2700) to player's money
                send "&eSandık Satar &8▸ &c%(amount of iron block in clicked block * 2700)% &7hesabınıza eklendi. " to player
                remove every iron blocks from clicked block
            if amount of gold ingot in clicked block is greater than 0:
                add (amount of gold ingot in clicked block * 367) to player's money
                send "&eSandık Satar &8▸ &c%(amount of gold ingot in clicked block * 367)% &7hesabınıza eklendi. " to player
                remove every gold ingot from clicked block
            else if amount of gold block in clicked block is greater than 0:
                add (amount of gold block in clicked block * 3600) to player's money
                send "&eSandık Satar &8▸ &c%(amount of gold block in clicked block * 3600)% &7hesabınıza eklendi." 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 * 4500) to player's money
                send "&eSandık Satar &8▸ &c%(amount of emerald block in clicked block * 4500)% &7hesabınıza eklendi." 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 * 5400) to player's money
                send "&eSandık Satar &8▸ &c%(amount of diamond block in clicked block * 5400)% &7hesabınıza eklendi." to player
                remove every diamond blocks from clicked block
 

Denemiş olduğunuz sistemlerin çalışmama sebebi SkQuery, WildSkript, Skellet ve TuSke gibi temel eklentileri kurmamış olmanız olabilir ;)
Kod:
command /sandıksatar:
    trigger:
        give 1 stick named "&6Satış Çubuğu" to player


on left click with stick:
    if name of player's tool is "&6Satış Çubuğu":
        if clicked block is a chest or trapped chest:
            if amount of diamond in clicked block is greater than 0:
                add (amount of diamond in clicked block * 600) to player's money
                send "&eSandık Satar &8▸ &c%(amount of diamond in clicked block * 600)% &7hesabınıza eklendi" to player
                remove every diamonds from clicked block
            if amount of emerald in clicked block is greater than 0:
                add (amount of emerald in clicked block * 600) to player's money
                send "&eSandık Satar &8▸ &c%(amount of emerald in clicked block * 453)% &7hesabınıza eklendi" to player
                remove every emerald from clicked block
            if amount of iron ingot in clicked block is greater than 0:
                add (amount of iron ingot in clicked block * 300) to player's money
                send "&eSandık Satar &8▸ &c%(amount of iron ingot in clicked block * 300)% &7hesabınıza eklendi. " to player
                remove every iron ingot from clicked block
            if amount of iron block in clicked block is greater than 0:
                add (amount of iron block in clicked block * 2700) to player's money
                send "&eSandık Satar &8▸ &c%(amount of iron block in clicked block * 2700)% &7hesabınıza eklendi. " to player
                remove every iron blocks from clicked block
            if amount of gold ingot in clicked block is greater than 0:
                add (amount of gold ingot in clicked block * 367) to player's money
                send "&eSandık Satar &8▸ &c%(amount of gold ingot in clicked block * 367)% &7hesabınıza eklendi. " to player
                remove every gold ingot from clicked block
            else if amount of gold block in clicked block is greater than 0:
                add (amount of gold block in clicked block * 3600) to player's money
                send "&eSandık Satar &8▸ &c%(amount of gold block in clicked block * 3600)% &7hesabınıza eklendi." 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 * 4500) to player's money
                send "&eSandık Satar &8▸ &c%(amount of emerald block in clicked block * 4500)% &7hesabınıza eklendi." 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 * 5400) to player's money
                send "&eSandık Satar &8▸ &c%(amount of diamond block in clicked block * 5400)% &7hesabınıza eklendi." to player
                remove every diamond blocks from clicked block
Merhaba hepsi kurulu birde şunu sorucaktım sadece kendi sandıgını satıyor değil mi ?
 




Bildiğim kadarıyla öyle olması gerekiyor ama test etmekte de fayda var ;) <3
Denedim herkes herkesin sandıgını satabiliyor claimli olmasına rağmen
Gönderi otomatik olarak birleştirildi:

Birde herkes bu komutu kullanabiliyor perm ekledim fakat bircok hata ile karsılastım onuda halledebilir miyiz ?
 
Son düzenleme:
Denedim herkes herkesin sandıgını satabiliyor claimli olmasına rağmen
Gönderi otomatik olarak birleştirildi:

Birde herkes bu komutu kullanabiliyor perm ekledim fakat bircok hata ile karsılastım onuda halledebilir miyiz ?
op olduğun için satiyor olabilir.
 
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