Okay, so addspell works great and all, but there's one aspect in the code that is giving me a hard time. An example of what I'm trying to do:
Create a shield that gives a character a level X shield spell affect when worn. Issue is when a character of less than level X wears the item, the affect doesn't take effect.
Now I've looked through the code and know that there is a bit that can be set with the affect to ignore the level of the wearer, I just don't know how to set that bit. The name of it is OBJSPELL_IGNORE_LEVEL. I believe I might have an idea of how to set it by adding an optional parameter to the addspell command, but would like to know if anyone else has confronted this or knows how to get around it.
Oh, and I know how to remove the check for the characters level, but see potential in leaving the check for the bit in.
Create a shield that gives a character a level X shield spell affect when worn. Issue is when a character of less than level X wears the item, the affect doesn't take effect.
Now I've looked through the code and know that there is a bit that can be set with the affect to ignore the level of the wearer, I just don't know how to set that bit. The name of it is OBJSPELL_IGNORE_LEVEL. I believe I might have an idea of how to set it by adding an optional parameter to the addspell command, but would like to know if anyone else has confronted this or knows how to get around it.
Oh, and I know how to remove the check for the characters level, but see potential in leaving the check for the bit in.