Skript Paylaşımı Vixio Serisi #1 | Sayı Tahmin Oyunu

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

Furkan Doğan

Ziyaretçi
Merhabalar;

Bu Konuda Daha Önce Yazmış Olduğum Sayı Tahmin Skriptinin Discord Versiyonunu Sizlerle Paylaşıyorum.

GEREKSİNİMLER;
-
Vixio | Vixio Hakkında Bilgi Sahibi Olmak İçin;
GÖRSELLER;

Komutunuz; (Sistem 1-30 Arasında Sınırlı Değildir, Dilediğiniz Sayıları Seçebilirsiniz.)
1.png


Komutu Girdik Ve;
2.png


Bot Sayıyı Size Özelden Gönderir;
4.png


Ve Sayıyı Buluruz;
3.png



KOD


Kod:
options:
    p: !    
    botToken: "buraya yapıştır"
    botName: "buraya yapıştır"
    serverID: "buraya yapıştır"    
    
on load:
    if {@botName} parsed as bot is not set:
        login to {@botToken} with name {@botName}                 
    
on unload:
    logout {@botName}    

discord command {@p}sayıtahmin <number> <number>:
    trigger:
        if event-member has permission manage server:
            set {oyun} to a random integer between argument 1 and argument 2
            set {oyun.%{_oyunbitti.%event-member%}%} to {oyun}
            set {OyunBasladii} to true
            make embed:    
                set author info of embed to an author named "Sayı Tahmin Etmece" with no url and icon icon of guild with id {@serverID}    
                set description of embed to "Tuttuğum Sayı **%argument 1%** Ve **%argument 2%** Sayıları Arasında, Bol Şans."                
                set color of the embed to color from rgb 255, 0, 0
            send "Tuttuğum Sayı: **%{oyun}%**" to event-member with {@botName}            
            wait 1 minute
            if {SayıBulundu} is false:        
                set {SayıBulundu} to true
                make embed:    
                    set author info of embed to an author named "Sayı Tahmin Etmece" with no url and icon icon of guild with id {@serverID}        
                    set description of embed to "Kimse Sayıyı Bulamadı, Sayı: **%{oyun}%**."                
                    set color of the embed to color from rgb 255, 0, 0
                send last created embed to event-channel with {@botName}                                
  
on server message received seen by {@botName}:
    if event-text is "%{oyun}%":
        if {OyunBasladii} is true:
            set {OyunBasladii} to false    
            set {SayıBulundu} to true        
            wait 0.1 second
            make embed:    
                set author info of embed to an author named "Sayı Tahmin Etmece" with no url and icon icon of guild with id {@serverID}        
                set description of embed to "**%event-member%** Sayıyı Buldu, Sayı: **%{oyun}%**"                
                set color of the embed to color from rgb 255, 0, 0
            send last created embed to event-channel with {@botName}

EK AÇIKLAMALAR;

- options'da Bulunan Ayarlar Doğru Biçimde Düzenlenmelidir, Aksi Halde Sistem Çalışmaz.
- Yazıları & Mesajları Dilediğiniz Gibi Değiştirebilirsiniz

İYİ FORUMLAR..
 

Ekli dosyalar

  • 1.png
    1.png
    613 bayt · Görüntüleme: 41
  • 3.png
    3.png
    4,7 KB · Görüntüleme: 35
Döktürmüşsün ellerine sağlık.
 
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