Author Topic: More spellcaster types?  (Read 265 times)

Legacy_Roddish

  • Jr. Member
  • **
  • Posts: 82
  • Karma: +0/-0
More spellcaster types?
« on: August 28, 2011, 07:23:16 pm »


               for my next big bungle, ive been trying to give a spelllist to the palemaster class, so i made him a packsp* and a cls_spgn*, made the appropriate entries in classes.2da and package.2da (remembering also to set as a spellcaster).
but in the game, mr palemaster gets a nice palemaster page in his spellbook, but no spells ever become available to him and his spell-level tab icons dont show either.

whats with that? am i barking up the wrong tree somewhere? meh!
               
               

               
            

Legacy_Androrc

  • Full Member
  • ***
  • Posts: 188
  • Karma: +0/-0
More spellcaster types?
« Reply #1 on: August 28, 2011, 10:41:55 pm »


               IIRC the game is hardcoded so that spell tables are only possible for the first 11 classes in the 2da =/
               
               

               
            

Legacy_Failed.Bard

  • Hero Member
  • *****
  • Posts: 1409
  • Karma: +0/-0
More spellcaster types?
« Reply #2 on: August 29, 2011, 06:31:02 am »


               Is this for a SP module, a MP server, or just to see if it can be done?

 If it's one of the latter two, the answer is likely to try the NWNX function for altering known spells, either off the standard server add on or NWNCX.  The function to try would be:

void NWNXFuncs_AddKnownSpell(object oCreature, int iclass, int iSpellLevel, int iSpell, int iCharacterLevel=0)

It's in NWNX_FUNCS in the windows version, not sure if it's in a same named one for linux.