Skript Paylaşımı MenüMarket | SkripTR | Geliştirilmiş Tabela İle Alışveriş | config Destekli

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

shad

the temple of the king
Katılım
25 Ekim 2014
Mesajlar
1.537
Elmaslar
1.442
Puan
17.290
Minecraft
emrearik
7qkmqr.png

Merhaba forum sakinleri, bugün sizlere Menü Market Skript'ini tanıtacağım. İsmi gibi değil kendisi ancak yine de menülü bir Skript kendisi. Bu Skript SpigotMC'den alınmıştır.

692Y43.png

Özellikleri oldukça fazla değil. Şunu başta söyleyeyim; Skript tabela ile satışın normal market eklentisinin hem Skript'e çevrilmiş hem de menülü bir şeklidir. Biraz da görünüşü düzeltilmiştir. Görünüş derken yazı renkleri belirtildi, komutlu bir şey gibi. Ayrıca Skript'imiz ilk çalıştığı an sunucu dosyalarınıza "plugins" klasörünün içine "MMarket" adlı klasör oluşturur ve içine "config.yml" dosyası da oluşur. Ek olarak ta kullanıcılar da kullanabilir görsellerde göreceksiniz.

Değerli ziyaretçimiz, içeriği görebilmek için şimdi giriş yapın veya kayıt olun.


aL5B2z.png

Diyeceksiniz market Skript'inde komut mu olur :) Tabi ki var;​
  • /menumarket veya /mmarket (mmarket.komut)
  • /mmarket yardim Komutları gösterir.
  • /mmarket yenile Dosyayı yeniler (config.yml dosyasını)
Şimdide sadece yetkileri sizlere verelim;​
  • mmarket.satinal
  • mmarket.satisyap
  • mmarket.tabelayisil
Bunlar da bu kadardı ve geçelim görsellere!

V0VyNR.png


9107895131ae3b1b19b27d9474b5f0e7d6d1a95b

[FSHOP] yerine [MMarket] yazmalısınız.​

70664e961f17d37b4d8d060ed3406aca9c0e6b87

Böyle gözükecek dışarıdan.

8576680826408e02592d72727a333fdd72400770

Tıkladığınızda böyle menü gelecek.

d6b41c09d0e9f8c145e30c84cacec9f7ab21a1f8

Bu da kullanıcılar için yapılmış olan.

907c81db0a1c999693b727fee824003fcdf4f5c7

Bunun menüsü de böyle.

2rgQXA.png
PHP:
on script load:
    if folder "plugins/MMarket/" doesn't exists:
        create folder "plugins/MMarket"
    wait 5 ticks
    if file "plugins/MMarket/config.yml" doesn't exists:
        create file "plugins/MMarket/config.yml"
        while file "plugins/MMarket/config.yml" doesn't exist:
            wait 10 ticks
        set "texts.Prefix" to "&6&lMenüMarket &8» " in yaml file "plugins/MMarket/config.yml"
        set "texts.BuySign_BuyItem" to "&4&lSatın AL" in yaml file "plugins/MMarket/config.yml"
        set "texts.BuySign_ItemColor" to "&0" in yaml file "plugins/MMarket/config.yml"
        set "texts.BuySign_MoneyColor" to "&2&l&o" in yaml file "plugins/MMarket/config.yml"
        set "texts.BuySign_ClickHere" to "&8&nTıkla" in yaml file "plugins/MMarket/config.yml"
        set "texts.SellSign_SellItem" to "&4&lÜrünü Sat" in yaml file "plugins/MMarket/config.yml"
        set "texts.SellSign_ItemColor" to "&0" in yaml file "plugins/MMarket/config.yml"
        set "texts.SellSign_MoneyColor" to "&2&l&o" in yaml file "plugins/MMarket/config.yml"
        set "texts.SellSign_ClickHere" to "&8&nTıkla" in yaml file "plugins/MMarket/config.yml"
        set "texts.BuyMenu_TitleText" to "&8&l&oAlışveriş Menü" in yaml file "plugins/MMarket/config.yml"
        set "texts.BuyMenu_ItemColor" to "&e&l" in yaml file "plugins/MMarket/config.yml"
        set "texts.SellMenu_TitleText" to "&8&l&oSatış Menü" in yaml file "plugins/MMarket/config.yml"
        set "texts.SellMenu_ItemColor" to "&e&l" in yaml file "plugins/MMarket/config.yml"



