Bulundu Bounty skript istek

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

kral6157

Somon Balığı Selam Vermeye Geldi
Katılım
8 Ağustos 2024
Mesajlar
23
Elmaslar
0
Puan
890
Konum
İstanbul
Minecraft
kral5761

Discord:

kral6157

İnternette çok araştırdım ve bazı bounty skriptleri buldum ama istediğim tarzda bulamadım kendim yazmak istesemde skript hakkında aşırı bi bilgim bulunmadığından yazamadım :(

Şöyle bir sistem istiyorum: z ve x kişisi olduğunu var sayalım ve ikisininde 100 bountysininin olduğunu varsayalım eğer x kişisi y kişisini öldürür ise x kişisine 100 para gidecek ve 50 bounty kazanacak y kişisinin bountysi ise sıfırlanacak skriptte placeholderapi desteği varmı bilmiyorum ama scoreboardda bountymizin gözükmesini istiyorum

birde myhticmobs ile desteklenebilirmi onuda bilmiyorum(hehe) eğer zindanda olan moblardan keserler ise ordanda bounty kazanmalarını istiyorum son yazdığım olay karmaşık gelebilir kısaca şöyle diyim zindanda bir mob olacak ve bu mobu kestiklerinde 500 bounty verecek skript veya böyle bir plugin bilen varmı? veya yardım edebilecek biri varmı sunucuma ve başka sunuculardada güzel bir mekanik olur diye düşünüyorum :)
 
Bounty.sk

Kod:
# --- AYARLAR BÖLÜMÜ ---
# Buradaki değerleri istediğin gibi değiştirebilirsin.
options:
    prefix: &6[Bounty] &e
    # Oyuncu öldürdüğünde katilin kazanacağı sabit bounty miktarı
    pvp-bounty-kazanc: 50
    # MythicMobs ile entegrasyon için mobun tam adı (renk kodlarıyla birlikte)
    # MythicMobs config dosyasında mob'un Display ismini ne yaptıysan aynısını yaz.
    zindan-mob-adi: "&cZindan Golemi"
    # Bu mobu kesince kazanılacak bounty miktarı
    zindan-mob-kazanc: 500

