Çözüldü 1.8 Boss skript

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
M

Merhan

Ziyaretçi
Merhabalar fotoğrafta görülen hatayı <none> hatasını alıyorum nasıl düzeltebilirim?

1634148834386.png


Hatayı aldığım kod ;

JavaScript:
on death of zombie:
    attacker is a player
    victim is a zombie
    if victim's name is "{@zombikral}":
        clear drops
        execute console command "give %attacker% diamondhelmet 1 named:&cBOSS lore:&r unbreaking:5 protection:5"
        execute console command "give %attacker% diamondchestplate 1 named:&cBOSS lore:&r unbreaking:5 protection:5"
        execute console command "give %attacker% diamondleggings 1 named:&cBOSS lore:&r unbreaking:5 protection:5"
        execute console command "give %attacker% diamondboots 1 named:&cBOSS lore:&r unbreaking:5 protection:5"
        broadcast ""
        loop {vurus::*}:
            set {vurus2} to {vurus::%loop-index%}
            if {vurus::%loop-index%} is greater than {vurus2}:
                set {vurus2} to {vurus::%loop-index%}
                set {vuruscu} to loop-index
            else:
                if {vurus::%loop-index%} is {vurus2}:
                    set {vurus2} to {vurus::%loop-index%}
        broadcast "&7En çok vuruş yapan kişi&8: &b%{vuruscu}%&8(&e%{vurus2}% Vuruş&8)"
        loop all players:
            set {vurus::%loop-player%} to 0
        delete {zombikral.hayatta}
 
Merhabalar fotoğrafta görülen hatayı <none> hatasını alıyorum nasıl düzeltebilirim?

Ekli dosyayı görüntüle 189220

Hatayı aldığım kod ;

JavaScript:
on death of zombie:
    attacker is a player
    victim is a zombie
    if victim's name is "{@zombikral}":
        clear drops
        execute console command "give %attacker% diamondhelmet 1 named:&cBOSS lore:&r unbreaking:5 protection:5"
        execute console command "give %attacker% diamondchestplate 1 named:&cBOSS lore:&r unbreaking:5 protection:5"
        execute console command "give %attacker% diamondleggings 1 named:&cBOSS lore:&r unbreaking:5 protection:5"
        execute console command "give %attacker% diamondboots 1 named:&cBOSS lore:&r unbreaking:5 protection:5"
        broadcast ""
        loop {vurus::*}:
            set {vurus2} to {vurus::%loop-index%}
            if {vurus::%loop-index%} is greater than {vurus2}:
                set {vurus2} to {vurus::%loop-index%}
                set {vuruscu} to loop-index
            else:
                if {vurus::%loop-index%} is {vurus2}:
                    set {vurus2} to {vurus::%loop-index%}
        broadcast "&7En çok vuruş yapan kişi&8: &b%{vuruscu}%&8(&e%{vurus2}% Vuruş&8)"
        loop all players:
            set {vurus::%loop-player%} to 0
        delete {zombikral.hayatta}

Bu "{@zombikral}" ismine sahip olan zombiye vurulunca "{vurus::%player%}" in de ayarlanması gerekiyor, ben o kodda onu göremedim.
 
kusura bakmayın baya bir önceden yapmıştım şuanda skript yapmayı unuttum rica etsem yapıp atabilirmisiniz?

PHP:
death of zombie:
    attacker is a player
    victim's name is "{@zombikral}":
        clear drops
        give a diamond helmet with unbreaking 5 and protection 5 named "&cBOSS" with lore "&r" to attacker
        give a diamond chestplate with unbreaking 5 and protection 5 named "&cBOSS" with lore "&r" to attacker
        give a diamond leggings with unbreaking 5 and protection 5 named "&cBOSS" with lore "&r" to attacker
        give a diamond boots with unbreaking 5 and protection 5 named "&cBOSS" with lore "&r" to attacker
        broadcast ""
        loop {vurus::*}:
            set {vurus2} to {vurus::%loop-index%}
            if {vurus::%loop-index%} is greater than {vurus2}:
                set {vurus2} to {vurus::%loop-index%}
                set {vuruscu} to loop-index
            else:
                if {vurus::%loop-index%} is {vurus2}:
                    set {vurus2} to {vurus::%loop-index%}
        broadcast "&7En çok vuruş yapan kişi&8: &b%{vuruscu}%&8(&e%{vurus2}% Vuruş&8)"
        loop all players:
            set {vurus::%loop-player%} to 0
        delete {zombikral.hayatta}
        
damage of zombie:
    attacker is a player
    victim's name is "{@zombikral}":
        add 1 to {vurus::%attacker%}

Denemedim, hata olabilir. Ve kodun birkaç eksik kısmı var diye bir şey ekleyemedim. :/
 
Kod:
        loop {vurus::*}:
            set {vurus2} to {vurus::%loop-index%}
            if {vurus::%loop-index%} is greater than {vurus2}:
                set {vurus2} to {vurus::%loop-index%}
                set {vuruscu} to loop-index
            else:
                if {vurus::%loop-index%} is {vurus2}:
                    set {vurus2} to {vurus::%loop-index%}

Bu kısımı şunun ile değiştirip denermisin
Kod:
        set {vurus2} to 0
        loop {vurus::*}:
            if {vurus::%loop-index%} is greater than {vurus2}:
                set {vurus2} to {vurus::%loop-index%}
                set {vuruscu} to loop-index
 
PHP:
death of zombie:
    attacker is a player
    victim's name is "{@zombikral}":
        clear drops
        give a diamond helmet with unbreaking 5 and protection 5 named "&cBOSS" with lore "&r" to attacker
        give a diamond chestplate with unbreaking 5 and protection 5 named "&cBOSS" with lore "&r" to attacker
        give a diamond leggings with unbreaking 5 and protection 5 named "&cBOSS" with lore "&r" to attacker
        give a diamond boots with unbreaking 5 and protection 5 named "&cBOSS" with lore "&r" to attacker
        broadcast ""
        loop {vurus::*}:
            set {vurus2} to {vurus::%loop-index%}
            if {vurus::%loop-index%} is greater than {vurus2}:
                set {vurus2} to {vurus::%loop-index%}
                set {vuruscu} to loop-index
            else:
                if {vurus::%loop-index%} is {vurus2}:
                    set {vurus2} to {vurus::%loop-index%}
        broadcast "&7En çok vuruş yapan kişi&8: &b%{vuruscu}%&8(&e%{vurus2}% Vuruş&8)"
        loop all players:
            set {vurus::%loop-player%} to 0
        delete {zombikral.hayatta}
       
damage of zombie:
    attacker is a player
    victim's name is "{@zombikral}":
        add 1 to {vurus::%attacker%}

Denemedim, hata olabilir. Ve kodun birkaç eksik kısmı var diye bir şey ekleyemedim. :/
Kod:
        loop {vurus::*}:
            set {vurus2} to {vurus::%loop-index%}
            if {vurus::%loop-index%} is greater than {vurus2}:
                set {vurus2} to {vurus::%loop-index%}
                set {vuruscu} to loop-index
            else:
                if {vurus::%loop-index%} is {vurus2}:
                    set {vurus2} to {vurus::%loop-index%}

Bu kısımı şunun ile değiştirip denermisin
Kod:
        set {vurus2} to 0
        loop {vurus::*}:
            if {vurus::%loop-index%} is greater than {vurus2}:
                set {vurus2} to {vurus::%loop-index%}
                set {vuruscu} to loop-index
İkinizede teşekkürlerimi sunuyorum bana zaman ayırıp yardım ettiğiniz için sorunum çözüldü iyi günler.
 
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