Bulundu Stoklu Market Sistremi Skripti

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

penxx

Birisi mi Spawnlandı?
Katılım
11 Aralık 2025
Mesajlar
8
Elmaslar
0
Puan
105
Yaş
27
Konum
a
Minecraft
Liewex

Discord:

aaaaaaa

Şİmdi direk konuya giriyim benim söle bi skripte ihtiyacım var /eşya ekle komutuyla yetkililer marketteki eşyaları ayarlıcak bu eşyalar bi yetkili silmediğ sürece markette kalcak ürünlerin stoğunuda yetkililer belirlicek yetkililer isterse stok ekliyebilecek pasif olarak 1 saate bi belirlenen stok yüzse mesela tam en fazla yüz en az 1 gelcek şekilde stoklar yenilencek ve mümkünse hiçbi plugin gerektirmesin çünkü aternosta skriptin ek pluginleri yok guili olsun sürümüm 1.20.1 paper/spigot kullanıyorum
baya bi lazım böle bişe yaparsanız çok sevinirim aşağıda zaten var tüm addxonlar
1765452677942.webp
 
Skripte gerek olmadan bunu yapan bir eklentim var. Ama aternos ısrarınızı, skript ısrarınızı anlamıyorum.
 
Skripte gerek olmadan bunu yapan bir eklentim var. Ama aternos ısrarınızı, skript ısrarınızı anlamıyorum.
aternos kullanıyorum çünkü param tyok parasız daha ii bi yol varsa geçmeye niyetliyim eklentiler genelde paralı oluo zaten burda
 
aternos kullanıyorum çünkü param tyok parasız daha ii bi yol varsa geçmeye niyetliyim eklentiler genelde paralı oluo zaten burda
Paralı mı oluyor? Sana stok eklentisi üzerinden en az 10 tane eklenti sayarım, üstüne kendi kodladığım var toplam 11.
 
Şİmdi direk konuya giriyim benim söle bi skripte ihtiyacım var /eşya ekle komutuyla yetkililer marketteki eşyaları ayarlıcak bu eşyalar bi yetkili silmediğ sürece markette kalcak ürünlerin stoğunuda yetkililer belirlicek yetkililer isterse stok ekliyebilecek pasif olarak 1 saate bi belirlenen stok yüzse mesela tam en fazla yüz en az 1 gelcek şekilde stoklar yenilencek ve mümkünse hiçbi plugin gerektirmesin çünkü aternosta skriptin ek pluginleri yok guili olsun sürümüm 1.20.1 paper/spigot kullanıyorum
baya bi lazım böle bişe yaparsanız çok sevinirim aşağıda zaten var tüm addxonlarEkli dosyayı görüntüle 276340


Ekstra bir eklenti istemiyorsan quickshop eklentinle bunu yapmanı öneririm.

bir yeri /warp market olarak belirle burası sizin admin pazar alanınız olsun. Oraya satmak istediğin ürünü sandıklara stoklu şekilde zaten satışa koyabilirsin. Stok yenileme işinide manuel yaparsınız oldu bitti maşallah :D
 
merhaba iyi günler size uygun bir skript yazdım eğer hata alırsanız hatayı bana ss atın ama eklenti kullanmanızı öneririm


JavaScript:
#   Sürüm: 1.20.1 (Paper/Spigot)

options:
    market_gui_name: &aSunucu Marketi
    admin_perm: market.admin

# {market::nextid}           -> sıradaki ürün ID'si
# {market::ids::*}           -> tüm ürün ID listesi
# {market::%id%::item}       -> ürün item'i
# {market::%id%::price}      -> ürün fiyatı
# {market::%id%::maxstock}   -> ürün max stok
# {market::%id%::stock}      -> ürün anlık stok
# {market::slot_by_player::uuid::slot} -> oyuncu GUI slot -> ürün ID

on load:
    if {market::nextid} is not set:
        set {market::nextid} to 0
    broadcast "&a[Market] &fMarket skripti yüklendi."


command /parabakiye:
    description: Bakiyeni gösterir.
    trigger:
        if {para::%player%} is not set:
            set {para::%player%} to 0
        send "&aBakiyen: &e%{para::%player%}%"

command /paraver <player> <number>:
    description: Bir oyuncuya para verir. (Admin)
    permission: {@admin_perm}
    permission message: "&cBu komutu kullanamazsın."
    trigger:
        set {_hedef} to arg-1
        set {_miktar} to arg-2
        add {_miktar} to {para::%{_hedef}%}
        send "&a%{_hedef}% &fisimli oyuncuya &e%{_miktar}% &apara verildi."
        send "&aBakiyene &e%{_miktar}% &aeklendi." to {_hedef}


