View previous topic :: View next topic |
Author |
Message |
lostdreamz
Joined: 19 Nov 2006 Posts: 26
|
Posted: Thu Jan 04, 2007 1:27 Post subject: Triggering a response |
|
|
Is it possible to get NWNX4 to run a program or plugin when it receives a specific trigger or string. I am asking as I wish to modify the server vault bic file when they logout. |
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Thu Jan 04, 2007 1:40 Post subject: |
|
|
That's what NWNX does in general. |
|
Back to top |
|
|
lostdreamz
Joined: 19 Nov 2006 Posts: 26
|
Posted: Thu Jan 04, 2007 2:02 Post subject: |
|
|
Umm I can prolly do it with an extended stored procedure when SqlServer is ready. But I was wondering if its easy to plug into NWNX4 directly. |
|
Back to top |
|
|
Grinning Fool
Joined: 12 Feb 2005 Posts: 264
|
Posted: Thu Jan 04, 2007 2:44 Post subject: |
|
|
Yes, you can write custom plugins for NWNX4; these plugins can do basically anything you can do in the C/C++ languages. While I personally wouldn't recommend modifying objects supplied by the game, it should certainly be possible to edit the physical BIC files using the published information about their structure, and/or one of the libraries already available. _________________ Khalidine, a NWN2 persistent world
Looking for volunteers. |
|
Back to top |
|
|
lostdreamz
Joined: 19 Nov 2006 Posts: 26
|
Posted: Thu Jan 04, 2007 11:53 Post subject: |
|
|
Oh ok well I guess I am asking is there any guidelines for writing plugins for NWNX4 not NWNX2. I noticed on the forums earlier that this was todo. |
|
Back to top |
|
|
Grinning Fool
Joined: 12 Feb 2005 Posts: 264
|
Posted: Thu Jan 04, 2007 20:17 Post subject: |
|
|
Hmm -- none yet unfortunately. What I'd recommend doing is downloading the source code for the project, and modeling after a simple plugin such as xp_timer . _________________ Khalidine, a NWN2 persistent world
Looking for volunteers. |
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Fri Jan 05, 2007 2:42 Post subject: |
|
|
There is a NWNX2 plugin called NWNX-Leto. Its main purpose is editing BIC files. Since it uses NWNX plugin (written in C++) as a bridge to the main DLL (written in Delphi), I think, it could be fairly simple to port the bridge code to NWNX4. |
|
Back to top |
|
|
lostdreamz
Joined: 19 Nov 2006 Posts: 26
|
Posted: Fri Jan 05, 2007 12:46 Post subject: |
|
|
I know but I dont want anything near as complicated as the leto script plugin. I will take a look at the plugin for timer and copy that. Thanks for everyones help. |
|
Back to top |
|
|
|