Sandık Eşya Market | Artık Her Sandık da Eşya Satma | Tümü Sat | 1.0.1

  • Konuyu Başlatan Konuyu Başlatan Cloneix
  • Başlangıç tarihi Başlangıç tarihi
  • Görüntüleme 1.851

Cloneix

Örümcek Hoşt!
Yasaklandı
Katılım
3 Haziran 2017
Mesajlar
373
Elmaslar
148
Puan
0
Yaş
23
Merhaba MC-TR Üyeler, Yetkilileri ve Yöneticileri;
Hiç görmediğim bir sistem aklıma geldi ve hemen yapmalıyım dedim.
İşe koyuldum ve en sonunda ortaya güzel bir şey çıktı.

Sistemi anlatmaya geçeyim.

Bu Sistem Bize Ne Kolaylığı Sağlayacak ?
Bu sistem sayesinde artık maden market vs. diye bir şeylere gerek yok.
Süslü, güzel, hoş duran bir görüntüsü mevcut.
Örneğin Skyblock sunucularında kullanıcılar tek tek demirleri alıp satmak zorundaydı, fakat bu sistem sayesinde hepsini satabilecekler.
Şimdilik "Sat" özelliği aktif değildir, yakında getirebilirim.


Gerekli Eklentiler/Addonlar;
- TuSKe
- Umbaska
- Essentials
- Vault


Önerilen Eklentiler/Addonlar;
- skRayFall
- SkQuery
- TuSKe
- Umbaska
- Essentials
- Vault


Cam Açıklamaları;
-
Turuncu Cam => Sat
- Yeşil Cam => Tümünü Sat
- Kırmızı Cam => Kapat


Sandık koyup açtığımızda [ Tekli - Çiftli ]
Tekli
1533800299032.png

Çiftli
1533800432465.png


Biraz eşya koyalım...
1533800512678.png

İstediğiniz cama tıklayabilirsiniz...
Yeşil cama tıklıyorum...

Sandığımız bomboş oldu.
1533800575378.png

Şimdi gelen mesaja bakalım...
1533800631962.png


- Skriptin ilk versiyonu ( 1.0.1 ) olarak belirtilmiştir.

Kod:
on break of chest:
    if {chest::dedec::%location of event-block%} is set:
        delete {chest::dedec::%location of event-block%}
        set slot 18 of event-block to air
        set slot 19 of event-block to air
        set slot 20 of event-block to air
        set slot 21 of event-block to air
        set slot 22 of event-block to air
        set slot 23 of event-block to air
        set slot 24 of event-block to air
        set slot 25 of event-block to air
        set slot 26 of event-block to air

on rightclick on chest:
    cancel event
    set {chest::default::allow::%location of event-block%} to true
    if {chest::dedec::%location of event-block%} is not set:
        set {chest::dedec::%location of event-block%} to location of event-block
        set slot 18 of event-block to black stained glass pane named "&7Dokunulamaz"
        set slot 19 of event-block to orange stained glass pane named "&6Sat"
        set slot 20 of event-block to black stained glass pane named "&7Dokunulamaz"
        set slot 21 of event-block to black stained glass pane named "&7Dokunulamaz"
        set slot 22 of event-block to green stained glass pane named "&aTümünü Sat"
        set slot 23 of event-block to black stained glass pane named "&7Dokunulamaz"
        set slot 24 of event-block to black stained glass pane named "&7Dokunulamaz"
        set slot 25 of event-block to red stained glass pane named "&cKapat"
        set slot 26 of event-block to black stained glass pane named "&7Dokunulamaz"
    open inventory of event-block to player

on inventory click:
    if clicked item is not air:
        if name of clicked item is "&7Dokunulamaz" or "&6Sat":
            cancel the event
        if name of clicked item is "&cKapat":
            close player's inventory
        if name of clicked item is "&aTümünü Sat":
            cancel the event
            player command "/chest-sat"
  
command /chest-sat:
    trigger:
        if {chest::default::allow::%location of targeted block%} is true:
            if targeted block is a chest:
                if amount of iron ingot in targeted block is greater than 0:
                    add amount of iron ingot in targeted block * 5 to player's money
                    set {_amounts} to amount of iron ingot in targeted block
                    set {_moneys} to amount of iron ingot in targeted block * 5
                    send "&7Sandıkda &f[ &aDemir Külçesi &7| &2%{_amounts}% &f] &7satıldı ve &f( &e%{_moneys}% &f) &7ele geçirildi." to player
                    remove every iron ingots from targeted block
                if amount of gold ingot in targeted block is greater than 0:
                    add amount of gold ingot in targeted block* 10 to player's money
                    set {_amounts} to amount of gold ingot in targeted block
                    set {_moneys} to amount of gold ingot in targeted block * 10
                    send "&7Sandıkda &f[ &aAltın Külçesi &7| &2%{_amounts}% &f] &7satıldı ve &f( &e%{_moneys}% &f) &7ele geçirildi." to player
                    remove every gold ingots from targeted block
                if amount of diamond in targeted block is greater than 0:
                    add amount of diamond in targeted block* 20 to player's money
                    set {_amounts} to amount of diamond in targeted block
                    set {_moneys} to amount of diamond in targeted block * 20
                    send "&7Sandıkda &f[ &aElmas &7| &2%{_amounts}% &f] &7satıldı ve &f( &e%{_moneys}% &f) &7ele geçirildi." to player
                    remove every diamonds from targeted block
                if amount of emerald in targeted block is greater than 0:
                    add amount of emerald in targeted block* 40 to player's money
                    set {_amounts} to amount of emerald in targeted block
                    set {_moneys} to amount of emerald in targeted block * 40
                    send "&7Sandıkda &f[ &aZümrüt &7| &2%{_amounts}% &f] &7satıldı ve &f( &e%{_moneys}% &f) &7ele geçirildi." to player
                    remove every emeralds from targeted block

Güncelleme 1.0.2 Notları;
-
İkili sandıklardan biri kırılınca camların düşmesi engellendi.


Kod:
on break of chest:
    if {chest::dedec::%location of event-block%} is set:
        delete {chest::dedec::%location of event-block%}
        set slot 18 of event-block to air
        set slot 19 of event-block to air
        set slot 20 of event-block to air
        set slot 21 of event-block to air
        set slot 22 of event-block to air
        set slot 23 of event-block to air
        set slot 24 of event-block to air
        set slot 25 of event-block to air
        set slot 26 of event-block to air
#----------------------------------------------------
        set slot 45 of event-block to air
        set slot 46 of event-block to air
        set slot 47 of event-block to air
        set slot 48 of event-block to air
        set slot 49 of event-block to air
        set slot 50 of event-block to air
        set slot 51 of event-block to air
        set slot 52 of event-block to air
        set slot 53 of event-block to air 
  
on rightclick on chest:
    cancel event
    set {chest::default::allow::%location of event-block%} to true
    if {chest::dedec::%location of event-block%} is not set:
        set {chest::dedec::%location of event-block%} to location of event-block 
        set slot 18 of event-block to black stained glass pane named "&7Dokunulamaz"
        set slot 19 of event-block to orange stained glass pane named "&6Sat"
        set slot 20 of event-block to black stained glass pane named "&7Dokunulamaz"
        set slot 21 of event-block to black stained glass pane named "&7Dokunulamaz"
        set slot 22 of event-block to green stained glass pane named "&aTümünü Sat"
        set slot 23 of event-block to black stained glass pane named "&7Dokunulamaz"
        set slot 24 of event-block to black stained glass pane named "&7Dokunulamaz"
        set slot 25 of event-block to red stained glass pane named "&cKapat"
        set slot 26 of event-block to black stained glass pane named "&7Dokunulamaz"
    open inventory of event-block to player
  
