MrMistry#5436
maadenci
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.İsteğinizi doğru Türkçe ve basit bir dil ile anlatırsanız yardımcı olabilirim.
yessArkadaş 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
Evet kanka sağ taraf var ya titlemanager evet işte o -_-TitleManager sağ taraf ?
desaxx
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ükledimSkript 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ürlerSkript 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()
Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!