View previous topic :: View next topic |
Author |
Message |
magaiti
Joined: 08 Aug 2014 Posts: 7
|
Posted: Tue Aug 12, 2014 20:50 Post subject: 2 spellslot fixes in nwnx_funcs & save/restore spells sc |
|
|
I tried to use nwnx_funcs to save/restore spells, and have found that 2 functions were broken (i tried version 0.941):
- GetRemainingSpellSlots - always returns 0;
- SetMemorizedSpellSlot - crashes server most of the time.
So I have fixed those functions and made my own plugin (basically a trimmed down version of nwnx_funcs) to use as a "patch" of sorts.
Here are the dll, sources and nwscript for saving/restoring spells.
https://drive.google.com/file/d/0B8mH67FquBndejExdXdnSy1WQU0/edit?usp=sharing
I understand that probably everyone interested in NWNX plugins for Windows has already started their own projects, but still posting here just in case this will be helpful for someone.
All fixes are in NssSpells.cpp, take code from there if you want to insert it into your own build of nwnx_funcs. |
|
Back to top |
|
|
magaiti
Joined: 08 Aug 2014 Posts: 7
|
|
Back to top |
|
|
|