on sign change:
    line 1 of event-block is "[MenüMarket]" or "[MMarket]"
    set {_prefix} to single value "texts.Prefix" get of "plugins/MMarket/config.yml"
    if player's gamemode is creative:
        if line 2 of event-block is "buy":
            if player has permission "mmarket.satinal":
                if line 3 of event-block is not empty:
                    if line 4 of event-block is not empty:
                        set {_Line1} to single value "texts.BuySign_BuyItem" get of "plugins/MMarket/config.yml"
                        set {_Line2} to single value "texts.BuySign_ItemColor" get of "plugins/MMarket/config.yml"
                        set {_Line3} to single value "texts.BuySign_MoneyColor" get of "plugins/MMarket/config.yml"
                        set {_Line4} to single value "texts.BuySign_ClickHere" get of "plugins/MMarket/config.yml"
                        set {guild::shopitem::%line 3%} to "%line 3%" parsed as item
                        set {guild::priceitem::%line 3%} to "%line 4%" parsed as number
                        set line 1 of event-block to "%{_Line1}%"
                        set line 2 of event-block to "%{_Line2}%%line 3%"
                        set line 3 of event-block to "%{_Line3}%$%line 4%"
                        set line 4 of event-block to "%{_Line4}%"
                    else:
                        message "%{_prefix}% &cFiyat girmedin!"
                else:
                    message "%{_prefix}% &cEşya kodunu girmedin!"
            else:
                message "%{_prefix}% &cBu işlemi yapabilmek için gerekli yetkiye sahip değilsin!"

        else if line 2 of event-block is "sell":
            if player has permission "mmarket.satisyap":
                if line 3 of event-block is not empty:
                    if line 4 of event-block is not empty:
                        set {_Line1} to single value "texts.SellSign_SellItem" get of "plugins/MMarket/config.yml"
                        set {_Line2} to single value "texts.SellSign_ItemColor" get of "plugins/MMarket/config.yml"
                        set {_Line3} to single value "texts.SellSign_MoneyColor" get of "plugins/MMarket/config.yml"
                        set {_Line4} to single value "texts.SellSign_ClickHere" get of "plugins/MMarket/config.yml"
                        set {guild::sellshopitem::%line 3%} to "%line 3%" parsed as item
                        set {guild::sellpriceitem::%line 3%} to "%line 4%" parsed as number
                        set line 1 of event-block to "%{_Line1}%"
                        set line 2 of event-block to "%{_Line2}%%line 3%"
                        set line 3 of event-block to "%{_Line3}%$%line 4%"
                        set line 4 of event-block to "%{_Line4}%"
                    else:
                        message "%{_prefix}% &cFiyat girmedin!"
                else:
                    message "%{_prefix}% &cEşya kodunu girmedin!"
            else:
                message "%{_prefix}% &cBu işlemi yapabilmek için gerekli yetkiye sahip değilsin!"
        else:
            message "%{_prefix}% &cİkinci satır olması gerekir satmak veya satın almak için."
    else:
        message "%{_prefix}% &cCreative/Yaratıcı modundasın!"
                        

