Mob'u Öldürünce Eventi

serkant

Demir Madencisi
En iyi cevaplar
0
Mesela zombiyi öldürünce bir şeyler olmasını istiyorum. (Send falan.) Ama eventini bir türlü bulamadım.

on death of zombie:
on death zombie:

bunun gibi bazı şeyler denedim ama hiç biri olmadı. Ne yapmam lazım?

"Zombiyi Öldürünce" biz öldüreceğiz yani.
 

serkant

Demir Madencisi
En iyi cevaplar
0
on death of zombie doğru.
Zombie yerine Cow yaptım denedim. Ama çalışmadı. Kod burada:

PHP:
on death of cow:
    if player has the permission "avci.yetki":
        if {avci.%player%} is false:
            execute console command "money give %player% 5"
            give 3 xp to player
            send "&bAferin &cAvci&b! Bir hayvan kestigin icin 5 TL ve 3 XP kazandin."
            wait 2 ticks
            set {avci.%player%} to true
            wait 45 seconds
            set {avci.%player%} to false

on death of zombie:
    if {avci.%player%} is true:
        if player has the permission "avci.yetki":
            execute console command "money take %player% 5"
            send "&bBiraz beklemen lazim &cAvci&b! Her &445 &bsaniyede bir hayvan oldurebilirsin. Bunu yaptigin icin senden &45 TL aldik!"
 

MhaWTHoR

Obsidyen Madencisi
En iyi cevaplar
1
"On death of zombie" bu kesinlikle çalışıyor.
Az önce sunucumda denedim.
Sıkıntı olmadı.
Sende bir sıkıntı olmalı.
 

Minecraftplayerr

Java, Skript, Php, Html, Css, Javascript, Anime
En iyi cevaplar
7
on death:
victim is zombie
attacker is player
send "mesaj" to attacker

edit: send "" to attacker
attacker kısmını unutmuş arkadaş ondan dolayı çalışmıyor diyor sanırım?
 

serkant

Demir Madencisi
En iyi cevaplar
0
Sizin dediğinize göre yaptım. Ama sorun sadece mesaj göndermesi değil. Domuzu kesiyorum ama hiçbir mesaj, xp gelmesi falan olmuyor. Yani skript işlemiyor sanırsam. Diğer skriptler normal çalışıyor ama. Kod bu:

PHP:
on death:
    victim is pig
    attacker is player
    if player has the permission "avci.yetki":
        if {avci.%player%} is false:
            execute console command "money give %player% 5"
            give 3 xp to player
            send "&bAferin &cAvci&b! Bir hayvan kestigin icin 5 TL ve 3 XP kazandin." to attacker
            wait 2 ticks
            set {avci.%player%} to true
            wait 45 seconds
            set {avci.%player%} to false

on death:
    victim is pig
    attacker is player
    if {avci.%player%} is true:
        if player has the permission "avci.yetki":
            execute console command "money take %player% 5"
            send "&bBiraz beklemen lazim &cAvci&b! Her &445 &bsaniyede bir hayvan oldurebilirsin. Bunu yaptigin icin senden &45 TL aldik!" to attacker
Yardım lütfen. @ReMaKeR @Axel102 @Epistomoloji @enes lol lol @GetqusA[DOUBLEPOST=1438536264,1438533762][/DOUBLEPOST]Yardıım :/
 
Son düzenleme:

Minecraftplayerr

Java, Skript, Php, Html, Css, Javascript, Anime
En iyi cevaplar
7
Sizin dediğinize göre yaptım. Ama sorun sadece mesaj göndermesi değil. Domuzu kesiyorum ama hiçbir mesaj, xp gelmesi falan olmuyor. Yani skript işlemiyor sanırsam. Diğer skriptler normal çalışıyor ama. Kod bu:

PHP:
on death:
    victim is pig
    attacker is player
    if player has the permission "avci.yetki":
        if {avci.%player%} is false:
            execute console command "money give %player% 5"
            give 3 xp to player
            send "&bAferin &cAvci&b! Bir hayvan kestigin icin 5 TL ve 3 XP kazandin." to attacker
            wait 2 ticks
            set {avci.%player%} to true
            wait 45 seconds
            set {avci.%player%} to false

on death:
    victim is pig
    attacker is player
    if {avci.%player%} is true:
        if player has the permission "avci.yetki":
            execute console command "money take %player% 5"
            send "&bBiraz beklemen lazim &cAvci&b! Her &445 &bsaniyede bir hayvan oldurebilirsin. Bunu yaptigin icin senden &45 TL aldik!" to attacker
Yardım lütfen. @ReMaKeR @Axel102 @Epistomoloji @enes lol lol @GetqusA[DOUBLEPOST=1438536264,1438533762][/DOUBLEPOST]Yardıım :/
Şu kısım düzgün çalışıyor mu ona göre?
if {avci.%player%} is false:[DOUBLEPOST=1438543734][/DOUBLEPOST]Buldum yine aynı sorun:
give 3 xp to player
player kısımlarının hepsini attacker a çevirin
attacker is player kısımları kalsın.
 
Üst