/sat komutu ile menü acilip eşyaları satması

texax12345

Marangoz
Mesajlar
63
En iyi cevaplar
0
Beğeniler
6
Puanları
80
Ruh hali
/sat komutu ile menü açilip satiş alış işlemini yapılmasını sağlayan skript lazım
 


JitterClickYT

Altın Madencisi
Mesajlar
387
En iyi cevaplar
2
Beğeniler
74
Puanları
290
Ruh hali
Bunu skript ile değilde chestcommands ile yapabilirsin hem daha işlevli ve kolay olur.
 

JitterClickYT

Altın Madencisi
Mesajlar
387
En iyi cevaplar
2
Beğeniler
74
Puanları
290
Ruh hali
Bu menü sanırım işinize yarıyabilir :)
Kod:
menu-settings:

  # Depo adı
  name: '&6&lSatis Menusu'

  # depodaki satır sayısı
  rows: 6

  # Hangi komutla açılsın depo?
  command: 'sat'

  # Kaç saniyedebir depo yenilensin?
  auto-refresh: 5

  # açılış efekti vb.
  open-action: 'sound: note pling'

  open-with-item:
    id: wool:1
    left-click: false
    right-click: false

# ANA BOLUM X yanlama Y alt ust

tas:
  COMMAND: 'sell stone'
  NAME: '&bTas'
  LORE:
    - '&c1 &7Adet &d31,25 TL'
    - '&c64 &7Adet &d2,000 TL'
    - '&c640 &7Adet &d20,000 TL'
    - '&5Satmak Icin Tikla'
  ID: stone
  KEEP-OPEN: true
  POSITION-X: 1
  POSITION-Y: 2

kiriktas:
  COMMAND: 'sell 4'
  NAME: '&bKirik Tas'
  LORE:
    - '&c1 &7Adet &d31,25 TL'
    - '&c64 &7Adet &d2,000 TL'
    - '&c640 &7Adet &d20,000 TL'
    - '&5Satmak Icin Tikla'
  ID: 4
  KEEP-OPEN: true
  POSITION-X: 2
  POSITION-Y: 2

yosunlutas:
  COMMAND: 'sell 48'
  NAME: '&bYosunlu Tas'
  LORE:
    - '&c1 &7Adet &d31.25 TL'
    - '&c64 &7Adet &d2.000 TL'
    - '&c640 &7Adet &d20.000 TL'
    - '&5Satmak Icin Tikla'
  ID: 48
  KEEP-OPEN: true
  POSITION-X: 3
  POSITION-Y: 2

kiziltasasdas:
  COMMAND: 'sell 73'
  NAME: '&bKizil Tas'
  LORE:
    - '&c1 &7Adet &d32,50 TL'
    - '&c64 &7Adet &d2,080 TL'
    - '&c640 &7Adet &d20,800 TL'
    - '&5Satmak Icin Tikla'
  ID: 73
  KEEP-OPEN: true
  POSITION-X: 4
  POSITION-Y: 2

komurc:
  COMMAND: 'sell 16'
  NAME: '&bKomur Cevheri'
  LORE:
    - '&c1 &7Adet &d32,50 TL'
    - '&c64 &7Adet &d2,080 TL'
    - '&c640 &7Adet &d20,800 TL'
    - '&5Satmak Icin Tikla'
  ID: 16
  KEEP-OPEN: true
  POSITION-X: 5
  POSITION-Y: 2

demirc:
  COMMAND: 'sell 15'
  NAME: '&bDemir Cevheri'
  LORE:
    - '&c1 &7Adet &d150,0 TL'
    - '&c64 &7Adet &d9,600 TL'
    - '&c640 &7Adet &d96,000 TL'
    - '&5Satmak Icin Tikla'
  ID: 15
  KEEP-OPEN: true
  POSITION-X: 6
  POSITION-Y: 2

