Çözüldü türkçe zaman

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

abalkan

oyna.sunolia.network
Katılım
24 Nisan 2017
Mesajlar
421
Elmaslar
48
Puan
9.155
Konum
Bursa

Discord:

abalkan#4644

Dostlar Merhaba

Günlük ödül için kullandığın basit bir skript vardıda kalan zamanı ingilizce formatta yazıyor bunu geliştirip türkçe zaman dilimleri eklermisiniz
ya da biraz daha geliştirip daha güzel hale getirebilir misiniz

Kod:
command /gunlukodul:
    trigger:
        set {_difference} to difference between {gunluk.%player%} and now
        if {_difference} is less than 24 hours:
            set  {_difference} to difference between {_difference} and 24 hours
            send player title "&cservername" with subtitle "&e▪ &cKalan Süre &b%{_difference}% &e▪" for 5 seconds
            stop
        set {gunluk.%player%} to now
        send player title "&cservername" with subtitle "&b▪ &aBaşarıyla Günlük Odülünü Aldın &b▪" for 5  seconds
        execute console command "cc give P Günlük 1 %player%"
        stop
 
Kod:
command /gunlukodul:
    trigger:
        set {_difference} to difference between {gunluk.%player%} and now
        if {_difference} is less than 24 hours:
            set  {_difference} to difference between {_difference} and 24 hours
            replace all "hours" with "saat" in {_difference}
            send player title "&cservername" with subtitle "&e▪ &cKalan Süre &b%{_difference}% &e▪" for 5 seconds
            stop
        set {gunluk.%player%} to now
        send player title "&cservername" with subtitle "&b▪ &aBaşarıyla Günlük Odülünü Aldın &b▪" for 5  seconds
        execute console command "cc give P Günlük 1 %player%"
        stop
Buyur, telefondan yazdım hatalı olabilir.
 
Dostlar Merhaba

Günlük ödül için kullandığın basit bir skript vardıda kalan zamanı ingilizce formatta yazıyor bunu geliştirip türkçe zaman dilimleri eklermisiniz
ya da biraz daha geliştirip daha güzel hale getirebilir misiniz

Kod:
command /gunlukodul:
    trigger:
        set {_difference} to difference between {gunluk.%player%} and now
        if {_difference} is less than 24 hours:
            set  {_difference} to difference between {_difference} and 24 hours
            send player title "&cservername" with subtitle "&e▪ &cKalan Süre &b%{_difference}% &e▪" for 5 seconds
            stop
        set {gunluk.%player%} to now
        send player title "&cservername" with subtitle "&b▪ &aBaşarıyla Günlük Odülünü Aldın &b▪" for 5  seconds
        execute console command "cc give P Günlük 1 %player%"
        stop

Skript yerine TimedRewards eklentisini kullanabilirsin hocam. Hazır haliyle birlikte atayım sana plugini,
Değerli ziyaretçimiz, içeriği görebilmek için şimdi giriş yapın veya kayıt olun.

Değerli ziyaretçimiz, içeriği görebilmek için şimdi giriş yapın veya kayıt olun.
 
Kod:
command /gunlukodul:
    trigger:
        set {_difference} to difference between {gunluk.%player%} and now
        if {_difference} is less than 24 hours:
            set  {_difference} to difference between {_difference} and 24 hours
            replace all "hours" with "saat" in {_difference}
            send player title "&cservername" with subtitle "&e▪ &cKalan Süre &b%{_difference}% &e▪" for 5 seconds
            stop
        set {gunluk.%player%} to now
        send player title "&cservername" with subtitle "&b▪ &aBaşarıyla Günlük Odülünü Aldın &b▪" for 5  seconds
        execute console command "cc give P Günlük 1 %player%"
        stop
Buyur, telefondan yazdım hatalı olabilir.
yalnızca saati düzeltmişsinde skriptte saat + dakika gösteriyor minutes yazıyor
tekrar yazıp atar mısın
 
