Çözüldü Yardım lazım hata alıyorum

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

ourlex

Somon Balığı Selam Vermeye Geldi
Katılım
17 Eylül 2024
Mesajlar
22
Elmaslar
6
Puan
895
Konum
Türkiye
Minecraft
ArdaYM75

Discord:

arda_beyy

Amacım bir oyuncu marketi yapmak oyuncular istedikleri şeyleri satsınlar.Elinde satacağı eşyayı tutup /halkmarket sell <fiyat> yazınca gui ye gidip satılmasını istiyorum /halkmarket yazıncada gui açılsın ve insanlar fiyatını görüp alabilsin istiyorum.Basit mantık(vault placehholder script falan yüklü)
Script dosyasındaki komut bu:
Kod:
command /oyuncumarket:

    trigger:

        open virtual chest with size 3 named "Oyuncu Marketi" to player

        wait 1 tick

        format slot 4 of player with diamond named "&aTest Elmas" with lore "&7Bu elması satın almak için tıklayın." to be unstealable



on inventory click:

    if name of event-inventory is "Oyuncu Marketi":

        cancel event

        if "%name of event-item%" contains "&aTest Elmas":

            if player has permission "market.buy":

                set {_balance} to vault balance of player

                if {_balance} >= 100:

                    execute console command "eco take %player% 100"

                    execute console command "give %player% diamond 1"

                    send "&aBaşarıyla satın aldınız!" to player

                else:

                    send "&cBu eşyayı satın almak için yeterli paranız yok." to player

            else:

                send "&cBu eşyayı satın almak için izinleriniz yok." to player

Aldığım hatalarda bunlar:
Kod:
 Line 3: (oyuncumarket.sk)

[11:30:25 INFO]:     Can't understand this condition/effect: open virtual chest with size 3 named "Oyuncu Marketi" to player

[11:30:25 INFO]:     Line: open virtual chest with size 3 named "Oyuncu Marketi" to player

[11:30:25 INFO]:

[11:30:25 INFO]: Line 5: (oyuncumarket.sk)

[11:30:25 INFO]:     Can't understand this condition/effect: format slot 4 of player with diamond named "&aTest Elmas" with lore "&7Bu elması satın almak için tıklayın." to be unstealable

[11:30:25 INFO]:     Line: format slot 4 of player with diamond named "&aTest Elmas" with lore "&7Bu elması satın almak için tıklayın." to be unstealable

[11:30:25 INFO]:

[11:30:25 INFO]: Line 10: (oyuncumarket.sk)

[11:30:25 INFO]:     the name of event-item stack is already a text, so you should not put it in one (e.g. the name of event-item stack instead of "%the name of event-item stack%")

[11:30:25 INFO]:     Line: if "%name of event-item%" contains "&aTest Elmas":

[11:30:25 INFO]:

[11:30:25 INFO]: Line 12: (oyuncumarket.sk)

[11:30:25 INFO]:     Can't understand this expression: 'vault balance of player'

[11:30:25 INFO]:     Line: set {_balance} to vault balance of player
 
Moderatör tarafından düzenlendi:
Kod:
command /oyuncumarket:
    trigger:
        open virtual chest with size 3 named "Oyuncu Marketi" to player
        wait 1 tick
        format slot 4 of player with diamond named "&aTest Elmas" with lore "&7Bu elması satın almak için tıklayın." to be unstealable

on inventory click:
    if name of event-inventory is "Oyuncu Marketi":
        cancel event
        if name of event-item is "&aTest Elmas":
            if player has permission "market.buy":
                set {_balance} to vault balance of player
                if {_balance} >= 100:
                    execute console command "eco take %player% 100"
                    execute console command "give %player% diamond 1"
                    send "&aBaşarıyla satın aldınız!" to player
                else:
                    send "&cBu eşyayı satın almak için yeterli paranız yok." to player
            else:
                send "&cBu eşyayı satın almak için izinleriniz yok." to player

Bu oyuncu marketi için.


Kod:
options:
    market-title: "&bHalk Marketi"
    item-price: 0

command /halkmarket:
    trigger:
        open virtual chest with size 3 named {@market-title} to player
        wait 1 tick
        loop all items in {market.items::*}:
            format slot loop-index of player with loop-item named "%{loop-item}'s price: %{loop-item-price}%" to be unstealable

command /halkmarket sell <number>:
    trigger:
        if player's tool is not air:
            set {market.items::%player%} to player's tool
            set {market.items::%player%'s price} to arg-1
            send "&aEşyanız satışa eklendi! Fiyat: &e%arg-1%" to player
        else:
            send "&cElden bir eşya tutmuyorsunuz!" to player

on inventory click:
    if name of event-inventory is {@market-title}:
        cancel event
        if event-item is not air:
            set {_price} to {market.items::%event-item% price}
            if player has permission "market.buy":
                set {_balance} to vault balance of player
                if {_balance} >= {_price}:
                    execute console command "eco take %player% %{_price}%"
                    give player event-item 1
                    send "&aBaşarıyla satın aldınız!" to player
                else:
                    send "&cBu eşyayı satın almak için yeterli paranız yok." to player
            else:
                send "&cBu eşyayı satın almak için izinleriniz yok." to player

buda oyuncunun elinde tuttuğu eşyayı satması için,skripte hata olursa bana discord üzerinden ulaşabilirsiniz.
 
Reis gene hata veriyor market açılmıyor ayrıca /halkmatket sell 50 yazıncada correct usage /halkmarket diyor
Kod:
[18:04:20 INFO]: Line 7: (eşyasatma.sk)

[18:04:20 INFO]:     Can't understand this condition/effect: open virtual chest with size 3 named "&bHalk Marketi" to player

[18:04:20 INFO]:     Line: open virtual chest with size 3 named {@market-title} to player

[18:04:20 INFO]:

[18:04:20 INFO]: Line 9: (eşyasatma.sk)

[18:04:20 INFO]:     'items in {variable::*}' does not actually represent the items stored in the variable. Use either '{variable::*}' (e.g. 'loop {variable::*}') if the variable contains items, or 'items in inventories {variable::*}' if the variable contains inventories.

[18:04:20 INFO]:     Line: loop all items in {market.items::*}:

[18:04:20 INFO]:

[18:04:20 INFO]: Line 10: (eşyasatma.sk)

[18:04:20 INFO]:     Invalid amount or placement of brackets. Please make sure that each opening bracket has a corresponding closing bracket.

[18:04:20 INFO]:     Line: format slot loop-index of player with loop-item named "%{loop-item}'s price: %{loop-item-price}%" to be unstealable

[18:04:20 INFO]:

[18:04:20 INFO]: Line 27: (eşyasatma.sk)

[18:04:20 INFO]:     Can't understand this expression: 'vault balance of player'

[18:04:20 INFO]:     Line: set {_balance} to vault balance of player

[18:04:20 INFO]:

[18:04:20 INFO]: Line 30: (eşyasatma.sk)

[18:04:20 INFO]:     'event-item 1' can't be added to a player because the former is neither an item type, an inventory nor an experience point

[18:04:20 INFO]:     Line: give player event-item 1

[18:04:20 INFO]:

[18:04:20 INFO]: A command with the name /halkmarket is already defined in eşyasatma.sk

[18:04:20 INFO]: Line 3: (oyuncumarket.sk)

[18:04:20 INFO]:     Can't understand this condition/effect: open virtual chest with size 3 named "Oyuncu Marketi" to player

[18:04:20 INFO]:     Line: open virtual chest with size 3 named "Oyuncu Marketi" to player

[18:04:20 INFO]:

[18:04:20 INFO]: Line 5: (oyuncumarket.sk)

[18:04:20 INFO]:     Can't understand this condition/effect: format slot 4 of player with diamond named "&aTest Elmas" with lore "&7Bu elması satın almak için tıklayın." to be unstealable

[18:04:20 INFO]:     Line: format slot 4 of player with diamond named "&aTest Elmas" with lore "&7Bu elması satın almak için tıklayın." to be unstealable

[18:04:20 INFO]:

[18:04:20 INFO]: Line 12: (oyuncumarket.sk)

[18:04:20 INFO]:     Can't understand this expression: 'vault balance of player'

[18:04:20 INFO]:     Line: set {_balance} to vault balance of player
 
Moderatör tarafından düzenlendi:
Reis gene hata veriyor market açılmıyor ayrıca /halkmatket sell 50 yazıncada correct usage /halkmarket diyor
[18:04:20 INFO]: Line 7: (eşyasatma.sk)
[18:04:20 INFO]: Can't understand this condition/effect: open virtual chest with size 3 named "&bHalk Marketi" to player
[18:04:20 INFO]: Line: open virtual chest with size 3 named {@market-title} to player
[18:04:20 INFO]:
[18:04:20 INFO]: Line 9: (eşyasatma.sk)
[18:04:20 INFO]: 'items in {variable::*}' does not actually represent the items stored in the variable. Use either '{variable::*}' (e.g. 'loop {variable::*}') if the variable contains items, or 'items in inventories {variable::*}' if the variable contains inventories.
[18:04:20 INFO]: Line: loop all items in {market.items::*}:
[18:04:20 INFO]:
[18:04:20 INFO]: Line 10: (eşyasatma.sk)
[18:04:20 INFO]: Invalid amount or placement of brackets. Please make sure that each opening bracket has a corresponding closing bracket.
[18:04:20 INFO]: Line: format slot loop-index of player with loop-item named "%{loop-item}'s price: %{loop-item-price}%" to be unstealable
[18:04:20 INFO]:
[18:04:20 INFO]: Line 27: (eşyasatma.sk)
[18:04:20 INFO]: Can't understand this expression: 'vault balance of player'
[18:04:20 INFO]: Line: set {_balance} to vault balance of player
[18:04:20 INFO]:
[18:04:20 INFO]: Line 30: (eşyasatma.sk)
[18:04:20 INFO]: 'event-item 1' can't be added to a player because the former is neither an item type, an inventory nor an experience point
[18:04:20 INFO]: Line: give player event-item 1
[18:04:20 INFO]:
[18:04:20 INFO]: A command with the name /halkmarket is already defined in eşyasatma.sk
[18:04:20 INFO]: Line 3: (oyuncumarket.sk)
[18:04:20 INFO]: Can't understand this condition/effect: open virtual chest with size 3 named "Oyuncu Marketi" to player
[18:04:20 INFO]: Line: open virtual chest with size 3 named "Oyuncu Marketi" to player
[18:04:20 INFO]:
[18:04:20 INFO]: Line 5: (oyuncumarket.sk)
[18:04:20 INFO]: Can't understand this condition/effect: format slot 4 of player with diamond named "&aTest Elmas" with lore "&7Bu elması satın almak için tıklayın." to be unstealable
[18:04:20 INFO]: Line: format slot 4 of player with diamond named "&aTest Elmas" with lore "&7Bu elması satın almak için tıklayın." to be unstealable
[18:04:20 INFO]:
[18:04:20 INFO]: Line 12: (oyuncumarket.sk)
[18:04:20 INFO]: Can't understand this expression: 'vault balance of player'
[18:04:20 INFO]: Line: set {_balance} to vault balance of player
discorddan ulaşırsan daha detaylı yardımcı olabilirim
 
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