Jump to content
The forums will be going offline for an extended maintenance period at 1400hrs GMT on 19th June 2025. The number of hours for this downtime is intentionally not advertised due to the nature of these upgrades. ×
  • 0

Token Quest time left


kalabasa

Question


  • Group:  Members
  • Topic Count:  123
  • Topics Per Day:  0.04
  • Content Count:  478
  • Reputation:   14
  • Joined:  11/30/17
  • Last Seen:  

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

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.01
  • Content Count:  1691
  • Reputation:   717
  • Joined:  12/21/14
  • Last Seen:  

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);

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  123
  • Topics Per Day:  0.04
  • Content Count:  478
  • Reputation:   14
  • Joined:  11/30/17
  • Last Seen:  

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

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.01
  • Content Count:  1691
  • Reputation:   717
  • Joined:  12/21/14
  • Last Seen:  

	.@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;

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  123
  • Topics Per Day:  0.04
  • Content Count:  478
  • Reputation:   14
  • Joined:  11/30/17
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.01
  • Content Count:  1691
  • Reputation:   717
  • Joined:  12/21/14
  • Last Seen:  

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

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