Bulundu Seçim Skripti

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

Quaresmaa3169

Somon Balığı Selam Vermeye Geldi
Katılım
9 Haziran 2024
Mesajlar
21
Elmaslar
0
Puan
2.005
Konum
İstanbul
Minecraft
berstqs74

Discord:

berstqs74

Merhaba bir seçim skripti yapabilirmisiniz mesela /çevir komudunu kullandığımızda ekranda yeşil renkle "Yeni Build Seçiliyor..." ve sonra aşağısında bi kaç build türü karışık bir şekilde seçiliyor. Biliyorum biraz karışık anlattım ama yapabilirseniz çok iyi olur
 
Ne demek istediğinizi anlayamadım, biraz daha açıklar mısın ?
 
Detaylandırırsanız yardımcı olabilirim çok üstü kapalı konuşuyorsunuz. Neyi seçeceğiz seçeceğimiz şeyleri komutla mı ekleyeceğiz komutla mı başlayacak seçim süreyle mi başlayacak neyin ne olduğunu açıklarsanız yardımcı olabilirim.
 
bildiğim kadarıyla anlatıyorum.
Bir komut olacak mesela /çevir gibi o komudu kullandığımızda herkesin ekranına title gelip Konu Seçiliyor yazacak ve 4 saniye boyunca altında Araba-Ev-Gemi-Heykel-Kale gibi şeyler geçecek ve 4 saniye sonra rastgele bir tanesi seçilecek ve ekranda Konu Seçildi! yazıp altında seçilen şeyin adı çıkacak mesela bir fotoğraf ile anlatayım
1771783977422.webp

böyle olacak ama Konu Yerine Seçilen Konu yazacak ve Çöp Kutusu Konu ile ilgili en iyi yapıyı oluştur yerine gelecek
 
bildiğim kadarıyla anlatıyorum.
Bir komut olacak mesela /çevir gibi o komudu kullandığımızda herkesin ekranına title gelip Konu Seçiliyor yazacak ve 4 saniye boyunca altında Araba-Ev-Gemi-Heykel-Kale gibi şeyler geçecek ve 4 saniye sonra rastgele bir tanesi seçilecek ve ekranda Konu Seçildi! yazıp altında seçilen şeyin adı çıkacak mesela bir fotoğraf ile anlatayım
Ekli dosyayı görüntüle 281251
böyle olacak ama Konu Yerine Seçilen Konu yazacak ve Çöp Kutusu Konu ile ilgili en iyi yapıyı oluştur yerine gelecek
Kod:
options:
    prefix: &6&l[Konu Seçici]

# ---- Konu Listesi ----
# İstediğin kadar konu ekleyebilirsin
variables:
    {konular::*} = "Araba", "Ev", "Gemi", "Heykel", "Kale", "Çöp Kutusu", "Köprü", "Ağaç", "Uçak", "Tren", "Kule", "Havuz", "Fener", "Şelale", "Piramit", "Robot", "Roket", "Denizaltı", "Gökkuşağı", "Kılıç"

on load:
    set {konular::1} to "Araba"
    set {konular::2} to "Ev"
    set {konular::3} to "Gemi"
    set {konular::4} to "Heykel"
    set {konular::5} to "Kale"
    set {konular::6} to "Çöp Kutusu"
    set {konular::7} to "Köprü"
    set {konular::8} to "Ağaç"
    set {konular::9} to "Uçak"
    set {konular::10} to "Tren"
    set {konular::11} to "Kule"
    set {konular::12} to "Havuz"
    set {konular::13} to "Fener"
    set {konular::14} to "Şelale"
    set {konular::15} to "Piramit"
    set {konular::16} to "Robot"
    set {konular::17} to "Roket"
    set {konular::18} to "Denizaltı"
    set {konular::19} to "Gökkuşağı"
    set {konular::20} to "Kılıç"
    set {konu.seciliyor} to false

