Jump to content
  • 0
kalabasa

Token Quest time left

Question

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

5 answers to this question

Recommended Posts

  • 0

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;

 

 

Link to comment
Share on other sites

  • 0
	[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];

 

Link to comment
Share on other sites

  • 0

[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..

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.