Hello,
I've a script to scan the items of player when they logged in game. These items lasts thirty days.
Like that:
How I do to when I look at the item I know the time remaining to finished the 30 days?
Ex:
I've a script to scan the items of player when they logged in game. These items lasts thirty days.
Like that:
PHP:
doItemSetAttribute(item.uid, "duration", os.time() + 30 * 24 * 60 * 60)
How I do to when I look at the item I know the time remaining to finished the 30 days?
Ex:
PHP:
This item will expire on 27d and 50 minutes