Jump to content
  • 0

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


Nero

Question


  • Group:  Members
  • Topic Count:  74
  • Topics Per Day:  0.02
  • Content Count:  194
  • Reputation:   2
  • Joined:  12/18/11
  • Last Seen:  

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

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2346
  • Joined:  10/28/11
  • Last Seen:  

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)

 

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