right click on sign:
    set {_Line1-Buy} to single value "texts.BuySign_BuyItem" get of "plugins/MMarket/config.yml"
    set {_Line4-Buy} to single value "texts.BuySign_ClickHere" get of "plugins/MMarket/config.yml"
    set {_Line1-Sell} to single value "texts.SellSign_SellItem" get of "plugins/MMarket/config.yml"
    set {_Line4-Sell} to single value "texts.SellSign_ClickHere" get of "plugins/MMarket/config.yml"
    line 2 of event-block is set
    line 3 of event-block is set
    if line 1 of event-block is "%{_Line1-Buy}%":
        line 4 of event-block is "%{_Line4-Buy}%"
        set {_ItemName} to "%uncoloured line 2%"
        set {_item1} to "1 %{_ItemName}%" parsed as item
        set {_item4} to "4 %{_ItemName}%" parsed as item
        set {_item8} to "8 %{_ItemName}%" parsed as item
        set {_item16} to "16 %{_ItemName}%" parsed as item
        set {_item32} to "32 %{_ItemName}%" parsed as item
        set {_item64} to "64 %{_ItemName}%" parsed as item
        set {_price1} to 1*{guild::priceitem::%{_ItemName}%}
        set {_price4} to 4*{guild::priceitem::%{_ItemName}%}
        set {_price8} to 8*{guild::priceitem::%{_ItemName}%}
        set {_price16} to 16*{guild::priceitem::%{_ItemName}%}
        set {_price32} to 32*{guild::priceitem::%{_ItemName}%}
        set {_price64} to 64*{guild::priceitem::%{_ItemName}%}
        wait 1 tick
        set {_menu} to single value "texts.BuyMenu_TitleText" get of "plugins/MMarket/config.yml"
        set {_color} to single value "texts.BuyMenu_ItemColor" get of "plugins/MMarket/config.yml"
        open chest with 1 rows named "%{_menu}%" to player
        wait 1 tick
        set slot 1 of player's current inventory to 1 of {_item1} named "%{_color}%Buy 1x" with lore "&7&oCosts $%{_price1}%"
        set slot 2 of player's current inventory to 4 of {_item4} named "%{_color}%Buy 4x" with lore "&7&oCosts $%{_price4}%"
        set slot 3 of player's current inventory to 8 of {_item8} named "%{_color}%Buy 8x" with lore "&7&oCosts $%{_price8}%"
        set slot 4 of player's current inventory to 16 of {_item16} named "%{_color}%Buy 16x" with lore "&7&oCosts $%{_price16}%"
        set slot 5 of player's current inventory to 32 of {_item32} named "%{_color}%&e&lBuy 32x" with lore "&7&oCosts $%{_price32}%"
        set slot 6 of player's current inventory to 64 of {_item64} named "%{_color}%&e&lBuy 64x" with lore "&7&oCosts $%{_price64}%"
        set slot 8 of player's current inventory to nether star named "&c&lKapat" with lore "&7&oMenüyü kapat"


    else if line 1 of event-block is "%{_Line1-Sell}%":
        line 4 of event-block is "%{_Line4-Sell}%"
        set {_ItemName} to "%uncoloured line 2%"
        set {_item1} to "1 %{_ItemName}%" parsed as item
        set {_item4} to "4 %{_ItemName}%" parsed as item
        set {_item8} to "8 %{_ItemName}%" parsed as item
        set {_item16} to "16 %{_ItemName}%" parsed as item
        set {_item32} to "32 %{_ItemName}%" parsed as item
        set {_item64} to "64 %{_ItemName}%" parsed as item
        set {_price1} to 1*{guild::sellpriceitem::%{_ItemName}%}
        set {_price4} to 4*{guild::sellpriceitem::%{_ItemName}%}
        set {_price8} to 8*{guild::sellpriceitem::%{_ItemName}%}
        set {_price16} to 16*{guild::sellpriceitem::%{_ItemName}%}
        set {_price32} to 32*{guild::sellpriceitem::%{_ItemName}%}
        set {_price64} to 64*{guild::sellpriceitem::%{_ItemName}%}
        wait 1 tick
        set {_menu} to single value "texts.SellMenu_TitleText" get of "plugins/MMarket/config.yml"
        set {_color} to single value "texts.SellMenu_ItemColor" get of "plugins/MMarket/config.yml"
        open chest with 1 rows named "%{_menu}%" to player
        wait 1 tick
        set slot 1 of player's current inventory to 1 of {_item1} named "%{_color}%Sell 1x" with lore "&7&oSells for $%{_price1}%"
        set slot 2 of player's current inventory to 4 of {_item4} named "%{_color}%Sell 4x" with lore "&7&oSells for $%{_price4}%"
        set slot 3 of player's current inventory to 8 of {_item8} named "%{_color}%Sell 8x" with lore "&7&oSells for $%{_price8}%"
        set slot 4 of player's current inventory to 16 of {_item16} named "%{_color}%Sell 16x" with lore "&7&oSells for $%{_price16}%"
        set slot 5 of player's current inventory to 32 of {_item32} named "%{_color}%Sell 32x" with lore "&7&oSells for $%{_price32}%"
        set slot 6 of player's current inventory to 64 of {_item64} named "%{_color}%Sell 64x" with lore "&7&oSells for $%{_price64}%"
        set slot 8 of player's current inventory to nether star named "&c&lKapat" with lore "&7&oMenüyü kapat"
        
        
