• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] Error Createing new class:S

Status
Not open for further replies.

albag

Respected Member
Hello i been trying to make everying to work but it wont..

it keep says
Player 2 has incorrect race/class pair. Don't build enum.
Player 4 has incorrect race/class pair. Don't build enum.
Player 52 has incorrect race/class pair. Don't build enum.
Player 53 has incorrect race/class pair. Don't build enum.
Player::Create: Possible hacking-attempt: Account 1 tried creating a character named 'Qwdqwd' with an invalid race/class pair (1/6) - refusing to do so.

Code:
// Race value is index in ChrRaces.dbc
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_NAGA = 13,
	RACE_BROKEN = 14,
	RACE_VRYKUL = 16
};

// max+1 for player race
#define MAX_RACES         17

#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_BLOODELF - 1)) | \
	(1 << (RACE_DRAENEI - 1)) | (1 << (RACE_NAGA - 1)) | (1 << (RACE_BROKEN - 1)) | (1 << (RACE_VRYKUL - 1)) | (1 << (RACE_GOBLIN - 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_NAGA - 1)) | (1 << (RACE_BROKEN - 1)))

#define RACEMASK_HORDE RACEMASK_ALL_PLAYABLE & ~RACEMASK_ALLIANCE

img 1
70z8g1.png



img 2

35m2lna.png


img 3

2cwtzjt.png
 

albag

Respected Member
i did the faction and char all that still gives error;(

- - - Updated - - -

CharBaseInfo.dbc
CharStartOutfit.dbc
 

Tommy

Founder
i did the faction and char all that still gives error;(

- - - Updated - - -

CharBaseInfo.dbc
CharStartOutfit.dbc

But did you look into ChrRaces.dbc? The races you have are already in ChrRaces.dbc, but you might want to make sure the RaceIds you have are consistent with the ones in ChrRaces.dbc. Not sure if you're trying to just create races or classes. Your title is misleading if you're trying to just add races. In that case, did you edit ChrRaces.dbc with the new races?

Everyone seems to be getting this one particular error. This error shows because it cannot retrieve the player's information.

Look at this thread: http://emudevs.com/showthread.php/2648-Error-creating-a-new-race and maybe you could find a solution for yourself.
 
Status
Not open for further replies.
Top