kalabasa Posted October 29, 2021 Share 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 Link to comment Share on other sites More sharing options...
0 sader1992 Posted October 30, 2021 Share 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 Link to comment Share on other sites More sharing options...
0 kalabasa Posted October 31, 2021 Author Share 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 Link to comment Share on other sites More sharing options...
0 sader1992 Posted October 31, 2021 Share Posted October 31, 2021 [email protected] = 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) + [email protected]; Quote Link to comment Share on other sites More sharing options...
0 kalabasa Posted November 2, 2021 Author Share Posted November 2, 2021 [email protected] = 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 Link to comment Share on other sites More sharing options...
0 sader1992 Posted November 2, 2021 Share Posted November 2, 2021 20 hours ago, kalabasa said: [email protected] = 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 Link to comment Share on other sites More sharing options...
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.";
Link to comment
Share on other sites