altinc:
  COMMAND: 'sell 14'
  NAME: '&bAltin Cevheri'
  LORE:
    - '&c1 &7Adet &d200,0 TL'
    - '&c64 &7Adet &d12,800 TL'
    - '&c640 &7Adet &d128,000 TL'
    - '&5Satmak Icin Tikla'
  ID: 14
  KEEP-OPEN: true
  POSITION-X: 7
  POSITION-Y: 2

elmasc:
  COMMAND: 'sell 56'
  NAME: '&bElmas Cevheri'
  LORE:
    - '&c1 &7Adet &d350,0 TL'
    - '&c64 &7Adet &d22,400 TL'
    - '&c640 &7Adet &d224,000 TL'
    - '&5Satmak Icin Tikla'
  ID: 56
  KEEP-OPEN: true
  POSITION-X: 8
  POSITION-Y: 2

zumrutc:
  COMMAND: 'sell 129'
  NAME: '&bZumrut Cevheri'
  LORE:
    - '&c1 &7Adet &d500,0 TL'
    - '&c64 &7Adet &d32.000 TL'
    - '&c640 &7Adet &d320.000 TL'
    - '&5Satmak Icin Tikla'
  ID: 129
  KEEP-OPEN: true
  POSITION-X: 9
  POSITION-Y: 2

lapisc:
  COMMAND: 'sell 21'
  NAME: '&bLapis Cevheri'
  LORE:
    - '&c1 &7Adet &d125,0 TL'
    - '&c64 &7Adet &d8.000 TL'
    - '&c640 &7Adet &d80.000 TL'
    - '&5Satmak Icin Tikla'
  ID: 21
  KEEP-OPEN: true
  POSITION-X: 1
  POSITION-Y: 3

cakil:
  COMMAND: 'sell 13'
  NAME: '&bCakil'
  LORE:
    - '&c1 &7Adet &d23,43 TL'
    - '&c64 &7Adet &d1,500 TL'
    - '&c640 &7Adet &d15,000 TL'
    - '&5Satmak Icin Tikla'
  ID: 13
  KEEP-OPEN: true
  POSITION-X: 2
  POSITION-Y: 3

nethertasi:
  COMMAND: 'sell 87'
  NAME: '&bNether Tasi'
  LORE:
    - '&c1 &7Adet &d23,43 TL'
    - '&c64 &7Adet &d1,500 TL'
    - '&c640 &7Adet &d15.000 TL'
    - '&5Satmak Icin Tikla'
  ID: 87
  KEEP-OPEN: true
  POSITION-X: 3
  POSITION-Y: 3

granit:
  COMMAND: 'sell 1:1'
  NAME: '&bGranit'
  LORE:
    - '&c1 &7Adet &d31,25 TL'
    - '&c64 &7Adet &d2,000 TL'
    - '&c640 &7Adet &d20,000 TL'
    - '&5Satmak Icin Tikla'
  ID: 1 :1
  KEEP-OPEN: true
  POSITION-X: 4
  POSITION-Y: 3

diorit:
  COMMAND: 'sell 1:3'
  NAME: '&bDiorit'
  LORE:
    - '&c1 &7Adet &d31,25 TL'
    - '&c64 &7Adet &d2,000 TL'
    - '&c640 &7Adet &d20,000 TL'
    - '&5Satmak Icin Tikla'
  ID: 1 :3
  KEEP-OPEN: true
  POSITION-X: 5
  POSITION-Y: 3

andezit:
  COMMAND: 'sell 1:5'
  NAME: '&bAndezit'
  LORE:
    - '&c1 &7Adet &d31,25 TL'
    - '&c64 &7Adet &d2,000 TL'
    - '&c640 &7Adet &d20,000 TL'
    - '&5Satmak Icin Tikla'
  ID: 1 :5
  KEEP-OPEN: true
  POSITION-X: 6
  POSITION-Y: 3

toprak:
  COMMAND: 'sell 3'
  NAME: '&bToprak'
  LORE:
    - '&c1 &7Adet &d23,43 TL'
    - '&c64 &7Adet &d1,500 TL'
    - '&c640 &7Adet &d15,000 TL'
    - '&5Satmak Icin Tikla'
  ID: 3
  KEEP-OPEN: true
  POSITION-X: 7
  POSITION-Y: 3

