This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [SOLVED] A new language  (Read 1118 times)

rial

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 7
    • View Profile
[SOLVED] A new language
« on: September 07, 2013, 11:49:06 pm »
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
« Last Edit: October 03, 2013, 10:58:24 pm by Admin »

rial

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 7
    • View Profile
Re: [QUESTION] A new language
« Reply #1 on: October 03, 2013, 10:57:54 pm »
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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »