Çözüldü ölümlog skriptim çalışmıyor

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

Trupsy

Odunlara Vur Vur Vur!
Katılım
19 Mayıs 2025
Mesajlar
42
Elmaslar
1
Puan
120
Yaş
26
Konum
Adana
Minecraft
Trupsy

Discord:

Trupsy

Mantığı şöyle bir oyuncu pvp atıyor ve öldü öldüğünde envanteri kaydedilicek ve kaçıncı ölüşüyse o envanterle kaydedilicek bir yetkili envanter iadesi vermesi gerektiğinde -/ölümlog oyuncunun ismi ve kaydedilen ölüm sayısı bu sayede oyuncunun o öldüğündeki envantaerini göre bilicek sağ alta bir pusula olucak orada ölüm mesajı yazıcak ve öldüğü yerin kordinatları gözükücek o pusulaya tıklayınca öldüğü yere atıcak aynı zamanda -/sonölümlog oyuncunun ismi olucak bunu yaparak yetkili o oyuncunun son ölümüne baka bilicek oyuncunun envanterinden herşeyi kopyalanıcak zırhlar ve diğer elide dahil chatgpt üzerinden skripti oluşturdumAma -/ölümlog Efeaydo ölüm sayımı yazdığımda ne bir mesaj nede bir ekran çıkıyor Skript Pluginin Sürümü : 2.6.3 buda yazdığım kod
Değerli ziyaretçimiz, içeriği görebilmek için şimdi giriş yapın veya kayıt olun.
 
YAML:
# === Ayarlar ===
options:
    version: 2.6.3

# === Sunucu yüklendiğinde önceki kayıtları temizleme (opsiyonel) ===
on load:
    delete {death::*}
    delete {deathcount::*}
    delete {lastdeath::*}

# === Oyuncu öldüğünde bilgileri kaydet ===
on death of player:
    set {_uuid} to victim's uuid
    set {_name} to victim's name
    set {_killer} to "Doğal Sebepler"
    if attacker is a player:
        set {_killer} to attacker's name

    # Ölüm sayısını güncelle ve yeni kayıt oluştur
    add 1 to {deathcount::%{_uuid}%}
    set {_deathnum} to {deathcount::%{_uuid}%}
    set {lastdeath::%{_uuid}%} to {_deathnum}
   
    # Envanteri kaydet (zırh, offhand dahil)
    set {death::%{_uuid}%::%{_deathnum}%::inventory} to victim's inventory contents
    set {death::%{_uuid}%::%{_deathnum}%::armor} to victim's armor
    set {death::%{_uuid}%::%{_deathnum}%::offhand} to victim's offhand
    set {death::%{_uuid}%::%{_deathnum}%::location} to victim's location
    set {death::%{_uuid}%::%{_deathnum}%::time} to now formatted as "dd/MM/yyyy HH:mm:ss"
    set {death::%{_uuid}%::%{_deathnum}%::killer} to {_killer}
    set {death::%{_uuid}%::name} to {_name}

    # Pusula ver (tıklandığında ışınlayacak)
    set {_compass} to compass named "&4Ölüm #%{_deathnum}%"
    set lore of {_compass} to "&7Tarih: %{death::%{_uuid}%::%{_deathnum}%::time}%", "&7Katil: %{_killer}%", "&7Konum: %{death::%{_uuid}%::%{_deathnum}%::location}%", "", "&eTıkla: Işınlan"
    set metadata "deathuuid" of {_compass} to {_uuid}
    set metadata "deathnum" of {_compass} to {_deathnum}
    give {_compass} to victim

    send action bar "&cÖlüm kaydedildi! (#%{_deathnum}%)" to victim

