View previous topic :: View next topic |
Author |
Message |
Valgav
Joined: 28 Aug 2010 Posts: 53
|
Posted: Fri Mar 25, 2016 14:37 Post subject: Calling script externaly |
|
|
Is there any working way to execute nwscript using external call? nwnx_cool has bridge but it's more proof of concept than code for use on production.
I understand that we need some main loop hook and script like nwnx_executor which would probably be just loop while(true) but my skills are not enough to implement something like that. |
|
Back to top |
|
|
Baaleos
Joined: 02 Sep 2007 Posts: 830
|
|
Back to top |
|
|
Valgav
Joined: 28 Aug 2010 Posts: 53
|
Posted: Thu Apr 07, 2016 1:51 Post subject: |
|
|
I'm not even sure how to run this
My use is simply to notify server that it has something to do e.g.
- load resources
- kick players and restart server
- update drop table
- etc.
Of course i could have table with queue of tasks and run select on every heartbeat but it sounds like bad idea to do something like that.
So my idea is to predifine tasks as methods and force them to load with parameters.
So server wouldn't have to check for tasks by itself. |
|
Back to top |
|
|
|