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:
Aldığım hatalarda bunlar:
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: