İstek At Skripti İsteği YARDIM

PIKO_SALA

Zombi Katili
Mesajlar
162
En iyi cevaplar
0
Beğeniler
68
Puanları
780
Selamlar 2 adet skript var elimde

Bunlarda şöyle bir sorunum var

Kod:
on leftclick with book:
    if name of player's tool is "&6At Kitabi":
        if {AT.%player%} is not set:
            spawn a horse at player
            equip the spawned horse with a saddle
            equip the spawned horse with a diamond horse armour
            set spawned horse's name to "&6%player%"
            set {AT.%player%} to true
            stop
        if {AT.%player%} is false:
            spawn a horse at player
            equip the spawned horse with a saddle
            equip the spawned horse with diamond horse armour
            set spawned horse's name to "&6%player%"
            set {AT.%player%} to true
            stop
        if {AT.%player%} is true:
            send "&6Zaten at cagirmissin geri yollamak icin kitaba sag tikla."
            stop
    
on rightclick with book:
    if name of player's tool is "&6At Kitabi":
        if {AT.%player%} is true:
            loop all horses:
                display name of loop-entity is "&6%player%"
                kill loop-entity
                set {AT.%player%} to false
                stop
        if {AT.%player%} is false:
            send "&6At cagirmak icin kitaba sol tikla."
            stop

on damage:
    if victim is a horse:
        if victim's name is set:
            if attacker is player:
                send "&6Sahibi olan bir ata vuramazsin" to attacker
                cancel event
            else:
                cancel event

on death of horse:
    if victim's name is set:
        clear drops
    
command /at [<text>]:
    trigger:
        if arg 1 is "kitap":
            give 1 book named "&6At Kitabi" to player
        if arg 1 is "bug":
            delete {AT.%player%}
            loop all horses:
                display name of loop-entity is "&6%player%"
                kill loop-entity     
        if arg 1 is not set:
            send "&6/at kitap 1 tane at kitabi verir." to player
            send "&6/at bug Olusan bugu duzeltir" to player

Bu skriptte her şey olması gerektiği gibi fakat oyuncu atı çağırdığında at evcilleşmemiş oluyor. Sürekli üzerinden atıyor.
Ve attan indiğinde silinmesi gerekli atın bunu beceremedim.

Kod:
on right click:
    if player's tool is saddle named "&6At kitabı":
        spawn horse at player's location
        set {_entity} to last spawned horse
        tame last spawned horse to player
        equip last spawned horse with saddle
        make player ride {_entity}

Bu koddaki sorunsuz olarak evcilleştirilmiş at spawn ediyor oyuncuya fakat sürekli spawn edebiliyor .
Bu alttaki kodu yukarıdaki koda entegre edemedim yardımcı olan olursa sevinirim.
 


ShiodomeMiuna

Nether Yerlisi
Mesajlar
2,351
En iyi cevaplar
11
Beğeniler
1,190
Puanları
3,300
Selamlar 2 adet skript var elimde

Bunlarda şöyle bir sorunum var

Kod:
on leftclick with book:
    if name of player's tool is "&6At Kitabi":
        if {AT.%player%} is not set:
            spawn a horse at player
            equip the spawned horse with a saddle
            equip the spawned horse with a diamond horse armour
            set spawned horse's name to "&6%player%"
            set {AT.%player%} to true
            stop
        if {AT.%player%} is false:
            spawn a horse at player
            equip the spawned horse with a saddle
            equip the spawned horse with diamond horse armour
            set spawned horse's name to "&6%player%"
            set {AT.%player%} to true
            stop
        if {AT.%player%} is true:
            send "&6Zaten at cagirmissin geri yollamak icin kitaba sag tikla."
            stop
   
on rightclick with book:
    if name of player's tool is "&6At Kitabi":
        if {AT.%player%} is true:
            loop all horses:
                display name of loop-entity is "&6%player%"
                kill loop-entity
                set {AT.%player%} to false
                stop
        if {AT.%player%} is false:
            send "&6At cagirmak icin kitaba sol tikla."
            stop

on damage:
    if victim is a horse:
        if victim's name is set:
            if attacker is player:
                send "&6Sahibi olan bir ata vuramazsin" to attacker
                cancel event
            else:
                cancel event

on death of horse:
    if victim's name is set:
        clear drops
   
command /at [<text>]:
    trigger:
        if arg 1 is "kitap":
            give 1 book named "&6At Kitabi" to player
        if arg 1 is "bug":
            delete {AT.%player%}
            loop all horses:
                display name of loop-entity is "&6%player%"
                kill loop-entity    
        if arg 1 is not set:
            send "&6/at kitap 1 tane at kitabi verir." to player
            send "&6/at bug Olusan bugu duzeltir" to player

Bu skriptte her şey olması gerektiği gibi fakat oyuncu atı çağırdığında at evcilleşmemiş oluyor. Sürekli üzerinden atıyor.
Ve attan indiğinde silinmesi gerekli atın bunu beceremedim.

Kod:
on right click:
    if player's tool is saddle named "&6At kitabı":
        spawn horse at player's location
        set {_entity} to last spawned horse
        tame last spawned horse to player
        equip last spawned horse with saddle
        make player ride {_entity}

Bu koddaki sorunsuz olarak evcilleştirilmiş at spawn ediyor oyuncuya fakat sürekli spawn edebiliyor .
Bu alttaki kodu yukarıdaki koda entegre edemedim yardımcı olan olursa sevinirim.
E üstteki kodda evcilleştirme komutunu yazmamışsın...
"tame last spawned horse to player" kodunu eklemen gerekiyor spawnlandıktan hemen sonrasına.
 

Üst