Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Serverside Modding => Tutorials => Topic started by: detonatorss on April 09, 2012, 07:53:38 pm

Title: [TUTORIAL] How To Create a New Class
Post by: detonatorss 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, ...)
};
Title: Re: How To Create a New Class
Post by: glararan 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.
Title: Re: How To Create a New Class
Post by: detonatorss 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  -.-
Title: Re: How To Create a New Class
Post by: Supora 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
Title: Re: How To Create a New Class
Post by: detonatorss 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,
};
Title: Re: How To Create a New Class
Post by: Shutok2 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
Title: Re: [Tutorial] How To Create a New Class
Post by: ringtail2390 on May 06, 2012, 02:47:12 pm
What about any serverside modding to the core? How would you do that?