coraktoprak:
  COMMAND: 'sell 3:1'
  NAME: '&bCorak Toprak'
  LORE:
    - '&c1 &7Adet &d23,43 TL'
    - '&c64 &7Adet &d1,500 TL'
    - '&c640 &7Adet &d15,000 TL'
    - '&5Satmak Icin Tikla'
  ID: 3 :1
  KEEP-OPEN: true
  POSITION-X: 8
  POSITION-Y: 3

cimen:
  COMMAND: 'sell 2'
  NAME: '&bCimen'
  LORE:
    - '&c1 &7Adet &d23,43 TL'
    - '&c64 &7Adet &d1,500 TL'
    - '&c640 &7Adet &d15,000 TL'
    - '&5Satmak Icin Tikla'
  ID: 2
  KEEP-OPEN: true
  POSITION-X: 9
  POSITION-Y: 3

Miselyum:
  COMMAND: 'sell 110'
  NAME: '&bMiselyum'
  LORE:
    - '&c1 &7Adet &d35,0 TL'
    - '&c64 &7Adet &d0,0 TL'
    - '&c640 &7Adet &d0,0 TL'
    - '&5Satmak Icin Tikla'
  ID: 110
  KEEP-OPEN: true
  POSITION-X: 1
  POSITION-Y: 4

kum:
  COMMAND: 'sell 12'
  NAME: '&bKum'
  LORE:
    - '&c1 &7Adet &d23,43 TL'
    - '&c64 &7Adet &d1,500 TL'
    - '&c640 &7Adet &d15,000 TL'
    - '&5Satmak Icin Tikla'
  ID: 12
  KEEP-OPEN: true
  POSITION-X: 2
  POSITION-Y: 4

kirmizikum:
  COMMAND: 'sell 12:1'
  NAME: '&bKirmizi Kum'
  LORE:
    - '&c1 &7Adet &d23,43 TL'
    - '&c64 &7Adet &d1,500 TL'
    - '&c640 &7Adet &d15,000 TL'
    - '&5Satmak Icin Tikla'
  ID: 12 :1
  KEEP-OPEN: true
  POSITION-X: 3
  POSITION-Y: 4

meseagacitahtasi:
  COMMAND: 'sell 5'
  NAME: '&bMese Agaci Tahtasi'
  LORE:
    - '&c1 &7Adet &d13,67 TL'
    - '&c64 &7Adet &d874,88 TL'
    - '&c640 &7Adet &d8748,80 TL'
    - '&5Satmak Icin Tikla'
  ID: 5
  KEEP-OPEN: true
  POSITION-X: 4
  POSITION-Y: 4

meseodunu:
  COMMAND: 'sell 17'
  NAME: '&bMese Odunu'
  LORE:
    - '&c1 &7Adet &d54,68 TL'
    - '&c64 &7Adet &d3,500 TL'
    - '&c640 &7Adet &d35,000 TL'
    - '&5Satmak Icin Tikla'
  ID: 17
  KEEP-OPEN: true
  POSITION-X: 5
  POSITION-Y: 4

obsidyen:
  COMMAND: 'sell 49'
  NAME: '&bObsidyen'
  LORE:
    - '&c1 &7Adet &d130,0 TL'
    - '&c64 &7Adet &d8,320 TL'
    - '&c640 &7Adet &d66,560 TL'
    - '&5Satmak Icin Tikla'
  ID: 49
  KEEP-OPEN: true
  POSITION-X: 6
  POSITION-Y: 4

ruhkumu:
  COMMAND: 'sell 88'
  NAME: '&bRuh Kumu'
  LORE:
    - '&c1 &7Adet &d13,67 TL'
    - '&c64 &7Adet &d874,88 TL'
    - '&c640 &7Adet &d19,200 TL'
    - '&5Satmak Icin Tikla'
  ID: 88
  KEEP-OPEN: true
  POSITION-X: 7
  POSITION-Y: 4

