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 
 
On Logon/Logoff Script

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Scripts and Modules
View previous topic :: View next topic  
Author Message
Bonjour



Joined: 10 Jul 2009
Posts: 2

PostPosted: Fri Jul 10, 2009 4:24    Post subject: On Logon/Logoff Script Reply with quote

Hey guys,

Kinda new here, just having a fiddle with NWNX for a University project.

I am after a script that alters the database when a player's character enters the world and exits the world.

What is the function to do this?

In each script I need to edit the database and change a variable, which shouldn't be too hard.

Cheers,
Bonj.
Back to top
View user's profile Send private message
Disco



Joined: 06 Dec 2006
Posts: 152

PostPosted: Fri Jul 10, 2009 23:09    Post subject: Reply with quote

You are probably looking for the scripts in the module events OnClientEnter and OnClientLeave. Look under Edit/Module Properties and then under the tab Events.

I'd make a copy of the scripts you find there, include aps_include, and use the SQLExec function to do fire SQL commands at your database.
Back to top
View user's profile Send private message
Kiri-Jolith



Joined: 01 Jul 2009
Posts: 10

PostPosted: Sat Jul 11, 2009 9:02    Post subject: Reply with quote

You need this script, in addition to manually setting up a database for NWNX to use, as well as configuring NWNX for use with your system.

APS/NWNX 2
Back to top
View user's profile Send private message
Bonjour



Joined: 10 Jul 2009
Posts: 2

PostPosted: Tue Jul 14, 2009 3:11    Post subject: Reply with quote

Ahhh thanks boys, will have a fiddle after this. Will get back to you if I hit a wall again. Much appreciated Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Scripts and Modules 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