# ---- Ana Komut ----
command /cevir:
    permission: op
    permission message: &cBu komutu kullanma yetkin yok!
    trigger:
        if {konu.seciliyor} is true:
            send "{@prefix} &cZaten bir konu seçimi devam ediyor!" to player
            stop

        set {konu.seciliyor} to true

        # ---- Aşama 1: "Konu Seçiliyor..." title'ı (4 saniye boyunca konular geçecek) ----
        set {_sayac} to 0
        while {_sayac} < 20:
            # Her 4 tick'te (0.2 saniye) bir konu değiştir = 4 saniyede 20 kez
            set {_rastgele} to a random integer between 1 and 20
            set {_gosterilen} to {konular::%{_rastgele}%}

            # Tüm oyunculara title göster
            loop all players:
                send title "&e&lKonu Seçiliyor..." with subtitle "&b&l%{_gosterilen}%" to loop-player for 0.5 seconds with fade in 0 ticks and fade out 0 ticks

            add 1 to {_sayac}
            wait 4 ticks

        # ---- Aşama 2: Son konu seçimi ----
        set {_final} to a random integer between 1 and 20
        set {secilen.konu} to {konular::%{_final}%}

        # Seçim efekti - kısa bekleme
        wait 0.5 seconds

        # ---- Aşama 3: "Konu Seçildi!" göster ----
        loop all players:
            send title "&a&lKonu Seçildi!" with subtitle "&e&l%{secilen.konu}%" to loop-player for 4 seconds with fade in 10 ticks and fade out 20 ticks
            play sound "entity.player.levelup" with volume 1 and pitch 1 to loop-player
            play sound "entity.firework_rocket.blast" with volume 1 and pitch 1.5 to loop-player

        # Sohbete de yaz
        wait 0.5 seconds
        broadcast ""
        broadcast "&6&m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
        broadcast ""
        broadcast "  &a&l✔ KONU SEÇİLDİ!"
        broadcast ""
        broadcast "  &f&lKonu: &e&l%{secilen.konu}%"
        broadcast ""
        broadcast "  &7Konu ile ilgili en iyi yapıyı oluştur!"
        broadcast ""
        broadcast "&6&m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
        broadcast ""

        set {konu.seciliyor} to false

# ---- Konu Ekleme Komutu ----
command /konuekle [<text>]:
    permission: op
    permission message: &cBu komutu kullanma yetkin yok!
    trigger:
        if arg-1 is not set:
            send "{@prefix} &cKullanım: /konuekle <konu adı>"
            stop
        set {_boyut} to size of {konular::*}
        add 1 to {_boyut}
        set {konular::%{_boyut}%} to arg-1
        send "{@prefix} &a%arg-1% &fkonusu eklendi! (Toplam: %{_boyut}%)"

# ---- Konu Listesi Komutu ----
command /konular:
    permission: op
    trigger:
        send "&6&m━━━━━━━━━━━━━━━━━━━━━━"
        send "&e&lMevcut Konular:"
        send ""
        loop {konular::*}:
            send " &7- &f%loop-value%"
        send ""
        send "&6&m━━━━━━━━━━━━━━━━━━━━━━"

# ---- Konu Silme Komutu ----
command /konusil [<text>]:
    permission: op
    trigger:
        if arg-1 is not set:
            send "{@prefix} &cKullanım: /konusil <konu adı>"
            stop
        loop {konular::*}:
            if loop-value is arg-1:
                delete {konular::%loop-index%}
                send "{@prefix} &c%arg-1% &fkonusu silindi!"
                stop
        send "{@prefix} &c%arg-1% adında bir konu bulunamadı!"

# ---- Konu Sıfırlama ----
command /konusifirla:
    permission: op
    trigger:
        delete {konular::*}
        set {konular::1} to "Araba"
        set {konular::2} to "Ev"
        set {konular::3} to "Gemi"
        set {konular::4} to "Heykel"
        set {konular::5} to "Kale"
        set {konular::6} to "Çöp Kutusu"
        set {konular::7} to "Köprü"
        set {konular::8} to "Ağaç"
        set {konular::9} to "Uçak"
        set {konular::10} to "Tren"
        set {konular::11} to "Kule"
        set {konular::12} to "Havuz"
        set {konular::13} to "Fener"
        set {konular::14} to "Şelale"
        set {konular::15} to "Piramit"
        set {konular::16} to "Robot"
        set {konular::17} to "Roket"
        set {konular::18} to "Denizaltı"
        set {konular::19} to "Gökkuşağı"
        set {konular::20} to "Kılıç"
        send "{@prefix} &aKonular varsayılana sıfırlandı! (20 konu)"
 