command /esyaekle <number> <number>:
    aliases: /eşyaekle
    permission: {@admin_perm}
    permission message: "&cBu komutu kullanamazsın."
    usage: "/esyaekle <fiyat> <maxStok>"
    trigger:
        set {_price} to arg-1
        set {_max} to arg-2

        if player's tool is air:
            send "&cElinde markete eklemek istediğin eşya yok!"
            stop

        add 1 to {market::nextid}
        set {_id} to {market::nextid}

        # Ürünü kaydet
        set {market::%{_id}%::item} to player's tool
        set {market::%{_id}%::price} to {_price}
        set {market::%{_id}%::maxstock} to {_max}
        set {market::%{_id}%::stock} to {_max}

        add {_id} to {market::ids::*}

        send "&a[Market] &fÜrün eklendi!"
        send "&7ID: &e%{_id}%"
        send "&7Fiyat: &e%{market::%{_id}%::price}%"
        send "&7Max stok: &e%{market::%{_id}%::maxstock}%"


command /esyasil <number>:
    aliases: /eşyasil
    permission: {@admin_perm}
    permission message: "&cBu komutu kullanamazsın."
    usage: "/esyasil <id>"
    trigger:
        set {_id} to arg-1
        if {market::%{_id}%::item} is not set:
            send "&cBu ID'ye ait bir ürün bulunamadı."
            stop
        delete {market::%{_id}%::*}
        remove {_id} from {market::ids::*}
        send "&a[Market] &fID &e%{_id}% &folan ürün silindi."

command /esyastok <number> <number>:
    aliases: /eşyastok
    permission: {@admin_perm}
    permission message: "&cBu komutu kullanamazsın."
    usage: "/esyastok <id> <miktar>"
    trigger:
        set {_id} to arg-1
        set {_ek} to arg-2
        if {market::%{_id}%::item} is not set:
            send "&cBu ID'ye ait bir ürün bulunamadı."
            stop
        add {_ek} to {market::%{_id}%::stock}
        if {market::%{_id}%::stock} > {market::%{_id}%::maxstock}:
            set {market::%{_id}%::stock} to {market::%{_id}%::maxstock}
        send "&a[Market] &fID &e%{_id}% &folan ürünün stoğu güncellendi: &e%{market::%{_id}%::stock}%"

command /market:
    description: Market GUI'sini açar.
    trigger:
        if {market::ids::*} is not set:
            send "&cŞu an markette hiç ürün yok."
            stop
        openMarket(player)
 
# Sürüm: 1.20.1 (Paper/Spigot) options: market_gui_name: &aSunucu Marketi admin_perm: market.admin # {market::nextid} -> sıradaki ürün ID'si # {market::ids::*} -> tüm ürün ID listesi # {market::%id%::item} -> ürün item'i # {market::%id%::price} -> ürün fiyatı # {market::%id%::maxstock} -> ürün max stok # {market::%id%::stock} -> ürün anlık stok # {market::slot_by_player::uuid::slot} -> oyuncu GUI slot -> ürün ID on load: if {market::nextid} is not set: set {market::nextid} to 0 broadcast "&a[Market] &fMarket skripti yüklendi." command /parabakiye: description: Bakiyeni gösterir. trigger: if {para::%player%} is not set: set {para::%player%} to 0 send "&aBakiyen: &e%{para::%player%}%" command /paraver <player> <number>: description: Bir oyuncuya para verir. (Admin) permission: {@admin_perm} permission message: "&cBu komutu kullanamazsın." trigger: set {_hedef} to arg-1 set {_miktar} to arg-2 add {_miktar} to {para::%{_hedef}%} send "&a%{_hedef}% &fisimli oyuncuya &e%{_miktar}% &apara verildi." send "&aBakiyene &e%{_miktar}% &aeklendi." to {_hedef} command /esyaekle <number> <number>: aliases: /eşyaekle permission: {@admin_perm} permission message: "&cBu komutu kullanamazsın." usage: "/esyaekle <fiyat> <maxStok>" trigger: set {_price} to arg-1 set {_max} to arg-2 if player's tool is air: send "&cElinde markete eklemek istediğin eşya yok!" stop add 1 to {market::nextid} set {_id} to {market::nextid} # Ürünü kaydet set {market::%{_id}%::item} to player's tool set {market::%{_id}%::price} to {_price} set {market::%{_id}%::maxstock} to {_max} set {market::%{_id}%::stock} to {_max} add {_id} to {market::ids::*} send "&a[Market] &fÜrün eklendi!" send "&7ID: &e%{_id}%" send "&7Fiyat: &e%{market::%{_id}%::price}%" send "&7Max stok: &e%{market::%{_id}%::maxstock}%" command /esyasil <number>: aliases: /eşyasil permission: {@admin_perm} permission message: "&cBu komutu kullanamazsın." usage: "/esyasil <id>" trigger: set {_id} to arg-1 if {market::%{_id}%::item} is not set: send "&cBu ID'ye ait bir ürün bulunamadı." stop delete {market::%{_id}%::*} remove {_id} from {market::ids::*} send "&a[Market] &fID &e%{_id}% &folan ürün silindi." command /esyastok <number> <number>: aliases: /eşyastok permission: {@admin_perm} permission message: "&cBu komutu kullanamazsın." usage: "/esyastok <id> <miktar>" trigger: set {_id} to arg-1 set {_ek} to arg-2 if {market::%{_id}%::item} is not set: send "&cBu ID'ye ait bir ürün bulunamadı." stop add {_ek} to {market::%{_id}%::stock} if {market::%{_id}%::stock} > {market::%{_id}%::maxstock}: set {market::%{_id}%::stock} to {market::%{_id}%::maxstock} send "&a[Market] &fID &e%{_id}% &folan ürünün stoğu güncellendi: &e%{market::%{_id}%::stock}%" command /market: description: Market GUI'sini açar. trigger: if {market::ids::*} is not set: send "&cŞu an markette hiç ürün yok." stop openMarket(player)
tesekurler hangi eklentiler lazim?
 
