logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
understanding expiration

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Database related
View previous topic :: View next topic  
Author Message
DM_Vecna



Joined: 10 Feb 2010
Posts: 37

PostPosted: Mon Mar 29, 2010 20:27    Post subject: understanding expiration Reply with quote

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
View user's profile Send private message Send e-mail
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Mon Mar 29, 2010 21:17    Post subject: Reply with quote

http://pastebin.myrror.net/2626
_________________
In Soviet Russia, NWN plays you!
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
DM_Vecna



Joined: 10 Feb 2010
Posts: 37

PostPosted: Tue Jun 08, 2010 1:21    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Database related All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group