kalabasa Posted October 29, 2021 Posted October 29, 2021 how to display actual time remaining instead of "call in 1hours later?" "Call in "+ (#THQ_DELAY - (GetTime(DT_YEAR)123124+GetTime(DT_MONTH)3124+GetTime(DT_DAYOFMONTH)24+GetTime(DT_HOUR)) )+" hours later."; Quote
0 sader1992 Posted October 30, 2021 Posted October 30, 2021 it depend on what your #THQ_DELAY is if it's only the time left use this mes "Call in " + gettimestr("%H:%M:%S",21,#THQ_DELAY); Quote
0 kalabasa Posted October 31, 2021 Author Posted October 31, 2021 im using the default written on script also when choose and cancel and not to take quest the delay would apply also. //add time delay penalty. You can get another quest after 2 - 3 hours. [Lupus] set #THQ_DELAY, (GetTime(DT_YEAR)*12*31*24+GetTime(DT_MONTH)*31*24+GetTime(DT_DAYOFMONTH)*24+GetTime(DT_HOUR)+1); //checking if time penalty is over [Lupus] if (#THQ_DELAY > (GetTime(DT_YEAR)*12*31*24 + GetTime(DT_MONTH)*31*24 + GetTime(DT_DAYOFMONTH)*24 + GetTime(DT_HOUR)) ) goto L_NoQuestsForYet; Quote
0 sader1992 Posted October 31, 2021 Posted October 31, 2021 .@delay = 600; //delay in seconds , 600 = 5 min if(gettimetick(2) < #THQ_DELAY){ mes "Call in " + gettimestr("%H:%M:%S",21,#THQ_DELAY); end; } #THQ_DELAY = gettimetick(2) + .@delay; Quote
0 kalabasa Posted November 2, 2021 Author Posted November 2, 2021 .@delay = 600; should i change it to 7200? to display 1 hr and can it display like Call in 59 minutes call in 40 minutes call in 5 minutes and so on.. Quote
0 sader1992 Posted November 2, 2021 Posted November 2, 2021 20 hours ago, kalabasa said: .@delay = 600; should i change it to 7200? to display 1 hr and can it display like Call in 59 minutes call in 40 minutes call in 5 minutes and so on.. yes, yes #THQ_DELAY/60 = minutes Quote
Question
kalabasa
how to display actual time remaining instead of "call in 1hours later?"
"Call in "+ (#THQ_DELAY - (GetTime(DT_YEAR)123124+GetTime(DT_MONTH)3124+GetTime(DT_DAYOFMONTH)24+GetTime(DT_HOUR)) )+" hours later.";
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.