reis hata verio bu hata
 

Ekli dosyalar

  • 2025-12-11_20.52.27.webp
    2025-12-11_20.52.27.webp
    132,8 KB · Görüntüleme: 48
merhaba iyi günler size uygun bir skript yazdım eğer hata alırsanız hatayı bana ss atın ama eklenti kullanmanızı öneririm


JavaScript:
#   Sürüm: 1.20.1 (Paper/Spigot)

options:
    market_gui_name: &aSunucu Marketi
    admin_perm: market.admin

# {market::nextid}           -> sıradaki ürün ID'si
# {market::ids::*}           -> tüm ürün ID listesi
# {market::%id%::item}       -> ürün item'i
# {market::%id%::price}      -> ürün fiyatı
# {market::%id%::maxstock}   -> ürün max stok
# {market::%id%::stock}      -> ürün anlık stok
# {market::slot_by_player::uuid::slot} -> oyuncu GUI slot -> ürün ID

on load:
    if {market::nextid} is not set:
        set {market::nextid} to 0
    broadcast "&a[Market] &fMarket skripti yüklendi."


command /parabakiye:
    description: Bakiyeni gösterir.
    trigger:
        if {para::%player%} is not set:
            set {para::%player%} to 0
        send "&aBakiyen: &e%{para::%player%}%"

command /paraver <player> <number>:
    description: Bir oyuncuya para verir. (Admin)
    permission: {@admin_perm}
    permission message: "&cBu komutu kullanamazsın."
    trigger:
        set {_hedef} to arg-1
        set {_miktar} to arg-2
        add {_miktar} to {para::%{_hedef}%}
        send "&a%{_hedef}% &fisimli oyuncuya &e%{_miktar}% &apara verildi."
        send "&aBakiyene &e%{_miktar}% &aeklendi." to {_hedef}


command /esyaekle <number> <number>:
    aliases: /eşyaekle
    permission: {@admin_perm}
    permission message: "&cBu komutu kullanamazsın."
    usage: "/esyaekle <fiyat> <maxStok>"
    trigger:
        set {_price} to arg-1
        set {_max} to arg-2

        if player's tool is air:
            send "&cElinde markete eklemek istediğin eşya yok!"
            stop

        add 1 to {market::nextid}
        set {_id} to {market::nextid}

        # Ürünü kaydet
        set {market::%{_id}%::item} to player's tool
        set {market::%{_id}%::price} to {_price}
        set {market::%{_id}%::maxstock} to {_max}
        set {market::%{_id}%::stock} to {_max}

        add {_id} to {market::ids::*}

        send "&a[Market] &fÜrün eklendi!"
        send "&7ID: &e%{_id}%"
        send "&7Fiyat: &e%{market::%{_id}%::price}%"
        send "&7Max stok: &e%{market::%{_id}%::maxstock}%"


