Hm yeah, I'm not sure how I would go about fixing the ancient mace un-equipping and re-equipping; it's because the spec uses 100% spec energy and it detects that you're out of spec so it chnages back to main weapon until its back at 100% energy. It's inefficient but should still work okay.
And that NPE is odd, it's from a third party antiban so I'm not super sure why it's happening, what spellbook are you on?
Sorry for just getting back to this, I have no idea why I get this error either, it seems to keep occuring though, I'm on ancient spellbook though - unsure if that makes a differences
Would like to say I decided to just use a dds instead of a ancient mace, as it keeps messing with an ancient mace as I stated before, not a problem though, excellent script, here's a proggy from tonight on my 1 def pure to show everybody that this script is awesome :