Jump to content
  • 0

How to add quest delay? or NPC talk delay per character


Question

Posted

Example I want to get item to one npc and it will require 1 hr again to get or talk to him. (Timer will count even you log out)

Thanks!!

1 answer to this question

Recommended Posts

  • 0
Posted
prontera,155,181,5	script	Sample	4_F_KAFRA1,{
	
	if (gettimetick(2) > #COOLDOWN_REWARD) {
		#COOLDOWN_REWARD += (gettimetick(2) + 60); // 60 seconds.
		getitem 512, 1;
		getitem 512, 2;
		getitem 512, 3;
	}
	mes "You obtained rewards, come back again after "+(#COOLDOWN_REWARD - gettimetick(2))+" seconds.";
	close;
}

if you're using the quest system then you can use this to check the duration.

checkquest(<quest_id>, PLAYTIME, 2)

 

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