Kod:
command /gunlukodul:
    trigger:
        set {_difference} to difference between {gunluk.%player%} and now
        if {_difference} is less than 24 hours:
            set  {_difference} to difference between {_difference} and 24 hours
            replace all "minutes" with "dakika" in {_difference}
            replace all "hours" with "saat" in {_difference}
            send player title "&cservername" with subtitle "&e▪ &cKalan Süre &b%{_difference}% &e▪" for 5 seconds
            stop
        set {gunluk.%player%} to now
        send player title "&cservername" with subtitle "&b▪ &aBaşarıyla Günlük Odülünü Aldın &b▪" for 5  seconds
        execute console command "cc give P Günlük 1 %player%"
        stop
Buyur.
 
Kod:
command /gunlukodul:
    trigger:
        set {_difference} to difference between {gunluk.%player%} and now
        if {_difference} is less than 24 hours:
            set  {_difference} to difference between {_difference} and 24 hours
            replace all "minutes" with "dakika" in {_difference}
            replace all "hours" with "saat" in {_difference}
            send player title "&cservername" with subtitle "&e▪ &cKalan Süre &b%{_difference}% &e▪" for 5 seconds
            stop
        set {gunluk.%player%} to now
        send player title "&cservername" with subtitle "&b▪ &aBaşarıyla Günlük Odülünü Aldın &b▪" for 5  seconds
        execute console command "cc give P Günlük 1 %player%"
        stop
Buyur.
çalışmadı süreler halen ingilizce veriliyor
 
süreler ingilizce düzelmedi hala bekliyorum
 
konsolun bulunduğu makinenin saat ayarlarını türkçeleştirirmisin.
 
Kod:
command /gunlukodul:
    trigger:
        set {_difference} to difference between {gunluk.%player%} and now
        if {_difference} is less than 24 hours:
            set {_differences} to "%difference between {_difference} and 24 hours%"
            replace all "minutes" with "dakika" in {_differences}
            replace all "hours" with "saat" in {_differences}
            replace all "seconds" with "saniye" in {_differences}
            replace all "days" with "gün" in {_differences}
            replace all "and" with "ve" in {_differences}
            send player title "&cservername" with subtitle "&e▪ &cKalan Süre &b%{_differences}% &e▪" for 5 seconds
            stop
        set {gunluk.%player%} to now
        send player title "&cservername" with subtitle "&b▪ &aBaşarıyla Günlük Odülünü Aldın &b▪" for 5  seconds
        execute console command "cc give P Günlük 1 %player%"
        stop
denermisin
 
Skript:
Değerli ziyaretçimiz, içeriği görebilmek için şimdi giriş yapın veya kayıt olun.
skRayFall:
Değerli ziyaretçimiz, içeriği görebilmek için şimdi giriş yapın veya kayıt olun.

Kod:
options:
    sure: 24 hours
    serverad: &cServer
command /gunlukodul:
    trigger:
        set {_sure} to difference between {gunlukodul::%player%} and now
        if {_sure} is less than {@sure}:
            set {_test} to translateTimespan(difference between {@sure} and {_sure})
            send player title "{@serverad}" with subtitle "&e▪ &cKalan Süre: &b%{_sure}% &e▪" for 5 seconds
            send "&eTekrar hediye alabilmek için &f%{_test}% &ebeklemen gerekli."
        else:
            set {gunlukodul::%player%} to now
            execute console command "cc give P Günlük 1 %player%"
            send player title "{@serverad}" with subtitle "&b▪ &aBaşarıyla günlük ödülünü aldın &b▪" for 5 seconds
            send "&eGünlük ödülünü aldın."
function translateTimespan(t: timespan) :: text:
    set {_t} to "%{_t}%"
    replace all "and" with "ve" in {_t}
    replace all "seconds" and "second" with "saniye" in {_t}
    replace all "minutes" and "minute" with "dakika" in {_t}
    replace all "hours" and "hour" with "saat" in {_t}
    replace all "days" and "day" with "gün" in {_t}
    return {_t}
 
konu kilitlenebilir
 
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