Kod:
options:
    prefix: &6&l[Konu Seçici]

# ---- Konu Listesi ----
# İstediğin kadar konu ekleyebilirsin
variables:
    {konular::*} = "Araba", "Ev", "Gemi", "Heykel", "Kale", "Çöp Kutusu", "Köprü", "Ağaç", "Uçak", "Tren", "Kule", "Havuz", "Fener", "Şelale", "Piramit", "Robot", "Roket", "Denizaltı", "Gökkuşağı", "Kılıç"

on load:
    set {konular::1} to "Araba"
    set {konular::2} to "Ev"
    set {konular::3} to "Gemi"
    set {konular::4} to "Heykel"
    set {konular::5} to "Kale"
    set {konular::6} to "Çöp Kutusu"
    set {konular::7} to "Köprü"
    set {konular::8} to "Ağaç"
    set {konular::9} to "Uçak"
    set {konular::10} to "Tren"
    set {konular::11} to "Kule"
    set {konular::12} to "Havuz"
    set {konular::13} to "Fener"
    set {konular::14} to "Şelale"
    set {konular::15} to "Piramit"
    set {konular::16} to "Robot"
    set {konular::17} to "Roket"
    set {konular::18} to "Denizaltı"
    set {konular::19} to "Gökkuşağı"
    set {konular::20} to "Kılıç"
    set {konu.seciliyor} to false

# ---- Ana Komut ----
command /cevir:
    permission: op
    permission message: &cBu komutu kullanma yetkin yok!
    trigger:
        if {konu.seciliyor} is true:
            send "{@prefix} &cZaten bir konu seçimi devam ediyor!" to player
            stop

        set {konu.seciliyor} to true

        # ---- Aşama 1: "Konu Seçiliyor..." title'ı (4 saniye boyunca konular geçecek) ----
        set {_sayac} to 0
        while {_sayac} < 20:
            # Her 4 tick'te (0.2 saniye) bir konu değiştir = 4 saniyede 20 kez
            set {_rastgele} to a random integer between 1 and 20
            set {_gosterilen} to {konular::%{_rastgele}%}

            # Tüm oyunculara title göster
            loop all players:
                send title "&e&lKonu Seçiliyor..." with subtitle "&b&l%{_gosterilen}%" to loop-player for 0.5 seconds with fade in 0 ticks and fade out 0 ticks

            add 1 to {_sayac}
            wait 4 ticks

        # ---- Aşama 2: Son konu seçimi ----
        set {_final} to a random integer between 1 and 20
        set {secilen.konu} to {konular::%{_final}%}

        # Seçim efekti - kısa bekleme
        wait 0.5 seconds

        # ---- Aşama 3: "Konu Seçildi!" göster ----
        loop all players:
            send title "&a&lKonu Seçildi!" with subtitle "&e&l%{secilen.konu}%" to loop-player for 4 seconds with fade in 10 ticks and fade out 20 ticks
            play sound "entity.player.levelup" with volume 1 and pitch 1 to loop-player
            play sound "entity.firework_rocket.blast" with volume 1 and pitch 1.5 to loop-player

        # Sohbete de yaz
        wait 0.5 seconds
        broadcast ""
        broadcast "&6&m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
        broadcast ""
        broadcast "  &a&l✔ KONU SEÇİLDİ!"
        broadcast ""
        broadcast "  &f&lKonu: &e&l%{secilen.konu}%"
        broadcast ""
        broadcast "  &7Konu ile ilgili en iyi yapıyı oluştur!"
        broadcast ""
        broadcast "&6&m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
        broadcast ""

        set {konu.seciliyor} to false

# ---- Konu Ekleme Komutu ----
command /konuekle [<text>]:
    permission: op
    permission message: &cBu komutu kullanma yetkin yok!
    trigger:
        if arg-1 is not set:
            send "{@prefix} &cKullanım: /konuekle <konu adı>"
            stop
        set {_boyut} to size of {konular::*}
        add 1 to {_boyut}
        set {konular::%{_boyut}%} to arg-1
        send "{@prefix} &a%arg-1% &fkonusu eklendi! (Toplam: %{_boyut}%)"

