View previous topic :: View next topic |
Author |
Message |
DM_Vecna
Joined: 10 Feb 2010 Posts: 37
|
Posted: Mon Mar 29, 2010 20:27 Post subject: understanding expiration |
|
|
I noticed that a few of the standard NWNX functions have a expiration parameter.
Can anyone explain how this can best be utilized.
Case in point: I have a custom charm spell that will wear off in time. I am setting some persistent integers to track when this will expire. Is there a way to have this auto-delete from the database after the expiration?
Bonus question: Is there an easier way to do the above like use a tmestamp rather than four separate variables for
int nCurYear = GetCalendarYear();
int nCurMonth = GetCalendarMonth();
int nCurDay = GetCalendarDay();
int nCurHour = GetTimeHour();
Thanks ! |
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
|
Back to top |
|
|
DM_Vecna
Joined: 10 Feb 2010 Posts: 37
|
Posted: Tue Jun 08, 2010 1:21 Post subject: |
|
|
Hey Virusman;
ANy chance you would post this library again? the link does not connect anymore and I just wanted to make sure I copied it correctly. Thank you so so much. |
|
Back to top |
|
|
|