Sol Reklam
Sağ Reklam

Çözüldü At Skripti

Durum
Mesaj gönderimine kapalı.

2Adam

Bir Kömür Göründü Kaptanım!
Katılım
13 Haziran 2018
Mesajlar
165
Elmaslar
11
Puanlar
0
Minecraft
Mr_Eness
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
            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
            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

Şimdi ilk öncelikle yapanın ellerinden öpeyim. benim bu şekilde bi kodum var ama kitaba sağ tıkladığında doğmuyor hatta yazı bile yazmıyor eskiden çalışıyodu ama /at bug yazdım bozuldu.

2- eskiden çalışırken atı çağıyodum ama Zaten at cagirmissin geri yollamak icin kitaba sag tikla diyordu sağ tıklasam da olmuyo du bunları düzeltebilir misiniz

ya da yeni bi kod yazar mısınız ? :)
Gönderi otomatik olarak birleştirildi:

Kod:
on leftclick with book:
    if name of player's tool is "&6At Kitabi":
        if {A.%player%} is not set:
            spawn a horse at player
            equip the spawned horse with a saddle
            set spawned horse's name to "&6%player%"
            set {A.%player%} to true
            stop
        if {A.%player%} is false:
            spawn a horse at player
            equip the spawned horse with a saddle
            set spawned horse's name to "&6%player%"
            set {A.%player%} to true
            stop
        if {A.%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 {A.%player%} is true:
            loop all horses:
                display name of loop-entity is "&6%player%"
                kill loop-entity
                set {A.%player%} to false
                stop
        if {A.%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 "bug":
            delete {A.%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

Kodu Bu Şekilde Değiştirdim oldu şimdi bir şey isticem /atlarıöldür yazınca tüm sahibi olan atlar ölsün
 
Son düzenleme:

bertek41

The Developer of Apia Team
Katılım
29 Ağustos 2016
Mesajlar
1.068
Elmaslar
464
Puanlar
15.745
Yer
Kocaeli
Minecraft
YasinSubasi
Kod:
command /atlarıöldür:
    permission: sk.admin
    permission message: &4Bunun için yetkin yok!
    trigger:
        loop all horses:
            loop-entity's name is set:
                set {_x} to "%loop-entity's name%"
                replace "&6" with "" in {_x}
                set {_x} to {_x} parsed as player
                kill loop-entity
                set {A.%{_x}%} to false
 
Durum
Mesaj gönderimine kapalı.
Neden altınlarını Discord sunucumuzda kazmıyorsun? TIKLA VE KATIL!
Yukarı