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 
 
Triggering a response

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Development
View previous topic :: View next topic  
Author Message
lostdreamz



Joined: 19 Nov 2006
Posts: 26

PostPosted: Thu Jan 04, 2007 1:27    Post subject: Triggering a response Reply with quote

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



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Thu Jan 04, 2007 1:40    Post subject: Reply with quote

That's what NWNX does in general.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
lostdreamz



Joined: 19 Nov 2006
Posts: 26

PostPosted: Thu Jan 04, 2007 2:02    Post subject: Reply with quote

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
View user's profile Send private message
Grinning Fool



Joined: 12 Feb 2005
Posts: 264

PostPosted: Thu Jan 04, 2007 2:44    Post subject: Reply with quote

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



Joined: 19 Nov 2006
Posts: 26

PostPosted: Thu Jan 04, 2007 11:53    Post subject: Reply with quote

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
View user's profile Send private message
Grinning Fool



Joined: 12 Feb 2005
Posts: 264

PostPosted: Thu Jan 04, 2007 20:17    Post subject: Reply with quote

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



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Fri Jan 05, 2007 2:42    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website Yahoo Messenger
lostdreamz



Joined: 19 Nov 2006
Posts: 26

PostPosted: Fri Jan 05, 2007 12:46    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Development 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