Jump to content
  • 0

[Help] Reuse on a quest ?


themis

Question

Hey guys.i would like to find out how to set a reuse to a quest that allready exist and has unlimited time's to use it?

For example quest with name WatchingEyes has unlimited uses. when you complete it, you can get the quest again and use it unlimited times per day.

how am i going to set a cooldown to it? i want every 12 hours. here is the quest 

 

https://textuploader.com/1dmtt

 

thnx you for your help i appreceate it!

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Store the MS when the char is completing the q and check if 12 passed when the char is requesting a new one...

 

if (player.getQEndTime(601) + TimeUnit.HOURS.toMillis(12) <  System.currentTimeMillis())

       .... // 12 hours passed

else

       .... // Not passed

Edited by melron
Link to comment
Share on other sites

  • 0

Quest completion, you mark it, store the time. Then, you compare the time on quest start. I guess it's obvious.

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.
Note: Your post will require moderator approval before it will be visible.

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

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock