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: [TUTORIAL] How To Create a New Class  (Read 5557 times)

detonatorss

  • Registred Member
  • Model Change Addict
  • *****
  • Posts: 233
    • View Profile
[TUTORIAL] How To Create a New Class
« on: April 09, 2012, 07:53:38 pm »
Part 1


InterfaceFrameXMLConstants.lua

SEARCH:


["DEATHKNIGHT"] = { r = 0.77, g = 0.12 , b = 0.23 },

REPLACE:

["DEATHKNIGHT"] = { r = 0.77, g = 0.12 , b = 0.23 },
["CUSTOM"] = { r = 0.0, g = 0.45, b = 0.45 },


*****************************************************

SEARCH:

CLASS_SORT_ORDER = {
   "WARRIOR",
   "DEATHKNIGHT",
   "PALADIN",
   "PRIEST",
   "SHAMAN",
   "DRUID",
   "ROGUE",
   "MAGE",
   "WARLOCK",
   "HUNTER",

};


REPLACE:

CLASS_SORT_ORDER = {
   "WARRIOR",
   "DEATHKNIGHT",
   "PALADIN",
   "PRIEST",
   "SHAMAN",
   "DRUID",
   "ROGUE",
   "MAGE",
   "WARLOCK",
   "HUNTER",
   "CUSTOM",
};


*****************************************************

Search:

CLASS_ICON_TCOORDS = {
   ["WARRIOR"]      = {0, 0.25, 0, 0.25},
   ["MAGE"]      = {0.25, 0.49609375, 0, 0.25},
   ["ROGUE"]      = {0.49609375, 0.7421875, 0, 0.25},
   ["DRUID"]      = {0.7421875, 0.98828125, 0, 0.25},
   ["HUNTER"]      = {0, 0.25, 0.25, 0.5},
   ["SHAMAN"]       = {0.25, 0.49609375, 0.25, 0.5},
   ["PRIEST"]      = {0.49609375, 0.7421875, 0.25, 0.5},
   ["WARLOCK"]      = {0.7421875, 0.98828125, 0.25, 0.5},
   ["PALADIN"]      = {0, 0.25, 0.5, 0.75},
   ["DEATHKNIGHT"]           = {0.25, .5, 0.5, .75},

};

Part 2

ChrClasses.dbc

LACK OF SPELL FAMILY

struct ChrClassesEntry
{
    uint32  ClassID;                                        // 0
                                                            // 1, unused
    uint32  powerType;                                      // 2
                                                            // 3-4, unused
    //char*       name[16];                                 // 5-20 unused
                                                            // 21 string flag, unused
    //char*       nameFemale[16];                           // 21-36 unused, if different from base (male) case
                                                            // 37 string flag, unused
    //char*       nameNeutralGender[16];                    // 38-53 unused, if different from base (male) case
                                                            // 54 string flag, unused
                                                            // 55, unused
    uint32  spellfamily;                                    // 56
                                                            // 57, unused
    uint32  CinematicSequence;                              // 58 id from CinematicSequences.dbc
    uint32  expansion;                                       // 59 (0 - original race, 1 - tbc addon, ...)
};
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Desktop


Laptop

glararan

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 162
    • View Profile
    • http://glararan.eu
Re: How To Create a New Class
« Reply #1 on: April 10, 2012, 12:51:27 pm »
This tutorial is not completed...u havent posts for Emulator edits. Example for TrinityCore2 you need add to database stats...you dont posts any copy stats...so first error for new users.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

detonatorss

  • Registred Member
  • Model Change Addict
  • *****
  • Posts: 233
    • View Profile
Re: How To Create a New Class
« Reply #2 on: April 10, 2012, 05:51:03 pm »
it's the same as custom races if you know how to create custom races is the same but a little bit diferent in dbc  -.-
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Desktop


Laptop

Supora

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 143
    • View Profile
Re: How To Create a New Class
« Reply #3 on: April 10, 2012, 08:33:32 pm »
also you need to change som lines of code in core like with adding a new race
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

detonatorss

  • Registred Member
  • Model Change Addict
  • *****
  • Posts: 233
    • View Profile
Re: How To Create a New Class
« Reply #4 on: April 12, 2012, 05:26:23 pm »
{
    CLASS_NONE          = 0,
    CLASS_WARRIOR       = 1,
    CLASS_PALADIN       = 2,
    CLASS_HUNTER        = 3,
    CLASS_ROGUE         = 4,
    CLASS_PRIEST        = 5,
    CLASS_DEATH_KNIGHT  = 6,
    CLASS_SHAMAN        = 7,
    CLASS_MAGE          = 8,
    CLASS_WARLOCK       = 9,
    //CLASS_UNK           = 10,
    CLASS_DRUID         = 11,
    CLASS_CUSTOM    = 12,
};
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Desktop


Laptop

Shutok2

  • Registred Member
  • Loreweaver
  • *****
  • Posts: 90
    • View Profile
Re: How To Create a New Class
« Reply #5 on: April 14, 2012, 02:49:30 pm »
This is less than 50% of real guide, because it have a lot of lines of code in the emulator.

btw, thanks to share it, it's useful to start
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

ringtail2390

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 10
    • View Profile
Re: [Tutorial] How To Create a New Class
« Reply #6 on: May 06, 2012, 02:47:12 pm »
What about any serverside modding to the core? How would you do that?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »