Jump to content
  • 0
Riotblade

Need some timer help.

Question

https://pastebin.com/GhsfkfWQ  I got this script its working fine however If you log out with a quest still active and then log back in after the timer would've expired, you can't take a new quest. The NPC still thinks you're on the old one, and you don't gain any progress towards completion if you kill the enemy listed.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 1

change

	if(Hunter) {
		mes "You have killed ^880000"+HuntCount+"^000000/^0000FF"+Amt+"^000000 "+getmonsterinfo(Hunt,0)+"s, keep it up!";
		close;
	}

into

	if(Hunter && gettimetick(2) < HuntDelay) {
		mes "You have killed ^880000"+HuntCount+"^000000/^0000FF"+Amt+"^000000 "+getmonsterinfo(Hunt,0)+"s, keep it up!";
		close;
	}

 

  • Upvote 1
Link to comment
Share on other sites

  • 0
On 8/25/2021 at 11:44 PM, Emistry said:

change

	if(Hunter) {
		mes "You have killed ^880000"+HuntCount+"^000000/^0000FF"+Amt+"^000000 "+getmonsterinfo(Hunt,0)+"s, keep it up!";
		close;
	}

into

	if(Hunter && gettimetick(2) < HuntDelay) {
		mes "You have killed ^880000"+HuntCount+"^000000/^0000FF"+Amt+"^000000 "+getmonsterinfo(Hunt,0)+"s, keep it up!";
		close;
	}

Another question  but would it be better to use the quest db for timers or is it ok with just this one?

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.