Jump to content
  • 0

Token Quest time left


Question

Posted

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

  • 0
Posted

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;

 

 

  • 0
Posted
	.@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;

 

  • 0
Posted
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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...