Core/Player: split table player_classlevelstats into two tables by introducing player_racestats for race specific offsets
This commit is contained in:
1 parent
7ece100da8
commit
9189fa1858
3 files changed
+937
-21
No files matched your search
@@ -0,0 +1,889 @@
|
||||
DROP TABLE IF EXISTS `player_classlevelstats`;
|
||||
CREATE TABLE `player_classlevelstats` (
|
||||
`class` smallint unsigned NOT NULL,
|
||||
`level` smallint unsigned NOT NULL,
|
||||
`str` smallint unsigned NOT NULL COMMENT 'strength',
|
||||
`agi` smallint unsigned NOT NULL COMMENT 'agility',
|
||||
`sta` smallint unsigned NOT NULL COMMENT 'stamina',
|
||||
`inte` smallint unsigned NOT NULL COMMENT 'intellect',
|
||||
`spi` smallint NOT NULL COMMENT 'spirit',
|
||||
`VerifiedBuild` int NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`class`,`level`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Stores levels stats.';
|
||||
|
||||
INSERT INTO `player_classlevelstats`(`class`,`level`,`str`,`agi`,`sta`,`inte`,`spi`,`VerifiedBuild`) VALUES
|
||||
(1,1,23,20,22,20,20,0),
|
||||
(1,2,24,21,23,20,20,0),
|
||||
(1,3,25,21,24,20,21,0),
|
||||
(1,4,26,22,25,20,21,0),
|
||||
(1,5,28,23,26,20,21,0),
|
||||
(1,6,29,24,27,21,21,0),
|
||||
(1,7,30,24,28,21,22,0),
|
||||
(1,8,31,25,29,21,22,0),
|
||||
(1,9,32,26,30,21,22,0),
|
||||
(1,10,33,26,31,21,23,0),
|
||||
(1,11,35,27,33,21,23,0),
|
||||
(1,12,36,28,34,21,23,0),
|
||||
(1,13,37,29,35,21,24,0),
|
||||
(1,14,39,30,36,22,24,0),
|
||||
(1,15,40,30,37,22,24,0),
|
||||
(1,16,41,31,38,22,25,0),
|
||||
(1,17,42,32,40,22,25,0),
|
||||
(1,18,44,33,41,22,25,0),
|
||||
(1,19,45,34,42,22,26,0),
|
||||
(1,20,47,35,43,22,26,0),
|
||||
(1,21,48,35,45,23,26,0),
|
||||
(1,22,49,36,46,23,27,0),
|
||||
(1,23,51,37,47,23,27,0),
|
||||
(1,24,52,38,49,23,28,0),
|
||||
(1,25,54,39,50,23,28,0),
|
||||
(1,26,55,40,51,23,28,0),
|
||||
(1,27,57,41,53,23,29,0),
|
||||
(1,28,58,42,54,24,29,0),
|
||||
(1,29,60,43,56,24,30,0),
|
||||
(1,30,62,44,57,24,30,0),
|
||||
(1,31,63,45,58,24,30,0),
|
||||
(1,32,65,46,60,24,31,0),
|
||||
(1,33,66,47,61,24,31,0),
|
||||
(1,34,68,48,63,25,32,0),
|
||||
(1,35,70,49,64,25,32,0),
|
||||
(1,36,72,50,66,25,33,0),
|
||||
(1,37,73,51,68,25,33,0),
|
||||
(1,38,75,52,69,25,33,0),
|
||||
(1,39,77,53,71,26,34,0),
|
||||
(1,40,79,54,72,26,34,0),
|
||||
(1,41,80,56,74,26,35,0),
|
||||
(1,42,82,57,76,26,35,0),
|
||||
(1,43,84,58,77,26,36,0),
|
||||
(1,44,86,59,79,26,36,0),
|
||||
(1,45,88,60,81,27,37,0),
|
||||
(1,46,90,61,83,27,37,0),
|
||||
(1,47,92,63,84,27,38,0),
|
||||
(1,48,94,64,86,27,38,0),
|
||||
(1,49,96,65,88,28,39,0),
|
||||
(1,50,98,66,90,28,39,0),
|
||||
(1,51,100,68,92,28,40,0),
|
||||
(1,52,102,69,94,28,40,0),
|
||||
(1,53,104,70,96,28,41,0),
|
||||
(1,54,106,72,98,29,42,0),
|
||||
(1,55,109,73,100,29,42,0),
|
||||
(1,56,111,74,102,29,43,0),
|
||||
(1,57,113,76,104,29,43,0),
|
||||
(1,58,115,77,106,30,44,0),
|
||||
(1,59,118,79,108,30,44,0),
|
||||
(1,60,120,80,110,30,45,0),
|
||||
(1,61,122,81,112,30,46,0),
|
||||
(1,62,125,83,114,30,46,0),
|
||||
(1,63,127,84,117,31,47,0),
|
||||
(1,64,130,86,119,31,47,0),
|
||||
(1,65,132,88,121,31,48,0),
|
||||
(1,66,135,89,123,32,49,0),
|
||||
(1,67,137,91,126,32,49,0),
|
||||
(1,68,140,92,128,32,50,0),
|
||||
(1,69,142,94,130,32,51,0),
|
||||
(1,70,145,96,133,33,51,0),
|
||||
(1,71,148,97,135,33,52,0),
|
||||
(1,72,150,99,138,33,53,0),
|
||||
(1,73,153,101,140,33,54,0),
|
||||
(1,74,156,102,143,34,54,0),
|
||||
(1,75,159,104,145,34,55,0),
|
||||
(1,76,162,106,148,34,56,0),
|
||||
(1,77,165,108,151,35,57,0),
|
||||
(1,78,168,109,153,35,57,0),
|
||||
(1,79,171,111,156,35,58,0),
|
||||
(1,80,174,113,159,36,59,0),
|
||||
(1,81,177,115,161,36,60,0),
|
||||
(1,82,180,117,164,36,60,0),
|
||||
(1,83,183,119,167,36,61,0),
|
||||
(1,84,186,121,170,37,62,0),
|
||||
(1,85,189,123,173,37,63,0),
|
||||
(2,1,22,20,22,20,21,0),
|
||||
(2,2,23,21,23,21,22,0),
|
||||
(2,3,24,21,24,21,22,0),
|
||||
(2,4,25,22,25,22,23,0),
|
||||
(2,5,26,22,26,22,24,0),
|
||||
(2,6,27,23,27,23,24,0),
|
||||
(2,7,28,23,28,24,25,0),
|
||||
(2,8,29,24,28,24,25,0),
|
||||
(2,9,30,24,29,25,26,0),
|
||||
(2,10,31,25,30,25,27,0),
|
||||
(2,11,32,25,31,26,28,0),
|
||||
(2,12,33,26,32,27,28,0),
|
||||
(2,13,34,27,33,27,29,0),
|
||||
(2,14,35,27,34,28,30,0),
|
||||
(2,15,36,28,36,29,30,0),
|
||||
(2,16,38,28,37,29,31,0),
|
||||
(2,17,39,29,38,30,32,0),
|
||||
(2,18,40,30,39,31,33,0),
|
||||
(2,19,41,30,40,31,33,0),
|
||||
(2,20,42,31,41,32,34,0),
|
||||
(2,21,43,32,42,33,35,0),
|
||||
(2,22,45,32,43,34,36,0),
|
||||
(2,23,46,33,44,34,37,0),
|
||||
(2,24,47,34,46,35,37,0),
|
||||
(2,25,48,34,47,36,38,0),
|
||||
(2,26,50,35,48,37,39,0),
|
||||
(2,27,51,36,49,37,40,0),
|
||||
(2,28,52,36,50,38,41,0),
|
||||
(2,29,54,37,52,39,42,0),
|
||||
(2,30,55,38,53,40,42,0),
|
||||
(2,31,56,39,54,41,43,0),
|
||||
(2,32,58,39,56,42,44,0),
|
||||
(2,33,59,40,57,42,45,0),
|
||||
(2,34,61,41,58,43,46,0),
|
||||
(2,35,62,42,60,44,47,0),
|
||||
(2,36,64,43,61,45,48,0),
|
||||
(2,37,65,43,62,46,49,0),
|
||||
(2,38,67,44,64,47,50,0),
|
||||
(2,39,68,45,65,48,51,0),
|
||||
(2,40,70,46,67,49,52,0),
|
||||
(2,41,71,47,68,50,53,0),
|
||||
(2,42,73,47,70,51,54,0),
|
||||
(2,43,74,48,71,52,55,0),
|
||||
(2,44,76,49,73,52,56,0),
|
||||
(2,45,78,50,74,53,57,0),
|
||||
(2,46,79,51,76,54,58,0),
|
||||
(2,47,81,52,77,56,59,0),
|
||||
(2,48,83,53,79,57,60,0),
|
||||
(2,49,84,54,81,58,62,0),
|
||||
(2,50,86,55,82,59,63,0),
|
||||
(2,51,88,56,84,60,64,0),
|
||||
(2,52,90,57,86,61,65,0),
|
||||
(2,53,92,58,87,62,66,0),
|
||||
(2,54,93,59,89,63,67,0),
|
||||
(2,55,95,60,91,64,69,0),
|
||||
(2,56,97,61,93,65,70,0),
|
||||
(2,57,99,62,94,66,71,0),
|
||||
(2,58,101,63,96,68,72,0),
|
||||
(2,59,103,64,98,69,74,0),
|
||||
(2,60,105,65,100,70,75,0),
|
||||
(2,61,107,66,102,71,76,0),
|
||||
(2,62,109,67,104,72,78,0),
|
||||
(2,63,111,68,106,74,79,0),
|
||||
(2,64,113,69,108,75,80,0),
|
||||
(2,65,115,71,110,76,82,0),
|
||||
(2,66,118,72,112,78,83,0),
|
||||
(2,67,120,73,114,79,85,0),
|
||||
(2,68,122,74,116,80,86,0),
|
||||
(2,69,124,75,118,82,87,0),
|
||||
(2,70,126,77,120,83,89,0),
|
||||
(2,71,129,78,122,84,90,0),
|
||||
(2,72,131,79,125,86,92,0),
|
||||
(2,73,133,80,127,87,94,0),
|
||||
(2,74,136,82,129,89,95,0),
|
||||
(2,75,138,83,131,90,97,0),
|
||||
(2,76,141,84,134,92,98,0),
|
||||
(2,77,143,86,136,93,100,0),
|
||||
(2,78,146,87,138,95,102,0),
|
||||
(2,79,148,88,141,96,103,0),
|
||||
(2,80,151,90,143,98,105,0),
|
||||
(2,81,153,91,146,99,107,0),
|
||||
(2,82,156,93,148,101,108,0),
|
||||
(2,83,159,94,151,102,110,0),
|
||||
(2,84,162,96,153,104,112,0),
|
||||
(2,85,164,97,156,106,114,0),
|
||||
(3,1,20,23,21,20,21,0),
|
||||
(3,2,20,24,22,21,22,0),
|
||||
(3,3,21,25,23,21,22,0),
|
||||
(3,4,21,27,23,22,23,0),
|
||||
(3,5,22,28,24,22,23,0),
|
||||
(3,6,22,29,25,23,24,0),
|
||||
(3,7,22,30,26,23,24,0),
|
||||
(3,8,23,31,27,24,25,0),
|
||||
(3,9,23,33,28,24,26,0),
|
||||
(3,10,24,34,28,25,26,0),
|
||||
(3,11,24,35,29,25,27,0),
|
||||
(3,12,25,37,30,26,28,0),
|
||||
(3,13,25,38,31,27,28,0),
|
||||
(3,14,26,39,32,27,29,0),
|
||||
(3,15,26,41,33,28,29,0),
|
||||
(3,16,27,42,34,28,30,0),
|
||||
(3,17,27,43,35,29,31,0),
|
||||
(3,18,28,45,36,30,32,0),
|
||||
(3,19,28,46,37,30,32,0),
|
||||
(3,20,29,48,38,31,33,0),
|
||||
(3,21,29,49,39,32,34,0),
|
||||
(3,22,30,51,40,32,34,0),
|
||||
(3,23,30,52,41,33,35,0),
|
||||
(3,24,31,54,42,34,36,0),
|
||||
(3,25,31,55,43,34,37,0),
|
||||
(3,26,32,57,44,35,37,0),
|
||||
(3,27,32,59,45,36,38,0),
|
||||
(3,28,33,60,46,36,39,0),
|
||||
(3,29,33,62,47,37,40,0),
|
||||
(3,30,34,64,48,38,40,0),
|
||||
(3,31,34,65,50,39,41,0),
|
||||
(3,32,35,67,51,39,42,0),
|
||||
(3,33,36,69,52,40,43,0),
|
||||
(3,34,36,70,53,41,44,0),
|
||||
(3,35,37,72,54,42,45,0),
|
||||
(3,36,38,74,56,43,46,0),
|
||||
(3,37,38,76,57,43,46,0),
|
||||
(3,38,39,78,58,44,47,0),
|
||||
(3,39,39,80,59,45,48,0),
|
||||
(3,40,40,81,61,46,49,0),
|
||||
(3,41,41,83,62,47,50,0),
|
||||
(3,42,41,85,63,47,51,0),
|
||||
(3,43,42,87,64,48,52,0),
|
||||
(3,44,43,89,66,49,53,0),
|
||||
(3,45,43,91,67,50,54,0),
|
||||
(3,46,44,93,69,51,55,0),
|
||||
(3,47,45,95,70,52,56,0),
|
||||
(3,48,46,98,71,53,57,0),
|
||||
(3,49,46,100,73,54,58,0),
|
||||
(3,50,47,102,74,55,59,0),
|
||||
(3,51,48,104,76,56,60,0),
|
||||
(3,52,49,106,77,57,61,0),
|
||||
(3,53,49,108,79,58,62,0),
|
||||
(3,54,50,111,80,59,63,0),
|
||||
(3,55,51,113,82,60,64,0),
|
||||
(3,56,52,115,83,61,65,0),
|
||||
(3,57,53,118,85,62,67,0),
|
||||
(3,58,53,120,87,63,68,0),
|
||||
(3,59,54,123,88,64,69,0),
|
||||
(3,60,55,125,90,65,70,0),
|
||||
(3,61,56,127,92,66,71,0),
|
||||
(3,62,57,130,93,67,72,0),
|
||||
(3,63,58,133,95,68,74,0),
|
||||
(3,64,58,135,97,69,75,0),
|
||||
(3,65,59,138,99,71,76,0),
|
||||
(3,66,60,140,100,72,77,0),
|
||||
(3,67,61,143,102,73,79,0),
|
||||
(3,68,62,146,104,74,80,0),
|
||||
(3,69,63,149,106,75,81,0),
|
||||
(3,70,64,151,108,77,83,0),
|
||||
(3,71,65,154,110,78,84,0),
|
||||
(3,72,66,157,112,79,85,0),
|
||||
(3,73,67,160,114,80,87,0),
|
||||
(3,74,68,163,116,82,88,0),
|
||||
(3,75,69,166,118,83,90,0),
|
||||
(3,76,70,169,120,84,91,0),
|
||||
(3,77,71,172,122,86,93,0),
|
||||
(3,78,72,175,124,87,94,0),
|
||||
(3,79,73,178,126,88,96,0),
|
||||
(3,80,74,181,128,90,97,0),
|
||||
(3,81,75,185,130,91,99,0),
|
||||
(3,82,77,188,133,93,100,0),
|
||||
(3,83,78,191,135,94,102,0),
|
||||
(3,84,79,195,137,96,103,0),
|
||||
(3,85,80,198,139,97,105,0),
|
||||
(4,1,21,23,21,20,20,0),
|
||||
(4,2,22,24,22,20,20,0),
|
||||
(4,3,22,25,22,20,21,0),
|
||||
(4,4,23,27,23,21,21,0),
|
||||
(4,5,24,28,24,21,21,0),
|
||||
(4,6,24,29,24,21,22,0),
|
||||
(4,7,25,31,25,21,22,0),
|
||||
(4,8,26,32,25,21,22,0),
|
||||
(4,9,27,33,26,21,23,0),
|
||||
(4,10,27,35,27,22,23,0),
|
||||
(4,11,28,36,28,22,24,0),
|
||||
(4,12,29,37,28,22,24,0),
|
||||
(4,13,30,39,29,22,24,0),
|
||||
(4,14,30,40,30,22,25,0),
|
||||
(4,15,31,42,30,23,25,0),
|
||||
(4,16,32,43,31,23,26,0),
|
||||
(4,17,33,44,32,23,26,0),
|
||||
(4,18,34,46,33,23,26,0),
|
||||
(4,19,35,48,33,23,27,0),
|
||||
(4,20,35,49,34,24,27,0),
|
||||
(4,21,36,51,35,24,28,0),
|
||||
(4,22,37,52,36,24,28,0),
|
||||
(4,23,38,54,37,24,29,0),
|
||||
(4,24,39,55,37,25,29,0),
|
||||
(4,25,40,57,38,25,30,0),
|
||||
(4,26,41,59,39,25,30,0),
|
||||
(4,27,42,60,40,25,30,0),
|
||||
(4,28,43,62,41,25,31,0),
|
||||
(4,29,43,64,42,26,31,0),
|
||||
(4,30,44,66,42,26,32,0),
|
||||
(4,31,45,67,43,26,32,0),
|
||||
(4,32,46,69,44,26,33,0),
|
||||
(4,33,47,71,45,27,33,0),
|
||||
(4,34,48,73,46,27,34,0),
|
||||
(4,35,49,75,47,27,34,0),
|
||||
(4,36,51,77,48,28,35,0),
|
||||
(4,37,52,78,49,28,36,0),
|
||||
(4,38,53,80,50,28,36,0),
|
||||
(4,39,54,82,51,28,37,0),
|
||||
(4,40,55,84,52,29,37,0),
|
||||
(4,41,56,86,53,29,38,0),
|
||||
(4,42,57,88,54,29,38,0),
|
||||
(4,43,58,90,55,29,39,0),
|
||||
(4,44,59,93,56,30,39,0),
|
||||
(4,45,61,95,57,30,40,0),
|
||||
(4,46,62,97,58,30,41,0),
|
||||
(4,47,63,99,59,31,41,0),
|
||||
(4,48,64,101,60,31,42,0),
|
||||
(4,49,65,103,62,31,43,0),
|
||||
(4,50,67,106,63,32,43,0),
|
||||
(4,51,68,108,64,32,44,0),
|
||||
(4,52,69,110,65,32,44,0),
|
||||
(4,53,70,113,66,33,45,0),
|
||||
(4,54,72,115,67,33,46,0),
|
||||
(4,55,73,117,69,33,46,0),
|
||||
(4,56,74,120,70,34,47,0),
|
||||
(4,57,76,122,71,34,48,0),
|
||||
(4,58,77,125,72,34,49,0),
|
||||
(4,59,79,127,74,35,49,0),
|
||||
(4,60,80,130,75,35,50,0),
|
||||
(4,61,81,133,76,35,51,0),
|
||||
(4,62,83,135,78,36,51,0),
|
||||
(4,63,84,138,79,36,52,0),
|
||||
(4,64,86,141,80,36,53,0),
|
||||
(4,65,87,143,82,37,54,0),
|
||||
(4,66,89,146,83,37,55,0),
|
||||
(4,67,90,149,85,38,55,0),
|
||||
(4,68,92,152,86,38,56,0),
|
||||
(4,69,94,155,87,38,57,0),
|
||||
(4,70,95,158,89,39,58,0),
|
||||
(4,71,97,161,90,39,59,0),
|
||||
(4,72,99,164,92,40,59,0),
|
||||
(4,73,100,167,94,40,60,0),
|
||||
(4,74,102,170,95,41,61,0),
|
||||
(4,75,104,173,97,41,62,0),
|
||||
(4,76,105,176,98,41,63,0),
|
||||
(4,77,107,179,100,42,64,0),
|
||||
(4,78,109,183,102,42,65,0),
|
||||
(4,79,111,186,103,43,66,0),
|
||||
(4,80,113,189,105,43,67,0),
|
||||
(4,81,114,193,107,44,68,0),
|
||||
(4,82,116,196,108,44,68,0),
|
||||
(4,83,118,199,110,45,69,0),
|
||||
(4,84,120,203,112,45,70,0),
|
||||
(4,85,122,206,114,46,71,0),
|
||||
(5,1,20,20,20,22,23,0),
|
||||
(5,2,20,20,20,23,24,0),
|
||||
(5,3,20,20,21,24,25,0),
|
||||
(5,4,21,21,21,25,27,0),
|
||||
(5,5,21,21,21,27,28,0),
|
||||
(5,6,21,21,22,28,29,0),
|
||||
(5,7,21,21,22,29,30,0),
|
||||
(5,8,21,22,22,30,31,0),
|
||||
(5,9,21,22,23,31,33,0),
|
||||
(5,10,22,22,23,33,34,0),
|
||||
(5,11,22,22,24,34,35,0),
|
||||
(5,12,22,23,24,35,37,0),
|
||||
(5,13,22,23,24,36,38,0),
|
||||
(5,14,22,23,25,38,39,0),
|
||||
(5,15,23,23,25,39,41,0),
|
||||
(5,16,23,24,26,40,42,0),
|
||||
(5,17,23,24,26,42,43,0),
|
||||
(5,18,23,24,26,43,45,0),
|
||||
(5,19,23,25,27,44,46,0),
|
||||
(5,20,24,25,27,46,48,0),
|
||||
(5,21,24,25,28,47,49,0),
|
||||
(5,22,24,25,28,49,51,0),
|
||||
(5,23,24,26,29,50,52,0),
|
||||
(5,24,25,26,29,52,54,0),
|
||||
(5,25,25,26,30,53,55,0),
|
||||
(5,26,25,27,30,55,57,0),
|
||||
(5,27,25,27,30,56,59,0),
|
||||
(5,28,25,27,31,58,60,0),
|
||||
(5,29,26,28,31,59,62,0),
|
||||
(5,30,26,28,32,61,64,0),
|
||||
(5,31,26,28,32,63,65,0),
|
||||
(5,32,26,29,33,64,67,0),
|
||||
(5,33,27,29,33,66,69,0),
|
||||
(5,34,27,29,34,68,70,0),
|
||||
(5,35,27,30,34,69,72,0),
|
||||
(5,36,28,30,35,71,74,0),
|
||||
(5,37,28,30,36,73,76,0),
|
||||
(5,38,28,31,36,75,78,0),
|
||||
(5,39,28,31,37,76,80,0),
|
||||
(5,40,29,31,37,78,81,0),
|
||||
(5,41,29,32,38,80,83,0),
|
||||
(5,42,29,32,38,82,85,0),
|
||||
(5,43,29,33,39,84,87,0),
|
||||
(5,44,30,33,39,86,89,0),
|
||||
(5,45,30,33,40,88,91,0),
|
||||
(5,46,30,34,41,90,93,0),
|
||||
(5,47,31,34,41,92,95,0),
|
||||
(5,48,31,35,42,94,98,0),
|
||||
(5,49,31,35,43,96,100,0),
|
||||
(5,50,32,35,43,98,102,0),
|
||||
(5,51,32,36,44,100,104,0),
|
||||
(5,52,32,36,44,102,106,0),
|
||||
(5,53,33,37,45,104,108,0),
|
||||
(5,54,33,37,46,106,111,0),
|
||||
(5,55,33,38,46,109,113,0),
|
||||
(5,56,34,38,47,111,115,0),
|
||||
(5,57,34,39,48,113,118,0),
|
||||
(5,58,34,39,49,115,120,0),
|
||||
(5,59,35,40,49,118,123,0),
|
||||
(5,60,35,40,50,120,125,0),
|
||||
(5,61,35,40,51,122,127,0),
|
||||
(5,62,36,41,51,125,130,0),
|
||||
(5,63,36,41,52,127,133,0),
|
||||
(5,64,36,42,53,130,135,0),
|
||||
(5,65,37,43,54,132,138,0),
|
||||
(5,66,37,43,55,135,140,0),
|
||||
(5,67,38,44,55,137,143,0),
|
||||
(5,68,38,44,56,140,146,0),
|
||||
(5,69,38,45,57,143,149,0),
|
||||
(5,70,39,45,58,145,151,0),
|
||||
(5,71,39,46,59,148,154,0),
|
||||
(5,72,40,46,59,151,157,0),
|
||||
(5,73,40,47,60,154,160,0),
|
||||
(5,74,41,47,61,156,163,0),
|
||||
(5,75,41,48,62,159,166,0),
|
||||
(5,76,41,49,63,162,169,0),
|
||||
(5,77,42,49,64,165,172,0),
|
||||
(5,78,42,50,65,168,175,0),
|
||||
(5,79,43,50,66,171,178,0),
|
||||
(5,80,43,51,67,174,181,0),
|
||||
(5,81,44,52,68,177,185,0),
|
||||
(5,82,44,52,68,180,188,0),
|
||||
(5,83,45,53,69,184,191,0),
|
||||
(5,84,45,54,70,187,195,0),
|
||||
(5,85,46,54,71,190,198,0),
|
||||
(6,1,20,20,20,20,20,0),
|
||||
(6,2,22,21,21,20,20,0),
|
||||
(6,3,23,22,23,20,21,0),
|
||||
(6,4,25,23,24,21,21,0),
|
||||
(6,5,27,24,26,21,22,0),
|
||||
(6,6,28,25,27,21,22,0),
|
||||
(6,7,30,26,29,21,22,0),
|
||||
(6,8,31,27,30,21,23,0),
|
||||
(6,9,33,28,32,21,23,0),
|
||||
(6,10,35,29,33,22,24,0),
|
||||
(6,11,36,30,35,22,24,0),
|
||||
(6,12,38,31,36,22,24,0),
|
||||
(6,13,40,32,38,22,25,0),
|
||||
(6,14,41,33,39,22,25,0),
|
||||
(6,15,43,34,40,22,26,0),
|
||||
(6,16,44,35,42,23,26,0),
|
||||
(6,17,46,36,43,23,27,0),
|
||||
(6,18,48,37,45,23,27,0),
|
||||
(6,19,49,38,46,23,27,0),
|
||||
(6,20,51,39,48,23,28,0),
|
||||
(6,21,53,40,49,23,28,0),
|
||||
(6,22,54,41,51,24,29,0),
|
||||
(6,23,56,42,52,24,29,0),
|
||||
(6,24,57,43,54,24,29,0),
|
||||
(6,25,59,44,55,24,30,0),
|
||||
(6,26,61,45,57,24,30,0),
|
||||
(6,27,62,46,58,24,31,0),
|
||||
(6,28,64,47,60,25,31,0),
|
||||
(6,29,66,47,61,25,31,0),
|
||||
(6,30,67,48,62,25,32,0),
|
||||
(6,31,69,49,64,25,32,0),
|
||||
(6,32,71,50,65,25,33,0),
|
||||
(6,33,72,51,67,25,33,0),
|
||||
(6,34,74,52,68,26,33,0),
|
||||
(6,35,75,53,70,26,34,0),
|
||||
(6,36,77,54,71,26,34,0),
|
||||
(6,37,79,55,73,26,35,0),
|
||||
(6,38,80,56,74,26,35,0),
|
||||
(6,39,82,57,76,26,35,0),
|
||||
(6,40,84,58,77,27,36,0),
|
||||
(6,41,85,59,79,27,36,0),
|
||||
(6,42,87,60,80,27,37,0),
|
||||
(6,43,88,61,81,27,37,0),
|
||||
(6,44,90,62,83,27,38,0),
|
||||
(6,45,92,63,84,27,38,0),
|
||||
(6,46,93,64,86,28,38,0),
|
||||
(6,47,95,65,87,28,39,0),
|
||||
(6,48,97,66,89,28,39,0),
|
||||
(6,49,98,67,90,28,40,0),
|
||||
(6,50,100,68,92,28,40,0),
|
||||
(6,51,101,69,93,28,40,0),
|
||||
(6,52,103,70,95,29,41,0),
|
||||
(6,53,105,71,96,29,41,0),
|
||||
(6,54,106,72,98,29,42,0),
|
||||
(6,55,108,73,99,29,42,0),
|
||||
(6,56,111,75,102,29,43,0),
|
||||
(6,57,113,76,104,29,43,0),
|
||||
(6,58,115,77,106,30,44,0),
|
||||
(6,59,118,79,108,30,44,0),
|
||||
(6,60,120,80,110,30,45,0),
|
||||
(6,61,122,81,112,30,46,0),
|
||||
(6,62,125,83,114,30,46,0),
|
||||
(6,63,127,84,117,31,47,0),
|
||||
(6,64,130,86,119,31,47,0),
|
||||
(6,65,133,87,121,31,48,0),
|
||||
(6,66,135,89,124,31,49,0),
|
||||
(6,67,138,90,126,32,49,0),
|
||||
(6,68,140,92,128,32,50,0),
|
||||
(6,69,143,93,131,32,51,0),
|
||||
(6,70,146,95,133,32,51,0),
|
||||
(6,71,149,97,136,33,52,0),
|
||||
(6,72,151,98,138,33,53,0),
|
||||
(6,73,154,100,141,33,54,0),
|
||||
(6,74,157,102,143,33,54,0),
|
||||
(6,75,160,103,146,34,55,0),
|
||||
(6,76,163,105,149,34,56,0),
|
||||
(6,77,166,107,151,34,57,0),
|
||||
(6,78,169,108,154,34,57,0),
|
||||
(6,79,172,110,157,35,58,0),
|
||||
(6,80,175,112,160,35,59,0),
|
||||
(6,81,178,114,163,35,60,0),
|
||||
(6,82,182,116,165,36,60,0),
|
||||
(6,83,185,118,168,36,61,0),
|
||||
(6,84,188,120,171,36,62,0),
|
||||
(6,85,191,121,174,36,63,0),
|
||||
(7,1,21,20,21,21,22,0),
|
||||
(7,2,22,20,22,22,23,0),
|
||||
(7,3,22,21,23,23,24,0),
|
||||
(7,4,23,21,24,23,25,0),
|
||||
(7,5,24,22,24,24,26,0),
|
||||
(7,6,25,22,25,25,27,0),
|
||||
(7,7,26,22,26,26,28,0),
|
||||
(7,8,26,23,27,27,28,0),
|
||||
(7,9,27,23,28,28,29,0),
|
||||
(7,10,28,24,29,28,30,0),
|
||||
(7,11,29,24,30,29,31,0),
|
||||
(7,12,30,25,31,30,32,0),
|
||||
(7,13,30,25,32,31,33,0),
|
||||
(7,14,31,26,33,32,34,0),
|
||||
(7,15,32,26,34,33,36,0),
|
||||
(7,16,33,27,35,34,37,0),
|
||||
(7,17,34,27,36,35,38,0),
|
||||
(7,18,35,28,37,36,39,0),
|
||||
(7,19,36,28,38,37,40,0),
|
||||
(7,20,37,29,39,38,41,0),
|
||||
(7,21,38,29,40,39,42,0),
|
||||
(7,22,38,30,41,40,43,0),
|
||||
(7,23,39,30,42,41,44,0),
|
||||
(7,24,40,31,43,42,46,0),
|
||||
(7,25,41,31,45,43,47,0),
|
||||
(7,26,42,32,46,44,48,0),
|
||||
(7,27,43,32,47,45,49,0),
|
||||
(7,28,44,33,48,46,50,0),
|
||||
(7,29,45,33,49,47,52,0),
|
||||
(7,30,46,34,50,48,53,0),
|
||||
(7,31,48,34,52,50,54,0),
|
||||
(7,32,49,35,53,51,56,0),
|
||||
(7,33,50,36,54,52,57,0),
|
||||
(7,34,51,36,55,53,58,0),
|
||||
(7,35,52,37,57,54,60,0),
|
||||
(7,36,53,38,58,56,61,0),
|
||||
(7,37,54,38,59,57,62,0),
|
||||
(7,38,55,39,61,58,64,0),
|
||||
(7,39,56,39,62,59,65,0),
|
||||
(7,40,58,40,63,61,67,0),
|
||||
(7,41,59,41,65,62,68,0),
|
||||
(7,42,60,41,66,63,70,0),
|
||||
(7,43,61,42,68,64,71,0),
|
||||
(7,44,63,43,69,66,73,0),
|
||||
(7,45,64,43,71,67,74,0),
|
||||
(7,46,65,44,72,69,76,0),
|
||||
(7,47,66,45,74,70,77,0),
|
||||
(7,48,68,46,75,71,79,0),
|
||||
(7,49,69,46,77,73,81,0),
|
||||
(7,50,70,47,78,74,82,0),
|
||||
(7,51,72,48,80,76,84,0),
|
||||
(7,52,73,49,81,77,86,0),
|
||||
(7,53,75,49,83,79,87,0),
|
||||
(7,54,76,50,85,80,89,0),
|
||||
(7,55,77,51,86,82,91,0),
|
||||
(7,56,79,52,88,83,93,0),
|
||||
(7,57,80,53,90,85,94,0),
|
||||
(7,58,82,53,91,87,96,0),
|
||||
(7,59,83,54,93,88,98,0),
|
||||
(7,60,85,55,95,90,100,0),
|
||||
(7,61,87,56,97,92,102,0),
|
||||
(7,62,88,57,99,93,104,0),
|
||||
(7,63,90,58,100,95,106,0),
|
||||
(7,64,91,58,102,97,108,0),
|
||||
(7,65,93,59,104,99,110,0),
|
||||
(7,66,95,60,106,100,112,0),
|
||||
(7,67,96,61,108,102,114,0),
|
||||
(7,68,98,62,110,104,116,0),
|
||||
(7,69,100,63,112,106,118,0),
|
||||
(7,70,102,64,114,108,120,0),
|
||||
(7,71,103,65,116,110,122,0),
|
||||
(7,72,105,66,118,112,125,0),
|
||||
(7,73,107,67,120,114,127,0),
|
||||
(7,74,109,68,123,116,129,0),
|
||||
(7,75,111,69,125,118,131,0),
|
||||
(7,76,113,70,127,120,134,0),
|
||||
(7,77,114,71,129,122,136,0),
|
||||
(7,78,116,72,131,124,138,0),
|
||||
(7,79,118,73,134,126,141,0),
|
||||
(7,80,120,74,136,128,143,0),
|
||||
(7,81,122,75,138,130,146,0),
|
||||
(7,82,124,77,141,133,148,0),
|
||||
(7,83,127,78,143,135,151,0),
|
||||
(7,84,129,79,145,137,153,0),
|
||||
(7,85,131,80,148,139,156,0),
|
||||
(8,1,20,20,20,23,22,0),
|
||||
(8,2,20,20,20,24,23,0),
|
||||
(8,3,20,20,21,25,24,0),
|
||||
(8,4,20,21,21,27,25,0),
|
||||
(8,5,20,21,21,28,27,0),
|
||||
(8,6,21,21,21,29,28,0),
|
||||
(8,7,21,21,22,30,29,0),
|
||||
(8,8,21,21,22,31,30,0),
|
||||
(8,9,21,21,22,33,31,0),
|
||||
(8,10,21,22,23,34,33,0),
|
||||
(8,11,21,22,23,35,34,0),
|
||||
(8,12,21,22,23,37,35,0),
|
||||
(8,13,21,22,24,38,36,0),
|
||||
(8,14,22,22,24,39,38,0),
|
||||
(8,15,22,23,24,41,39,0),
|
||||
(8,16,22,23,25,42,40,0),
|
||||
(8,17,22,23,25,43,42,0),
|
||||
(8,18,22,23,25,45,43,0),
|
||||
(8,19,22,23,26,46,44,0),
|
||||
(8,20,22,24,26,48,46,0),
|
||||
(8,21,23,24,26,49,47,0),
|
||||
(8,22,23,24,27,51,49,0),
|
||||
(8,23,23,24,27,52,50,0),
|
||||
(8,24,23,25,28,54,52,0),
|
||||
(8,25,23,25,28,55,53,0),
|
||||
(8,26,23,25,28,57,55,0),
|
||||
(8,27,23,25,29,59,56,0),
|
||||
(8,28,24,25,29,60,58,0),
|
||||
(8,29,24,26,30,62,59,0),
|
||||
(8,30,24,26,30,64,61,0),
|
||||
(8,31,24,26,30,65,63,0),
|
||||
(8,32,24,26,31,67,64,0),
|
||||
(8,33,24,27,31,69,66,0),
|
||||
(8,34,25,27,32,70,68,0),
|
||||
(8,35,25,27,32,72,69,0),
|
||||
(8,36,25,28,33,74,71,0),
|
||||
(8,37,25,28,33,76,73,0),
|
||||
(8,38,25,28,33,78,75,0),
|
||||
(8,39,26,28,34,80,76,0),
|
||||
(8,40,26,29,34,81,78,0),
|
||||
(8,41,26,29,35,83,80,0),
|
||||
(8,42,26,29,35,85,82,0),
|
||||
(8,43,26,29,36,87,84,0),
|
||||
(8,44,26,30,36,89,86,0),
|
||||
(8,45,27,30,37,91,88,0),
|
||||
(8,46,27,30,37,93,90,0),
|
||||
(8,47,27,31,38,95,92,0),
|
||||
(8,48,27,31,38,98,94,0),
|
||||
(8,49,28,31,39,100,96,0),
|
||||
(8,50,28,32,39,102,98,0),
|
||||
(8,51,28,32,40,104,100,0),
|
||||
(8,52,28,32,40,106,102,0),
|
||||
(8,53,28,33,41,108,104,0),
|
||||
(8,54,29,33,42,111,106,0),
|
||||
(8,55,29,33,42,113,109,0),
|
||||
(8,56,29,34,43,115,111,0),
|
||||
(8,57,29,34,43,118,113,0),
|
||||
(8,58,30,34,44,120,115,0),
|
||||
(8,59,30,35,44,123,118,0),
|
||||
(8,60,30,35,45,125,120,0),
|
||||
(8,61,30,35,46,127,122,0),
|
||||
(8,62,30,36,46,130,125,0),
|
||||
(8,63,31,36,47,133,127,0),
|
||||
(8,64,31,36,47,135,130,0),
|
||||
(8,65,31,37,48,138,132,0),
|
||||
(8,66,32,37,49,140,135,0),
|
||||
(8,67,32,38,49,143,137,0),
|
||||
(8,68,32,38,50,146,140,0),
|
||||
(8,69,32,38,51,149,143,0),
|
||||
(8,70,33,39,51,151,145,0),
|
||||
(8,71,33,39,52,154,148,0),
|
||||
(8,72,33,40,53,157,151,0),
|
||||
(8,73,33,40,54,160,154,0),
|
||||
(8,74,34,41,54,163,156,0),
|
||||
(8,75,34,41,55,166,159,0),
|
||||
(8,76,34,41,56,169,162,0),
|
||||
(8,77,35,42,57,172,165,0),
|
||||
(8,78,35,42,57,175,168,0),
|
||||
(8,79,35,43,58,178,171,0),
|
||||
(8,80,36,43,59,181,174,0),
|
||||
(8,81,36,44,60,185,177,0),
|
||||
(8,82,36,44,60,188,180,0),
|
||||
(8,83,36,45,61,191,184,0),
|
||||
(8,84,37,45,62,195,187,0),
|
||||
(8,85,37,46,63,198,190,0),
|
||||
(9,1,20,20,21,22,22,0),
|
||||
(9,2,20,20,22,23,23,0),
|
||||
(9,3,21,21,22,24,24,0),
|
||||
(9,4,21,21,23,25,25,0),
|
||||
(9,5,21,21,23,26,26,0),
|
||||
(9,6,21,22,24,27,27,0),
|
||||
(9,7,22,22,24,28,29,0),
|
||||
(9,8,22,22,25,29,30,0),
|
||||
(9,9,22,23,25,30,31,0),
|
||||
(9,10,23,23,26,31,32,0),
|
||||
(9,11,23,24,26,33,33,0),
|
||||
(9,12,23,24,27,34,34,0),
|
||||
(9,13,24,24,27,35,36,0),
|
||||
(9,14,24,25,28,36,37,0),
|
||||
(9,15,24,25,29,37,38,0),
|
||||
(9,16,25,26,29,38,39,0),
|
||||
(9,17,25,26,30,40,41,0),
|
||||
(9,18,25,26,30,41,42,0),
|
||||
(9,19,26,27,31,42,43,0),
|
||||
(9,20,26,27,32,43,45,0),
|
||||
(9,21,26,28,32,45,46,0),
|
||||
(9,22,27,28,33,46,47,0),
|
||||
(9,23,27,29,34,47,49,0),
|
||||
(9,24,28,29,34,49,50,0),
|
||||
(9,25,28,30,35,50,52,0),
|
||||
(9,26,28,30,36,51,53,0),
|
||||
(9,27,29,30,36,53,54,0),
|
||||
(9,28,29,31,37,54,56,0),
|
||||
(9,29,30,31,38,56,57,0),
|
||||
(9,30,30,32,38,57,59,0),
|
||||
(9,31,30,32,39,58,61,0),
|
||||
(9,32,31,33,40,60,62,0),
|
||||
(9,33,31,33,41,61,64,0),
|
||||
(9,34,32,34,41,63,65,0),
|
||||
(9,35,32,34,42,64,67,0),
|
||||
(9,36,33,35,43,66,69,0),
|
||||
(9,37,33,36,44,68,70,0),
|
||||
(9,38,33,36,45,69,72,0),
|
||||
(9,39,34,37,45,71,74,0),
|
||||
(9,40,34,37,46,72,75,0),
|
||||
(9,41,35,38,47,74,77,0),
|
||||
(9,42,35,38,48,76,79,0),
|
||||
(9,43,36,39,49,77,81,0),
|
||||
(9,44,36,39,50,79,82,0),
|
||||
(9,45,37,40,50,81,84,0),
|
||||
(9,46,37,41,51,83,86,0),
|
||||
(9,47,38,41,52,84,88,0),
|
||||
(9,48,38,42,53,86,90,0),
|
||||
(9,49,39,43,54,88,92,0),
|
||||
(9,50,39,43,55,90,94,0),
|
||||
(9,51,40,44,56,92,96,0),
|
||||
(9,52,40,44,57,94,98,0),
|
||||
(9,53,41,45,58,96,100,0),
|
||||
(9,54,42,46,59,98,102,0),
|
||||
(9,55,42,46,60,100,104,0),
|
||||
(9,56,43,47,61,102,106,0),
|
||||
(9,57,43,48,62,104,108,0),
|
||||
(9,58,44,49,63,106,111,0),
|
||||
(9,59,44,49,64,108,113,0),
|
||||
(9,60,45,50,65,110,115,0),
|
||||
(9,61,46,51,66,112,117,0),
|
||||
(9,62,46,51,67,114,120,0),
|
||||
(9,63,47,52,68,117,122,0),
|
||||
(9,64,47,53,69,119,124,0),
|
||||
(9,65,48,54,71,121,127,0),
|
||||
(9,66,49,55,72,123,129,0),
|
||||
(9,67,49,55,73,126,132,0),
|
||||
(9,68,50,56,74,128,134,0),
|
||||
(9,69,51,57,75,130,136,0),
|
||||
(9,70,51,58,76,133,139,0),
|
||||
(9,71,52,59,78,135,142,0),
|
||||
(9,72,53,59,79,138,144,0),
|
||||
(9,73,54,60,80,140,147,0),
|
||||
(9,74,54,61,81,143,150,0),
|
||||
(9,75,55,62,83,145,152,0),
|
||||
(9,76,56,63,84,148,155,0),
|
||||
(9,77,57,64,85,151,158,0),
|
||||
(9,78,57,65,87,153,161,0),
|
||||
(9,79,58,66,88,156,164,0),
|
||||
(9,80,59,67,89,159,166,0),
|
||||
(9,81,60,68,91,161,169,0),
|
||||
(9,82,60,68,92,164,172,0),
|
||||
(9,83,61,69,94,167,175,0),
|
||||
(9,84,62,70,95,170,178,0),
|
||||
(9,85,63,71,96,173,181,0),
|
||||
(11,1,21,20,20,22,22,0),
|
||||
(11,2,22,20,21,23,23,0),
|
||||
(11,3,22,21,21,24,24,0),
|
||||
(11,4,23,21,22,25,25,0),
|
||||
(11,5,23,22,22,26,26,0),
|
||||
(11,6,24,22,23,27,27,0),
|
||||
(11,7,24,23,24,28,28,0),
|
||||
(11,8,25,23,24,28,29,0),
|
||||
(11,9,25,24,25,29,30,0),
|
||||
(11,10,26,24,25,30,31,0),
|
||||
(11,11,26,25,26,31,33,0),
|
||||
(11,12,27,25,27,32,34,0),
|
||||
(11,13,27,26,27,33,35,0),
|
||||
(11,14,28,26,28,34,36,0),
|
||||
(11,15,29,27,29,36,37,0),
|
||||
(11,16,29,27,29,37,38,0),
|
||||
(11,17,30,28,30,38,40,0),
|
||||
(11,18,30,29,31,39,41,0),
|
||||
(11,19,31,29,31,40,42,0),
|
||||
(11,20,32,30,32,41,43,0),
|
||||
(11,21,32,30,33,42,45,0),
|
||||
(11,22,33,31,34,43,46,0),
|
||||
(11,23,34,32,34,44,47,0),
|
||||
(11,24,34,32,35,46,49,0),
|
||||
(11,25,35,33,36,47,50,0),
|
||||
(11,26,36,33,37,48,51,0),
|
||||
(11,27,36,34,37,49,53,0),
|
||||
(11,28,37,35,38,50,54,0),
|
||||
(11,29,38,35,39,52,56,0),
|
||||
(11,30,38,36,40,53,57,0),
|
||||
(11,31,39,37,41,54,58,0),
|
||||
(11,32,40,37,42,56,60,0),
|
||||
(11,33,41,38,42,57,61,0),
|
||||
(11,34,41,39,43,58,63,0),
|
||||
(11,35,42,39,44,60,64,0),
|
||||
(11,36,43,40,45,61,66,0),
|
||||
(11,37,44,41,46,62,68,0),
|
||||
(11,38,45,41,47,64,69,0),
|
||||
(11,39,45,42,48,65,71,0),
|
||||
(11,40,46,43,49,67,72,0),
|
||||
(11,41,47,44,50,68,74,0),
|
||||
(11,42,48,44,51,70,76,0),
|
||||
(11,43,49,45,52,71,77,0),
|
||||
(11,44,50,46,52,73,79,0),
|
||||
(11,45,50,47,53,74,81,0),
|
||||
(11,46,51,48,54,76,83,0),
|
||||
(11,47,52,48,56,77,84,0),
|
||||
(11,48,53,49,57,79,86,0),
|
||||
(11,49,54,50,58,81,88,0),
|
||||
(11,50,55,51,59,82,90,0),
|
||||
(11,51,56,52,60,84,92,0),
|
||||
(11,52,57,53,61,86,94,0),
|
||||
(11,53,58,54,62,87,96,0),
|
||||
(11,54,59,54,63,89,98,0),
|
||||
(11,55,60,55,64,91,100,0),
|
||||
(11,56,61,56,65,93,102,0),
|
||||
(11,57,62,57,66,94,104,0),
|
||||
(11,58,63,58,68,96,106,0),
|
||||
(11,59,64,59,69,98,108,0),
|
||||
(11,60,65,60,70,100,110,0),
|
||||
(11,61,66,61,71,102,112,0),
|
||||
(11,62,67,62,72,104,114,0),
|
||||
(11,63,68,63,74,106,117,0),
|
||||
(11,64,69,64,75,108,119,0),
|
||||
(11,65,71,65,76,110,121,0),
|
||||
(11,66,72,66,78,112,123,0),
|
||||
(11,67,73,67,79,114,126,0),
|
||||
(11,68,74,68,80,116,128,0),
|
||||
(11,69,75,69,82,118,130,0),
|
||||
(11,70,76,70,83,120,133,0),
|
||||
(11,71,78,71,84,122,135,0),
|
||||
(11,72,79,73,86,125,138,0),
|
||||
(11,73,80,74,87,127,140,0),
|
||||
(11,74,81,75,89,129,143,0),
|
||||
(11,75,83,76,90,131,145,0),
|
||||
(11,76,84,77,92,134,148,0),
|
||||
(11,77,85,78,93,136,151,0),
|
||||
(11,78,87,80,95,138,153,0),
|
||||
(11,79,88,81,96,141,156,0),
|
||||
(11,80,89,82,98,143,159,0),
|
||||
(11,81,91,83,99,146,161,0),
|
||||
(11,82,92,85,101,148,164,0),
|
||||
(11,83,94,86,102,151,167,0),
|
||||
(11,84,95,87,104,153,170,0),
|
||||
(11,85,96,89,106,156,173,0);
|
||||
|
||||
DROP TABLE IF EXISTS `player_racestats`;
|
||||
CREATE TABLE `player_racestats` (
|
||||
`race` tinyint unsigned NOT NULL,
|
||||
`str` smallint NOT NULL COMMENT 'strength',
|
||||
`agi` smallint NOT NULL COMMENT 'agility',
|
||||
`sta` smallint NOT NULL COMMENT 'stamina',
|
||||
`inte` smallint NOT NULL COMMENT 'intellect',
|
||||
`spi` smallint NOT NULL COMMENT 'spirit',
|
||||
PRIMARY KEY (`race`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Stores race stats.';
|
||||
|
||||
INSERT INTO `player_racestats`(`race`,`str`,`agi`,`sta`,`inte`,`spi`) VALUES
|
||||
(1,0,0,0,0,0),
|
||||
(2,3,-3,1,-3,2),
|
||||
(3,5,-4,1,-1,-1),
|
||||
(4,-4,4,0,0,0),
|
||||
(5,-1,-2,0,-2,5),
|
||||
(6,5,-4,1,-4,3),
|
||||
(7,-5,2,0,3,0),
|
||||
(8,1,2,0,-4,1),
|
||||
(9,-3,2,0,3,-2),
|
||||
(10,-3,2,0,3,-2),
|
||||
(11,1,-3,0,0,2),
|
||||
(22,3,2,0,-4,-1);
|
||||
@@ -3710,15 +3710,47 @@ void ObjectMgr::LoadPlayerInfo()
|
||||
// Loading levels data (class/race dependent)
|
||||
TC_LOG_INFO("server.loading", "Loading Player Create Level Stats Data...");
|
||||
{
|
||||
struct RaceStats
|
||||
{
|
||||
std::array<int16, MAX_STATS> StatModifier = { };
|
||||
};
|
||||
|
||||
std::array<RaceStats, MAX_RACES> raceStatModifiers = { };
|
||||
|
||||
uint32 oldMSTime = getMSTime();
|
||||
|
||||
// 0 1 2 3 4 5 6 7
|
||||
QueryResult result = WorldDatabase.Query("SELECT race, class, level, str, agi, sta, inte, spi FROM player_levelstats");
|
||||
// 0 1 2 3 4 5 6
|
||||
QueryResult raceStatsResult = WorldDatabase.Query("SELECT race, str, agi, sta, inte, spi FROM player_racestats");
|
||||
|
||||
if (!raceStatsResult)
|
||||
{
|
||||
TC_LOG_ERROR("server.loading", ">> Loaded 0 race stats definitions. DB table `player_racestats` is empty.");
|
||||
ABORT();
|
||||
}
|
||||
|
||||
do
|
||||
{
|
||||
Field* fields = raceStatsResult->Fetch();
|
||||
|
||||
uint32 current_race = fields[0].GetUInt8();
|
||||
if (current_race >= MAX_RACES)
|
||||
{
|
||||
TC_LOG_ERROR("sql.sql", "Wrong race %u in `player_racestats` table, ignoring.", current_race);
|
||||
continue;
|
||||
}
|
||||
|
||||
for (uint8 i = 0; i < MAX_STATS; ++i)
|
||||
raceStatModifiers[current_race].StatModifier[i] = fields[i + 1].GetInt16();
|
||||
|
||||
} while (raceStatsResult->NextRow());
|
||||
|
||||
// 0 1 2 3 4 5 6
|
||||
QueryResult result = WorldDatabase.Query("SELECT class, level, str, agi, sta, inte, spi FROM player_classlevelstats");
|
||||
|
||||
if (!result)
|
||||
{
|
||||
TC_LOG_ERROR("server.loading", ">> Loaded 0 level stats definitions. DB table `player_levelstats` is empty.");
|
||||
exit(1);
|
||||
TC_LOG_ERROR("server.loading", ">> Loaded 0 level stats definitions. DB table `player_classlevelstats` is empty.");
|
||||
ABORT();
|
||||
}
|
||||
|
||||
uint32 count = 0;
|
||||
@@ -3727,21 +3759,15 @@ void ObjectMgr::LoadPlayerInfo()
|
||||
{
|
||||
Field* fields = result->Fetch();
|
||||
|
||||
uint32 current_race = fields[0].GetUInt8();
|
||||
if (current_race >= MAX_RACES)
|
||||
{
|
||||
TC_LOG_ERROR("sql.sql", "Wrong race %u in `player_levelstats` table, ignoring.", current_race);
|
||||
continue;
|
||||
}
|
||||
|
||||
uint32 current_class = fields[1].GetUInt8();
|
||||
uint32 current_class = fields[0].GetUInt8();
|
||||
if (current_class >= MAX_CLASSES)
|
||||
{
|
||||
TC_LOG_ERROR("sql.sql", "Wrong class %u in `player_levelstats` table, ignoring.", current_class);
|
||||
continue;
|
||||
}
|
||||
|
||||
uint32 current_level = fields[2].GetUInt8();
|
||||
uint32 current_level = fields[1].GetUInt8();
|
||||
if (current_level > sWorld->getIntConfig(CONFIG_MAX_PLAYER_LEVEL))
|
||||
{
|
||||
if (current_level > STRONG_MAX_LEVEL) // hardcoded level maximum
|
||||
@@ -3754,14 +3780,17 @@ void ObjectMgr::LoadPlayerInfo()
|
||||
continue;
|
||||
}
|
||||
|
||||
if (PlayerInfo* info = _playerInfo[current_race][current_class])
|
||||
for (std::size_t race = 0; race < raceStatModifiers.size(); ++race)
|
||||
{
|
||||
if (!info->levelInfo)
|
||||
info->levelInfo = new PlayerLevelInfo[sWorld->getIntConfig(CONFIG_MAX_PLAYER_LEVEL)];
|
||||
if (PlayerInfo* info = _playerInfo[race][current_class])
|
||||
{
|
||||
if (!info->levelInfo)
|
||||
info->levelInfo = new PlayerLevelInfo[sWorld->getIntConfig(CONFIG_MAX_PLAYER_LEVEL)];
|
||||
|
||||
PlayerLevelInfo& levelInfo = info->levelInfo[current_level - 1];
|
||||
for (int i = 0; i < MAX_STATS; i++)
|
||||
levelInfo.stats[i] = fields[i + 3].GetUInt8();
|
||||
PlayerLevelInfo& levelInfo = info->levelInfo[current_level - 1];
|
||||
for (uint8 i = 0; i < MAX_STATS; i++)
|
||||
levelInfo.stats[i] = fields[i + 2].GetUInt16() + raceStatModifiers[race].StatModifier[i];
|
||||
}
|
||||
}
|
||||
|
||||
++count;
|
||||
|
||||
@@ -668,9 +668,7 @@ typedef std::vector<PlayerCreateInfoItem> PlayerCreateInfoItems;
|
||||
|
||||
struct PlayerLevelInfo
|
||||
{
|
||||
PlayerLevelInfo() { for (uint8 i = 0; i < MAX_STATS; ++i) stats[i] = 0; }
|
||||
|
||||
uint8 stats[MAX_STATS];
|
||||
uint16 stats[MAX_STATS] = { };
|
||||
};
|
||||
|
||||
typedef std::vector<uint32> PlayerCreateInfoSpells;
|
||||
|
||||
Reference in new issue
Block a user