Hareket Edince İptal Olan Bandaj Sistemi

TheAvc31

Zombi Katili
En iyi cevaplar
0
Oyuncu Hareket Edince Bandaj Basılmasının İptal Olmasını İstiyorum ve Bu Bandaj Sisteminde Eğer Oyuncunun Canı 9 Bar İse Basılmamasını İstiyorum Yapabilecekler Varsa Rica Ediyorum Onlardan Yardımlarınız Için Şimdiden Teşekkürler.

on rightclick with paper:
if display name of tool is "&c&lBandaj":
remove paper named "&c&lBandaj" from player
wait 1 seconds
add 1 to health of player
send player title "&4*" for 1 seconds
wait 2 seconds
add 1 to health of player
send player title "&2**" for 1 seconds
wait 2 seconds
add 1 to health of player
send player title "&a***" for 1 seconds
 

ReaLTaiizor

Kızıltaş Madencisi
En iyi cevaplar
0
Kod:
on rightclick with paper:
    if display name of tool is "&c&lBandaj":
        set {_playerloc.%player%} to location of player
        remove paper named "&c&lBandaj" from player
        wait 1 seconds
        {_playerloc.%player%} is location of player
        add 1 to health of player
        send player title "&4*" for 1 seconds
        wait 2 seconds
        {_playerloc.%player%} is location of player
        add 1 to health of player
        send player title "&2**" for 1 seconds
        wait 2 seconds
        {_playerloc.%player%} is location of player:
        add 1 to health of player
        send player title "&a***" for 1 seconds

DENERSİN
 

KingAmdin_YT

Demir Madencisi
En iyi cevaplar
1
Buyur.
(Denendi, çalışıyor.)

Kod:
on rightclick:
    player's tool is paper named "&c&lBandaj"
    health of player < 9:
        remove 1 paper named "&c&lBandaj" from player
        send player title "" with subtitle "&c&lSakın kımıldama!" for 2 seconds
        set {_playerloc.%player%} to location of player
        wait 1 seconds
        location of player is {_playerloc.%player%}:
            send player title "&4*" with subtitle "&c&lSakın kımıldama!" for 2 seconds
            add 1 to health of player
            wait 1 seconds
            health of player < 9:
                set {_playerloc.%player%} to location of player
                wait 1 seconds
                location of player is {_playerloc.%player%}:
                    send player title "&4**" with subtitle "&c&lSakın kımıldama!" for 2 seconds
                    add 1 to health of player
                    wait 1 seconds
                    health of player < 9:
                        set {_playerloc.%player%} to location of player
                        wait 1 seconds
                        location of player is {_playerloc.%player%}:
                            send player title "&4***" with subtitle "&c&lSakın kımıldama!" for 1 seconds
                            add 1 to health of player
                            delete {_playerloc.%player%}
                            stop
                        else:
                            send player title "" with subtitle "&cOlduğun yerde durmadın!" for 2 seconds
                            delete {_playerloc.%player%}
                    else:
                        send "&cYeterli bir şekilde can verildi."
                        delete {_playerloc.%player%}
                else:
                    send player title "" with subtitle "&cOlduğun yerde durmadın!" for 2 seconds
                    delete {_playerloc.%player%}
            else:
                send player title "" with subtitle "&cYeterli bir şekilde can verildi!" for 2 seconds
                delete {_playerloc.%player%}
        else:
            send player title "" with subtitle "&cOlduğun yerde durmadın!" for 2 seconds
            delete {_playerloc.%player%}
    else:
        send player title "" with subtitle "&cZaten canın dolu." for 2 seconds
 

Crosevice

Demir Madencisi
En iyi cevaplar
0
Skript olarak cevap verilmiş fakat eğer ister isen sana bunu jar dosyası olarak sağlayabilirim. Bana DM at!
 

TheAvc31

Zombi Katili
En iyi cevaplar
0
Buyur.
(Denendi, çalışıyor.)

Kod:
on rightclick:
    player's tool is paper named "&c&lBandaj"
    health of player < 9:
        remove 1 paper named "&c&lBandaj" from player
        send player title "" with subtitle "&c&lSakın kımıldama!" for 2 seconds
        set {_playerloc.%player%} to location of player
        wait 1 seconds
        location of player is {_playerloc.%player%}:
            send player title "&4*" with subtitle "&c&lSakın kımıldama!" for 2 seconds
            add 1 to health of player
            wait 1 seconds
            health of player < 9:
                set {_playerloc.%player%} to location of player
                wait 1 seconds
                location of player is {_playerloc.%player%}:
                    send player title "&4**" with subtitle "&c&lSakın kımıldama!" for 2 seconds
                    add 1 to health of player
                    wait 1 seconds
                    health of player < 9:
                        set {_playerloc.%player%} to location of player
                        wait 1 seconds
                        location of player is {_playerloc.%player%}:
                            send player title "&4***" with subtitle "&c&lSakın kımıldama!" for 1 seconds
                            add 1 to health of player
                            delete {_playerloc.%player%}
                            stop
                        else:
                            send player title "" with subtitle "&cOlduğun yerde durmadın!" for 2 seconds
                            delete {_playerloc.%player%}
                    else:
                        send "&cYeterli bir şekilde can verildi."
                        delete {_playerloc.%player%}
                else:
                    send player title "" with subtitle "&cOlduğun yerde durmadın!" for 2 seconds
                    delete {_playerloc.%player%}
            else:
                send player title "" with subtitle "&cYeterli bir şekilde can verildi!" for 2 seconds
                delete {_playerloc.%player%}
        else:
            send player title "" with subtitle "&cOlduğun yerde durmadın!" for 2 seconds
            delete {_playerloc.%player%}
    else:
        send player title "" with subtitle "&cZaten canın dolu." for 2 seconds



