Litro Endemic Posted December 14, 2013 Group: Members Topic Count: 25 Topics Per Day: 0.01 Content Count: 283 Reputation: 79 Joined: 06/13/13 Last Seen: June 7, 2023 Share Posted December 14, 2013 i want to make an NPC that will give the player an Item That Will Expire in the End Off Desember that will be on 31 Desember 2013 ex : if A player Accept it on 21 dessember it will expire 10 days after else if player accept it on 29 desember it will expire 2 days after if i make it with "rentitem" i am afraid my player will exploit its, can any one guide me to make this npc ?? Quote Link to comment Share on other sites More sharing options...
Patskie Posted December 14, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: Yesterday at 01:20 AM Share Posted December 14, 2013 Assuming you will allow the npc who will use the renitem command in December rentitem, (31*24*60*60 - gettime(5)*24*60*60); PS : This will not do the full work. It only consider the day difference from now up to 12-31-2013. And convert it to seconds. If you want to go into detailed portion of your request. And want an accurate calculation of seconds from now to 12-31-2013. then you need to do a dirty math. I have no time right now as i am doing many things. This is the least i could help Quote Link to comment Share on other sites More sharing options...
Litro Endemic Posted December 15, 2013 Group: Members Topic Count: 25 Topics Per Day: 0.01 Content Count: 283 Reputation: 79 Joined: 06/13/13 Last Seen: June 7, 2023 Author Share Posted December 15, 2013 Thanks for guidance... Its work like charm Pastkie Quote Link to comment Share on other sites More sharing options...
Question
Litro Endemic
i want to make an NPC that will give the player an Item That Will Expire in the End Off Desember that will be on 31 Desember 2013
ex :
if A player Accept it on 21 dessember it will expire 10 days after
else if player accept it on 29 desember it will expire 2 days after
if i make it with "rentitem" i am afraid my player will exploit its, can any one guide me to make this npc ??
Link to comment
Share on other sites
2 answers 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.