# ---- Konu Listesi Komutu ----
command /konular:
    permission: op
    trigger:
        send "&6&m━━━━━━━━━━━━━━━━━━━━━━"
        send "&e&lMevcut Konular:"
        send ""
        loop {konular::*}:
            send " &7- &f%loop-value%"
        send ""
        send "&6&m━━━━━━━━━━━━━━━━━━━━━━"

# ---- Konu Silme Komutu ----
command /konusil [<text>]:
    permission: op
    trigger:
        if arg-1 is not set:
            send "{@prefix} &cKullanım: /konusil <konu adı>"
            stop
        loop {konular::*}:
            if loop-value is arg-1:
                delete {konular::%loop-index%}
                send "{@prefix} &c%arg-1% &fkonusu silindi!"
                stop
        send "{@prefix} &c%arg-1% adında bir konu bulunamadı!"

# ---- Konu Sıfırlama ----
command /konusifirla:
    permission: op
    trigger:
        delete {konular::*}
        set {konular::1} to "Araba"
        set {konular::2} to "Ev"
        set {konular::3} to "Gemi"
        set {konular::4} to "Heykel"
        set {konular::5} to "Kale"
        set {konular::6} to "Çöp Kutusu"
        set {konular::7} to "Köprü"
        set {konular::8} to "Ağaç"
        set {konular::9} to "Uçak"
        set {konular::10} to "Tren"
        set {konular::11} to "Kule"
        set {konular::12} to "Havuz"
        set {konular::13} to "Fener"
        set {konular::14} to "Şelale"
        set {konular::15} to "Piramit"
        set {konular::16} to "Robot"
        set {konular::17} to "Roket"
        set {konular::18} to "Denizaltı"
        set {konular::19} to "Gökkuşağı"
        set {konular::20} to "Kılıç"
        send "{@prefix} &aKonular varsayılana sıfırlandı! (20 konu)"
her şey çok iyi çalışıyor ama Line 7'de hata var. Reload atamıyorum ve /konusil yaptığımda ekranda <none> olarak gözüküyor
fotoğraf atıyorum.
1771786141849.webp
 
ve her reload atınca konular tekrar sıfırlanıyor
 
ve her reload atınca konular tekrar sıfırlanıyor
Kod:
# ============================================
# KONU SECICI SKRIPT
# Komut: /cevir
# Gerekli Eklenti: Skript
# ============================================

options:
    prefix: &6&l[Konu Secici]

on load:
    if size of {konular::*} is 0:
        set {konular::1} to "Araba"
        set {konular::2} to "Ev"
        set {konular::3} to "Gemi"
        set {konular::4} to "Heykel"
        set {konular::5} to "Kale"
        set {konular::6} to "Cop Kutusu"
        set {konular::7} to "Kopru"
        set {konular::8} to "Agac"
        set {konular::9} to "Ucak"
        set {konular::10} to "Tren"
        set {konular::11} to "Kule"
        set {konular::12} to "Havuz"
        set {konular::13} to "Fener"
        set {konular::14} to "Selale"
        set {konular::15} to "Piramit"
        set {konular::16} to "Robot"
        set {konular::17} to "Roket"
        set {konular::18} to "Denizalti"
        set {konular::19} to "Gokkusagi"
        set {konular::20} to "Kilic"
    set {konu.seciliyor} to false