buz:
  COMMAND: 'sell 79'
  NAME: '&bBuz'
  LORE:
    - '&c1 &7Adet &d100,0 TL'
    - '&c64 &7Adet &d6,400 TL'
    - '&c640 &7Adet &d64,000 TL'
    - '&5Satmak Icin Tikla'
  ID: 79
  KEEP-OPEN: true
  POSITION-X: 8
  POSITION-Y: 4

paketlenmisbuz:
  COMMAND: 'sell 174'
  NAME: '&bPaketlenmis Buz'
  LORE:
    - '&c1 &7Adet &d300,0 TL'
    - '&c64 &7Adet &d19,200 TL'
    - '&c640 &7Adet &d192,000 TL'
    - '&5Satmak Icin Tikla'
  ID: 174
  KEEP-OPEN: true
  POSITION-X: 9
  POSITION-Y: 4

kiziltas:
  COMMAND: 'sell 331'
  NAME: '&bKizil Tas'
  LORE:
    - '&c1 &7Adet &d15,62 TL'
    - '&c64 &7Adet &d1,000 TL'
    - '&c640 &7Adet &d10,000 TL'
    - '&5Satmak Icin Tikla'
  ID: 331
  KEEP-OPEN: true
  POSITION-X: 1
  POSITION-Y: 5

komur:
  COMMAND: 'sell 263'
  NAME: '&bKomur'
  LORE:
    - '&c1 &7Adet &d15,62 TL'
    - '&c64 &7Adet &d1,000 TL'
    - '&c640 &7Adet &d10,000 TL'
    - '&5Satmak Icin Tikla'
  ID: 263
  KEEP-OPEN: true
  POSITION-X: 2
  POSITION-Y: 5

lapislazuli:
  COMMAND: 'sell 351:4'
  NAME: '&bLapis Lazuli'
  LORE:
    - '&c1 &7Adet &d4,0 TL'
    - '&c64 &7Adet &d256,0 TL'
    - '&c640 &7Adet &d2560,0 TL'
    - '&5Satmak Icin Tikla'
  ID: 351 :4
  KEEP-OPEN: true
  POSITION-X: 3
  POSITION-Y: 5

demirkulcesi:
  COMMAND: 'sell 265'
  NAME: '&bDemir Kulcesi'
  LORE:
    - '&c1 &7Adet &d150,0 TL'
    - '&c64 &7Adet &d9,600 TL'
    - '&c640 &7Adet &d96,000 TL'
    - '&5Satmak Icin Tikla'
  ID: 265
  KEEP-OPEN: true
  POSITION-X: 4
  POSITION-Y: 5

altinkulcesi:
  COMMAND: 'sell 266'
  NAME: '&bAltin Kulcesi'
  LORE:
    - '&c1 &7Adet &d200,0 TL'
    - '&c64 &7Adet &d12,800 TL'
    - '&c640 &7Adet &d128,000 TL'
    - '&5Satmak Icin Tikla'
  ID: 266
  KEEP-OPEN: true
  POSITION-X: 5
  POSITION-Y: 5

elmaskulcesi:
  COMMAND: 'sell 264'
  NAME: '&bElmas Kulcesi'
  LORE:
    - '&c1 &7Adet &d350,0 TL'
    - '&c64 &7Adet &d22,400 TL'
    - '&c640 &7Adet &d224,000 TL'
    - '&5Satmak Icin Tikla'
  ID: 264
  KEEP-OPEN: true
  POSITION-X: 6
  POSITION-Y: 5

zumrut:
  COMMAND: 'sell 388'
  NAME: '&bZumrut'
  LORE:
    - '&c1 &7Adet &d500,0 TL'
    - '&c64 &7Adet &d32,00 TL'
    - '&c640 &7Adet &d320,000 TL'
    - '&5Satmak Icin Tikla'
  ID: 388
  KEEP-OPEN: true
  POSITION-X: 7
  POSITION-Y: 5

