How to Add a custom spell line to a class?
PostPosted: Sat Apr 09, 2005 7:16 pm
Hey guys,
Been messing around w/ the databases a bit more, and I'm currently trying to figure out how to add an entirely new line of spells to the game and get them to work.
So far I've done the following w/out a problem:
:: Updated Spell.xml ::
- Added all descriptions and values in new line
- SpellID is currently 16000
:: Updated SpellLine.xml ::
- Added a new line of spells called 'Death Magic'
:: Updated LineXSpell.xml ::
- Added entry into Death Magic line using SpellID of 16000
- Assigned spell at level 1 in the spec line (should award it automatically)
Now, if I start the server w/ these changes in place, when it begins to load everything, and gets to the spells, it sees the Death Magic line, and the one spell assigned to it. Just to see if I could get it to pick up on a class, I added the following line to the OnLevelUp function:
player.AddSpellLine(SkilBase.GetSpellLine("Death Magic"));
Now, when I create a character w/ this line in place and level them to 5 (where they are supposed to get the spell), it says they have learned the Death Magic line, however it does not give them the actual spell line in their Magic list.
After digging around, I also found that it looks like they have to be given access to the specialization as well. As a result, I added this line:
player.AddSpecialization(SkillGase.GetSpecialization(Specs.Death_ Magic));
Once I do this, and attempt to start the server, I get the following error:
ERR Script compilation failed because:
'DOL.GS.Specs' does not contain a definition for 'Death_Magic'
scripts\ClassElementalist.cs Line:48 Col: 57
Now it looks to me that I have to declare or setup the Death_Magic line somewhere aside from the .xml files, but I have not been able to find anything else.
Can anyone give me a walkthrough, step by step, or possibly direct me to a place where I can enter this type of information into the relative .xml files and databases in order to add a new spell line to a character class?
My ultimate goal is to create 2 to 3 new classes to play with, but I'll be picking different spell mechanics from varying lines in order to make this new line. I think I understand how to enter the spell information into the Spells.xml line, how to create a new Spell List via the SpellList.xml file, and how to associate them together via the LineXSpell.xml file. However, it seems I'm missing something somewhere, and I'm not familiar enough w/ the system yet to know where that is.
Can anyone help?
Thanks,
Been messing around w/ the databases a bit more, and I'm currently trying to figure out how to add an entirely new line of spells to the game and get them to work.
So far I've done the following w/out a problem:
:: Updated Spell.xml ::
- Added all descriptions and values in new line
- SpellID is currently 16000
:: Updated SpellLine.xml ::
- Added a new line of spells called 'Death Magic'
:: Updated LineXSpell.xml ::
- Added entry into Death Magic line using SpellID of 16000
- Assigned spell at level 1 in the spec line (should award it automatically)
Now, if I start the server w/ these changes in place, when it begins to load everything, and gets to the spells, it sees the Death Magic line, and the one spell assigned to it. Just to see if I could get it to pick up on a class, I added the following line to the OnLevelUp function:
player.AddSpellLine(SkilBase.GetSpellLine("Death Magic"));
Now, when I create a character w/ this line in place and level them to 5 (where they are supposed to get the spell), it says they have learned the Death Magic line, however it does not give them the actual spell line in their Magic list.
After digging around, I also found that it looks like they have to be given access to the specialization as well. As a result, I added this line:
player.AddSpecialization(SkillGase.GetSpecialization(Specs.Death_ Magic));
Once I do this, and attempt to start the server, I get the following error:
ERR Script compilation failed because:
'DOL.GS.Specs' does not contain a definition for 'Death_Magic'
scripts\ClassElementalist.cs Line:48 Col: 57
Now it looks to me that I have to declare or setup the Death_Magic line somewhere aside from the .xml files, but I have not been able to find anything else.
Can anyone give me a walkthrough, step by step, or possibly direct me to a place where I can enter this type of information into the relative .xml files and databases in order to add a new spell line to a character class?
My ultimate goal is to create 2 to 3 new classes to play with, but I'll be picking different spell mechanics from varying lines in order to make this new line. I think I understand how to enter the spell information into the Spells.xml line, how to create a new Spell List via the SpellList.xml file, and how to associate them together via the LineXSpell.xml file. However, it seems I'm missing something somewhere, and I'm not familiar enough w/ the system yet to know where that is.
Can anyone help?
Thanks,