Forum > Miscellaneous
[SOLVED] Problem with adding custom races in Trinity
(1/1)
Moridhin:
Ok here is the thing: -I did client part of adding custom races(i added 2),they show up without errors in character creation screen. -I did core edit of SharedDefines.h and compiled without problems. -I added into database query just for playercreateinfo table(only that for testing purpose) BUT when i try to create new character with those new races i get in my world console this error:
--- Code: ---Player::Create: Possible hacking-attempt: Account 1 tried creating a character named 'Adsdas' with an invalid race/class pair (14/1) - refusing to do so.
--- End code --- Any ideas how to solve this? Here is mine added line in playercreateinfo:
--- Code: ---INSERT INTO `playercreateinfo` VALUES ('14', '1', '1', '14', '-618.518', '-4251.67', '38.718', '0'); --- End code --- Its broken warrior (i added only that for testing purpose) with starting zone same as orcs. - Also upload shareddefines.h if someone could check it out. Tnx
Linwood:
Your race MAX_RACES is 13 it must be 18 (forest troll)+1 = 19
#define MAX_RACES 19
Ascathos:
As I wrote for MAX_CLASSES (And it's the same for MAX_RACES; really:)
--- Quote ---I upped the "MAX_[... (Here: CLASSES)" value by one, so that it counts 11 (9 by default, one for "zero" (as CLASS_NONE) and our new class). --- End quote ---
Basically, the number of used races (mostly the ones not commented out if I am not wrong), + 1 (RACE_NONE) + 1 for the new race.
Moridhin:
Tnx guys,very much for your answers,will check it out and see if it works! I set it to 19 and it worked perfectly!! Ty you very much!I cracked my head with this for a month,finaly get it to work. Tnx :)
Navigation
[0] Message Index
|