lapisblock:
  COMMAND: 'sell 22'
  NAME: '&bLapis Blogu'
  LORE:
    - '&c1 &7Adet &d40,0 TL'
    - '&c64 &7Adet &d2,560 TL'
    - '&c640 &7Adet &d25,600 TL'
    - '&5Satmak Icin Tikla'
  ID: 22
  KEEP-OPEN: true
  POSITION-X: 8
  POSITION-Y: 5

komurblock:
  COMMAND: 'sell 173'
  NAME: '&bKomur Blogu'
  LORE:
    - '&c1 &7Adet &d162,0 TL'
    - '&c64 &7Adet &d10,368 TL'
    - '&c640 &7Adet &d103,680 TL'
    - '&5Satmak Icin Tikla'
  ID: 173
  KEEP-OPEN: true
  POSITION-X: 9
  POSITION-Y: 5

cam1:
  COMMAND: ''
  NAME: ''
  LORE:
  ID: 160 :15
  KEEP-OPEN: true
  POSITION-X: 1
  POSITION-Y: 1


cam3:
  COMMAND: ''
  NAME: ''
  LORE:
  ID: 160 :15
  KEEP-OPEN: true
  POSITION-X: 3
  POSITION-Y: 1

cam6:
  COMMAND: ''
  NAME: ''
  LORE:
  ID: 160 :15
  KEEP-OPEN: true
  POSITION-X: 6
  POSITION-Y: 1

cam7:
  COMMAND: ''
  NAME: ''
  LORE:
  ID: 160 :15
  KEEP-OPEN: true
  POSITION-X: 7
  POSITION-Y: 1

cam8:
  COMMAND: ''
  NAME: ''
  LORE:
  ID: 160 :15
  KEEP-OPEN: true
  POSITION-X: 8
  POSITION-Y: 1

cam9:
  COMMAND: ''
  NAME: ''
  LORE:
  ID: 160 :15
  KEEP-OPEN: true
  POSITION-X: 9
  POSITION-Y: 1

# En alt kisim camlari

cam11:
  COMMAND: ''
  NAME: ''
  LORE:
  ID: 160 :15
  KEEP-OPEN: true
  POSITION-X: 1
  POSITION-Y: 6

cam22:
  COMMAND: 'open:sat.yml'
  NAME: '&bOnceki Sayfa'
  LORE:
  ID: 160 :5
  KEEP-OPEN: true
  POSITION-X: 2
  POSITION-Y: 6

cam33:
  COMMAND: ''
  NAME: ''
  LORE:
  ID: 160 :15
  KEEP-OPEN: true
  POSITION-X: 3
  POSITION-Y: 6

cam44:
  COMMAND: ''
  NAME: ''
  LORE:
  ID: 160 :15
  KEEP-OPEN: true
  POSITION-X: 4
  POSITION-Y: 6

cam55:
  COMMAND: ''
  NAME: ''
  LORE:
  ID: 160 :15
  KEEP-OPEN: true
  POSITION-X: 5
  POSITION-Y: 6

cam66:
  COMMAND: ''
  NAME: ''
  LORE:
  ID: 160 :15
  KEEP-OPEN: true
  POSITION-X: 6
  POSITION-Y: 6

cam77:
  COMMAND: ''
  NAME: ''
  LORE:
  ID: 160 :15
  KEEP-OPEN: true
  POSITION-X: 7
  POSITION-Y: 6

cam88:
  COMMAND: 'open:sat1.yml'
  NAME: '&bSonraki Sayfa'
  LORE:
  ID: 160 :5
  KEEP-OPEN: true
  POSITION-X: 8
  POSITION-Y: 6

cam99:
  COMMAND: ''
  NAME: ''
  LORE:
  ID: 160 :15
  KEEP-OPEN: true
  POSITION-X: 9
  POSITION-Y: 6
