Nero Posted October 11, 2019 Group: Members Topic Count: 74 Topics Per Day: 0.02 Content Count: 194 Reputation: 2 Joined: 12/18/11 Last Seen: April 8, 2020 Share 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 Link to comment Share on other sites More sharing options...
0 Emistry Posted October 12, 2019 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: 2 hours ago Share 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 Link to comment Share on other sites More sharing options...
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!!
Link to comment
Share on other sites
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.