# === Ölüm geçmişini görüntüleme komutu ===
command /ölümlog <player> <integer>:
    permission: op
    trigger:
        set {_target} to arg-1
        set {_uuid} to uuid of {_target}
        set {_num} to arg-2

        if {_uuid} is not set:
            send "&cBu oyuncu mevcut değil!" to player
            stop

        if {deathcount::%{_uuid}%} is not set:
            send "&cBu oyuncunun hiç ölüm kaydı yok!" to player
            stop

        if {_num} < 1 or {_num} > {deathcount::%{_uuid}%}:
            send "&cGeçersiz ölüm numarası!" to player
            stop

        # Menü aç
        open chest with 6 rows named "&6%{_target}% - Ölüm #%{_num}%" to player

        # Envanter yerleştir (ilk 36 slot)
        set {_index} to 0
        loop {death::%{_uuid}%::%{_num}%::inventory}:
            if {_index} < 36:
                set slot {_index} of player's current inventory to loop-value
            add 1 to {_index}

        # Zırh ve offhand slotları
        set slot 45 of player's current inventory to {death::%{_uuid}%::%{_num}%::armor}::0
        set slot 46 of player's current inventory to {death::%{_uuid}%::%{_num}%::armor}::1
        set slot 47 of player's current inventory to {death::%{_uuid}%::%{_num}%::armor}::2
        set slot 48 of player's current inventory to {death::%{_uuid}%::%{_num}%::armor}::3
        set slot 49 of player's current inventory to {death::%{_uuid}%::%{_num}%::offhand}

        # Bilgi ve ışınlanma butonları
        set {_info} to paper named "&6Ölüm Bilgileri" with lore "&7Tarih: &f%{death::%{_uuid}%::%{_num}%::time}%", "&7Katil: &f%{death::%{_uuid}%::%{_num}%::killer}%", "&7Konum: &f%{death::%{_uuid}%::%{_num}%::location}%"
        set slot 52 of player's current inventory to {_info}

        set {_tp} to ender pearl named "&aIşınlan" with lore "&7Tıkla: Ölüm noktasına git"
        set slot 53 of player's current inventory to {_tp}