Dostum Çalışıyor Fakat Mouseyi Bir Tarafa Çevirsem Bile Yerinde Durmadın Diyor Hareket Etmiyorum Mouseyi Döndürüp Etrafa Bakarken Bile Yerinde Durmadın Diyor
 

KingAmdin_YT

Demir Madencisi
En iyi cevaplar
1
Dostum Çalışıyor Fakat Mouseyi Bir Tarafa Çevirsem Bile Yerinde Durmadın Diyor Hareket Etmiyorum Mouseyi Döndürüp Etrafa Bakarken Bile Yerinde Durmadın Diyor
Evet onu biliyorum ama maalesef skriptte öyle. Biraz daha araştırırıp bulabilirsem güncel skript atarım.
 

ReaLTaiizor

Kızıltaş Madencisi
En iyi cevaplar
0
Evet onu biliyorum ama maalesef skriptte öyle. Biraz daha araştırırıp bulabilirsem güncel skript atarım.

eski locationla yeni location arasındaki mesafeden hesaplattır. yani yarım blok uzaklıktan fazla olrsa kessin can basmayı :D
distance between player and {location.%player%} < 0.5
 

Pledix

Kızıltaş Madencisi
En iyi cevaplar
0
Evet onu biliyorum ama maalesef skriptte öyle. Biraz daha araştırırıp bulabilirsem güncel skript atarım.
Çünkü hareket etmesen bile fareni döndürdüğünde yaw pitch bakış açıları değişir.
Bunun için konumların sadece x, y ve z koordinatlarını kontrol etmeniz gerekiyor.
 

KingAmdin_YT

Demir Madencisi
En iyi cevaplar
1
Artık düzgün çalışıyor. Sayende yeni bir şey öğrendim :)
Kod:
on rightclick:
    player's tool is paper named "&c&lBandaj"
    health of player < 9:
        remove 1 paper named "&c&lBandaj" from player
        send player title "" with subtitle "&c&lSakın kımıldama!" for 2 seconds
        set {playerloc.%player's location%} to true
        wait 1 seconds
        if {playerloc.%player's location%} is true:
            send player title "&4*" with subtitle "&c&lSakın kımıldama!" for 2 seconds
            add 1 to health of player
            wait 1 seconds
            health of player < 9:
                wait 1 seconds
                if {playerloc.%player's location%} is true:
                    send player title "&4**" with subtitle "&c&lSakın kımıldama!" for 2 seconds
                    add 1 to health of player
                    wait 1 seconds
                    health of player < 9:
                        wait 1 seconds
                        if {playerloc.%player's location%} is true:
                            send player title "&4***" with subtitle "&c&lSakın kımıldama!" for 1 seconds
                            add 1 to health of player
                            delete {playerloc.%player's location%}
                            stop
                        else:
                            send player title "" with subtitle "&cOlduğun yerde durmadın!" for 2 seconds
                            delete {playerloc.%player's location%}
                    else:
                        send "&cYeterli bir şekilde can verildi."
                        delete {playerloc.%player's location%}
                else:
                    send player title "" with subtitle "&cOlduğun yerde durmadın!" for 2 seconds
                    delete {playerloc.%player's location%}
            else:
                send player title "" with subtitle "&cYeterli bir şekilde can verildi!" for 2 seconds
                delete {playerloc.%player's location%}
        else:
            send player title "" with subtitle "&cOlduğun yerde durmadın!" for 2 seconds
            delete {playerloc.%player's location%}
    else:
        send player title "" with subtitle "&cZaten canın dolu." for 2 seconds
[automerge]1527247784[/automerge]
Çünkü hareket etmesen bile fareni döndürdüğünde yaw pitch bakış açıları değişir.
Bunun için konumların sadece x, y ve z koordinatlarını kontrol etmeniz gerekiyor.
Evet skriptte biraz sıkıntı var location of player event kullanmama rağmen pitchi de algılıyor fakat veride algılamıyor mesela {_loc.%player's location%} is true
[automerge]1527247956[/automerge]
eski locationla yeni location arasındaki mesafeden hesaplattır. yani yarım blok uzaklıktan fazla olrsa kessin can basmayı :D
distance between player and {location.%player%} < 0.5
Yarım bloktan bile hareket etmiyoruz. Pitch ve yaw ile alakalı bir sorun vardır ama hallettim. Güncel skript yukarda.
 
Son düzenleme:
Üst