command /cevir:
    permission: op
    permission message: &cBu komutu kullanma yetkin yok!
    trigger:
        if {konu.seciliyor} is true:
            send "{@prefix} &cZaten bir konu secimi devam ediyor!" to player
            stop

        set {konu.seciliyor} to true
        set {_toplam} to size of {konular::*}

        set {_sayac} to 0
        while {_sayac} < 20:
            set {_rastgele} to a random integer between 1 and {_toplam}
            set {_gosterilen} to {konular::%{_rastgele}%}

            loop all players:
                send title "&e&lKonu Seciliyor..." with subtitle "&b&l%{_gosterilen}%" to loop-player for 0.5 seconds with fade in 0 ticks and fade out 0 ticks

            add 1 to {_sayac}
            wait 4 ticks

        set {_final} to a random integer between 1 and {_toplam}
        set {secilen.konu} to {konular::%{_final}%}

        wait 0.5 seconds

        loop all players:
            send title "&a&lKonu Secildi!" with subtitle "&e&l%{secilen.konu}%" to loop-player for 4 seconds with fade in 10 ticks and fade out 20 ticks
            play sound "entity.player.levelup" with volume 1 and pitch 1 to loop-player
            play sound "entity.firework_rocket.blast" with volume 1 and pitch 1.5 to loop-player

        wait 0.5 seconds
        broadcast ""
        broadcast "&6&m================================"
        broadcast ""
        broadcast "  &a&l KONU SECILDI!"
        broadcast ""
        broadcast "  &f&lKonu: &e&l%{secilen.konu}%"
        broadcast ""
        broadcast "  &7Konu ile ilgili en iyi yapiyi olustur!"
        broadcast ""
        broadcast "&6&m================================"
        broadcast ""

        set {konu.seciliyor} to false

command /konuekle [<text>]:
    permission: op
    permission message: &cBu komutu kullanma yetkin yok!
    trigger:
        if arg-1 is not set:
            send "{@prefix} &cKullanim: /konuekle <konu adi>"
            stop
        set {_boyut} to size of {konular::*}
        add 1 to {_boyut}
        set {konular::%{_boyut}%} to arg-1
        send "{@prefix} &a%arg-1% &fkonusu eklendi! (Toplam: %{_boyut}%)"

command /konular:
    permission: op
    trigger:
        send "&6&m======================"
        send "&e&lMevcut Konular:"
        send ""
        loop {konular::*}:
            send " &7- &f%loop-value%"
        send ""
        send "&6&m======================"

command /konusil [<text>]:
    permission: op
    trigger:
        if arg-1 is not set:
            send "{@prefix} &cKullanim: /konusil <konu adi>"
            stop
        loop {konular::*}:
            if loop-value is arg-1:
                delete {konular::%loop-index%}
                send "{@prefix} &c%arg-1% &fkonusu silindi!"
                stop
        send "{@prefix} &c%arg-1% adinda bir konu bulunamadi!"

command /konusifirla:
    permission: op
    trigger:
        delete {konular::*}
        set {konular::1} to "Araba"
        set {konular::2} to "Ev"
        set {konular::3} to "Gemi"
        set {konular::4} to "Heykel"
        set {konular::5} to "Kale"
        set {konular::6} to "Cop Kutusu"
        set {konular::7} to "Kopru"
        set {konular::8} to "Agac"
        set {konular::9} to "Ucak"
        set {konular::10} to "Tren"
        set {konular::11} to "Kule"
        set {konular::12} to "Havuz"
        set {konular::13} to "Fener"
        set {konular::14} to "Selale"
        set {konular::15} to "Piramit"
        set {konular::16} to "Robot"
        set {konular::17} to "Roket"
        set {konular::18} to "Denizalti"
        set {konular::19} to "Gokkusagi"
        set {konular::20} to "Kilic"
        send "{@prefix} &aKonular varsayilana sifirlandi! (20 konu)"
 
Kod:
# ============================================
# KONU SECICI SKRIPT
# Komut: /cevir
# Gerekli Eklenti: Skript
# ============================================

options:
    prefix: &6&l[Konu Secici]

on load:
    if size of {konular::*} is 0:
        set {konular::1} to "Araba"
        set {konular::2} to "Ev"
        set {konular::3} to "Gemi"
        set {konular::4} to "Heykel"
        set {konular::5} to "Kale"
        set {konular::6} to "Cop Kutusu"
        set {konular::7} to "Kopru"
        set {konular::8} to "Agac"
        set {konular::9} to "Ucak"
        set {konular::10} to "Tren"
        set {konular::11} to "Kule"
        set {konular::12} to "Havuz"
        set {konular::13} to "Fener"
        set {konular::14} to "Selale"
        set {konular::15} to "Piramit"
        set {konular::16} to "Robot"
        set {konular::17} to "Roket"
        set {konular::18} to "Denizalti"
        set {konular::19} to "Gokkusagi"
        set {konular::20} to "Kilic"
    set {konu.seciliyor} to false