# --- DEĞİŞKENLER VE PLACEHOLDER ---
# Oyuncuların bounty'sini saklamak için değişken
variables:
    {bounty::%player's uuid%} = 0

# PlaceholderAPI için kendi placeholder'ımızı kaydediyoruz
# Bu sayede %bounty_mevcut% yazdığımız her yerde oyuncunun bounty'si görünecek.
on load:
    if class "me.clip.placeholderapi.PlaceholderAPI" is loaded:
        register placeholder "bounty_mevcut" with identifier "bounty":
            set return value to "%{bounty::%player's uuid%}%" without colors
        log "{@prefix} PlaceholderAPI için %bounty_mevcut% placeholder'ı başarıyla kaydedildi."
    else:
        log "{@prefix} &cPlaceholderAPI bulunamadı! Bounty değeri gösterilemeyecek."

# Oyuncu ilk kez girdiğinde bounty'sini sıfır olarak ayarla
on first join:
    set {bounty::%player's uuid%} to 0

# --- ANA MEKANİKLER ---

# Oyuncu bir oyuncuyu öldürdüğünde...
on death of a player:
    # Eğer katil de bir oyuncuysa devam et
    if attacker is a player:
        # Ölen oyuncunun bounty'sini bir değişkene alıyoruz
        set {_victim_bounty} to {bounty::%victim's uuid%}

        # Eğer ölenin bounty'si yoksa veya 0'dan küçükse 0 yap (ne olur ne olmaz)
        if {_victim_bounty} is not set or {_victim_bounty} < 0:
            set {_victim_bounty} to 0

        # Katile, ölen kişinin bounty'si kadar para ver
        add {_victim_bounty} to attacker's balance
       
        # Katilin bounty'sine ayarlarda belirlediğimiz miktarı ekle
        add {@pvp-bounty-kazanc} to {bounty::%attacker's uuid%}

        # Ölen oyuncunun bounty'sini sıfırla
        set {bounty::%victim's uuid%} to 0

        # Bilgilendirme mesajları
        send "{@prefix} &a%victim%&e adlı oyuncuyu öldürdün!" to attacker
        send "{@prefix} &a%victim's bounty% para&e kazandın ve bounty'n &a%{@pvp-bounty-kazanc}%&e arttı!" to attacker
        send "{@prefix} &c%attacker%&e tarafından öldürüldün ve tüm bounty'ni kaybettin." to victim

# MythicMobs entegrasyonu: Bir canavar öldüğünde...
on death of a monster:
    # Eğer katil bir oyuncuysa devam et
    if attacker is a player:
        # Eğer ölen canavarın adı ayarlarda belirttiğimiz isimle aynıysa...
        if name of victim is "{@zindan-mob-adi}":
            # Oyuncunun bounty'sine ayarlarda belirlediğimiz miktarı ekle
            add {@zindan-mob-kazanc} to {bounty::%attacker's uuid%}
            # Bilgilendirme mesajı gönder
            send "{@prefix} &bZindan yaratığını&e yendin ve &a%{@zindan-mob-kazanc}%&e bounty kazandın!" to attacker

# --- KOMUTLAR ---

command /bounty [<text>] [<player>] [<integer>]:
    trigger:
        if arg-1 is not set or arg-1 is "bak" or arg-1 is "göster":
            if arg-2 is not set:
                send "{@prefix} Mevcut bounty'n: &a%{bounty::%player's uuid%}%"
            else:
                if player has permission "bounty.admin":
                    send "{@prefix} &6%arg-2%&e adlı oyuncunun bounty'si: &a%{bounty::%arg-2's uuid%}%"
                else:
                    send "{@prefix} Başkasının bounty'sine bakma yetkin yok."
       
        else if arg-1 is "yardım":
            send "&6--- Bounty Sistemi Komutları ---"
            send "&e/bounty bak [<oyuncu>] &7- Kendi veya başkasının bounty'sine bakarsın."
            if player has permission "bounty.admin":
                send "&c/bounty ayarla <oyuncu> <miktar> &7- Oyuncunun bounty'sini ayarlar."
                send "&c/bounty ekle <oyuncu> <miktar> &7- Oyuncunun bounty'sine ekleme yapar."
                send "&c/bounty sıfırla <oyuncu> &7- Oyuncunun bounty'sini sıfırlar."

        else if arg-1 is "ayarla":
            if player has permission "bounty.admin":
                if arg-2 is set and arg-3 is set:
                    set {bounty::%arg-2's uuid%} to arg-3
                    send "{@prefix} &6%arg-2%&e adlı oyuncunun bounty'si &a%arg-3%&e olarak ayarlandı."
                else:
                    send "{@prefix} &cKullanım: /bounty ayarla <oyuncu> <miktar>"
            else:
                send "{@prefix} &cBu komutu kullanma yetkin yok."

        else if arg-1 is "ekle":
            if player has permission "bounty.admin":
                if arg-2 is set and arg-3 is set:
                    add arg-3 to {bounty::%arg-2's uuid%}
                    send "{@prefix} &6%arg-2%&e adlı oyuncunun bounty'sine &a%arg-3%&e eklendi."
                else:
                    send "{@prefix} &cKullanım: /bounty ekle <oyuncu> <miktar>"
            else:
                send "{@prefix} &cBu komutu kullanma yetkin yok."

        else if arg-1 is "sıfırla":
            if player has permission "bounty.admin":
                if arg-2 is set:
                    set {bounty::%arg-2's uuid%} to 0
                    send "{@prefix} &6%arg-2%&e adlı oyuncunun bounty'si sıfırlandı."
                else:
                    send "{@prefix} &cKullanım: /bounty sıfırla <oyuncu>"
            else:
                send "{@prefix} &cBu komutu kullanma yetkin yok."


Mythic mobs için

Kod:
ZindanGolemi:
  Type: IRON_GOLEM
  Display: '&cZindan Golemi' # Bu ismin skript'tekiyle aynı olması ÇOK ÖNEMLİ
  Health: 1000
  Damage: 25
  Skills:
  - ....



PlaceHolder

Kod:
%bounty_mevcut%


Kullanabilirsiniz.
 
Bounty.sk

Kod:
# --- AYARLAR BÖLÜMÜ ---
# Buradaki değerleri istediğin gibi değiştirebilirsin.
options:
    prefix: &6[Bounty] &e
    # Oyuncu öldürdüğünde katilin kazanacağı sabit bounty miktarı
    pvp-bounty-kazanc: 50
    # MythicMobs ile entegrasyon için mobun tam adı (renk kodlarıyla birlikte)
    # MythicMobs config dosyasında mob'un Display ismini ne yaptıysan aynısını yaz.
    zindan-mob-adi: "&cZindan Golemi"
    # Bu mobu kesince kazanılacak bounty miktarı
    zindan-mob-kazanc: 500

# --- DEĞİŞKENLER VE PLACEHOLDER ---
# Oyuncuların bounty'sini saklamak için değişken
variables:
    {bounty::%player's uuid%} = 0

# PlaceholderAPI için kendi placeholder'ımızı kaydediyoruz
# Bu sayede %bounty_mevcut% yazdığımız her yerde oyuncunun bounty'si görünecek.
on load:
    if class "me.clip.placeholderapi.PlaceholderAPI" is loaded:
        register placeholder "bounty_mevcut" with identifier "bounty":
            set return value to "%{bounty::%player's uuid%}%" without colors
        log "{@prefix} PlaceholderAPI için %bounty_mevcut% placeholder'ı başarıyla kaydedildi."
    else:
        log "{@prefix} &cPlaceholderAPI bulunamadı! Bounty değeri gösterilemeyecek."

# Oyuncu ilk kez girdiğinde bounty'sini sıfır olarak ayarla
on first join:
    set {bounty::%player's uuid%} to 0

# --- ANA MEKANİKLER ---

# Oyuncu bir oyuncuyu öldürdüğünde...
on death of a player:
    # Eğer katil de bir oyuncuysa devam et
    if attacker is a player:
        # Ölen oyuncunun bounty'sini bir değişkene alıyoruz
        set {_victim_bounty} to {bounty::%victim's uuid%}

        # Eğer ölenin bounty'si yoksa veya 0'dan küçükse 0 yap (ne olur ne olmaz)
        if {_victim_bounty} is not set or {_victim_bounty} < 0:
            set {_victim_bounty} to 0

        # Katile, ölen kişinin bounty'si kadar para ver
        add {_victim_bounty} to attacker's balance
      
        # Katilin bounty'sine ayarlarda belirlediğimiz miktarı ekle
        add {@pvp-bounty-kazanc} to {bounty::%attacker's uuid%}

        # Ölen oyuncunun bounty'sini sıfırla
        set {bounty::%victim's uuid%} to 0

        # Bilgilendirme mesajları
        send "{@prefix} &a%victim%&e adlı oyuncuyu öldürdün!" to attacker
        send "{@prefix} &a%victim's bounty% para&e kazandın ve bounty'n &a%{@pvp-bounty-kazanc}%&e arttı!" to attacker
        send "{@prefix} &c%attacker%&e tarafından öldürüldün ve tüm bounty'ni kaybettin." to victim

# MythicMobs entegrasyonu: Bir canavar öldüğünde...
on death of a monster:
    # Eğer katil bir oyuncuysa devam et
    if attacker is a player:
        # Eğer ölen canavarın adı ayarlarda belirttiğimiz isimle aynıysa...
        if name of victim is "{@zindan-mob-adi}":
            # Oyuncunun bounty'sine ayarlarda belirlediğimiz miktarı ekle
            add {@zindan-mob-kazanc} to {bounty::%attacker's uuid%}
            # Bilgilendirme mesajı gönder
            send "{@prefix} &bZindan yaratığını&e yendin ve &a%{@zindan-mob-kazanc}%&e bounty kazandın!" to attacker

# --- KOMUTLAR ---

command /bounty [<text>] [<player>] [<integer>]:
    trigger:
        if arg-1 is not set or arg-1 is "bak" or arg-1 is "göster":
            if arg-2 is not set:
                send "{@prefix} Mevcut bounty'n: &a%{bounty::%player's uuid%}%"
            else:
                if player has permission "bounty.admin":
                    send "{@prefix} &6%arg-2%&e adlı oyuncunun bounty'si: &a%{bounty::%arg-2's uuid%}%"
                else:
                    send "{@prefix} Başkasının bounty'sine bakma yetkin yok."
      
        else if arg-1 is "yardım":
            send "&6--- Bounty Sistemi Komutları ---"
            send "&e/bounty bak [<oyuncu>] &7- Kendi veya başkasının bounty'sine bakarsın."
            if player has permission "bounty.admin":
                send "&c/bounty ayarla <oyuncu> <miktar> &7- Oyuncunun bounty'sini ayarlar."
                send "&c/bounty ekle <oyuncu> <miktar> &7- Oyuncunun bounty'sine ekleme yapar."
                send "&c/bounty sıfırla <oyuncu> &7- Oyuncunun bounty'sini sıfırlar."

        else if arg-1 is "ayarla":
            if player has permission "bounty.admin":
                if arg-2 is set and arg-3 is set:
                    set {bounty::%arg-2's uuid%} to arg-3
                    send "{@prefix} &6%arg-2%&e adlı oyuncunun bounty'si &a%arg-3%&e olarak ayarlandı."
                else:
                    send "{@prefix} &cKullanım: /bounty ayarla <oyuncu> <miktar>"
            else:
                send "{@prefix} &cBu komutu kullanma yetkin yok."

        else if arg-1 is "ekle":
            if player has permission "bounty.admin":
                if arg-2 is set and arg-3 is set:
                    add arg-3 to {bounty::%arg-2's uuid%}
                    send "{@prefix} &6%arg-2%&e adlı oyuncunun bounty'sine &a%arg-3%&e eklendi."
                else:
                    send "{@prefix} &cKullanım: /bounty ekle <oyuncu> <miktar>"
            else:
                send "{@prefix} &cBu komutu kullanma yetkin yok."

        else if arg-1 is "sıfırla":
            if player has permission "bounty.admin":
                if arg-2 is set:
                    set {bounty::%arg-2's uuid%} to 0
                    send "{@prefix} &6%arg-2%&e adlı oyuncunun bounty'si sıfırlandı."
                else:
                    send "{@prefix} &cKullanım: /bounty sıfırla <oyuncu>"
            else:
                send "{@prefix} &cBu komutu kullanma yetkin yok."


Mythic mobs için

Kod:
ZindanGolemi:
  Type: IRON_GOLEM
  Display: '&cZindan Golemi' # Bu ismin skript'tekiyle aynı olması ÇOK ÖNEMLİ
  Health: 1000
  Damage: 25
  Skills:
  - ....



PlaceHolder

Kod:
%bounty_mevcut%


Kullanabilirsiniz.
elinize sağlık ama bir ricam daha olacak acaba her oyuncuya ilk girdiğinde 100 bounty ile başlatsa? birde mesela yine x ve z üzerinden anlatayım şimdi bu x kişisinin 1000 bountysi var y kişisi bunu öldürüyor y kişisi x kişisinin bountysi kadar para alacak bountysinin yarısı kadar ise bounty puanı kazanacak böyle birşey yapılabilirmi acaba?
 
Kurbanın bounty'si 0'a sıfırlanmak yerine, artık herkesin başladığı başlangıç bounty'sine (yani 100'e) geri dönüyor. Bu, oyundan tamamen düşmelerini engeller ve tekrar rekabete katılmalarını sağlar.;




Kod:
# --- AYARLAR BÖLÜMÜ ---
# Buradaki değerleri istediğin gibi değiştirebilirsin.
options:
    prefix: &6[Bounty] &e
    # YENİ: Oyuncuların oyuna başlarken alacağı bounty miktarı
    baslangic-bounty: 100
    # MythicMobs ile entegrasyon için mobun tam adı (renk kodlarıyla birlikte)
    zindan-mob-adi: "&cZindan Golemi"
    # Bu mobu kesince kazanılacak bounty miktarı
    zindan-mob-kazanc: 500

# --- DEĞİŞKENLER VE PLACEHOLDER ---
# Oyuncuların bounty'sini saklamak için değişken
variables:
    {bounty::%player's uuid%} = 0

# PlaceholderAPI için kendi placeholder'ımızı kaydediyoruz
on load:
    if class "me.clip.placeholderapi.PlaceholderAPI" is loaded:
        register placeholder "bounty_mevcut" with identifier "bounty":
            set return value to "%{bounty::%player's uuid%}%" without colors
        log "{@prefix} PlaceholderAPI için %bounty_mevcut% placeholder'ı başarıyla kaydedildi."
    else:
        log "{@prefix} &cPlaceholderAPI bulunamadı! Bounty değeri gösterilemeyecek."

# DEĞİŞTİ: Oyuncu ilk kez girdiğinde başlangıç bounty'sini ayarla
on first join:
    set {bounty::%player's uuid%} to {@baslangic-bounty}

# --- ANA MEKANİKLER ---

# Oyuncu bir oyuncuyu öldürdüğünde...
on death of a player:
    # Eğer katil de bir oyuncuysa devam et
    if attacker is a player:
        set {_victim_bounty} to {bounty::%victim's uuid%}

        if {_victim_bounty} is not set or {_victim_bounty} < 0:
            set {_victim_bounty} to 0

        # DEĞİŞTİ: Katil artık kurbanın bountysinin yarısını kazanır.
        # Küsuratlı sayı olmaması için sonucu aşağı yuvarlıyoruz (floor).
        set {_bounty_kazanci} to floor({_victim_bounty} / 2)

        # Katile, ölen kişinin bounty'si kadar para ver (Bu kısım aynı kaldı)
        add {_victim_bounty} to attacker's balance
        
        # Katilin bounty'sine hesaplanan ödülü ekle
        add {_bounty_kazanci} to {bounty::%attacker's uuid%}

        # DEĞİŞTİ: Ölen oyuncunun bounty'si başlangıç değerine sıfırlanır.
        set {bounty::%victim's uuid%} to {@baslangic-bounty}

        # Bilgilendirme mesajları güncellendi
        send "{@prefix} &a%victim%&e adlı oyuncuyu öldürdün!" to attacker
        send "{@prefix} &a%{_victim_bounty}% para&e ve &a%{_bounty_kazanci}% bounty&e kazandın!" to attacker
        send "{@prefix} &c%attacker%&e tarafından öldürüldün ve bounty'n &c%{@baslangic-bounty}%&e değerine düşürüldü." to victim

# MythicMobs entegrasyonu: Bir canavar öldüğünde...
# Bu kısımda bir değişiklik yok, eskisi gibi çalışıyor.
on death of a monster:
    if attacker is a player:
        if name of victim is "{@zindan-mob-adi}":
            add {@zindan-mob-kazanc} to {bounty::%attacker's uuid%}
            send "{@prefix} &bZindan yaratığını&e yendin ve &a%{@zindan-mob-kazanc}%&e bounty kazandın!" to attacker

# --- KOMUTLAR ---
# Komutlarda bir değişiklik yok, eskisi gibi çalışıyor.
command /bounty [<text>] [<player>] [<integer>]:
    trigger:
        if arg-1 is not set or arg-1 is "bak" or arg-1 is "göster":
            if arg-2 is not set:
                send "{@prefix} Mevcut bounty'n: &a%{bounty::%player's uuid%}%"
            else:
                if player has permission "bounty.admin":
                    send "{@prefix} &6%arg-2%&e adlı oyuncunun bounty'si: &a%{bounty::%arg-2's uuid%}%"
                else:
                    send "{@prefix} Başkasının bounty'sine bakma yetkin yok."
        
        else if arg-1 is "yardım":
            send "&6--- Bounty Sistemi Komutları ---"
            send "&e/bounty bak [<oyuncu>] &7- Kendi veya başkasının bounty'sine bakarsın."
            if player has permission "bounty.admin":
                send "&c/bounty ayarla <oyuncu> <miktar> &7- Oyuncunun bounty'sini ayarlar."
                send "&c/bounty ekle <oyuncu> <miktar> &7- Oyuncunun bounty'sine ekleme yapar."
                send "&c/bounty sıfırla <oyuncu> &7- Oyuncunun bounty'sini sıfırlar."

        else if arg-1 is "ayarla":
            if player has permission "bounty.admin":
                if arg-2 is set and arg-3 is set:
                    set {bounty::%arg-2's uuid%} to arg-3
                    send "{@prefix} &6%arg-2%&e adlı oyuncunun bounty'si &a%arg-3%&e olarak ayarlandı."
                else:
                    send "{@prefix} &cKullanım: /bounty ayarla <oyuncu> <miktar>"
            else:
                send "{@prefix} &cBu komutu kullanma yetkin yok."

        else if arg-1 is "ekle":
            if player has permission "bounty.admin":
                if arg-2 is set and arg-3 is set:
                    add arg-3 to {bounty::%arg-2's uuid%}
                    send "{@prefix} &6%arg-2%&e adlı oyuncunun bounty'sine &a%arg-3%&e eklendi."
                else:
                    send "{@prefix} &cKullanım: /bounty ekle <oyuncu> <miktar>"
            else:
                send "{@prefix} &cBu komutu kullanma yetkin yok."

        else if arg-1 is "sıfırla":
            if player has permission "bounty.admin":
                if arg-2 is set:
                    set {bounty::%arg-2's uuid%} to {@baslangic-bounty}
                    send "{@prefix} &6%arg-2%&e adlı oyuncunun bounty'si başlangıç değerine (&a%{@baslangic-bounty%}&e) sıfırlandı."
                else:
                    send "{@prefix} &cKullanım: /bounty sıfırla <oyuncu>"
            else:
                send "{@prefix} &cBu komutu kullanma yetkin yok."
 
Kurbanın bounty'si 0'a sıfırlanmak yerine, artık herkesin başladığı başlangıç bounty'sine (yani 100'e) geri dönüyor. Bu, oyundan tamamen düşmelerini engeller ve tekrar rekabete katılmalarını sağlar.;




Kod:
# --- AYARLAR BÖLÜMÜ ---
# Buradaki değerleri istediğin gibi değiştirebilirsin.
options:
    prefix: &6[Bounty] &e
    # YENİ: Oyuncuların oyuna başlarken alacağı bounty miktarı
    baslangic-bounty: 100
    # MythicMobs ile entegrasyon için mobun tam adı (renk kodlarıyla birlikte)
    zindan-mob-adi: "&cZindan Golemi"
    # Bu mobu kesince kazanılacak bounty miktarı
    zindan-mob-kazanc: 500

# --- DEĞİŞKENLER VE PLACEHOLDER ---
# Oyuncuların bounty'sini saklamak için değişken
variables:
    {bounty::%player's uuid%} = 0

# PlaceholderAPI için kendi placeholder'ımızı kaydediyoruz
on load:
    if class "me.clip.placeholderapi.PlaceholderAPI" is loaded:
        register placeholder "bounty_mevcut" with identifier "bounty":
            set return value to "%{bounty::%player's uuid%}%" without colors
        log "{@prefix} PlaceholderAPI için %bounty_mevcut% placeholder'ı başarıyla kaydedildi."
    else:
        log "{@prefix} &cPlaceholderAPI bulunamadı! Bounty değeri gösterilemeyecek."

# DEĞİŞTİ: Oyuncu ilk kez girdiğinde başlangıç bounty'sini ayarla
on first join:
    set {bounty::%player's uuid%} to {@baslangic-bounty}

# --- ANA MEKANİKLER ---

# Oyuncu bir oyuncuyu öldürdüğünde...
on death of a player:
    # Eğer katil de bir oyuncuysa devam et
    if attacker is a player:
        set {_victim_bounty} to {bounty::%victim's uuid%}

        if {_victim_bounty} is not set or {_victim_bounty} < 0:
            set {_victim_bounty} to 0

        # DEĞİŞTİ: Katil artık kurbanın bountysinin yarısını kazanır.
        # Küsuratlı sayı olmaması için sonucu aşağı yuvarlıyoruz (floor).
        set {_bounty_kazanci} to floor({_victim_bounty} / 2)

        # Katile, ölen kişinin bounty'si kadar para ver (Bu kısım aynı kaldı)
        add {_victim_bounty} to attacker's balance
       
        # Katilin bounty'sine hesaplanan ödülü ekle
        add {_bounty_kazanci} to {bounty::%attacker's uuid%}

        # DEĞİŞTİ: Ölen oyuncunun bounty'si başlangıç değerine sıfırlanır.
        set {bounty::%victim's uuid%} to {@baslangic-bounty}

        # Bilgilendirme mesajları güncellendi
        send "{@prefix} &a%victim%&e adlı oyuncuyu öldürdün!" to attacker
        send "{@prefix} &a%{_victim_bounty}% para&e ve &a%{_bounty_kazanci}% bounty&e kazandın!" to attacker
        send "{@prefix} &c%attacker%&e tarafından öldürüldün ve bounty'n &c%{@baslangic-bounty}%&e değerine düşürüldü." to victim

# MythicMobs entegrasyonu: Bir canavar öldüğünde...
# Bu kısımda bir değişiklik yok, eskisi gibi çalışıyor.
on death of a monster:
    if attacker is a player:
        if name of victim is "{@zindan-mob-adi}":
            add {@zindan-mob-kazanc} to {bounty::%attacker's uuid%}
            send "{@prefix} &bZindan yaratığını&e yendin ve &a%{@zindan-mob-kazanc}%&e bounty kazandın!" to attacker

# --- KOMUTLAR ---
# Komutlarda bir değişiklik yok, eskisi gibi çalışıyor.
command /bounty [<text>] [<player>] [<integer>]:
    trigger:
        if arg-1 is not set or arg-1 is "bak" or arg-1 is "göster":
            if arg-2 is not set:
                send "{@prefix} Mevcut bounty'n: &a%{bounty::%player's uuid%}%"
            else:
                if player has permission "bounty.admin":
                    send "{@prefix} &6%arg-2%&e adlı oyuncunun bounty'si: &a%{bounty::%arg-2's uuid%}%"
                else:
                    send "{@prefix} Başkasının bounty'sine bakma yetkin yok."
       
        else if arg-1 is "yardım":
            send "&6--- Bounty Sistemi Komutları ---"
            send "&e/bounty bak [<oyuncu>] &7- Kendi veya başkasının bounty'sine bakarsın."
            if player has permission "bounty.admin":
                send "&c/bounty ayarla <oyuncu> <miktar> &7- Oyuncunun bounty'sini ayarlar."
                send "&c/bounty ekle <oyuncu> <miktar> &7- Oyuncunun bounty'sine ekleme yapar."
                send "&c/bounty sıfırla <oyuncu> &7- Oyuncunun bounty'sini sıfırlar."

        else if arg-1 is "ayarla":
            if player has permission "bounty.admin":
                if arg-2 is set and arg-3 is set:
                    set {bounty::%arg-2's uuid%} to arg-3
                    send "{@prefix} &6%arg-2%&e adlı oyuncunun bounty'si &a%arg-3%&e olarak ayarlandı."
                else:
                    send "{@prefix} &cKullanım: /bounty ayarla <oyuncu> <miktar>"
            else:
                send "{@prefix} &cBu komutu kullanma yetkin yok."

        else if arg-1 is "ekle":
            if player has permission "bounty.admin":
                if arg-2 is set and arg-3 is set:
                    add arg-3 to {bounty::%arg-2's uuid%}
                    send "{@prefix} &6%arg-2%&e adlı oyuncunun bounty'sine &a%arg-3%&e eklendi."
                else:
                    send "{@prefix} &cKullanım: /bounty ekle <oyuncu> <miktar>"
            else:
                send "{@prefix} &cBu komutu kullanma yetkin yok."

        else if arg-1 is "sıfırla":
            if player has permission "bounty.admin":
                if arg-2 is set:
                    set {bounty::%arg-2's uuid%} to {@baslangic-bounty}
                    send "{@prefix} &6%arg-2%&e adlı oyuncunun bounty'si başlangıç değerine (&a%{@baslangic-bounty%}&e) sıfırlandı."
                else:
                    send "{@prefix} &cKullanım: /bounty sıfırla <oyuncu>"
            else:
                send "{@prefix} &cBu komutu kullanma yetkin yok."
çok teşekkürler deneyeceğim uğraştırdığım için üzgünüm :3
 
Kurbanın bounty'si 0'a sıfırlanmak yerine, artık herkesin başladığı başlangıç bounty'sine (yani 100'e) geri dönüyor. Bu, oyundan tamamen düşmelerini engeller ve tekrar rekabete katılmalarını sağlar.;




Kod:
# --- AYARLAR BÖLÜMÜ ---
# Buradaki değerleri istediğin gibi değiştirebilirsin.
options:
    prefix: &6[Bounty] &e
    # YENİ: Oyuncuların oyuna başlarken alacağı bounty miktarı
    baslangic-bounty: 100
    # MythicMobs ile entegrasyon için mobun tam adı (renk kodlarıyla birlikte)
    zindan-mob-adi: "&cZindan Golemi"
    # Bu mobu kesince kazanılacak bounty miktarı
    zindan-mob-kazanc: 500

# --- DEĞİŞKENLER VE PLACEHOLDER ---
# Oyuncuların bounty'sini saklamak için değişken
variables:
    {bounty::%player's uuid%} = 0

# PlaceholderAPI için kendi placeholder'ımızı kaydediyoruz
on load:
    if class "me.clip.placeholderapi.PlaceholderAPI" is loaded:
        register placeholder "bounty_mevcut" with identifier "bounty":
            set return value to "%{bounty::%player's uuid%}%" without colors
        log "{@prefix} PlaceholderAPI için %bounty_mevcut% placeholder'ı başarıyla kaydedildi."
    else:
        log "{@prefix} &cPlaceholderAPI bulunamadı! Bounty değeri gösterilemeyecek."

# DEĞİŞTİ: Oyuncu ilk kez girdiğinde başlangıç bounty'sini ayarla
on first join:
    set {bounty::%player's uuid%} to {@baslangic-bounty}

# --- ANA MEKANİKLER ---

# Oyuncu bir oyuncuyu öldürdüğünde...
on death of a player:
    # Eğer katil de bir oyuncuysa devam et
    if attacker is a player:
        set {_victim_bounty} to {bounty::%victim's uuid%}

        if {_victim_bounty} is not set or {_victim_bounty} < 0:
            set {_victim_bounty} to 0

        # DEĞİŞTİ: Katil artık kurbanın bountysinin yarısını kazanır.
        # Küsuratlı sayı olmaması için sonucu aşağı yuvarlıyoruz (floor).
        set {_bounty_kazanci} to floor({_victim_bounty} / 2)

        # Katile, ölen kişinin bounty'si kadar para ver (Bu kısım aynı kaldı)
        add {_victim_bounty} to attacker's balance
       
        # Katilin bounty'sine hesaplanan ödülü ekle
        add {_bounty_kazanci} to {bounty::%attacker's uuid%}

        # DEĞİŞTİ: Ölen oyuncunun bounty'si başlangıç değerine sıfırlanır.
        set {bounty::%victim's uuid%} to {@baslangic-bounty}

        # Bilgilendirme mesajları güncellendi
        send "{@prefix} &a%victim%&e adlı oyuncuyu öldürdün!" to attacker
        send "{@prefix} &a%{_victim_bounty}% para&e ve &a%{_bounty_kazanci}% bounty&e kazandın!" to attacker
        send "{@prefix} &c%attacker%&e tarafından öldürüldün ve bounty'n &c%{@baslangic-bounty}%&e değerine düşürüldü." to victim

# MythicMobs entegrasyonu: Bir canavar öldüğünde...
# Bu kısımda bir değişiklik yok, eskisi gibi çalışıyor.
on death of a monster:
    if attacker is a player:
        if name of victim is "{@zindan-mob-adi}":
            add {@zindan-mob-kazanc} to {bounty::%attacker's uuid%}
            send "{@prefix} &bZindan yaratığını&e yendin ve &a%{@zindan-mob-kazanc}%&e bounty kazandın!" to attacker

# --- KOMUTLAR ---
# Komutlarda bir değişiklik yok, eskisi gibi çalışıyor.
command /bounty [<text>] [<player>] [<integer>]:
    trigger:
        if arg-1 is not set or arg-1 is "bak" or arg-1 is "göster":
            if arg-2 is not set:
                send "{@prefix} Mevcut bounty'n: &a%{bounty::%player's uuid%}%"
            else:
                if player has permission "bounty.admin":
                    send "{@prefix} &6%arg-2%&e adlı oyuncunun bounty'si: &a%{bounty::%arg-2's uuid%}%"
                else:
                    send "{@prefix} Başkasının bounty'sine bakma yetkin yok."
       
        else if arg-1 is "yardım":
            send "&6--- Bounty Sistemi Komutları ---"
            send "&e/bounty bak [<oyuncu>] &7- Kendi veya başkasının bounty'sine bakarsın."
            if player has permission "bounty.admin":
                send "&c/bounty ayarla <oyuncu> <miktar> &7- Oyuncunun bounty'sini ayarlar."
                send "&c/bounty ekle <oyuncu> <miktar> &7- Oyuncunun bounty'sine ekleme yapar."
                send "&c/bounty sıfırla <oyuncu> &7- Oyuncunun bounty'sini sıfırlar."

        else if arg-1 is "ayarla":
            if player has permission "bounty.admin":
                if arg-2 is set and arg-3 is set:
                    set {bounty::%arg-2's uuid%} to arg-3
                    send "{@prefix} &6%arg-2%&e adlı oyuncunun bounty'si &a%arg-3%&e olarak ayarlandı."
                else:
                    send "{@prefix} &cKullanım: /bounty ayarla <oyuncu> <miktar>"
            else:
                send "{@prefix} &cBu komutu kullanma yetkin yok."

        else if arg-1 is "ekle":
            if player has permission "bounty.admin":
                if arg-2 is set and arg-3 is set:
                    add arg-3 to {bounty::%arg-2's uuid%}
                    send "{@prefix} &6%arg-2%&e adlı oyuncunun bounty'sine &a%arg-3%&e eklendi."
                else:
                    send "{@prefix} &cKullanım: /bounty ekle <oyuncu> <miktar>"
            else:
                send "{@prefix} &cBu komutu kullanma yetkin yok."

        else if arg-1 is "sıfırla":
            if player has permission "bounty.admin":
                if arg-2 is set:
                    set {bounty::%arg-2's uuid%} to {@baslangic-bounty}
                    send "{@prefix} &6%arg-2%&e adlı oyuncunun bounty'si başlangıç değerine (&a%{@baslangic-bounty%}&e) sıfırlandı."
                else:
                    send "{@prefix} &cKullanım: /bounty sıfırla <oyuncu>"
            else:
                send "{@prefix} &cBu komutu kullanma yetkin yok."
iyi günler skripti denedim fakat 11 tane hata verdi düzeltmek için bakındım fakat bulamadım skquery skyrfall ve skbee de kurulu başka bişey kurulu olması gerekiyormu acaba?
 
hataları iletirseniz kontrol edeyim
 

Ekli dosyalar

  • 2025-07-22_20.40.16.webp
    2025-07-22_20.40.16.webp
    298,3 KB · Görüntüleme: 83
  • 2025-07-22_20.40.20.webp
    2025-07-22_20.40.20.webp
    293,4 KB · Görüntüleme: 86
  • 2025-07-22_20.40.24.webp
    2025-07-22_20.40.24.webp
    309,2 KB · Görüntüleme: 87
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Hala Discord sunucumuza katılmadın mı?

Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!

Şimdi Katıl
Üst