How to Add a custom spell line to a class?

A place where you can talk about anything Dawn of Light or DAOC related

Moderators: Project Admin, Support Team

How to Add a custom spell line to a class?

Postby TechMonkie » 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,
TechMonkie
DOL Visitor
 
Posts: 9
Joined: Wed Mar 23, 2005 8:45 pm

Postby Dexter » Sun Apr 10, 2005 2:47 pm

*bump*

Interessting question that I cannot answer right now and might need an answer to myself one day. ;)
User avatar
Dexter
DOL Novice
 
Posts: 80
Joined: Fri Dec 24, 2004 12:16 pm
ICQ: 37175104
Website: http://www.tir-nef-eglain.de
Location: Germany

Postby nor » Sun Apr 10, 2005 5:41 pm

Specs class is a simple collection of constants, you can do
player.AddSpecialization(SkillGase.GetSpecialization("Death Magic"));
just as well.
nor
Inactive Staff Member
 
Posts: 1584
Joined: Wed Mar 03, 2004 3:56 am

Postby Dexter » Sun Apr 10, 2005 5:49 pm

His problem is that it's not defined, not giving the spec line to a char. ;)
User avatar
Dexter
DOL Novice
 
Posts: 80
Joined: Fri Dec 24, 2004 12:16 pm
ICQ: 37175104
Website: http://www.tir-nef-eglain.de
Location: Germany

Postby nor » Sun Apr 10, 2005 6:01 pm

Using plain text string instead of constant from Specs class solves the problem, no need to add it so Specs class if it's just a script.
nor
Inactive Staff Member
 
Posts: 1584
Joined: Wed Mar 03, 2004 3:56 am

Postby Dexter » Sun Apr 10, 2005 6:08 pm

Ah, thanks! :)
User avatar
Dexter
DOL Novice
 
Posts: 80
Joined: Fri Dec 24, 2004 12:16 pm
ICQ: 37175104
Website: http://www.tir-nef-eglain.de
Location: Germany

Postby TechMonkie » Sun Apr 10, 2005 7:04 pm

==
Using plain text string instead of constant from Specs class solves the problem, no need to add it so Specs class if it's just a script.
==

Could you give me an example based off the information I've given in my original post? I'm afraid I'm not completely following you.

Thanks
TechMonkie
DOL Visitor
 
Posts: 9
Joined: Wed Mar 23, 2005 8:45 pm

Postby nor » Sun Apr 10, 2005 7:11 pm

player.AddSpecialization(SkillBase.GetSpecialization("Death Magic"));
nor
Inactive Staff Member
 
Posts: 1584
Joined: Wed Mar 03, 2004 3:56 am


Return to “%s” General

Who is online

Users browsing this forum: No registered users and 1 guest