Skript Paylaşımı titlemanager geri sayım skript

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

CraftRakip Network

Kızılsakal Kızıltaş?
Katılım
18 Mart 2018
Mesajlar
515
Elmaslar
205
Puan
14.320
Yaş
18
Konum
İstanbul
mesela 2 saat 40 dakika gibi sadece saat dakika yazsın
ve hergün saat 19:00 da yenilensin yani sadece 19 a kadar geri sayım yapsın sonra tekrar başlasın
 
BUnu skript değilde tam hatırlamıyorum geri sayım yapmanıza seçenek sunuyordu.
onu araştırıp deneyebilirsiniz.
 
İsteğinizi doğru Türkçe ve basit bir dil ile anlatırsanız yardımcı olabilirim.
 
İsteğinizi doğru Türkçe ve basit bir dil ile anlatırsanız yardımcı olabilirim.
TitleManager'da sağ tarafta saat 19:00 a kadar geri saymasını istiyorum. Saat 19:00 olduğun da, Tekrar geri sayım başlasın.
Örnek: Etkinliğe 5 saat 10 dakika kaldı.
 
TitleManager sağ taraf ?
 
Arkadaş diyor ki: TitleManager'ın board'ında etkinliğe kalan süre yapma kodunu istiyorum

Örnek:
Ejderha etkinliği:
1 gün 23 saat 23 dakika
 
Skript 2.2 dev37c ile denendi. Placeholder %kalansure%, istersen değişebilirsin alt satırlardan. skript-placeholders addon'u gerekli.

JavaScript:
options:
    saat: 19   #event saati, 0-24
    dakika: 00 #ve dakikası, 0-59

function checkRemained():
    while now >= {specifictime}:
        set {specifictime} to 1 day after {specifictime}
        wait 1 seconds

function getRemained() :: text:
    if {specifictime} formatted as "HH.mm" != "{@saat}.{@dakika}":
        set {specifictime} to date(2022, 8, 30, {@saat}, {@dakika})
    checkRemained()
    set {_} to "%difference between now and {specifictime}%"
    replace all ", " and " and " with " " in {_}
    replace all "seconds" and "second" with "sn" in {_}
    replace all "minutes" and "minute" with "dk" in {_}
    replace all "hours" and "hour" with "sa" in {_}
    set {_s::*} to {_} split at " "
    if size of {_s::*} = 4:
        return "%{_s::1}% %{_s::2}% %floor({_s::3} parsed as number)% %{_s::4}%"
    return "%floor({_s::1} parsed as number)% %{_s::2}%"

on papi request with prefix "kalansure":
    set result to getRemained()
 
Skript 2.2 dev37c ile denendi. Placeholder %kalansure%, istersen değişebilirsin alt satırlardan. skript-placeholders addon'u gerekli.

JavaScript:
options:
    saat: 19   #event saati, 0-24
    dakika: 00 #ve dakikası, 0-59

function checkRemained():
    while now >= {specifictime}:
        set {specifictime} to 1 day after {specifictime}
        wait 1 seconds

function getRemained() :: text:
    if {specifictime} formatted as "HH.mm" != "{@saat}.{@dakika}":
        set {specifictime} to date(2022, 8, 30, {@saat}, {@dakika})
    checkRemained()
    set {_} to "%difference between now and {specifictime}%"
    replace all ", " and " and " with " " in {_}
    replace all "seconds" and "second" with "sn" in {_}
    replace all "minutes" and "minute" with "dk" in {_}
    replace all "hours" and "hour" with "sa" in {_}
    set {_s::*} to {_} split at " "
    if size of {_s::*} = 4:
        return "%{_s::1}% %{_s::2}% %floor({_s::3} parsed as number)% %{_s::4}%"
    return "%floor({_s::1} parsed as number)% %{_s::2}%"

on papi request with prefix "kalansure":
    set result to getRemained()
Hocam sizin skript sürümünüzü yükledim
skript placeholders de yükledim ama sağ tarafta %kalansure% yaziyor
 
Skript 2.2 dev37c ile denendi. Placeholder %kalansure%, istersen değişebilirsin alt satırlardan. skript-placeholders addon'u gerekli.

JavaScript:
options:
    saat: 19   #event saati, 0-24
    dakika: 00 #ve dakikası, 0-59

function checkRemained():
    while now >= {specifictime}:
        set {specifictime} to 1 day after {specifictime}
        wait 1 seconds

function getRemained() :: text:
    if {specifictime} formatted as "HH.mm" != "{@saat}.{@dakika}":
        set {specifictime} to date(2022, 8, 30, {@saat}, {@dakika})
    checkRemained()
    set {_} to "%difference between now and {specifictime}%"
    replace all ", " and " and " with " " in {_}
    replace all "seconds" and "second" with "sn" in {_}
    replace all "minutes" and "minute" with "dk" in {_}
    replace all "hours" and "hour" with "sa" in {_}
    set {_s::*} to {_} split at " "
    if size of {_s::*} = 4:
        return "%{_s::1}% %{_s::2}% %floor({_s::3} parsed as number)% %{_s::4}%"
    return "%floor({_s::1} parsed as number)% %{_s::2}%"

on papi request with prefix "kalansure":
    set result to getRemained()
tamam placeholder in güncel bir sürümünü indirince düzeldi 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