on inventory click:
    set {_buymenu} to single value "texts.BuyMenu_TitleText" get of "plugins/MMarket/config.yml"
    set {_sellmenu} to single value "texts.SellMenu_TitleText" get of "plugins/MMarket/config.yml"
    if inventory name of clicked inventory is "%{_sellmenu}%" or "%{_buymenu}%":
        cancel event
        if clicked slot is 1:
            set {_x} to 1
        else if clicked slot is 2:
            set {_x} to 4
        else if clicked slot is 3:
            set {_x} to 8
        else if clicked slot is 4:
            set {_x} to 16
        else if clicked slot is 5:
            set {_x} to 32
        else if clicked slot is 6:
            set {_x} to 64
        else if clicked slot is 8:
            close player's inventory
        wait 1 tick
        clicked slot is 1 or 2 or 3 or 4 or 5 or 6
        set {_block} to targeted block
        set {_item} to "%uncoloured line 2 of {_block}%"
        if inventory name of clicked inventory is "%{_buymenu}%":
            set {_price} to {_x}*{guild::priceitem::%{_item}%}
            invoke "MMarketSatinAl" from player and "%{_item}%" and "%{_x}%" and "%{_price}%"
        else if inventory name of clicked inventory is "%{_sellmenu}%":
            set {_price} to {_x}*{guild::sellpriceitem::%{_item}%}
            invoke "MMarketSat" from player and "%{_item}%" and "%{_x}%" and "%{_price}%"


sub "MMarketSatinAl":
    set {_p} to "%parameter 1%" parsed as player
    set {_item} to "%parameter 2%" parsed as item
    set {_ItemName} to "%parameter 2%"
    set {_amount} to "%parameter 3%" parsed as integer
    set {_price} to "%parameter 4%" parsed as integer
    set {_prefix} to single value "texts.Prefix" get of "plugins/MMarket/config.yml"
    if balance of {_p} >= {_price}:
        if {_p} has enough space for {_amount} of {_item}:
            remove {_price} from balance of {_p}
            give {_amount} of {_item} to {_p}
            message "%{_prefix}% &a&lBaşarıyla satın alındı yapıldı! &f&l%{_amount}%x %{_ItemName}% {_price}%!" to {_p}
        else:
            message "%{_prefix}% &cEnvanterin dolu!" to {_p}
    else:
        message "%{_prefix}% &cYeterli paran yok!" to {_p}


sub "MMarketSat":
    set {_p} to "%parameter 1%" parsed as player
    set {_item} to "%parameter 2%" parsed as item
    set {_ItemName} to "%parameter 2%"
    set {_amount} to "%parameter 3%" parsed as integer
    set {_price} to "%parameter 4%" parsed as integer
    set {_prefix} to single value "texts.Prefix" get of "plugins/MMarket/config.yml"
    if {_p}'s inventory contains {_amount} of {_item}:
        add {_price} to balance of {_p}
        remove {_amount} of {_item} from {_p}'s inventory
        message "%{_prefix}% &a&lBaşarıyla satış yapıldı! &f&l%{_amount}%x %{_ItemName}% &f&l$%{_price}%!" to {_p}
    else:
        message "%{_prefix}% &cBunlara sahip degilsin: %{_amount}%x %{_ItemName}%!" to {_p}
                