# === Menüde ışınlanma butonuna tıklanırsa ===
on inventory click:
    if name of player's current inventory contains " - Ölüm #":
        cancel event
        if clicked slot is 53:
            set {_name} to substring between "&6" and " - Ölüm #" in name of player's current inventory
            set {_num} to substring after "Ölüm #" in name of player's current inventory parsed as integer
            set {_targets::*} to all players where [input's name is "%{_name}%"]
            if size of {_targets::*} > 0:
                set {_uuid} to uuid of first element of {_targets::*}
                teleport player to {death::%{_uuid}%::%{_num}%::location}
                send "&aÖlüm noktasına ışınlandınız!" to player
                close player's inventory

# === Ölüm geçmişi listesi komutu ===
command /ölümlogliste [<player>]:
    permission: op
    trigger:
        set {_target} to arg-1 if arg-1 is set else player
        set {_uuid} to uuid of {_target}

        if {deathcount::%{_uuid}%} is not set:
            send "&c%{_target}% adlı oyuncunun hiç ölüm kaydı yok!" to player
            stop

        send "&6=== %{_target}% Ölüm Listesi (%{deathcount::%{_uuid}%} kayıt) ===" to player
        loop {deathcount::%{_uuid}%} times:
            set {_i} to loop-index + 1
            send "&7#%{_i}% &8| &7%{death::%{_uuid}%::%{_i}%::time}% &8| &cKatil: %{death::%{_uuid}%::%{_i}%::killer}%" to player
        send "&6Detay için: &e/ölümlog %{_target}% <numara>" to player

# === Son ölüm kaydını direkt açma komutu ===
command /sonölüm [<player>]:
    permission: op
    trigger:
        set {_target} to arg-1 if arg-1 is set else player
        set {_uuid} to uuid of {_target}

        if {lastdeath::%{_uuid}%} is not set:
            send "&c%{_target}% adlı oyuncunun hiç ölüm kaydı yok!" to player
            stop

        execute player command "/ölümlog %{_target}% %{lastdeath::%{_uuid}%}%"
 
Oldu mu?
 
olmadı yine aynısı oldu gözükmüyor
YAML:
options:
    version: 2.6

# Oyuncu öldüğünde bilgileri kaydet
on death of player:
    set {_uuid} to victim's uuid
    set {_name} to victim's name
    set {_killer} to "Doğal Sebepler"
    if attacker is a player:
        set {_killer} to attacker's name

    add 1 to {deathcount::%{_uuid}%}
    set {_deathnum} to {deathcount::%{_uuid}%}
    set {lastdeath::%{_uuid}%} to {_deathnum}

    # Envanter bilgilerini kaydet
    set {death::%{_uuid}%::%{_deathnum}%::inventory} to victim's inventory contents
    set {death::%{_uuid}%::%{_deathnum}%::armor} to victim's armor
    set {death::%{_uuid}%::%{_deathnum}%::offhand} to victim's offhand
    set {death::%{_uuid}%::%{_deathnum}%::location} to location of victim
    set {death::%{_uuid}%::%{_deathnum}%::time} to now formatted as "dd/MM/yyyy HH:mm:ss"
    set {death::%{_uuid}%::%{_deathnum}%::killer} to {_killer}
    set {death::%{_uuid}%::name} to {_name}

    # Bilgi pusulası ver
    set {_compass} to compass named "&4Ölüm #%{_deathnum}%"
    set lore of {_compass} to "&7Tarih: %{death::%{_uuid}%::%{_deathnum}%::time}%", "&7Katil: %{_killer}%", "&7Konum: %{death::%{_uuid}%::%{_deathnum}%::location}%", "", "&eTıkla: Işınlan"
    set metadata tag "deathuuid" of {_compass} to {_uuid}
    set metadata tag "deathnum" of {_compass} to {_deathnum}
    give {_compass} to victim
    send action bar "&cÖlüm kaydedildi! (#%{_deathnum}%)" to victim

# /ölümlog <oyuncu> <sayı>
command /ölümlog <offline player> <number>:
    permission: op
    trigger:
        set {_target} to arg-1
        set {_deathnum} to arg-2
        set {_uuid} to uuid of {_target}

        if {deathcount::%{_uuid}%} is not set:
            send "&c%{_target}% adlı oyuncunun ölüm kaydı yok!" to player
            stop

        if {_deathnum} < 1 or {_deathnum} > {deathcount::%{_uuid}%}:
            send "&cGeçersiz ölüm numarası. (1-%{deathcount::%{_uuid}%})" to player
            stop

        open chest with 6 rows named "&6%{_target}% - Ölüm #%{_deathnum}%" to player

        loop {death::%{_uuid}%::%{_deathnum}%::inventory}:
            if loop-index < 36:
                set slot loop-index of player's current inventory to loop-value

        set slot 45 of player's current inventory to {death::%{_uuid}%::%{_deathnum}%::armor}::0
        set slot 46 of player's current inventory to {death::%{_uuid}%::%{_deathnum}%::armor}::1
        set slot 47 of player's current inventory to {death::%{_uuid}%::%{_deathnum}%::armor}::2
        set slot 48 of player's current inventory to {death::%{_uuid}%::%{_deathnum}%::armor}::3
        set slot 49 of player's current inventory to {death::%{_uuid}%::%{_deathnum}%::offhand}

        set {_info} to paper named "&6Ölüm Bilgileri" with lore "&7Tarih: &f%{death::%{_uuid}%::%{_deathnum}%::time}%", "&7Katil: &f%{death::%{_uuid}%::%{_deathnum}%::killer}%", "&7Konum: &f%{death::%{_uuid}%::%{_deathnum}%::location}%"
        set slot 52 of player's current inventory to {_info}

        set {_tp} to ender pearl named "&aIşınlan" with lore "&7Tıkla: Ölüm yerine git"
        set slot 53 of player's current inventory to {_tp}

# Envanter menüsünde tıklama
on inventory click:
    if name of player's current inventory contains " - Ölüm #":
        cancel event
        if event-slot is 53:
            set {_name} to substring between "&6" and " - Ölüm #" in name of player's current inventory
            set {_num} to substring after "Ölüm #" in name of player's current inventory parsed as number
            set {_targets::*} to all offline players where [input's name is "%{_name}%"]
            if size of {_targets::*} > 0:
                set {_uuid} to uuid of {_targets::1}
                teleport player to {death::%{_uuid}%::%{_num}%::location}
                send "&aÖlüm yerine ışınlandınız!" to player
                close player's inventory

# /sonölüm <oyuncu>
command /sonölüm [<offline player>]:
    permission: op
    trigger:
        set {_target} to arg-1 if arg-1 is set else player
        set {_uuid} to uuid of {_target}

        if {lastdeath::%{_uuid}%} is not set:
            send "&c%{_target}% adlı oyuncunun hiç ölüm kaydı yok!" to player
            stop

        execute console command "/ölümlog %{_target}% %{lastdeath::%{_uuid}%}%"

# /ölümlogliste [<oyuncu>]
command /ölümlogliste [<offline player>]:
    permission: op
    trigger:
        set {_target} to arg-1 if arg-1 is set else player
        set {_uuid} to uuid of {_target}

        if {deathcount::%{_uuid}%} is not set:
            send "&c%{_target}% adlı oyuncunun ölüm kaydı yok!" to player
            stop

        send "&6=== %{_target}% Ölüm Listesi (%{deathcount::%{_uuid}%}) ===" to player
        loop {deathcount::%{_uuid}%} times:
            set {_i} to loop-index + 1
            send "&7#%{_i}% &8| &7%{death::%{_uuid}%::%{_i}%::time}% &8| &cKatil: %{death::%{_uuid}%::%{_i}%::killer}%" to player
        send "&6Detay görmek için: &e/ölümlog %{_target}% <numara>" to player


Birde reload atar mısın plugine
ayrıca tuske ve skbee yüklü değilse meta tag çalışmaz onun yerine nbt tag yada lore kullanabilir misin
bu koduda dene
 
YAML:
options:
    version: 2.6

# Oyuncu öldüğünde bilgileri kaydet
on death of player:
    set {_uuid} to victim's uuid
    set {_name} to victim's name
    set {_killer} to "Doğal Sebepler"
    if attacker is a player:
        set {_killer} to attacker's name

    add 1 to {deathcount::%{_uuid}%}
    set {_deathnum} to {deathcount::%{_uuid}%}
    set {lastdeath::%{_uuid}%} to {_deathnum}

    # Envanter bilgilerini kaydet
    set {death::%{_uuid}%::%{_deathnum}%::inventory} to victim's inventory contents
    set {death::%{_uuid}%::%{_deathnum}%::armor} to victim's armor
    set {death::%{_uuid}%::%{_deathnum}%::offhand} to victim's offhand
    set {death::%{_uuid}%::%{_deathnum}%::location} to location of victim
    set {death::%{_uuid}%::%{_deathnum}%::time} to now formatted as "dd/MM/yyyy HH:mm:ss"
    set {death::%{_uuid}%::%{_deathnum}%::killer} to {_killer}
    set {death::%{_uuid}%::name} to {_name}

    # Bilgi pusulası ver
    set {_compass} to compass named "&4Ölüm #%{_deathnum}%"
    set lore of {_compass} to "&7Tarih: %{death::%{_uuid}%::%{_deathnum}%::time}%", "&7Katil: %{_killer}%", "&7Konum: %{death::%{_uuid}%::%{_deathnum}%::location}%", "", "&eTıkla: Işınlan"
    set metadata tag "deathuuid" of {_compass} to {_uuid}
    set metadata tag "deathnum" of {_compass} to {_deathnum}
    give {_compass} to victim
    send action bar "&cÖlüm kaydedildi! (#%{_deathnum}%)" to victim

# /ölümlog <oyuncu> <sayı>
command /ölümlog <offline player> <number>:
    permission: op
    trigger:
        set {_target} to arg-1
        set {_deathnum} to arg-2
        set {_uuid} to uuid of {_target}

        if {deathcount::%{_uuid}%} is not set:
            send "&c%{_target}% adlı oyuncunun ölüm kaydı yok!" to player
            stop

        if {_deathnum} < 1 or {_deathnum} > {deathcount::%{_uuid}%}:
            send "&cGeçersiz ölüm numarası. (1-%{deathcount::%{_uuid}%})" to player
            stop

        open chest with 6 rows named "&6%{_target}% - Ölüm #%{_deathnum}%" to player

        loop {death::%{_uuid}%::%{_deathnum}%::inventory}:
            if loop-index < 36:
                set slot loop-index of player's current inventory to loop-value

        set slot 45 of player's current inventory to {death::%{_uuid}%::%{_deathnum}%::armor}::0
        set slot 46 of player's current inventory to {death::%{_uuid}%::%{_deathnum}%::armor}::1
        set slot 47 of player's current inventory to {death::%{_uuid}%::%{_deathnum}%::armor}::2
        set slot 48 of player's current inventory to {death::%{_uuid}%::%{_deathnum}%::armor}::3
        set slot 49 of player's current inventory to {death::%{_uuid}%::%{_deathnum}%::offhand}

        set {_info} to paper named "&6Ölüm Bilgileri" with lore "&7Tarih: &f%{death::%{_uuid}%::%{_deathnum}%::time}%", "&7Katil: &f%{death::%{_uuid}%::%{_deathnum}%::killer}%", "&7Konum: &f%{death::%{_uuid}%::%{_deathnum}%::location}%"
        set slot 52 of player's current inventory to {_info}

        set {_tp} to ender pearl named "&aIşınlan" with lore "&7Tıkla: Ölüm yerine git"
        set slot 53 of player's current inventory to {_tp}

# Envanter menüsünde tıklama
on inventory click:
    if name of player's current inventory contains " - Ölüm #":
        cancel event
        if event-slot is 53:
            set {_name} to substring between "&6" and " - Ölüm #" in name of player's current inventory
            set {_num} to substring after "Ölüm #" in name of player's current inventory parsed as number
            set {_targets::*} to all offline players where [input's name is "%{_name}%"]
            if size of {_targets::*} > 0:
                set {_uuid} to uuid of {_targets::1}
                teleport player to {death::%{_uuid}%::%{_num}%::location}
                send "&aÖlüm yerine ışınlandınız!" to player
                close player's inventory

# /sonölüm <oyuncu>
command /sonölüm [<offline player>]:
    permission: op
    trigger:
        set {_target} to arg-1 if arg-1 is set else player
        set {_uuid} to uuid of {_target}

        if {lastdeath::%{_uuid}%} is not set:
            send "&c%{_target}% adlı oyuncunun hiç ölüm kaydı yok!" to player
            stop

        execute console command "/ölümlog %{_target}% %{lastdeath::%{_uuid}%}%"

# /ölümlogliste [<oyuncu>]
command /ölümlogliste [<offline player>]:
    permission: op
    trigger:
        set {_target} to arg-1 if arg-1 is set else player
        set {_uuid} to uuid of {_target}

        if {deathcount::%{_uuid}%} is not set:
            send "&c%{_target}% adlı oyuncunun ölüm kaydı yok!" to player
            stop

        send "&6=== %{_target}% Ölüm Listesi (%{deathcount::%{_uuid}%}) ===" to player
        loop {deathcount::%{_uuid}%} times:
            set {_i} to loop-index + 1
            send "&7#%{_i}% &8| &7%{death::%{_uuid}%::%{_i}%::time}% &8| &cKatil: %{death::%{_uuid}%::%{_i}%::killer}%" to player
        send "&6Detay görmek için: &e/ölümlog %{_target}% <numara>" to player


Birde reload atar mısın plugine
ayrıca tuske ve skbee yüklü değilse meta tag çalışmaz onun yerine nbt tag yada lore kullanabilir misin
bu koduda dene
Tuskeyi indirdikten sonra skript pluginim çöküyor tuske yok ama skbee var
 
Kontrol ederim ama şuanda pc kapatmak zorundayım yarın bakıp denicem
 
Peki, iyi geceler.
merhabalar denedim skripti yine olmadı tusku aynı sürümle indirdim ikiside aynı sürümle indirdim skript sürümünü düşürdüm ama hiç biri olmadı tuske ne iniyor nede attığın kod çaılışyor kardeşim.
 
Kod:
options:
    version: 2.6

on load:
    delete {death::*}
    delete {deathcount::*}
    delete {lastdeath::*}
    send "[DeathLog] Sistem yüklendi!" to console

on death of player:
    set {_uuid} to victim's uuid
    set {_name} to victim's name
    set {_killer} to "Doğal Sebepler"
    
    if attacker is a player:
        set {_killer} to attacker's name
    else if attacker is set:
        set {_killer} to "%attacker%"
    
    # Ölüm sayacını güncelle
    add 1 to {deathcount::%{_uuid}%}
    set {_deathnum} to {deathcount::%{_uuid}%}
    set {lastdeath::%{_uuid}%} to {_deathnum}
    
    # Envanter verilerini kaydet
    set {death::%{_uuid}%::%{_deathnum}%::inventory::*} to victim's inventory
    set {death::%{_uuid}%::%{_deathnum}%::helmet} to victim's helmet
    set {death::%{_uuid}%::%{_deathnum}%::chestplate} to victim's chestplate 
    set {death::%{_uuid}%::%{_deathnum}%::leggings} to victim's leggings
    set {death::%{_uuid}%::%{_deathnum}%::boots} to victim's boots
    set {death::%{_uuid}%::%{_deathnum}%::offhand} to victim's tool
    set {death::%{_uuid}%::%{_deathnum}%::location} to victim's location
    set {death::%{_uuid}%::%{_deathnum}%::time} to now formatted as "dd/MM/yyyy HH:mm:ss"
    set {death::%{_uuid}%::%{_deathnum}%::killer} to {_killer}
    set {death::%{_uuid}%::name} to {_name}
    
    # Bilgi pusulası oluştur
    set {_compass} to compass named "&4Ölüm #%{_deathnum}%"
    set lore of {_compass} to "&7Tarih: %{death::%{_uuid}%::%{_deathnum}%::time}%", "&7Katil: %{_killer}%", "&7Konum: %{death::%{_uuid}%::%{_deathnum}%::location}%", "", "&eTıkla: Işınlan"
    give {_compass} to victim
    
    send action bar "&cÖlüm kaydedildi! (#%{_deathnum}%)" to victim
    send "&a[DeathLog] %{_name}% oyuncusunun %{_deathnum}%. ölümü kaydedildi!" to all players where [player has permission "op"]

command /ölümlog <player> <integer>:
    permission: op
    executable by: players
    trigger:
        set {_target} to arg-1
        set {_uuid} to uuid of {_target}
        set {_deathnum} to arg-2
        
        send "&7Kontroller yapılıyor..." to player
        
        # Kontroller
        if {deathcount::%{_uuid}%} is not set:
            send "&c%{_target}% adlı oyuncunun hiç ölüm kaydı yok!" to player
            stop
        
        if {_deathnum} < 1 or {_deathnum} > {deathcount::%{_uuid}%}:
            send "&cGeçersiz numara! (1-%{deathcount::%{_uuid}%}% arasında olmalı)" to player
            stop
        
        send "&aEnvanter açılıyor..." to player
        
        # GUI oluştur
        create a gui with virtual chest inventory with 6 rows named "&6%{_target}% - Ölüm #%{_deathnum}%":
            # Ana envanter (0-35 slotları)
            loop 36 times:
                set {_slot} to loop-number - 1
                set {_item} to {death::%{_uuid}%::%{_deathnum}%::inventory::%{_slot}%}
                if {_item} is set:
                    make gui slot {_slot} run:
                        # Tıklama engellendi
                        pass
                    format gui slot {_slot} with {_item}
            
            # Zırh slotları (alt sıra)
            if {death::%{_uuid}%::%{_deathnum}%::helmet} is set:
                format gui slot 45 with {death::%{_uuid}%::%{_deathnum}%::helmet} named "&eKask"
            if {death::%{_uuid}%::%{_deathnum}%::chestplate} is set:
                format gui slot 46 with {death::%{_uuid}%::%{_deathnum}%::chestplate} named "&eGöğüslük"
            if {death::%{_uuid}%::%{_deathnum}%::leggings} is set:
                format gui slot 47 with {death::%{_uuid}%::%{_deathnum}%::leggings} named "&ePantolon"
            if {death::%{_uuid}%::%{_deathnum}%::boots} is set:
                format gui slot 48 with {death::%{_uuid}%::%{_deathnum}%::boots} named "&eBot"
            if {death::%{_uuid}%::%{_deathnum}%::offhand} is set:
                format gui slot 49 with {death::%{_uuid}%::%{_deathnum}%::offhand} named "&eSol El"
            
            # Bilgi butonu
            set {_info} to paper named "&6Ölüm Bilgileri"
            set lore of {_info} to "&7Tarih: &f%{death::%{_uuid}%::%{_deathnum}%::time}%", "&7Katil: &f%{death::%{_uuid}%::%{_deathnum}%::killer}%", "&7Konum: &f%{death::%{_uuid}%::%{_deathnum}%::location}%"
            make gui slot 52 run:
                # Sadece bilgi gösterimi
                pass
            format gui slot 52 with {_info}
            
            # Işınlanma butonu
            set {_tp} to ender pearl named "&aIşınlan"
            set lore of {_tp} to "&7Tıkla: Ölüm noktasına git"
            make gui slot 53 run:
                close player's inventory
                teleport player to {death::%{_uuid}%::%{_deathnum}%::location}
                send "&aÖlüm noktasına ışınlandınız!" to player
            format gui slot 53 with {_tp}
        
        # GUI'yi aç
        open last created gui to player

command /ölümlogliste [<player>]:
    permission: op
    executable by: players
    trigger:
        set {_target} to arg-1 if arg-1 is set else player
        set {_uuid} to uuid of {_target}
        
        if {deathcount::%{_uuid}%} is not set:
            send "&c%{_target}% adlı oyuncunun hiç ölüm kaydı yok!" to player
            stop
            
        send "&6=== %{_target}% Ölüm Listesi (%{deathcount::%{_uuid}%} kayıt) ===" to player
        loop {deathcount::%{_uuid}%} times:
            set {_num} to loop-number
            send "&7#%{_num}% &8| &7%{death::%{_uuid}%::%{_num}%::time}% &8| &cKatil: %{death::%{_uuid}%::%{_num}%::killer}%" to player
        send "&6Detay için: &e/ölümlog %{_target}% <numara>" to player

command /sonölüm [<player>]:
    permission: op
    executable by: players
    trigger:
        set {_target} to arg-1 if arg-1 is set else player 
        set {_uuid} to uuid of {_target}
        
        if {lastdeath::%{_uuid}%} is not set:
            send "&c%{_target}% adlı oyuncunun hiç ölüm kaydı yok!" to player
            stop
            
        execute player command "/ölümlog %{_target}% %{lastdeath::%{_uuid}%}%"

# Pusula tıklama eventi
on rightclick with compass:
    if name of player's tool contains "&4Ölüm #":
        set {_deathnum} to last integer in name of player's tool
        set {_uuid} to player's uuid
        
        if {death::%{_uuid}%::%{_deathnum}%::location} is set:
            teleport player to {death::%{_uuid}%::%{_deathnum}%::location}
            send "&aÖlüm noktasına ışınlandınız!" to player
        else:
            send "&cBu ölüm kaydı bulunamadı!" to player

# Debug komutu
command /ölümtest:
    permission: op
    trigger:
        set {_uuid} to player's uuid
        send "&6Debug Bilgileri:" to player
        send "&7UUID: %{_uuid}%" to player
        send "&7Ölüm Sayısı: %{deathcount::%{_uuid}%}%" to player
        send "&7Son Ölüm: %{lastdeath::%{_uuid}%}%" to player
        if {deathcount::%{_uuid}%} > 0:
            send "&7İlk Ölüm Kaydı: %{death::%{_uuid}%::1::time}%" to player

Tuske - Skript-Reflect ve Skbee addonslarını yükleyerek tekrar dener misiniz ?
 
Kod:
options:
    version: 2.6

on load:
    delete {death::*}
    delete {deathcount::*}
    delete {lastdeath::*}
    send "[DeathLog] Sistem yüklendi!" to console

on death of player:
    set {_uuid} to victim's uuid
    set {_name} to victim's name
    set {_killer} to "Doğal Sebepler"
   
    if attacker is a player:
        set {_killer} to attacker's name
    else if attacker is set:
        set {_killer} to "%attacker%"
   
    # Ölüm sayacını güncelle
    add 1 to {deathcount::%{_uuid}%}
    set {_deathnum} to {deathcount::%{_uuid}%}
    set {lastdeath::%{_uuid}%} to {_deathnum}
   
    # Envanter verilerini kaydet
    set {death::%{_uuid}%::%{_deathnum}%::inventory::*} to victim's inventory
    set {death::%{_uuid}%::%{_deathnum}%::helmet} to victim's helmet
    set {death::%{_uuid}%::%{_deathnum}%::chestplate} to victim's chestplate
    set {death::%{_uuid}%::%{_deathnum}%::leggings} to victim's leggings
    set {death::%{_uuid}%::%{_deathnum}%::boots} to victim's boots
    set {death::%{_uuid}%::%{_deathnum}%::offhand} to victim's tool
    set {death::%{_uuid}%::%{_deathnum}%::location} to victim's location
    set {death::%{_uuid}%::%{_deathnum}%::time} to now formatted as "dd/MM/yyyy HH:mm:ss"
    set {death::%{_uuid}%::%{_deathnum}%::killer} to {_killer}
    set {death::%{_uuid}%::name} to {_name}
   
    # Bilgi pusulası oluştur
    set {_compass} to compass named "&4Ölüm #%{_deathnum}%"
    set lore of {_compass} to "&7Tarih: %{death::%{_uuid}%::%{_deathnum}%::time}%", "&7Katil: %{_killer}%", "&7Konum: %{death::%{_uuid}%::%{_deathnum}%::location}%", "", "&eTıkla: Işınlan"
    give {_compass} to victim
   
    send action bar "&cÖlüm kaydedildi! (#%{_deathnum}%)" to victim
    send "&a[DeathLog] %{_name}% oyuncusunun %{_deathnum}%. ölümü kaydedildi!" to all players where [player has permission "op"]

command /ölümlog <player> <integer>:
    permission: op
    executable by: players
    trigger:
        set {_target} to arg-1
        set {_uuid} to uuid of {_target}
        set {_deathnum} to arg-2
       
        send "&7Kontroller yapılıyor..." to player
       
        # Kontroller
        if {deathcount::%{_uuid}%} is not set:
            send "&c%{_target}% adlı oyuncunun hiç ölüm kaydı yok!" to player
            stop
       
        if {_deathnum} < 1 or {_deathnum} > {deathcount::%{_uuid}%}:
            send "&cGeçersiz numara! (1-%{deathcount::%{_uuid}%}% arasında olmalı)" to player
            stop
       
        send "&aEnvanter açılıyor..." to player
       
        # GUI oluştur
        create a gui with virtual chest inventory with 6 rows named "&6%{_target}% - Ölüm #%{_deathnum}%":
            # Ana envanter (0-35 slotları)
            loop 36 times:
                set {_slot} to loop-number - 1
                set {_item} to {death::%{_uuid}%::%{_deathnum}%::inventory::%{_slot}%}
                if {_item} is set:
                    make gui slot {_slot} run:
                        # Tıklama engellendi
                        pass
                    format gui slot {_slot} with {_item}
           
            # Zırh slotları (alt sıra)
            if {death::%{_uuid}%::%{_deathnum}%::helmet} is set:
                format gui slot 45 with {death::%{_uuid}%::%{_deathnum}%::helmet} named "&eKask"
            if {death::%{_uuid}%::%{_deathnum}%::chestplate} is set:
                format gui slot 46 with {death::%{_uuid}%::%{_deathnum}%::chestplate} named "&eGöğüslük"
            if {death::%{_uuid}%::%{_deathnum}%::leggings} is set:
                format gui slot 47 with {death::%{_uuid}%::%{_deathnum}%::leggings} named "&ePantolon"
            if {death::%{_uuid}%::%{_deathnum}%::boots} is set:
                format gui slot 48 with {death::%{_uuid}%::%{_deathnum}%::boots} named "&eBot"
            if {death::%{_uuid}%::%{_deathnum}%::offhand} is set:
                format gui slot 49 with {death::%{_uuid}%::%{_deathnum}%::offhand} named "&eSol El"
           
            # Bilgi butonu
            set {_info} to paper named "&6Ölüm Bilgileri"
            set lore of {_info} to "&7Tarih: &f%{death::%{_uuid}%::%{_deathnum}%::time}%", "&7Katil: &f%{death::%{_uuid}%::%{_deathnum}%::killer}%", "&7Konum: &f%{death::%{_uuid}%::%{_deathnum}%::location}%"
            make gui slot 52 run:
                # Sadece bilgi gösterimi
                pass
            format gui slot 52 with {_info}
           
            # Işınlanma butonu
            set {_tp} to ender pearl named "&aIşınlan"
            set lore of {_tp} to "&7Tıkla: Ölüm noktasına git"
            make gui slot 53 run:
                close player's inventory
                teleport player to {death::%{_uuid}%::%{_deathnum}%::location}
                send "&aÖlüm noktasına ışınlandınız!" to player
            format gui slot 53 with {_tp}
       
        # GUI'yi aç
        open last created gui to player

command /ölümlogliste [<player>]:
    permission: op
    executable by: players
    trigger:
        set {_target} to arg-1 if arg-1 is set else player
        set {_uuid} to uuid of {_target}
       
        if {deathcount::%{_uuid}%} is not set:
            send "&c%{_target}% adlı oyuncunun hiç ölüm kaydı yok!" to player
            stop
           
        send "&6=== %{_target}% Ölüm Listesi (%{deathcount::%{_uuid}%} kayıt) ===" to player
        loop {deathcount::%{_uuid}%} times:
            set {_num} to loop-number
            send "&7#%{_num}% &8| &7%{death::%{_uuid}%::%{_num}%::time}% &8| &cKatil: %{death::%{_uuid}%::%{_num}%::killer}%" to player
        send "&6Detay için: &e/ölümlog %{_target}% <numara>" to player

command /sonölüm [<player>]:
    permission: op
    executable by: players
    trigger:
        set {_target} to arg-1 if arg-1 is set else player
        set {_uuid} to uuid of {_target}
       
        if {lastdeath::%{_uuid}%} is not set:
            send "&c%{_target}% adlı oyuncunun hiç ölüm kaydı yok!" to player
            stop
           
        execute player command "/ölümlog %{_target}% %{lastdeath::%{_uuid}%}%"

# Pusula tıklama eventi
on rightclick with compass:
    if name of player's tool contains "&4Ölüm #":
        set {_deathnum} to last integer in name of player's tool
        set {_uuid} to player's uuid
       
        if {death::%{_uuid}%::%{_deathnum}%::location} is set:
            teleport player to {death::%{_uuid}%::%{_deathnum}%::location}
            send "&aÖlüm noktasına ışınlandınız!" to player
        else:
            send "&cBu ölüm kaydı bulunamadı!" to player

# Debug komutu
command /ölümtest:
    permission: op
    trigger:
        set {_uuid} to player's uuid
        send "&6Debug Bilgileri:" to player
        send "&7UUID: %{_uuid}%" to player
        send "&7Ölüm Sayısı: %{deathcount::%{_uuid}%}%" to player
        send "&7Son Ölüm: %{lastdeath::%{_uuid}%}%" to player
        if {deathcount::%{_uuid}%} > 0:
            send "&7İlk Ölüm Kaydı: %{death::%{_uuid}%::1::time}%" to player

Tuske - Skript-Reflect ve Skbee addonslarını yükleyerek tekrar dener misiniz ?
tuske olmuyor skript aynı sürüm yaptım düşürdüm yine olmadı
 
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