Çözüldü WAND SKRİPTİM HAKKINDA YARDIM LAZIM

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

ArrowAlperen

Bir Kömür Göründü Kaptanım!
Katılım
31 Temmuz 2019
Mesajlar
114
Elmaslar
83
Puan
6.455
Konum
Bursa
Minecraft
BlackyHD
Kod:
options:
    wanditem: wood axe

command /wand:
    trigger:
        if player has permission "koy.oyuncu":   
            set {_sayi} to 640
        else if player has permission "koy.vip":   
            set {_sayi} to 640
        else if player has permission "koy.vip+":   
            set {_sayi} to 640
        else if player has permission "koy.+vip+":   
            set {_sayi} to 640
        else if player has permission "koy.mvip":   
            set {_sayi} to 640
        else if player has permission "koy.mvip+":   
            set {_sayi} to 640
        if {koy::hak::%player%} is set:
            set {_sayi} to {koy::hak::%player%}
        give 1 {@wanditem} named "&cİsland Edit" with lore "||&e&nBir kerede dizebileceğin||&e&nmaximum block sayısı:||||&6%{_sayi}% Block" to player

on left click with {@wanditem}:
    set {_owner} to asb island at location of player owner
    if "%{_owner}%" is equal to "%player%":   
        if clicked block is set:
            if targeted block is not air:
                cancel event
                set {koy::skybalta:::%player%::1} to location of event-block
                if player has permission "koy.oyuncu":   
                    set {_sayi} to 640
                else if player has permission "koy.vip":   
                    set {_sayi} to 640   
                else if player has permission "koy.vip+":   
                    set {_sayi} to 640
                else if player has permission "koy.+vip+":   
                    set {_sayi} to 640
                else if player has permission "koy.mvip":   
                    set {_sayi} to 640
                else if player has permission "koy.mvip+":   
                    set {_sayi} to 640
                if {koy::hak::%player%} is set:
                    set {_sayi} to {koy::hak::%player%}
                if {koy::skybalta:::%player%::2} is set:
                    loop blocks within {koy::skybalta:::%player%::2} to {koy::skybalta:::%player%::1}:   
                        add 1 to {_n}
                    if {_n} is smaller than or equal to {_sayi}:
                        send "&aToplamda &c%{_n}% &ablock seçtiniz. &7(&e/koy [<block id>]&7)"
                    else:
                        send "&cKoyabileceğiniz max. sınırı aşıyorsunuz !"
                        delete {koy::skybalta:::%player%::1}
                else:
                    send "&aBölge &e1 &aseçildi. Lütfen Bölge &e2'yide &aseçiniz. &7(&6İptal için &e/koy iptal&7)"
    else:
        send "&cBu ada senin değil !"

on right click with {@wanditem}:
    set {_owner} to asb island at location of player owner
    if "%{_owner}%" is equal to "%player%":
        if clicked block is set:   
            if targeted block is not air:   
                cancel event
                set {koy::skybalta:::%player%::2} to location of event-block
                if player has permission "koy.oyuncu":   
                    set {_sayi} to 640
                else if player has permission "koy.vip":   
                    set {_sayi} to 640
                else if player has permission "koy.vip+":   
                    set {_sayi} to 640
                else if player has permission "koy.+vip+":   
                    set {_sayi} to 640
                else if player has permission "koy.mvip":   
                    set {_sayi} to 640
                else if player has permission "koy.mvip+":   
                    set {_sayi} to 640
                if {koy::hak::%player%} is set:
                    set {_sayi} to {koy::hak::%player%}
                if {koy::skybalta:::%player%::1} is set:
                    loop blocks within {koy::skybalta:::%player%::2} to {koy::skybalta:::%player%::1}:   
                        add 1 to {_n}
                    if {_n} is smaller than or equal to {_sayi}:
                        send "&aToplamda &c%{_n}% &ablock seçtiniz. &7(&e/koy [<block id>]&7)"
                    else:
                        send "&cKoyabileceğiniz max. sınırı aşıyorsunuz !"
                        delete {koy::skybalta:::%player%::2}
                else:
                    send "&aBölge &e1 &aseçildi. Lütfen Bölge &e2'yide &aseçiniz. &7(&6İptal için &e/koy iptal&7)"
    else:
        send "&cBu ada senin değil !"

