Forum > Serverside Modding
[SOLVED] A new language
(1/1)
rial:
Hello,
I recently wanted to add a new language for a custom race. But In Game, when I want to use this language, the only thing that happens is this message : Unknown language.
I modified the following files :
_SharedDefines.h : Added a row in enum Language and set his id to 39. Changed the #define LANGUAGES_COUNT from 19 to 20.
_Languages.dbc : Added a new row with the name and the id (39).
_LanguageWords.dbc : Added new words for the wanted language with his id (39).
_Spell.dbc : Added a new row for the language (copied from language[common], just changed the language id from 7 to 39). (spell id 91000)
_SkillLine.dbc : Added a new row to define the language in the skills (skill id 809).
_SkillLineAbility.dbc : Added a new row to bind the spell to the skill (30000,809,91000,RaceMask,etc...)
_SkillRaceClassInfo.dbc : Added a new row to allow the skill to the custom race.
Did I forgot to change a value somewhere ? Does somebody know what I made wrong ? :( Hope you can help me, and thanks fo reading
rial:
I found out what I forgot, so I post the solution :
_ SharedDefines.h : go to "enum SkillType" and add a line at the end
SKILL_PET_EXOTIC_SPIRIT_BEAST = 788, SKILL_LANG_yourlanguagename = 809
809 refers to skillline.dbc and is the ID I gived to my language.
_ ObjectMgr.cpp : go to "LanguageDesc lang_description[LANGUAGES_COUNT]" and add a line at the end
{ LANG_GOBLIN_BINARY, 0, 0 }, { LANG_yourlanguagename, 91000, SKILL_LANG_yourlanguagename }
91000 refers to spell.dbc and is the ID of the spell used to learn the language.
Navigation
[0] Message Index
|