command /cevir:
    permission: op
    permission message: &cBu komutu kullanma yetkin yok!
    trigger:
        if {konu.seciliyor} is true:
            send "{@prefix} &cZaten bir konu secimi devam ediyor!" to player
            stop

        set {konu.seciliyor} to true
        set {_toplam} to size of {konular::*}

        set {_sayac} to 0
        while {_sayac} < 20:
            set {_rastgele} to a random integer between 1 and {_toplam}
            set {_gosterilen} to {konular::%{_rastgele}%}

            loop all players:
                send title "&e&lKonu Seciliyor..." with subtitle "&b&l%{_gosterilen}%" to loop-player for 0.5 seconds with fade in 0 ticks and fade out 0 ticks

            add 1 to {_sayac}
            wait 4 ticks

        set {_final} to a random integer between 1 and {_toplam}
        set {secilen.konu} to {konular::%{_final}%}

        wait 0.5 seconds

        loop all players:
            send title "&a&lKonu Secildi!" with subtitle "&e&l%{secilen.konu}%" to loop-player for 4 seconds with fade in 10 ticks and fade out 20 ticks
            play sound "entity.player.levelup" with volume 1 and pitch 1 to loop-player
            play sound "entity.firework_rocket.blast" with volume 1 and pitch 1.5 to loop-player

        wait 0.5 seconds
        broadcast ""
        broadcast "&6&m================================"
        broadcast ""
        broadcast "  &a&l KONU SECILDI!"
        broadcast ""
        broadcast "  &f&lKonu: &e&l%{secilen.konu}%"
        broadcast ""
        broadcast "  &7Konu ile ilgili en iyi yapiyi olustur!"
        broadcast ""
        broadcast "&6&m================================"
        broadcast ""

        set {konu.seciliyor} to false

command /konuekle [<text>]:
    permission: op
    permission message: &cBu komutu kullanma yetkin yok!
    trigger:
        if arg-1 is not set:
            send "{@prefix} &cKullanim: /konuekle <konu adi>"
            stop
        set {_boyut} to size of {konular::*}
        add 1 to {_boyut}
        set {konular::%{_boyut}%} to arg-1
        send "{@prefix} &a%arg-1% &fkonusu eklendi! (Toplam: %{_boyut}%)"

command /konular:
    permission: op
    trigger:
        send "&6&m======================"
        send "&e&lMevcut Konular:"
        send ""
        loop {konular::*}:
            send " &7- &f%loop-value%"
        send ""
        send "&6&m======================"

command /konusil [<text>]:
    permission: op
    trigger:
        if arg-1 is not set:
            send "{@prefix} &cKullanim: /konusil <konu adi>"
            stop
        loop {konular::*}:
            if loop-value is arg-1:
                delete {konular::%loop-index%}
                send "{@prefix} &c%arg-1% &fkonusu silindi!"
                stop
        send "{@prefix} &c%arg-1% adinda bir konu bulunamadi!"

command /konusifirla:
    permission: op
    trigger:
        delete {konular::*}
        set {konular::1} to "Araba"
        set {konular::2} to "Ev"
        set {konular::3} to "Gemi"
        set {konular::4} to "Heykel"
        set {konular::5} to "Kale"
        set {konular::6} to "Cop Kutusu"
        set {konular::7} to "Kopru"
        set {konular::8} to "Agac"
        set {konular::9} to "Ucak"
        set {konular::10} to "Tren"
        set {konular::11} to "Kule"
        set {konular::12} to "Havuz"
        set {konular::13} to "Fener"
        set {konular::14} to "Selale"
        set {konular::15} to "Piramit"
        set {konular::16} to "Robot"
        set {konular::17} to "Roket"
        set {konular::18} to "Denizalti"
        set {konular::19} to "Gokkusagi"
        set {konular::20} to "Kilic"
        send "{@prefix} &aKonular varsayilana sifirlandi! (20 konu)"
Teşekkürler.
 
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