Nero Posted October 11, 2019 Posted October 11, 2019 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!! Quote
0 Emistry Posted October 12, 2019 Posted October 12, 2019 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) Quote
Question
Nero
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.