command /esyasil <number>:
    aliases: /eşyasil
    permission: {@admin_perm}
    permission message: "&cBu komutu kullanamazsın."
    usage: "/esyasil <id>"
    trigger:
        set {_id} to arg-1
        if {market::%{_id}%::item} is not set:
            send "&cBu ID'ye ait bir ürün bulunamadı."
            stop
        delete {market::%{_id}%::*}
        remove {_id} from {market::ids::*}
        send "&a[Market] &fID &e%{_id}% &folan ürün silindi."

command /esyastok <number> <number>:
    aliases: /eşyastok
    permission: {@admin_perm}
    permission message: "&cBu komutu kullanamazsın."
    usage: "/esyastok <id> <miktar>"
    trigger:
        set {_id} to arg-1
        set {_ek} to arg-2
        if {market::%{_id}%::item} is not set:
            send "&cBu ID'ye ait bir ürün bulunamadı."
            stop
        add {_ek} to {market::%{_id}%::stock}
        if {market::%{_id}%::stock} > {market::%{_id}%::maxstock}:
            set {market::%{_id}%::stock} to {market::%{_id}%::maxstock}
        send "&a[Market] &fID &e%{_id}% &folan ürünün stoğu güncellendi: &e%{market::%{_id}%::stock}%"

command /market:
    description: Market GUI'sini açar.
    trigger:
        if {market::ids::*} is not set:
            send "&cŞu an markette hiç ürün yok."
            stop
        openMarket(player)
script gmoneyle uyumlumu?
 
bunu deneyin


JavaScript:
options:
    market_gui_name: &aSunucu Marketi
    admin_perm: market.admin

#   DEĞİŞKENLER
# {market::nextid}           -> sıradaki ürün ID'si
# {market::ids::*}           -> tüm ürün ID listesi
# {market::%id%::item}       -> ürün item'i
# {market::%id%::price}      -> ürün fiyatı
# {market::%id%::maxstock}   -> ürün max stok
# {market::%id%::stock}      -> ürün anlık stok
# {market::slot_by_player::uuid::slot} -> oyuncu GUI slot -> ürün ID
#
# {para::oyuncu} -> basit ekonomi sistemi (istersen kendi ekonominle değiştir)

on load:
    if {market::nextid} is not set:
        set {market::nextid} to 0
    broadcast "&a[Market] &fMarket skripti yüklendi."



command /parabakiye:
    description: Bakiyeni gösterir.
    trigger:
        if {para::%player%} is not set:
            set {para::%player%} to 0
        send "&aBakiyen: &e%{para::%player%}%"

command /paraver <player> <number>:
    description: Bir oyuncuya para verir. (Admin)
    permission: {@admin_perm}
    permission message: "&cBu komutu kullanamazsın."
    usage: "/paraver <oyuncu> <miktar>"
    trigger:
        set {_hedef} to arg-1
        set {_miktar} to arg-2
        if {_hedef} is not online:
            send "&cBu oyuncu çevrim içi değil."
            stop
        add {_miktar} to {para::%{_hedef}%}
        send "&a%{_hedef}% &fisimli oyuncuya &e%{_miktar}% &apara verildi."
        send "&aBakiyene &e%{_miktar}% &aeklendi." to {_hedef}



command /esyaekle <number> <number>:
    aliases: /eşyaekle
    permission: {@admin_perm}
    permission message: "&cBu komutu kullanamazsın."
    usage: "/esyaekle <fiyat> <maxStok>"
    trigger:
        set {_price} to arg-1
        set {_max} to arg-2

        if player's tool is air:
            send "&cElinde markete eklemek istediğin eşya yok!"
            stop

        add 1 to {market::nextid}
        set {_id} to {market::nextid}

        set {market::%{_id}%::item} to player's tool
        set {market::%{_id}%::price} to {_price}
        set {market::%{_id}%::maxstock} to {_max}
        set {market::%{_id}%::stock} to {_max}

        add {_id} to {market::ids::*}

        send "&a[Market] &fÜrün eklendi!"
        send "&7ID: &e%{_id}%"
        send "&7Fiyat: &e%{market::%{_id}%::price}%"
        send "&7Max stok: &e%{market::%{_id}%::maxstock}%"



command /esyasil <number>:
    aliases: /eşyasil
    permission: {@admin_perm}
    permission message: "&cBu komutu kullanamazsın."
    usage: "/esyasil <id>"
    trigger:
        set {_id} to arg-1
        if {market::%{_id}%::item} is not set:
            send "&cBu ID'ye ait bir ürün bulunamadı."
            stop
        delete {market::%{_id}%::*}
        remove {_id} from {market::ids::*}
        send "&a[Market] &fID &e%{_id}% &folan ürün silindi."



