Jump to content
  • 0
Sign in to follow this  
iCORE

[request] Daily Reward

Question

can you help me guys to set a "daily reward" script in a form of npc that has a timer that reset every 24 hours

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Try something like this. You've got to change the sprite, NPC position and something else to better suit your needs:

 

prontera,150,150,4	script	rewards	60,{	mes "Here's your daily reward!";	next;	if (#nextrewardtime > gettimetick(2)) {		mes "Sorry, it seems you've already got it!";	}	else {		mes "Take this!";		getitem 512, 1; // Apple		#nextrewardtime = gettimetick(2) + 24*60*60; // delay by 1 day	}	close;}

 

It parses correctly, but didn't test ingame.

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.