Hareket Edince İptal Olan Bandaj Sistemi

TheAvc31

Zombi Katili
Mesajlar
172
En iyi cevaplar
0
Beğeniler
16
Puanları
110
Ruh hali
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
Mesajlar
577
En iyi cevaplar
0
Beğeniler
193
Puanları
700
Ruh hali
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
Mesajlar
337
En iyi cevaplar
1
Beğeniler
92
Puanları
460
Ruh hali
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
Mesajlar
277
En iyi cevaplar
0
Beğeniler
134
Puanları
440
Skript olarak cevap verilmiş fakat eğer ister isen sana bunu jar dosyası olarak sağlayabilirim. Bana DM at!
 

TheAvc31

Zombi Katili
Mesajlar
172
En iyi cevaplar
0
Beğeniler
16
Puanları
110
Ruh hali
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
Mesajlar
337
En iyi cevaplar
1
Beğeniler
92
Puanları
460
Ruh hali
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
Mesajlar
577
En iyi cevaplar
0
Beğeniler
193
Puanları
700
Ruh hali
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
Mesajlar
675
En iyi cevaplar
0
Beğeniler
332
Puanları
560
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
Mesajlar
337
En iyi cevaplar
1
Beğeniler
92
Puanları
460
Ruh hali
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:

TheAvc31

Zombi Katili
Mesajlar
172
En iyi cevaplar
0
Beğeniler
16
Puanları
110
Ruh hali
Herkese ilgilendiği için teşekkür ederim eksiksiz bir şekilde çözüldü
 

Üst