Hi everybody. I was trying to add a class to an existing race. I been reading some tutorials, but for some reason they don´t work.
As far as i know, to add a class, you need to execute a query in Sqlyog. I'll give you an example about what i did to add class hunter to humans:
INSERT INTO `player_levelstats` VALUES ('1', '3', '1', '62', '135', '19', '18', '21');
INSERT INTO `player_levelstats` VALUES ('1', '3', '2', '62', '135', '19', '18', '21');
INSERT INTO `player_levelstats` VALUES ('1', '3', '3', '62', '135', '19', '18', '21');
INSERT INTO `player_levelstats` VALUES ('1', '3', '4', '62', '135', '19', '18', '21');
INSERT INTO `player_levelstats` VALUES ('1', '3', '5', '62', '135', '19', '18', '21');
INSERT INTO `player_levelstats` VALUES ('1', '3', '6', '62', '135', '19', '18', '21');
INSERT INTO `player_levelstats` VALUES ('1', '3', '7', '62', '135', '19', '18', '21');
INSERT INTO `player_levelstats` VALUES ('1', '3', '8', '62', '135', '19', '18', '21');
INSERT INTO `player_levelstats` VALUES ('1', '3', '9', '62', '135', '19', '18', '21');
etc... you have to do this until you get all the levels.
The thing is that when i execute the query i get always some error like this:
1 queries executed, 0 success, 1 errors, 0 warnings
Query: INSERT INTO `player_levelstats` VALUES ('1', '3', '1', '62', '135', '19', '18', '21')
Error Code: 1062
Duplicate entry '1-3-1' for key 'PRIMARY'
And then, when i try to run worldserver, crash at "Loading Player Create Level Stats Data..." .Which have sense according to the first error.
i also put the proper information in playercreateinfo, i edited CharBaseInfo.dbc and CharStartOutfit.dbc, and i did a patch with those files (the patch works fine)
So, what i'm missing?
Thanks in advance.
PD: I'm using Trinitycore.