SetSpellKnown

// MAP 3/24/2009 // EXPERIMENTAL- USE AT YOUR OWN RISK!  This one can break a character pretty badly if mis-used. // This function sets whether a given spell is known or not by a creature // Spells cannot be added in excess of spellgain rules for classes that have spell gain restrictions. // oCreature - spellcasting creature // nClassPosition - which class (0-3)? If creature does not have a class in that position, this function does nothing. // nSpell - which spell? // bKnown - if TRUE the spell is added to the class specified; if FALSE it is removed if it is in the class specified, //         assuming that the class is not one which knows all spells by default (cleric, et al) // bTrackWithLevel - attach the spell gain/loss to the character's currnet level. If the level is removed, the change is undone. // NOTES // IMPORTANT: Most usages of this will cause characters to fail 'enforce legal character' restrictions. void SetSpellKnown(object oCreature, int nClassPosition, int nSpell, int bKnown = TRUE, int bTrackWithLevel = TRUE);