Only your base NWN ability score counts.
Subrace bonus, rings, spells and all the other ways to increase the scores don't count.
In other words: To cast level 9 spells, a wizard would require at least 19 int when he last was presented with the opportunity to increase his ability points (either character creation, or each 4th level).
After having said that, I'm not really sure if the Epic Intelligence/Epic Wisdom/Epic Charisma feats count or not, but that's kind of irrevelant for the moment, I think.
![Wink ;)](https://forums.layonara.com/Smileys/default/wink.gif)
Side note: My own character is a level 16 cleric for the moment, with a base wisdom of 18 (27 with her usual items
![Wink ;)](https://forums.layonara.com/Smileys/default/wink.gif)
). She will get her level 9 spells on level 20 instead of level 17 as usual for most other characters.
![Smiley :)](https://forums.layonara.com/Smileys/default/smiley.gif)