As discussed yesterday on NWNX discord, the best way to do this is to have your module push the leto commands to redis, then either edit Leto, or have an intermediate application subscribe to redis and pass these commands.
No work required on the NWNX side. In fact, porting the NWNX leto plugin as is to NWNXEE would just open the servers up to a whole new class of very bad security vulnerabilities.
However, if all you're doing is just modifying the stats for subraces, maybe it's easier to just use the Creature NWNX plugin and modify them directly:
Thanks for the info Sherincall. After some advice in PMs, I was informed that setting a single variable to FALSE deactivates Leto in Rhun. The subrace engine then reverts to using player skins for subrace stats, which work just as well.
Comments
No work required on the NWNX side. In fact, porting the NWNX leto plugin as is to NWNXEE would just open the servers up to a whole new class of very bad security vulnerabilities.
However, if all you're doing is just modifying the stats for subraces, maybe it's easier to just use the Creature NWNX plugin and modify them directly:
https://github.com/nwnxee/unified/blob/master/Plugins/Creature/NWScript/nwnx_creature.nss
Here's a sample of how you can do simple subraces with it:
https://gist.github.com/mtijanic/6ee05fdc842440bd0cce187a93dd1327
I'd like to do that as well.. Thanks!
No guarantees.
You could try...
--1
Open the script editor search "sha_mod"
Comment out line "sha_mod_load"
and
"sha_mod_hb"
They should be in your module on load and heartbeat.
--2
Open the script editor search "sha_on"
Comment out lines:
"sha_on_itemactiv"
"sha_on_cl_leave"
"sha_on_itemactiv"
"sha_on_pceqpitem"
"sha_on_modload"
maybe others, maybe less
--3
Open your module properties in the toolbox.
edit-> module properties
Events tab
then look around for "sha_"
--4
search "sha_subr_methds"
Then comment out those includes and the function calls.
Careful about spell hooks.
I kept mine.
--5
I had some other Leto calls too so find those if you have them
Found mine in step 3
--6
Build Module ->
Compile Scripts
Fix errors and repeat 6 as necessary.
This will enable the bioware database based shayan subrace engine (turning off leto functionality):
in the script sha_subr_consts:
set ENABLE_LETO to false on line 27
example:
const int ENABLE_LETO = FALSE;