command /menumarket [<text>]:
    permission: mmarket.komut
    aliases: /mmarket
    trigger:
        set {_prefix} to single value "texts.Prefix" get of "plugins/MMarket/config.yml"
        if arg-1 is "yardim":
            message "&8&l&m--------------------------------------" to player
            message centered " &7»  &6/mmarket yenile &8» &7&oSkripti yeniler." to player
            message "&8&l&m--------------------------------------" to player
        
        else if arg-1 is "yenile":
            reload script "MenuMarket"
            message "%{_prefix}% &fMENU Market &aBaşarıyla yenilendi!"
            
        else:
            message "&8&l&m--------------------------------------" to player
            message centered " &7»  &6/mmarket yenile &8» &7&oSkripti yeniler." to player
            message "&8&l&m--------------------------------------" to player



#on inventory click:
#    if {guildshop::buying::%uuid of player%} is set:
#        if "%click type%" is "SHIFT_LEFT":
#            cancel event
#        if "%click type%" is "SHIFT_RIGHT":
#            cancel event

on break of sign:
    set {_Line1-Buy} to single value "texts.BuySign_BuyItem" get of "plugins/MMarket/config.yml"
    set {_Line4-Buy} to single value "texts.BuySign_ClickHere" get of "plugins/MMarket/config.yml"
    set {_Line1-Sell} to single value "texts.SellSign_SellItem" get of "plugins/MMarket/config.yml"
    set {_Line4-Sell} to single value "texts.SellSign_ClickHere" get of "plugins/MMarket/config.yml"
    set {_prefix} to single value "texts.Prefix" get of "plugins/MMarket/config.yml"
    line 2 of event-block is set
    line 3 of event-block is set
    if line 1 of event-block is "%{_Line1-Buy}%":
        line 4 of event-block is "%{_Line4-Buy}%"
        if player is not sneaking:
            cancel event
            if player has permission "mmarket.tabelayisil":
                message "%{_prefix}% &cMağaza işaretini yok etmek istediğinizde eğilmeniz gerekiyor!"
        else:
            if player has permission "mmarket.tabelayisil":
                message "%{_prefix}% &a&lBaşarılı bir şekilde Tabela Market kaldırıldı."
            else:
                cancel event
    if line 1 of event-block is "%{_Line1-Sell}%":
        line 4 of event-block is "%{_Line4-Sell}%"
        if player is not sneaking:
            cancel event
            if player has permission "mmarket.tabelayisil":
                message "%{_prefix}% &cMağaza işaretini yok etmek istediğinizde eğilmeniz gerekiyor!"
        else:
            if player has permission "mmarket.tabelayisil":
                message "%{_prefix}% &a&lBaşarılı bir şekilde Tabela Market kaldırıldı."
            else:
                cancel event

Değerli ziyaretçimiz, içeriği görebilmek için şimdi giriş yapın veya kayıt olun.


P0qYE6.png

Konumuz bu kadardı arkadaşlar, ilerleyen zamanlarda Skript'i kendim/kendimiz geliştireceğiz.
İyi forumlar!​
 
Başarılı bir Skript devamını beklerim. :)
 
Güzel Bir Skript
 
Merhaba Dostum, Eğerki /market gibi yazılıp market açılsa biraz daha güzel olabilir. Çünki Yabancı sunucular'da Skyblock veya'da Factions'da böyle işlemekte.
 
Benden önce davranmışsın güzel olmuş
 
bunları tek tek yapmayı düşünsene galiba düşünürken ölüyorum
 
Merhaba Dostum, Eğerki /market gibi yazılıp market açılsa biraz daha güzel olabilir. Çünki Yabancı sunucular'da Skyblock veya'da Factions'da böyle işlemekte.
Öyle bir sistem yapılsa yöneticiler aylık değiştirmeleri gerekir. Bu önerinizi dikkate alacağız ve menülü market yapmaya çalışacağız.
 
Gayet Güzel Geliştirilip Bir Javacı Tarafından Javaya Plugin Olarak Dönüştürülürse Çok Tutar![DOUBLEPOST=1488648648,1488648522][/DOUBLEPOST]Gayet Güzel Geliştirilip Bir Javacı Tarafından Javaya Plugin Olarak Dönüştürülürse Çok Tutar!
 
Mis Gibi Olmuş...
 
@TheMis İyi Güzelde Bu Alıntı Sadece Skript Versiyonu Yapılmış Spigotta Plugin'ini Bulabilirsin Resimlerde Ona Ait Zaten?
 
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