command /esyastok <number> <number>:
    aliases: /eşyastok
    permission: {@admin_perm}
    permission message: "&cBu komutu kullanamazsın."
    usage: "/esyastok <id> <miktar>"
    trigger:
        set {_id} to arg-1
        set {_ek} to arg-2
        if {market::%{_id}%::item} is not set:
            send "&cBu ID'ye ait bir ürün bulunamadı."
            stop
        add {_ek} to {market::%{_id}%::stock}
        if {market::%{_id}%::stock} > {market::%{_id}%::maxstock}:
            set {market::%{_id}%::stock} to {market::%{_id}%::maxstock}
        send "&a[Market] &fID &e%{_id}% &folan ürünün stoğu güncellendi: &e%{market::%{_id}%::stock}%"


command /market:
    description: Market GUI'sini açar.
    trigger:
        if {market::ids::*} is not set:
            send "&cŞu an markette hiç ürün yok."
            stop

        set {_p} to player
        open chest inventory with 6 rows named "{@market_gui_name}" to {_p}
        wait 1 tick

        delete {market::slot_by_player::%uuid of {_p}%::*}

        set {_inv} to {_p}'s current inventory
        set {_slot} to 0

        loop {market::ids::*}:
            set {_id} to loop-value
            if {market::%{_id}%::item} is set:
                set {_it} to {market::%{_id}%::item}
                set {_display} to {_it}
                clear lore of {_display}
                set {_name} to "%name of {_display}%"
                set name of {_display} to "&e%{_name}% &7(ID: %{_id}%)"
                set {_price} to {market::%{_id}%::price}
                set {_stock} to {market::%{_id}%::stock}
                set {_max} to {market::%{_id}%::maxstock}
                set lore of {_display} to "&7Fiyat: &e%{_price}%" and "&7Stok: &a%{_stock}%&7/&e%{_max}%"

                set slot {_slot} of {_inv} to {_display}
                set {market::slot_by_player::%uuid of {_p}%::%{_slot}%} to {_id}
                add 1 to {_slot}
                if {_slot} >= 53:
                    stop loop


on inventory click:
    if name of event-inventory is "{@market_gui_name}":
        cancel event
        set {_p} to event-player
        set {_slot} to clicked slot

        set {_id} to {market::slot_by_player::%uuid of {_p}%::%{_slot}%}
        if {_id} is not set:
            stop

        set {_price} to {market::%{_id}%::price}
        set {_stock} to {market::%{_id}%::stock}
        set {_max} to {market::%{_id}%::maxstock}
        set {_item} to {market::%{_id}%::item}

        if {_stock} <= 0:
            send "&cBu ürünün stoğu bitti!"
            stop

        if {para::%{_p}%} is not set:
            set {para::%{_p}%} to 0

        if {para::%{_p}%} < {_price}:
            send "&cYeterli paran yok! &7Gerekli: &e%{_price}% &7Senin: &e%{para::%{_p}%}%"
            stop

        remove {_price} from {para::%{_p}%}
        give 1 of {_item} to {_p}
        remove 1 from {market::%{_id}%::stock}

        send "&a[Market] &f%name of {_item}% &eadlı üründen 1 adet satın aldın."

        
        open chest inventory with 6 rows named "{@market_gui_name}" to {_p}
        wait 1 tick

        delete {market::slot_by_player::%uuid of {_p}%::*}
        set {_inv} to {_p}'s current inventory
        set {_slot} to 0

        loop {market::ids::*}:
            set {_nid} to loop-value
            if {market::%{_nid}%::item} is set:
                set {_it2} to {market::%{_nid}%::item}
                set {_display2} to {_it2}
                clear lore of {_display2}
                set {_name2} to "%name of {_display2}%"
                set name of {_display2} to "&e%{_name2}% &7(ID: %{_nid}%)"
                set {_price2} to {market::%{_nid}%::price}
                set {_stock2} to {market::%{_nid}%::stock}
                set {_max2} to {market::%{_nid}%::maxstock}
                set lore of {_display2} to "&7Fiyat: &e%{_price2}%" and "&7Stok: &a%{_stock2}%&7/&e%{_max2}%"

                set slot {_slot} of {_inv} to {_display2}
                set {market::slot_by_player::%uuid of {_p}%::%{_slot}%} to {_nid}
                add 1 to {_slot}
                if {_slot} >= 53:
                    stop loop

every hour:
    loop {market::ids::*}:
        set {_id} to loop-value
        if {market::%{_id}%::item} is set:
            set {market::%{_id}%::stock} to random integer between 1 and {market::%{_id}%::maxstock}
 
Teşekkür ederim
 
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