KanedgyBO
SkriptTale
- Katılım
- 29 Mart 2018
- Mesajlar
- 923
- Elmaslar
- 382
- Puan
- 14.575
- Yaş
- 19
- Konum
- Bursa / Erikli
- Minecraft
- TheLudoBile
Discord:
TheLudoBile#3485
Bu kodda nedense {_iitem} çalışmıyor, anlayan yardım edebilir mi?
Kod:
on load:
load yaml "plugins/Skript/Market/Değerler.yml" as "mc"
yaml "mc" is empty:
set yaml value "esyalar.stone.id" from "mc" to 1
set yaml value "esyalar.stone.slot" from "mc" to 2
set yaml value "esyalar.stone.fiyat" from "mc" to 1
set yaml value "esyalar.stone.isim" from "mc" to "=)"
set yaml value "esyalar.stone.esya" from "mc" to Stone
set yaml list "esyalar.stone.lore" from "mc" to "=)", "yey"
save yaml "mc"
*****
open virtual chest with size 6 named "Market » Satın Al » Savaşçı Aletleri" to {_p}
loop yaml nodes with keys "esyalar" from "mc":
set {_id} to getShop("%loop-value%", "id")
set {_slot} to getShop("%loop-value%", "slot")
set {_isim} to getShop("%loop-value%", "isim")
set {_esya} to getShop("%loop-value%", "esya")
set {_happen::*} to yaml list "esyalar.%loop-value%.lore" from "mc"
set {_iitem} to {_esya} parsed as item
format gui slot {_slot} of {_p} with {_iitem} named "%{_isim}%" with lore {_happen::*} to close
function getShop(item: text, info: text) :: object:
set {_info} to yaml value "esyalar.%{_item}%.%{_info}%" from "mc"
return {_info}