Jump to content
  • 0

Need some timer help.


Question

Posted

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.

3 answers to this question

Recommended Posts

  • 1
Posted

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

  • 0
Posted

in this scenario, it make no different, but if you are switching to quest_db then you had to rewrite the script and clientside quest info files.

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