on inventory click:
    if clicked item is not air:
        if name of clicked item is "&7Dokunulamaz" or "&6Sat":
            cancel the event
        if name of clicked item is "&cKapat":
            close player's inventory
        if name of clicked item is "&aTümünü Sat":
            cancel the event
            player command "/chest-sat"
      
command /chest-sat:
    trigger:
        if {chest::default::allow::%location of targeted block%} is true:
            if targeted block is a chest:
                if amount of iron ingot in targeted block is greater than 0:
                    add amount of iron ingot in targeted block * 5 to player's money
                    set {_amounts} to amount of iron ingot in targeted block
                    set {_moneys} to amount of iron ingot in targeted block * 5
                    send "&7Sandıkda &f[ &aDemir Külçesi &7| &2%{_amounts}% &f] &7satıldı ve &f( &e%{_moneys}% &f) &7ele geçirildi." to player
                    remove every iron ingots from targeted block
                if amount of gold ingot in targeted block is greater than 0:
                    add amount of gold ingot in targeted block* 10 to player's money
                    set {_amounts} to amount of gold ingot in targeted block
                    set {_moneys} to amount of gold ingot in targeted block * 10
                    send "&7Sandıkda &f[ &aAltın Külçesi &7| &2%{_amounts}% &f] &7satıldı ve &f( &e%{_moneys}% &f) &7ele geçirildi." to player
                    remove every gold ingots from targeted block
                if amount of diamond in targeted block is greater than 0:
                    add amount of diamond in targeted block* 20 to player's money
                    set {_amounts} to amount of diamond in targeted block
                    set {_moneys} to amount of diamond in targeted block * 20
                    send "&7Sandıkda &f[ &aElmas &7| &2%{_amounts}% &f] &7satıldı ve &f( &e%{_moneys}% &f) &7ele geçirildi." to player
                    remove every diamonds from targeted block
                if amount of emerald in targeted block is greater than 0:
                    add amount of emerald in targeted block* 40 to player's money
                    set {_amounts} to amount of emerald in targeted block
                    set {_moneys} to amount of emerald in targeted block * 40
                    send "&7Sandıkda &f[ &aZümrüt &7| &2%{_amounts}% &f] &7satıldı ve &f( &e%{_moneys}% &f) &7ele geçirildi." to player
                    remove every emeralds from targeted block

NOT » İkili sandıklarda kırınca camların gitme sorunu mevcuttur. | İkili Sandık kullanmayınız.

Bilgi;
Bir hata, açık bulup bana iletirseniz isminizi ve bulduğunuz hatayı, açığı yazacağım.

İletişim Adresi | Discord » Cloneix#6196



 
Son düzenleme:
Biraz daha detaylı anlatabilirsin bence menüyü.
 
Biraz daha detaylı anlatabilirsin bence menüyü.
Detaylı anlattığımı düşünüyorum. Nereler yetersiz bildirirseniz düzeltebilirim.
Hatalarını, açıklarını gidermeye çalışıyorum.
 
Turuncu cam tam olarak sandıktaki hangi eşyayı satıyor?
 

Aslında ilegal olarak mantıklı bir skript ama bazı yerlerde anlam sıkıntısı yaşıyoruz oraları düzeltirsen harika ötesi olabilir.​
 
Turuncu cam tam olarak sandıktaki hangi eşyayı satıyor?
Turuncu cam şuanlık bir şey yapmıyor. Şuanlık yepyeni güncelleme, yenilikler, açıklar,hataları gideriyorum.
Gönderi otomatik olarak birleştirildi:


Aslında ilegal olarak mantıklı bir skript ama bazı yerlerde anlam sıkıntısı yaşıyoruz oraları düzeltirsen harika ötesi olabilir.​
Sonra düzeltmeyi düşünüyorum, şuan büyük bir güncelleme yapıyorum da. Bildiriniz için teşekkür ederim.
 

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