View previous topic :: View next topic |
Author |
Message |
Bonjour
Joined: 10 Jul 2009 Posts: 2
|
Posted: Fri Jul 10, 2009 4:24 Post subject: On Logon/Logoff Script |
|
|
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 |
|
|
Disco
Joined: 06 Dec 2006 Posts: 152
|
Posted: Fri Jul 10, 2009 23:09 Post subject: |
|
|
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 |
|
|
Kiri-Jolith
Joined: 01 Jul 2009 Posts: 10
|
Posted: Sat Jul 11, 2009 9:02 Post subject: |
|
|
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 |
|
|
Bonjour
Joined: 10 Jul 2009 Posts: 2
|
Posted: Tue Jul 14, 2009 3:11 Post subject: |
|
|
Ahhh thanks boys, will have a fiddle after this. Will get back to you if I hit a wall again. Much appreciated |
|
Back to top |
|
|
|