command /koy [<text>]:
    trigger:
        set {_block} to arg 1 parsed as a item type
        if arg 1 is set:
            if {_block} is a item type:
                if {_block} is not air:
                    if {koy::skybalta:::%player%::1} is set:
                        if {koy::skybalta:::%player%::2} is set:
                            loop blocks within {koy::skybalta:::%player%::2} to {koy::skybalta:::%player%::1}:   
                                add 1 to {_n}
                            if player has {_n} of {_block}:
                                remove {_n} of {_block} from player's inventory
                            else:
                                set {_amount} to amount of {_block} in player's inventory
                                send "&cYeterli bloğun envanterinde yok. &7(&eGereken &6%{_n}-{_amount}%&7)"
                                stop
                            loop blocks within {koy::skybalta:::%player%::2} to {koy::skybalta:::%player%::1}:
                                add 1 to {_lag}
                                set loop-blocks to {_block}
                                if {_lag} is greater than or equal to 100:
                                    wait 1 ticks
                                    delete {_lag}
                            delete {koy::skybalta:::%player%::*}
                        else:
                            send "&cLütfen &a2. &cbölgeyi &esağ &ctıklayarak seçiniz !"
                    else:
                        send "&cLütfen &a1. &cbölgeyi &esol &ctıklayarak seçiniz !"
                else:
                    if {koy::skybalta:::%player%::1} is set:
                        if {koy::skybalta:::%player%::2} is set:
                            loop blocks within {koy::skybalta:::%player%::2} to {koy::skybalta:::%player%::1}:
                                add 1 to {_lag}
                                give loop-blocks to player
                                set loop-blocks to {_block}
                                if {_lag} is greater than or equal to 100:
                                    wait 1 ticks
                                    delete {_lag}
                            delete {koy::skybalta:::%player%::*}
                        else:
                            send "&cLütfen &a2. &cbölgeyi &esağ &ctıklayarak seçiniz !"
                    else:
                        send "&cLütfen &a1. &cbölgeyi &esol &ctıklayarak seçiniz !"
        if arg 1 is "iptal":
            delete {koy::skybalta:::%player%::*}
            send "&cSeçili alanlar kaldırıldı !"

command /blockver [<player>] [<number>]:
    permission: op
    permission message: &cYeterli yetkiniz yok !
    trigger:
        if arg 1 is set:
            if arg 2 is set:
                set {koy::hak::%arg 1%} to arg 2
                send "&aYeni block koyma hakkın = &5%{koy::hak::%arg 1%}%" to arg 1
                send "&e%arg 1% &aAdlı oyuncunun yeni block koyma hakkı = &5%{koy::hak::%arg 1%}%" to player
            else:
                send "&cLütfen bir sayı belirle !"
        else:
            send "&cLütfen bir kişi belirle !"
SADECE ADA SAHİPLERİNDE ÇALIŞIYOR AMA BEN TÜM ADA SAHİPLERİ KULLANABİLSİN İSTİYORUM YARDIMCI OLANA TŞK!!
Gönderi otomatik olarak birleştirildi:

yayrdım edinn
 
Son düzenleme:
Tüm ada sahipleri derken neyden bahsediyorsun pek anlamadım. Biraz daha net ve açıklayıcı olur musun?
adaya katılmış tüm oyuncular kullanabilsin istiyom sadece ada lideri kullanabiliyor wandı
 
Kod:
set {_owner} to asb island at location of player owner
if "%{_owner}%" is equal to "%player%":

Şimdi bu kısımlar var ya eventlerde, bu kısımları aşağıdaki kodla değiştir.

Kod:
set {_teams} to asb island at location of player's team members
if "%{_teams}%" is equal to "%player%":

Takım üyelerini bir değişkene atadım tam emin değilim bi' dene olma ihtimali yarı yarıya.
tmm denicem
Gönderi otomatik olarak birleştirildi:

Kod:
set {_owner} to asb island at location of player owner
if "%{_owner}%" is equal to "%player%":

Şimdi bu kısımlar var ya eventlerde, bu kısımları aşağıdaki kodla değiştir.

Kod:
set {_teams} to asb island at location of player's team members
if "%{_teams}%" is equal to "%player%":

Takım üyelerini bir değişkene atadım tam emin değilim bi' dene olma ihtimali yarı yarıya.
hata.png

hata veriyo ve olmuyor
Gönderi otomatik olarak birleştirildi:

Kod:
set {_owner} to asb island at location of player owner
if "%{_owner}%" is equal to "%player%":

Şimdi bu kısımlar var ya eventlerde, bu kısımları aşağıdaki kodla değiştir.

Kod:
set {_teams} to asb island at location of player's team members
if "%{_teams}%" is equal to "%player%":

Takım üyelerini bir değişkene atadım tam emin değilim bi' dene olma ihtimali yarı yarıya.
HADI SEN YAPARSIN :d !
Gönderi otomatik olarak birleştirildi:

@Reggin Team & @Abdullah T. siz kaça ayarlarsınız istediğim gibi?
 
Son düzenleme:
set {_teams} to asb island at location of player owner's team members

Bunu dener misin? Zaten az önce önerdiğim kod saçmaydı.
 
Son düzenleme:
Çözüldümü bendede aynı hata vardıda
 
Demek ki öyle bir kod yokmuş, oyuncu kurucusunu aldık ve takım üyelerini aldık sorun çözülmedi ve çözülemez gibi.
 
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