cam99asd:
  COMMAND: ''
  NAME: ''
  LORE:
  ID: 160 :15
  KEEP-OPEN: true
  POSITION-X: 4
  POSITION-Y: 1
cam99sadadd:
  COMMAND: ''
  NAME: ''
  LORE:
  ID: 160 :15
  KEEP-OPEN: true
  POSITION-X: 2
  POSITION-Y: 1
cam99sadadd13221:
  COMMAND: ''
  NAME: ''
  LORE:
  ID: 160 :15
  KEEP-OPEN: true
  POSITION-X: 5
  POSITION-Y: 1
 

İnfumia

Software And Design
Mesajlar
209
En iyi cevaplar
5
Beğeniler
283
Puanları
660
Ruh hali
Merhabalar hocam arkadaşın verdiği ChestCommands YML dosyasının doğru olduğunu düşünmüyorum. Sonuç olarak fiyatları belirlemek içinde farklı pluginden editleme yapmanız gerekiyor. Vereceğim kodlarda bir YML dosyasından hepsini halledebilirsiniz.

Satın almak için istenen kod.
Kod:
elmasal:
  PRICE: 1000 #FİYATINI YAZINIZ
  COMMAND: 'give: diamond'  #BURADA 1000 TLYE NE VERSİN ONU YAZIN
  NAME: '&aSatın Al'
  LORE:
    - 'Elmas almak için sol tıklayınız'
    - 'Tanesi 1Kdır.''
  ID: diamond
  KEEP-OPEN: true
  POSITION-X: 1
  POSITION-Y: 1

Satmak İçin istenen kod.

Kod:
elmassat:
  REQUIRED-ITEM: 'diamond, 64' #KAÇTANE ENVANTERDEN ALINACAĞINI YAZIN
  COMMAND: 'givemoney: 500' #BURADA KAÇ TL VERİLECEKSE ONU
  NAME: '&dsat'
  LORE:
    - '64 Elmas sat'
    - '500 TL verir.'
  ID: diamond
  AMOUNT: 64
  KEEP-OPEN: true
  POSITION-X: 1
  POSITION-Y: 2
Doğrusunun bu olduğunu düşünüyorum. Farklı sorularınız varsa Mesajlardan ulaşabilirsiniz.
 

JitterClickYT

Altın Madencisi
Mesajlar
387
En iyi cevaplar
2
Beğeniler
74
Puanları
290
Ruh hali
Merhabalar hocam arkadaşın verdiği ChestCommands YML dosyasının doğru olduğunu düşünmüyorum. Sonuç olarak fiyatları belirlemek içinde farklı pluginden editleme yapmanız gerekiyor. Vereceğim kodlarda bir YML dosyasından hepsini halledebilirsiniz.

Satın almak için istenen kod.
Kod:
elmasal:
  PRICE: 1000 #FİYATINI YAZINIZ
  COMMAND: 'give: diamond'  #BURADA 1000 TLYE NE VERSİN ONU YAZIN
  NAME: '&aSatın Al'
  LORE:
    - 'Elmas almak için sol tıklayınız'
    - 'Tanesi 1Kdır.''
  ID: diamond
  KEEP-OPEN: true
  POSITION-X: 1
  POSITION-Y: 1

Satmak İçin istenen kod.

Kod:
elmassat:
  REQUIRED-ITEM: 'diamond, 64' #KAÇTANE ENVANTERDEN ALINACAĞINI YAZIN
  COMMAND: 'givemoney: 500' #BURADA KAÇ TL VERİLECEKSE ONU
  NAME: '&dsat'
  LORE:
    - '64 Elmas sat'
    - '500 TL verir.'
  ID: diamond
  AMOUNT: 64
  KEEP-OPEN: true
  POSITION-X: 1
  POSITION-Y: 2
Doğrusunun bu olduğunu düşünüyorum. Farklı sorularınız varsa Mesajlardan ulaşabilirsiniz.
Farkettiysen orda sell ile satıyor eşyaların fiyatlarını belirleyerek daha kolay satabilir.
 

Üst