uint32 newRaceMask = (team == TEAM_ALLIANCE) ? RACEMASK_ALLIANCE : RACEMASK_HORDE;
enum Races{ RACE_NONE = 0, RACE_HUMAN = 1, RACE_ORC = 2, RACE_DWARF = 3, RACE_NIGHTELF = 4, RACE_UNDEAD_PLAYER = 5, RACE_TAUREN = 6, RACE_GNOME = 7, RACE_TROLL = 8, RACE_GOBLIN = 9, RACE_BLOODELF = 10, RACE_DRAENEI = 11, //RACE_FEL_ORC = 12 //RACE_NAGA = 13, //RACE_BROKEN = 14, //RACE_SKELETON = 15, //RACE_VRYKUL = 16, //RACE_TUSKARR = 17, //RACE_FOREST_TROLL = 18, //RACE_TAUNKA = 19, //RACE_NORTHREND_SKELETON = 20, //RACE_ICE_TROLL = 21, RACE_WORGEN = 22};// max+1 for player race#define MAX_RACES 23#define RACEMASK_ALL_PLAYABLE ((1<<(RACE_HUMAN-1)) |(1<<(RACE_ORC-1)) |(1<<(RACE_DWARF-1)) | (1<<(RACE_NIGHTELF-1))|(1<<(RACE_UNDEAD_PLAYER-1))|(1<<(RACE_TAUREN-1)) | (1<<(RACE_GNOME-1)) |(1<<(RACE_TROLL-1)) |(1<<(RACE_GOBLIN-1))| (1<<(RACE_BLOODELF-1))|(1<<(RACE_DRAENEI-1)) |(1<<(RACE_WORGEN-1)) )#define RACEMASK_ALLIANCE ((1<<(RACE_HUMAN-1)) | (1<<(RACE_DWARF-1)) | (1<<(RACE_NIGHTELF-1)) | (1<<(RACE_GNOME-1)) | (1<<(RACE_DRAENEI-1))) |(1<<(RACE_WORGEN-1)) )
#define MAX_RACES 23
#define MAX_RACES 14
I am currently on it working, too but I don't know if this helps.Quote#define MAX_RACES 23I might be wrong but shouldn't the MAX_RACES only be defined by the count of the playable races? The count should be in your case about 13. With the plus 1 note at the end it should be 14.Quote#define MAX_RACES 14This should be about right.
You cannot add an extra race, you may only use the races that are defined, in my case I use broken for Worgen.I have all playable races enabled since I'm using 6 extra races atm and if I want to add more I don't have to do a recompile...[spoiler:h02r0w6z]Code: [Select]// Race value is index in ChrRaces.dbcenum Races{ RACE_NONE = 0, RACE_HUMAN = 1, RACE_ORC = 2, RACE_DWARF = 3, RACE_NIGHTELF = 4, RACE_UNDEAD_PLAYER = 5, RACE_TAUREN = 6, RACE_GNOME = 7, RACE_TROLL = 8, RACE_GOBLIN = 9, RACE_BLOODELF = 10, RACE_DRAENEI = 11, RACE_FEL_ORC = 12, RACE_NAGA = 13, RACE_BROKEN = 14, RACE_SKELETON = 15, RACE_VRYKUL = 16, RACE_TUSKARR = 17, RACE_FOREST_TROLL = 18, RACE_TAUNKA = 19, RACE_NORTHREND_SKELETON = 20, RACE_ICE_TROLL = 21};// max+1 for player race#define MAX_RACES 22#define RACEMASK_ALL_PLAYABLE ((1<<(RACE_HUMAN-1)) |(1<<(RACE_ORC-1)) |(1<<(RACE_DWARF-1)) | (1<<(RACE_NIGHTELF-1))|(1<<(RACE_UNDEAD_PLAYER-1))|(1<<(RACE_TAUREN-1)) | (1<<(RACE_GNOME-1)) |(1<<(RACE_TROLL-1)) |(1<<(RACE_GOBLIN-1))| (1<<(RACE_BLOODELF-1))|(1<<(RACE_DRAENEI-1)) |(1<<(RACE_FEL_ORC-1))| (1<<(RACE_NAGA-1)) |(1<<(RACE_BROKEN-1)) |(1<<(RACE_SKELETON-1))| (1<<(RACE_VRYKUL-1)) |(1<<(RACE_TUSKARR-1)) |(1<<(RACE_FOREST_TROLL-1))| (1<<(RACE_TAUNKA-1)) |(1<<(RACE_NORTHREND_SKELETON-1)) |(1<<(RACE_ICE_TROLL-1)) )[/spoiler:h02r0w6z]
// Race value is index in ChrRaces.dbcenum Races{ RACE_NONE = 0, RACE_HUMAN = 1, RACE_ORC = 2, RACE_DWARF = 3, RACE_NIGHTELF = 4, RACE_UNDEAD_PLAYER = 5, RACE_TAUREN = 6, RACE_GNOME = 7, RACE_TROLL = 8, RACE_GOBLIN = 9, RACE_BLOODELF = 10, RACE_DRAENEI = 11, RACE_FEL_ORC = 12, RACE_NAGA = 13, RACE_BROKEN = 14, RACE_SKELETON = 15, RACE_VRYKUL = 16, RACE_TUSKARR = 17, RACE_FOREST_TROLL = 18, RACE_TAUNKA = 19, RACE_NORTHREND_SKELETON = 20, RACE_ICE_TROLL = 21};// max+1 for player race#define MAX_RACES 22#define RACEMASK_ALL_PLAYABLE ((1<<(RACE_HUMAN-1)) |(1<<(RACE_ORC-1)) |(1<<(RACE_DWARF-1)) | (1<<(RACE_NIGHTELF-1))|(1<<(RACE_UNDEAD_PLAYER-1))|(1<<(RACE_TAUREN-1)) | (1<<(RACE_GNOME-1)) |(1<<(RACE_TROLL-1)) |(1<<(RACE_GOBLIN-1))| (1<<(RACE_BLOODELF-1))|(1<<(RACE_DRAENEI-1)) |(1<<(RACE_FEL_ORC-1))| (1<<(RACE_NAGA-1)) |(1<<(RACE_BROKEN-1)) |(1<<(RACE_SKELETON-1))| (1<<(RACE_VRYKUL-1)) |(1<<(RACE_TUSKARR-1)) |(1<<(RACE_FOREST_TROLL-1))| (1<<(RACE_TAUNKA-1)) |(1<<(RACE_NORTHREND_SKELETON-1)) |(1<<(RACE_ICE_TROLL-1)) )
You cannot rename a defined race in the core if that's what you're asking.All you have to do is change the files that these dbc files call for chrsections creaturemodeldatainfo creaturedisplayinfo and you'r solid.
enum Races{ RACE_NONE = 0, RACE_HUMAN = 1, RACE_ORC = 2, RACE_DWARF = 3, RACE_NIGHTELF = 4, RACE_UNDEAD_PLAYER = 5, RACE_TAUREN = 6, RACE_GNOME = 7, RACE_TROLL = 8, RACE_GOBLIN = 9, RACE_BLOODELF = 10, RACE_DRAENEI = 11, RACE_FEL_ORC = 12, //RACE_NAGA = 13, //RACE_BROKEN = 14, //RACE_SKELETON = 15, //RACE_VRYKUL = 16, //RACE_TUSKARR = 17, //RACE_FOREST_TROLL = 18, //RACE_TAUNKA = 19, //RACE_NORTHREND_SKELETON = 20, //RACE_ICE_TROLL = 21,};// max+1 for player race#define MAX_RACES 13#define RACEMASK_ALL_PLAYABLE ((1<<(RACE_HUMAN-1)) |(1<<(RACE_ORC-1)) |(1<<(RACE_DWARF-1)) | (1<<(RACE_NIGHTELF-1))|(1<<(RACE_UNDEAD_PLAYER-1))|(1<<(RACE_TAUREN-1)) | (1<<(RACE_GNOME-1)) |(1<<(RACE_TROLL-1)) |(1<<(RACE_GOBLIN-1))| (1<<(RACE_BLOODELF-1))|(1<<(RACE_DRAENEI-1)) |(1<<(RACE_FEL_ORC-1)) )#define RACEMASK_ALLIANCE ((1<<(RACE_HUMAN-1)) | (1<<(RACE_DWARF-1)) | (1<<(RACE_NIGHTELF-1)) | (1<<(RACE_GNOME-1)) | (1<<(RACE_DRAENEI-1)) |(1<<(RACE_FEL_ORC-1)) )#define RACEMASK_HORDE RACEMASK_ALL_PLAYABLE & ~RACEMASK_ALLIANCE
Yeah you are right a facepalm is needed because I uploaded the wrong interface... =_= That was the MoP UI Gotta excuse me for that here are the right fileshttps://mega.co.nz/#!6oEQlIgK!kdX-P8ljywTJ9LA_sOOSwIPPNqnVcSYzOEAMkXqe2XU