Initial Release of IGNCore version 2.5
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
# noinspection LongLineForFile
|
||||
|
||||
# noinspection LongLineForFile
|
||||
|
||||
DROP TABLE IF EXISTS alien_level;
|
||||
CREATE TABLE IF NOT EXISTS alien_level
|
||||
(
|
||||
alien_level SMALLINT NOT NULL PRIMARY KEY,
|
||||
axp INT NOT NULL,
|
||||
defender_rank VARCHAR(30) NOT NULL,
|
||||
min_level SMALLINT NOT NULL
|
||||
);
|
||||
INSERT INTO alien_level
|
||||
VALUES (1, 1500, 'Fledgling', 5),
|
||||
(2, 9000, 'Amateur', 15),
|
||||
(3, 22500, 'Beginner', 25),
|
||||
(4, 42000, 'Starter', 35),
|
||||
(5, 67500, 'Newcomer', 45),
|
||||
(6, 99000, 'Student', 55),
|
||||
(7, 136500, 'Common', 65),
|
||||
(8, 180000, 'Intermediate', 75),
|
||||
(9, 229500, 'Mediocre', 85),
|
||||
(10, 285000, 'Fair', 95),
|
||||
(11, 346500, 'Able', 105),
|
||||
(12, 414000, 'Accomplished', 110),
|
||||
(13, 487500, 'Adept', 115),
|
||||
(14, 567000, 'Qualified', 120),
|
||||
(15, 697410, 'Competent', 125),
|
||||
(16, 857814, 'Suited', 130),
|
||||
(17, 1055112, 'Talented', 135),
|
||||
(18, 1297787, 'Trustworthy', 140),
|
||||
(19, 1596278, 'Supporter', 145),
|
||||
(20, 1931497, 'Backer', 150),
|
||||
(21, 2298481, 'Defender', 155),
|
||||
(22, 2689223, 'Challenger', 160),
|
||||
(23, 3092606, 'Patron', 165),
|
||||
(24, 3494645, 'Protector', 170),
|
||||
(25, 3879056, 'Medalist', 175),
|
||||
(26, 4228171, 'Champ', 180),
|
||||
(27, 4608707, 'Hero', 185),
|
||||
(28, 5023490, 'Guardian', 190),
|
||||
(29, 5475604, 'Vanquisher', 195),
|
||||
(30, 5968409, 'Vindicator', 200);
|
||||
@@ -0,0 +1,242 @@
|
||||
# noinspection LongLineForFile
|
||||
|
||||
# noinspection LongLineForFile
|
||||
|
||||
DROP TABLE IF EXISTS level;
|
||||
CREATE TABLE IF NOT EXISTS level
|
||||
(
|
||||
level SMALLINT NOT NULL PRIMARY KEY,
|
||||
team_min SMALLINT NOT NULL,
|
||||
team_max SMALLINT NOT NULL,
|
||||
pvp_min SMALLINT NOT NULL,
|
||||
pvp_max SMALLINT NOT NULL,
|
||||
xpsk INT NOT NULL,
|
||||
tokens SMALLINT NOT NULL,
|
||||
daily_mission_xp SMALLINT NOT NULL,
|
||||
missions TEXT NOT NULL,
|
||||
max_ai_level SMALLINT NOT NULL,
|
||||
max_le_level SMALLINT NOT NULL,
|
||||
mob_min SMALLINT NOT NULL,
|
||||
mob_max SMALLINT NOT NULL
|
||||
);
|
||||
INSERT INTO `level`
|
||||
VALUES (1, 1, 7, 1, 5, 1450, 1, 100, '1,1,1,1,1,1,1,1,1,1,1', 0, 1, 1, 4),
|
||||
(2, 1, 8, 1, 6, 2600, 1, 100, '1,1,1,1,1,2,2,2,2,3,3', 0, 1, 1, 5),
|
||||
(3, 1, 9, 1, 7, 3100, 1, 100, '2,2,2,2,2,3,3,3,3,4,5', 0, 1, 1, 6),
|
||||
(4, 1, 10, 1, 8, 4000, 1, 100, '2,3,3,3,3,4,4,4,5,6,7', 0, 1, 1, 7),
|
||||
(5, 1, 11, 1, 9, 4500, 1, 100, '3,3,4,4,4,5,5,6,6,7,8', 1, 1, 1, 8),
|
||||
(6, 1, 12, 2, 10, 5000, 1, 100, '4,4,4,5,5,6,6,7,7,9,10', 1, 1, 2, 9),
|
||||
(7, 1, 13, 3, 11, 5500, 1, 100, '4,5,5,5,6,7,7,8,9,10,12', 1, 1, 3, 10),
|
||||
(8, 2, 14, 4, 12, 6000, 1, 100, '5,6,6,6,7,8,8,9,10,12,14', 1, 1, 4, 11),
|
||||
(9, 3, 15, 5, 13, 6500, 1, 100, '6,6,7,7,8,9,9,10,11,13,16', 1, 1, 5, 12),
|
||||
(10, 4, 17, 6, 15, 7000, 1, 100, '7,7,8,8,9,10,11,12,13,15,17', 1, 1, 5, 13),
|
||||
(11, 5, 18, 7, 16, 7700, 1, 100, '7,8,8,9,9,11,12,13,14,16,19', 1, 1, 6, 14),
|
||||
(12, 6, 19, 8, 17, 8300, 1, 100, '8,9,9,10,10,12,13,14,15,18,21', 1, 1, 7, 15),
|
||||
(13, 7, 20, 9, 18, 8900, 1, 100, '9,9,10,11,11,13,14,15,16,19,23', 1, 1, 8, 16),
|
||||
(14, 8, 21, 10, 19, 9600, 1, 100, '9,10,11,11,12,14,15,16,18,21,25', 1, 1, 9, 17),
|
||||
(15, 9, 24, 10, 21, 10400, 2, 100, '10,11,12,12,13,15,16,18,19,22,26', 2, 1, 9, 19),
|
||||
(16, 10, 25, 11, 22, 11000, 2, 100, '11,12,12,13,14,16,17,19,20,24,28', 2, 1, 10, 20),
|
||||
(17, 10, 26, 12, 23, 11900, 2, 100, '11,12,13,14,15,17,18,20,22,25,30', 2, 1, 11, 21),
|
||||
(18, 11, 27, 13, 24, 12700, 2, 100, '12,13,14,15,16,18,19,21,23,27,32', 2, 1, 12, 22),
|
||||
(19, 12, 28, 14, 25, 13700, 2, 100, '13,14,15,16,17,19,20,22,24,28,34', 2, 1, 13, 23),
|
||||
(20, 13, 29, 15, 26, 15400, 2, 100, '14,15,16,17,18,20,22,24,26,30,35', 2, 1, 14, 24),
|
||||
(21, 14, 30, 15, 27, 16400, 2, 100, '14,15,16,17,18,21,23,25,27,31,37', 2, 1, 15, 25),
|
||||
(22, 15, 32, 16, 29, 17600, 2, 100, '15,16,17,18,19,22,24,26,28,33,39', 2, 1, 15, 27),
|
||||
(23, 15, 33, 17, 30, 18800, 2, 100, '16,17,18,19,20,23,25,27,29,34,41', 2, 1, 16, 28),
|
||||
(24, 15, 34, 18, 31, 20100, 2, 100, '16,18,19,20,21,24,26,28,31,36,42', 2, 1, 17, 29),
|
||||
(25, 16, 35, 19, 32, 21500, 2, 100, '17,18,20,21,22,25,27,30,32,37,44', 3, 1, 18, 30),
|
||||
(26, 17, 38, 20, 34, 22900, 2, 100, '18,19,20,22,23,26,28,31,33,39,46', 3, 1, 19, 32),
|
||||
(27, 18, 39, 21, 35, 24500, 2, 100, '18,20,21,22,24,27,29,32,35,40,48', 3, 1, 20, 33),
|
||||
(28, 19, 40, 22, 36, 26100, 2, 100, '19,21,22,23,25,28,30,33,36,42,50', 3, 1, 20, 34),
|
||||
(29, 20, 41, 22, 37, 27800, 2, 100, '20,21,23,24,26,29,31,34,37,43,51', 3, 1, 21, 35),
|
||||
(30, 21, 43, 23, 39, 30900, 2, 100, '21,22,24,25,27,30,33,36,39,45,53', 3, 1, 22, 36),
|
||||
(31, 22, 44, 24, 40, 33000, 2, 100, '21,23,24,26,27,31,34,37,40,46,55', 3, 1, 23, 38),
|
||||
(32, 22, 45, 25, 41, 35100, 2, 100, '22,24,25,27,28,32,35,38,41,48,57', 3, 1, 23, 39),
|
||||
(33, 23, 46, 26, 42, 37400, 2, 100, '23,24,26,28,29,33,36,39,42,49,59', 3, 1, 24, 40),
|
||||
(34, 24, 49, 26, 44, 39900, 2, 100, '23,25,27,28,30,34,37,40,44,51,60', 3, 1, 25, 41),
|
||||
(35, 25, 50, 27, 45, 42400, 2, 100, '24,26,28,29,31,35,38,42,45,52,62', 4, 1, 26, 42),
|
||||
(36, 26, 51, 28, 46, 45100, 2, 100, '25,27,28,30,32,36,39,43,46,54,64', 4, 1, 26, 44),
|
||||
(37, 26, 52, 29, 47, 47900, 2, 100, '25,27,29,31,33,37,40,44,48,55,66', 4, 1, 27, 45),
|
||||
(38, 26, 54, 30, 49, 50900, 2, 100, '26,28,30,32,34,38,41,45,49,57,68', 4, 1, 28, 46),
|
||||
(39, 27, 55, 30, 50, 54000, 2, 100, '27,29,31,33,35,39,42,46,50,58,69', 4, 1, 29, 47),
|
||||
(40, 28, 56, 31, 51, 57400, 2, 100, '28,30,32,34,36,40,44,48,52,60,71', 4, 1, 29, 48),
|
||||
(41, 29, 57, 32, 52, 60900, 2, 100, '28,30,32,34,36,41,45,49,53,61,73', 4, 1, 30, 50),
|
||||
(42, 30, 60, 33, 54, 64500, 2, 100, '29,31,33,35,37,42,46,50,54,63,75', 4, 1, 31, 51),
|
||||
(43, 30, 61, 34, 55, 68400, 2, 100, '30,32,34,36,38,43,47,51,55,64,77', 4, 1, 32, 52),
|
||||
(44, 31, 62, 34, 56, 76400, 2, 100, '30,33,35,37,39,44,48,52,57,66,78', 4, 1, 32, 53),
|
||||
(45, 32, 63, 35, 57, 81000, 2, 100, '31,33,36,38,40,45,49,54,58,67,80', 5, 1, 33, 54),
|
||||
(46, 33, 65, 36, 59, 85900, 2, 100, '32,34,36,39,41,46,50,55,59,69,82', 5, 1, 34, 56),
|
||||
(47, 34, 66, 37, 60, 91000, 2, 100, '32,35,37,39,42,47,51,56,61,70,84', 5, 1, 35, 57),
|
||||
(48, 34, 67, 38, 61, 96400, 2, 100, '33,36,38,40,43,48,52,57,62,72,85', 5, 1, 35, 58),
|
||||
(49, 34, 68, 38, 62, 101900, 2, 100, '34,36,39,41,44,49,53,58,63,73,87', 5, 1, 36, 59),
|
||||
(50, 35, 71, 39, 64, 108000, 3, 100, '35,37,40,42,45,50,55,60,65,75,89', 5, 2, 37, 60),
|
||||
(51, 36, 72, 40, 65, 114300, 3, 100, '35,38,40,43,45,51,56,61,66,76,91', 5, 2, 37, 62),
|
||||
(52, 37, 73, 41, 66, 120800, 3, 100, '36,39,41,44,46,52,57,62,67,78,93', 5, 2, 38, 63),
|
||||
(53, 38, 74, 42, 67, 127700, 3, 100, '37,39,42,45,47,53,58,63,68,79,94', 5, 2, 39, 64),
|
||||
(54, 38, 76, 42, 69, 135000, 3, 100, '37,40,43,45,48,54,59,64,70,81,96', 5, 2, 40, 65),
|
||||
(55, 39, 77, 43, 70, 142600, 3, 100, '38,41,44,46,49,55,60,66,71,82,98', 6, 2, 40, 66),
|
||||
(56, 40, 78, 44, 71, 150700, 3, 100, '39,42,44,47,50,56,61,67,72,84,100', 6, 2, 41, 68),
|
||||
(57, 41, 79, 45, 72, 161900, 3, 100, '39,42,45,48,51,57,62,68,74,85,102', 6, 2, 42, 69),
|
||||
(58, 42, 82, 46, 74, 167800, 3, 100, '40,43,46,49,52,58,63,69,75,87,103', 6, 2, 43, 70),
|
||||
(59, 42, 83, 46, 75, 177100, 3, 100, '41,44,47,50,53,59,64,70,76,88,105', 6, 2, 43, 71),
|
||||
(60, 42, 84, 47, 76, 203500, 3, 100, '42,45,48,51,54,60,66,72,78,90,107', 6, 2, 44, 72),
|
||||
(61, 43, 85, 48, 77, 214700, 3, 100, '42,45,48,51,54,61,67,73,79,91,109', 6, 2, 45, 74),
|
||||
(62, 44, 87, 49, 79, 226700, 3, 100, '43,46,49,52,55,62,68,74,80,93,111', 6, 2, 46, 75),
|
||||
(63, 45, 88, 50, 80, 239100, 3, 100, '44,47,50,53,56,63,69,75,81,94,112', 6, 2, 46, 76),
|
||||
(64, 46, 89, 50, 81, 251900, 3, 100, '44,48,51,54,57,64,70,76,83,96,114', 6, 2, 47, 77),
|
||||
(65, 46, 90, 51, 82, 265700, 3, 100, '45,48,52,55,58,65,71,78,84,97,116', 7, 2, 48, 78),
|
||||
(66, 47, 93, 52, 84, 280000, 3, 100, '46,49,52,56,59,66,72,79,85,99,118', 7, 2, 49, 80),
|
||||
(67, 48, 94, 53, 85, 294800, 3, 100, '46,50,53,56,60,67,73,80,87,100,120', 7, 2, 49, 81),
|
||||
(68, 49, 95, 54, 86, 310600, 3, 100, '47,51,54,57,61,68,74,81,88,102,121', 7, 2, 50, 82),
|
||||
(69, 50, 96, 54, 87, 327000, 3, 100, '48,51,55,58,62,69,75,82,89,103,123', 7, 2, 51, 83),
|
||||
(70, 50, 98, 55, 89, 344400, 3, 100, '49,52,56,59,63,70,77,84,91,105,125', 7, 2, 52, 84),
|
||||
(71, 50, 99, 56, 90, 362300, 3, 100, '49,53,56,60,63,71,78,85,92,106,127', 7, 2, 52, 86),
|
||||
(72, 51, 100, 57, 91, 381100, 3, 100, '50,54,57,61,64,72,79,86,93,108,128', 7, 2, 53, 87),
|
||||
(73, 52, 101, 58, 92, 401000, 3, 100, '51,54,58,62,65,73,80,87,94,109,130', 7, 2, 54, 88),
|
||||
(74, 53, 104, 58, 94, 421600, 3, 100, '51,55,59,62,66,74,81,88,96,111,132', 7, 2, 55, 89),
|
||||
(75, 54, 105, 59, 95, 443300, 4, 100, '52,56,60,63,67,75,82,90,97,112,134', 8, 3, 55, 90),
|
||||
(76, 54, 106, 60, 96, 508100, 4, 100, '53,57,60,64,68,76,83,91,98,114,136', 8, 3, 56, 92),
|
||||
(77, 55, 107, 61, 97, 534200, 4, 100, '53,57,61,65,69,77,84,92,100,115,137', 8, 3, 57, 93),
|
||||
(78, 56, 109, 62, 99, 561600, 4, 100, '54,58,62,66,70,78,85,93,101,117,139', 8, 3, 58, 94),
|
||||
(79, 57, 110, 62, 100, 590200, 4, 100, '55,59,63,67,71,79,86,94,102,118,141', 8, 3, 58, 95),
|
||||
(80, 58, 111, 63, 101, 620000, 4, 100, '56,60,64,68,72,80,88,96,104,120,143', 8, 3, 59, 96),
|
||||
(81, 58, 112, 64, 102, 651000, 4, 100, '56,60,64,68,72,81,89,97,105,121,145', 8, 3, 60, 98),
|
||||
(82, 58, 115, 65, 104, 683700, 4, 100, '57,61,65,69,73,82,90,98,106,123,146', 8, 3, 61, 99),
|
||||
(83, 59, 116, 66, 105, 717900, 4, 100, '58,62,66,70,74,83,91,99,107,124,148', 8, 3, 61, 100),
|
||||
(84, 60, 117, 66, 106, 753500, 4, 100, '58,63,67,71,75,84,92,100,109,126,150', 8, 3, 62, 101),
|
||||
(85, 61, 118, 67, 107, 790800, 4, 100, '59,63,68,72,76,85,93,102,110,127,152', 9, 3, 63, 102),
|
||||
(86, 62, 120, 68, 109, 829400, 4, 100, '60,64,68,73,77,86,94,103,111,129,154', 9, 3, 64, 104),
|
||||
(87, 62, 121, 69, 110, 870000, 4, 100, '60,65,69,73,78,87,95,104,113,130,155', 9, 3, 64, 105),
|
||||
(88, 63, 122, 70, 111, 912600, 4, 100, '61,66,70,74,79,88,96,105,114,132,157', 9, 3, 65, 106),
|
||||
(89, 64, 123, 70, 112, 956800, 4, 100, '62,66,71,75,80,89,97,106,115,133,159', 9, 3, 66, 107),
|
||||
(90, 65, 126, 71, 114, 1003000, 4, 100, '63,67,72,76,81,90,99,108,116,135,161', 9, 3, 67, 108),
|
||||
(91, 66, 127, 72, 115, 1051300, 4, 100, '63,68,72,77,81,91,100,109,118,136,163', 9, 3, 67, 110),
|
||||
(92, 66, 128, 73, 116, 1101500, 4, 100, '64,69,73,78,82,92,101,110,119,138,164', 9, 3, 68, 111),
|
||||
(93, 66, 129, 74, 117, 1153900, 4, 100, '65,69,74,79,83,93,102,111,120,139,166', 9, 3, 69, 112),
|
||||
(94, 67, 131, 74, 119, 1208800, 4, 100, '65,70,75,79,84,94,103,112,122,141,168', 9, 3, 70, 113),
|
||||
(95, 68, 132, 75, 120, 1266000, 4, 100, '66,71,76,80,85,95,104,114,123,142,170', 10, 3, 70, 114),
|
||||
(96, 69, 133, 76, 121, 1325500, 4, 100, '67,72,76,81,86,96,105,115,124,144,171', 10, 3, 71, 116),
|
||||
(97, 70, 134, 77, 122, 1387700, 4, 100, '67,72,77,82,87,97,106,116,126,145,173', 10, 3, 72, 117),
|
||||
(98, 70, 137, 78, 124, 1452300, 4, 100, '68,73,78,83,88,98,107,117,127,147,175', 10, 3, 73, 118),
|
||||
(99, 71, 138, 78, 125, 1519900, 4, 100, '69,74,79,84,89,99,108,118,128,148,177', 10, 3, 73, 119),
|
||||
(100, 72, 139, 79, 126, 1590300, 5, 100, '70,75,80,85,90,100,110,120,130,150,179', 10, 4, 74, 120),
|
||||
(101, 73, 140, 80, 127, 1663500, 5, 99, '70,75,80,85,90,101,111,121,131,151,180', 10, 4, 75, 122),
|
||||
(102, 74, 142, 81, 129, 1739900, 5, 98, '71,76,81,86,91,102,112,122,132,153,182', 10, 4, 75, 123),
|
||||
(103, 74, 143, 82, 130, 1819600, 5, 97, '72,77,82,87,92,103,113,123,133,154,184', 10, 4, 76, 124),
|
||||
(104, 74, 144, 82, 131, 1902200, 5, 96, '72,78,83,88,93,104,114,124,135,156,186', 10, 4, 77, 125),
|
||||
(105, 75, 145, 83, 132, 1988900, 5, 95, '73,78,84,89,94,105,115,126,136,157,188', 11, 4, 78, 126),
|
||||
(106, 76, 148, 84, 134, 2078600, 5, 94, '74,79,84,90,95,106,116,127,137,159,189', 11, 4, 78, 128),
|
||||
(107, 77, 149, 85, 135, 2172100, 5, 93, '74,80,85,90,96,107,117,128,139,160,191', 11, 4, 79, 129),
|
||||
(108, 78, 150, 86, 136, 2269800, 5, 92, '75,81,86,91,97,108,118,129,140,162,193', 11, 4, 80, 130),
|
||||
(109, 78, 151, 86, 137, 2371100, 5, 91, '76,81,87,92,98,109,119,130,141,163,195', 11, 4, 81, 131),
|
||||
(110, 79, 153, 87, 139, 2476600, 5, 90, '77,82,88,93,99,110,121,132,143,165,197', 12, 4, 81, 132),
|
||||
(111, 80, 154, 88, 140, 2586600, 5, 89, '77,83,88,94,99,111,122,133,144,166,198', 12, 4, 82, 134),
|
||||
(112, 81, 155, 89, 141, 2701000, 5, 88, '78,84,89,95,100,112,123,134,145,168,200', 12, 4, 83, 135),
|
||||
(113, 82, 156, 90, 142, 2819800, 5, 87, '79,84,90,96,101,113,124,135,146,169,202', 12, 4, 84, 136),
|
||||
(114, 82, 159, 90, 144, 2943600, 5, 86, '79,85,91,96,102,114,125,136,148,171,204', 12, 4, 84, 137),
|
||||
(115, 82, 160, 91, 145, 3072400, 5, 85, '80,86,92,97,103,115,126,138,149,172,205', 13, 4, 85, 138),
|
||||
(116, 83, 161, 92, 146, 3205800, 5, 84, '81,87,92,98,104,116,127,139,150,174,207', 13, 4, 86, 140),
|
||||
(117, 84, 162, 93, 147, 3345200, 5, 83, '81,87,93,99,105,117,128,140,152,175,209', 13, 4, 87, 141),
|
||||
(118, 85, 164, 94, 149, 3489700, 5, 82, '82,88,94,100,106,118,129,141,153,177,211', 13, 4, 87, 142),
|
||||
(119, 86, 165, 94, 150, 3640200, 5, 81, '83,89,95,101,107,119,130,142,154,178,213', 13, 4, 88, 143),
|
||||
(120, 86, 166, 95, 151, 3796500, 5, 80, '84,90,96,102,108,120,132,144,156,180,214', 14, 4, 89, 144),
|
||||
(121, 87, 167, 96, 152, 3958900, 5, 79, '84,90,96,102,108,121,133,145,157,181,216', 14, 4, 90, 146),
|
||||
(122, 88, 170, 97, 154, 4128000, 5, 78, '85,91,97,103,109,122,134,146,158,183,218', 14, 4, 90, 147),
|
||||
(123, 89, 171, 98, 155, 4303400, 5, 77, '86,92,98,104,110,123,135,147,159,184,220', 14, 4, 91, 148),
|
||||
(124, 90, 172, 98, 156, 4485700, 5, 76, '86,93,99,105,111,124,136,148,161,186,222', 14, 4, 92, 149),
|
||||
(125, 90, 173, 99, 157, 4674800, 6, 75, '87,93,100,106,112,125,137,150,162,187,223', 15, 5, 93, 150),
|
||||
(126, 90, 175, 100, 159, 4871700, 6, 74, '88,94,100,107,113,126,138,151,163,189,225', 15, 5, 93, 152),
|
||||
(127, 91, 176, 101, 160, 5075700, 6, 73, '88,95,101,107,114,127,139,152,165,190,227', 15, 5, 94, 153),
|
||||
(128, 92, 177, 102, 161, 5288100, 6, 72, '89,96,102,108,115,128,140,153,166,192,229', 15, 5, 95, 154),
|
||||
(129, 93, 178, 102, 162, 5508200, 6, 71, '90,96,103,109,116,129,141,154,167,193,231', 15, 5, 96, 155),
|
||||
(130, 94, 181, 103, 164, 5736800, 6, 70, '91,97,104,110,117,130,143,156,169,195,232', 16, 5, 96, 156),
|
||||
(131, 94, 182, 104, 165, 5974600, 6, 69, '91,98,104,111,117,131,144,157,170,196,234', 16, 5, 97, 158),
|
||||
(132, 95, 183, 105, 166, 6220700, 6, 68, '92,99,105,112,118,132,145,158,171,198,236', 16, 5, 98, 159),
|
||||
(133, 96, 184, 106, 167, 6474500, 6, 67, '93,99,106,113,119,133,146,159,172,199,238', 16, 5, 99, 160),
|
||||
(134, 97, 186, 106, 169, 6742200, 6, 66, '93,100,107,113,120,134,147,160,174,201,240', 16, 5, 99, 161),
|
||||
(135, 98, 187, 107, 170, 7017500, 6, 65, '94,101,108,114,121,135,148,162,175,202,241', 17, 5, 100, 162),
|
||||
(136, 98, 188, 108, 171, 7303700, 6, 64, '95,102,108,115,122,136,149,163,176,204,243', 17, 5, 101, 164),
|
||||
(137, 98, 189, 109, 172, 7600100, 6, 63, '95,102,109,116,123,137,150,164,178,205,245', 17, 5, 102, 165),
|
||||
(138, 99, 192, 110, 174, 7907600, 6, 62, '96,103,110,117,124,138,151,165,179,207,247', 17, 5, 102, 166),
|
||||
(139, 100, 193, 110, 175, 8227000, 6, 61, '97,104,111,118,125,139,152,166,180,208,248', 17, 5, 103, 167),
|
||||
(140, 101, 194, 111, 176, 8557700, 6, 60, '98,105,112,119,126,140,154,168,182,210,250', 18, 5, 104, 168),
|
||||
(141, 102, 195, 112, 177, 8901000, 6, 59, '98,105,112,119,126,141,155,169,183,211,250', 18, 5, 105, 170),
|
||||
(142, 102, 197, 113, 179, 9256800, 6, 58, '99,106,113,120,127,142,156,170,184,213,250', 18, 5, 105, 171),
|
||||
(143, 103, 198, 114, 180, 9625800, 6, 57, '100,107,114,121,128,143,157,171,185,214,250', 18, 5, 106, 172),
|
||||
(144, 104, 199, 114, 181, 10008600, 6, 56, '100,108,115,122,129,144,158,172,187,216,250', 18, 5, 107, 173),
|
||||
(145, 105, 200, 115, 182, 10405300, 6, 55, '101,108,116,123,130,145,159,174,188,217,250', 19, 5, 108, 174),
|
||||
(146, 106, 203, 116, 184, 10816600, 6, 54, '102,109,116,124,131,146,160,175,189,219,250', 19, 5, 108, 176),
|
||||
(147, 106, 204, 117, 185, 11242500, 6, 53, '102,110,117,124,132,147,161,176,191,220,250', 19, 5, 109, 177),
|
||||
(148, 106, 205, 118, 186, 11684300, 6, 52, '103,111,118,125,133,148,162,177,192,222,250', 19, 5, 110, 178),
|
||||
(149, 107, 206, 118, 187, 12141900, 6, 51, '104,111,119,126,134,149,163,178,193,223,250', 19, 5, 111, 179),
|
||||
(150, 108, 208, 119, 189, 12616200, 7, 50, '105,112,120,127,135,150,165,180,195,225,250', 20, 6, 111, 180),
|
||||
(151, 109, 209, 120, 190, 13107200, 7, 49, '105,113,120,128,135,151,166,181,196,226,250', 20, 6, 112, 182),
|
||||
(152, 110, 210, 121, 191, 13616100, 7, 48, '106,114,121,129,136,152,167,182,197,228,250', 20, 6, 113, 183),
|
||||
(153, 110, 211, 122, 192, 14143600, 7, 47, '107,114,122,130,137,153,168,183,198,229,250', 20, 6, 113, 184),
|
||||
(154, 111, 214, 122, 194, 14689700, 7, 46, '107,115,123,130,138,154,169,184,200,231,250', 20, 6, 114, 185),
|
||||
(155, 112, 215, 123, 195, 15255300, 7, 45, '108,116,124,131,139,155,170,186,201,232,250', 21, 6, 115, 186),
|
||||
(156, 113, 216, 124, 196, 15841000, 7, 44, '109,117,124,132,140,156,171,187,202,234,250', 21, 6, 116, 188),
|
||||
(157, 114, 217, 125, 197, 16447900, 7, 43, '109,117,125,133,141,157,172,188,204,235,250', 21, 6, 116, 189),
|
||||
(158, 114, 219, 126, 199, 17075800, 7, 42, '110,118,126,134,142,158,173,189,205,237,250', 21, 6, 117, 190),
|
||||
(159, 114, 220, 126, 200, 17725900, 7, 41, '111,119,127,135,143,159,174,190,206,238,250', 21, 6, 118, 191),
|
||||
(160, 115, 220, 127, 201, 18399400, 7, 40, '112,120,128,136,144,160,176,192,208,240,250', 22, 6, 119, 192),
|
||||
(161, 116, 220, 128, 202, 19096100, 7, 39, '112,120,128,136,144,161,177,193,209,241,250', 22, 6, 119, 194),
|
||||
(162, 117, 220, 129, 204, 19817500, 7, 38, '113,121,129,137,145,162,178,194,210,243,250', 22, 6, 120, 195),
|
||||
(163, 118, 220, 130, 205, 20564100, 7, 37, '114,122,130,138,146,163,179,195,211,244,250', 22, 6, 121, 196),
|
||||
(164, 118, 220, 130, 206, 21336600, 7, 36, '114,123,131,139,147,164,180,196,213,246,250', 22, 6, 122, 197),
|
||||
(165, 119, 220, 131, 207, 22136100, 7, 35, '115,123,132,140,148,165,181,198,214,247,250', 23, 6, 122, 198),
|
||||
(166, 120, 220, 132, 209, 22963600, 7, 34, '116,124,132,141,149,166,182,199,215,249,250', 23, 6, 123, 200),
|
||||
(167, 121, 220, 133, 210, 23819700, 7, 33, '116,125,133,141,150,167,183,200,217,250,250', 23, 6, 124, 201),
|
||||
(168, 122, 220, 134, 211, 24705200, 7, 32, '117,126,134,142,151,168,184,201,218,250,250', 23, 6, 125, 202),
|
||||
(169, 122, 220, 134, 212, 25621100, 7, 31, '118,126,135,143,152,169,185,202,219,250,250', 23, 6, 125, 203),
|
||||
(170, 122, 220, 135, 214, 26569000, 7, 30, '119,127,136,144,153,170,187,204,220,250,250', 24, 6, 126, 204),
|
||||
(171, 123, 220, 136, 215, 27548800, 7, 30, '119,128,136,145,153,171,188,205,222,250,250', 24, 6, 127, 206),
|
||||
(172, 124, 220, 137, 216, 28562900, 7, 30, '120,129,137,146,154,172,189,206,223,250,250', 24, 6, 128, 207),
|
||||
(173, 125, 220, 138, 217, 29611100, 7, 30, '121,129,138,147,155,173,190,207,224,250,250', 24, 6, 128, 208),
|
||||
(174, 126, 220, 138, 219, 30695300, 7, 30, '121,130,139,147,156,174,191,208,226,250,250', 24, 6, 129, 209),
|
||||
(175, 126, 220, 139, 220, 31816300, 8, 30, '122,131,140,148,157,175,192,210,227,250,250', 25, 7, 130, 210),
|
||||
(176, 127, 220, 140, 220, 32975100, 8, 30, '123,132,140,149,158,176,193,211,228,250,250', 25, 7, 131, 212),
|
||||
(177, 128, 220, 141, 220, 34173500, 8, 30, '123,132,141,150,159,177,194,212,230,250,250', 25, 7, 131, 213),
|
||||
(178, 129, 220, 142, 220, 35412500, 8, 30, '124,133,142,151,160,178,195,213,231,250,250', 25, 7, 132, 214),
|
||||
(179, 130, 220, 142, 220, 36692500, 8, 30, '125,134,143,152,161,179,196,214,232,250,250', 25, 7, 133, 215),
|
||||
(180, 130, 220, 143, 220, 38016500, 8, 30, '126,135,144,153,162,180,198,216,233,250,250', 26, 7, 134, 216),
|
||||
(181, 130, 220, 144, 220, 39484400, 8, 30, '126,135,144,153,162,181,199,217,235,250,250', 26, 7, 134, 218),
|
||||
(182, 131, 220, 145, 220, 40797700, 8, 30, '127,136,145,154,163,182,200,218,236,250,250', 26, 7, 135, 219),
|
||||
(183, 132, 220, 146, 220, 42258500, 8, 30, '128,137,146,155,164,183,201,219,237,250,250', 26, 7, 136, 220),
|
||||
(184, 133, 220, 146, 220, 43768300, 8, 30, '128,138,147,156,165,184,202,220,239,250,250', 26, 7, 137, 221),
|
||||
(185, 134, 220, 147, 220, 45328100, 8, 30, '129,138,148,157,166,185,203,222,240,250,250', 27, 7, 137, 222),
|
||||
(186, 134, 220, 148, 220, 46939900, 8, 30, '130,139,148,158,167,186,204,223,241,250,250', 27, 7, 138, 224),
|
||||
(187, 135, 220, 149, 220, 48604900, 8, 30, '130,140,149,158,168,187,205,224,243,250,250', 27, 7, 139, 225),
|
||||
(188, 136, 220, 150, 220, 50324600, 8, 30, '131,141,150,159,169,188,206,225,244,250,250', 27, 7, 140, 226),
|
||||
(189, 137, 220, 150, 220, 52101200, 8, 30, '132,141,151,160,170,189,207,226,245,250,250', 27, 7, 140, 227),
|
||||
(190, 138, 220, 151, 220, 53936300, 9, 30, '133,142,152,161,171,190,209,228,246,250,250', 28, 9, 141, 228),
|
||||
(191, 138, 220, 152, 220, 55831600, 9, 30, '133,143,152,162,171,191,210,229,248,250,250', 28, 9, 142, 230),
|
||||
(192, 138, 220, 153, 220, 57788700, 9, 30, '134,144,153,163,172,192,211,230,249,250,250', 28, 9, 143, 231),
|
||||
(193, 139, 220, 154, 220, 59810000, 9, 30, '135,144,154,164,173,193,212,231,250,250,250', 28, 9, 143, 232),
|
||||
(194, 140, 220, 154, 220, 61897000, 9, 30, '135,145,155,164,174,194,213,232,250,250,250', 28, 9, 144, 233),
|
||||
(195, 141, 220, 155, 220, 64052200, 9, 30, '136,146,156,165,175,195,214,234,250,250,250', 29, 9, 145, 234),
|
||||
(196, 142, 220, 156, 220, 66277200, 9, 30, '137,147,156,166,176,196,215,235,250,250,250', 29, 9, 146, 236),
|
||||
(197, 142, 220, 157, 220, 68574400, 9, 30, '137,147,157,167,177,197,216,236,250,250,250', 29, 9, 146, 237),
|
||||
(198, 143, 220, 158, 220, 70945700, 9, 30, '138,148,158,168,178,198,217,237,250,250,250', 29, 9, 147, 238),
|
||||
(199, 144, 220, 158, 220, 73393900, 9, 30, '139,149,159,169,179,199,218,238,250,250,250', 29, 9, 148, 239),
|
||||
(200, 145, 220, 159, 220, 80000, 9, 20, '140,150,160,170,180,200,220,240,250,250,250', 30, 10, 149, 240),
|
||||
(201, 146, 220, 160, 220, 96000, 9, 19, '140,150,160,170,180,201,221,241,250,250,250', 30, 10, 161, 232),
|
||||
(202, 146, 220, 161, 220, 115200, 9, 18, '141,151,161,171,181,202,222,242,250,250,250', 30, 10, 167, 229),
|
||||
(203, 146, 220, 162, 220, 138240, 9, 17, '142,152,162,172,182,203,223,243,250,250,250', 30, 10, 173, 226),
|
||||
(204, 147, 220, 162, 220, 165888, 9, 16, '142,153,163,173,183,204,224,244,250,250,250', 30, 10, 179, 223),
|
||||
(205, 148, 220, 163, 220, 199066, 9, 15, '143,153,164,174,184,205,225,246,250,250,250', 30, 10, 183, 222),
|
||||
(206, 149, 220, 164, 220, 238879, 9, 14, '144,154,164,175,185,206,226,247,250,250,250', 30, 10, 186, 221),
|
||||
(207, 150, 220, 165, 220, 286654, 9, 13, '144,155,165,175,186,207,227,248,250,250,250', 30, 10, 187, 222),
|
||||
(208, 150, 220, 166, 220, 343985, 9, 12, '145,156,166,176,187,208,228,249,250,250,250', 30, 10, 188, 223),
|
||||
(209, 151, 220, 166, 220, 412782, 9, 11, '146,156,167,177,188,209,229,250,250,250,250', 30, 10, 189, 224),
|
||||
(210, 152, 220, 167, 220, 495339, 9, 10, '147,157,168,178,189,210,231,250,250,250,250', 30, 10, 190, 225),
|
||||
(211, 153, 220, 168, 220, 594407, 9, 9, '147,158,168,179,189,211,232,250,250,250,250', 30, 10, 191, 226),
|
||||
(212, 154, 220, 169, 220, 713288, 9, 8, '148,159,169,180,190,212,233,250,250,250,250', 30, 10, 192, 227),
|
||||
(213, 154, 220, 170, 220, 855946, 9, 7, '149,159,170,181,191,213,234,250,250,250,250', 30, 10, 193, 228),
|
||||
(214, 154, 220, 170, 220, 1027135, 9, 6, '149,160,171,181,192,214,235,250,250,250,250', 30, 10, 194, 229),
|
||||
(215, 155, 220, 171, 220, 1232562, 9, 5, '150,161,172,182,193,215,236,250,250,250,250', 30, 10, 195, 230),
|
||||
(216, 156, 220, 172, 220, 1479074, 9, 5, '151,162,172,183,194,216,237,250,250,250,250', 30, 10, 195, 232),
|
||||
(217, 157, 220, 173, 220, 1774889, 9, 5, '151,162,173,184,195,217,238,250,250,250,250', 30, 10, 195, 234),
|
||||
(218, 158, 220, 174, 220, 2129867, 9, 5, '152,163,174,185,196,218,239,250,250,250,250', 30, 10, 195, 236),
|
||||
(219, 158, 220, 174, 220, 2555840, 9, 5, '153,164,175,186,197,219,240,250,250,250,250', 30, 10, 195, 238),
|
||||
(220, 159, 220, 175, 220, 0, 9, 5, '154,165,176,187,198,220,242,250,250,250,250', 30, 10, 195, 239);
|
||||
@@ -0,0 +1,140 @@
|
||||
import math
|
||||
|
||||
from core.chat_blob import ChatBlob
|
||||
from core.command_param_types import Int
|
||||
from core.db import DB
|
||||
from core.decorators import instance, command
|
||||
|
||||
|
||||
@instance()
|
||||
class LevelController:
|
||||
def inject(self, registry):
|
||||
self.db: DB = registry.get_instance("db")
|
||||
self.util = registry.get_instance("util")
|
||||
self.text = registry.get_instance("text")
|
||||
self.command_alias_service = registry.get_instance("command_alias_service")
|
||||
|
||||
def pre_start(self):
|
||||
self.db.load_sql_file(self.module_dir + "/" + "alien_level.sql", pre_optimized=True)
|
||||
self.db.create_view("alien_level")
|
||||
self.db.load_sql_file(self.module_dir + "/" + "level.sql", pre_optimized=True)
|
||||
self.db.create_view("level")
|
||||
|
||||
def start(self):
|
||||
self.command_alias_service.add_alias("lvl", "level")
|
||||
self.command_alias_service.add_alias("pvp", "level")
|
||||
self.command_alias_service.add_alias("team", "level")
|
||||
self.command_alias_service.add_alias("missions", "mission")
|
||||
self.command_alias_service.add_alias("mish", "mission")
|
||||
self.command_alias_service.add_alias("ailevel", "axp")
|
||||
|
||||
@command(command="level", params=[Int("level")], access_level="member",
|
||||
description="Show information about a character level")
|
||||
def level_cmd(self, _, level):
|
||||
row = self.get_level_info(level)
|
||||
|
||||
if row:
|
||||
msg = f"<white>L {row.level:d}: " \
|
||||
f"Team {row.team_min:d}-{row.team_max:d}</white><highlight> | </highlight>" \
|
||||
f"<cyan>PvP {row.pvp_min:d}-{row.pvp_max:d}</cyan><highlight> | </highlight>" \
|
||||
f"<orange>Missions {row.missions}</orange><highlight> | </highlight>" \
|
||||
f"<blue>{row.tokens:d} token(s)</blue>"
|
||||
return msg
|
||||
else:
|
||||
return "Level must be between <highlight>1</highlight> and <highlight>220</highlight>."
|
||||
|
||||
@command(command="mission", params=[Int("mission_level")], access_level="member",
|
||||
description="Show what character levels can roll a specified mission level",
|
||||
extended_description="Updated mission levels provided by Lucier")
|
||||
def mission_cmd(self, _, level):
|
||||
if 1 <= level <= 250:
|
||||
levels = self.get_mission_levels(level)
|
||||
|
||||
return f"QL {level:d} missions can be rolled from these levels: {' '.join(levels)}"
|
||||
else:
|
||||
return "Mission level must be between <highlight>1</highlight> and <highlight>250</highlight>."
|
||||
|
||||
@command(command="xp", params=[Int("start_level"), Int("end_level", is_optional=True)], access_level="member",
|
||||
description="Show the amount of XP needed to reach a certain level")
|
||||
def xp_range_cmd(self, _, start_level, end_level):
|
||||
end_level = end_level or start_level + 1
|
||||
|
||||
if start_level == end_level:
|
||||
return "Start level must be different than end level."
|
||||
if start_level > end_level:
|
||||
start_level, end_level = end_level, start_level
|
||||
|
||||
if 1 <= start_level <= 220 and 1 <= end_level <= 220:
|
||||
if end_level <= 200:
|
||||
xp = self.db.query_single("SELECT SUM(xpsk) AS total_xp "
|
||||
"FROM level WHERE level >= ? AND level < ?",
|
||||
[start_level, end_level])
|
||||
needed = f"<highlight>{self.util.format_number(xp.total_xp)}</highlight> XP"
|
||||
elif start_level >= 200:
|
||||
sk = self.db.query_single("SELECT SUM(xpsk) AS total_sk "
|
||||
"FROM level WHERE level >= ? AND level < ?",
|
||||
[start_level, end_level])
|
||||
needed = f"<highlight>{self.util.format_number(sk.total_sk)}</highlight> SK"
|
||||
else:
|
||||
xp = self.db.query_single("SELECT SUM(xpsk) AS total_xp "
|
||||
"FROM level WHERE level >= ? AND level < 200",
|
||||
[start_level])
|
||||
sk = self.db.query_single("SELECT SUM(xpsk) AS total_sk "
|
||||
"FROM level WHERE level >= 200 AND level < ?",
|
||||
[end_level])
|
||||
needed = f"<highlight>{self.util.format_number(xp.total_xp)}</highlight> XP " \
|
||||
f"and <highlight>{self.util.format_number(sk.total_sk)}</highlight> SK"
|
||||
|
||||
return f"From the beginning of level <highlight>{start_level:d}</highlight> " \
|
||||
f"you need {needed} to reach level <highlight>{end_level:d}</highlight>"
|
||||
else:
|
||||
return "Level must be between <highlight>1</highlight> and <highlight>219</highlight>."
|
||||
|
||||
@command(command="axp", params=[], access_level="member",
|
||||
description="Show information about alien levels")
|
||||
def axp_single_cmd(self, _):
|
||||
data = self.db.query("SELECT * FROM alien_level ORDER BY alien_level")
|
||||
|
||||
rows = []
|
||||
for row in data:
|
||||
rows.append([f"<green>{row.alien_level}</green>", self.util.format_number(row.axp),
|
||||
f"<highlight>{row.defender_rank}</highlight>", f"Min Level: {row.min_level}"])
|
||||
|
||||
display_table = self.text.pad_table(rows, " ")
|
||||
|
||||
blob = ""
|
||||
for cols in display_table:
|
||||
blob += " ".join(cols) + "\n"
|
||||
|
||||
return ChatBlob("Alien Levels", blob)
|
||||
|
||||
def get_level_info(self, level):
|
||||
return self.db.query_single("SELECT * FROM level WHERE level = ?", [level])
|
||||
|
||||
def get_mission_levels(self, level):
|
||||
levels = []
|
||||
data = self.db.query("SELECT * FROM level")
|
||||
str_level = str(level)
|
||||
for row in data:
|
||||
if str_level in row.missions.split(","):
|
||||
levels.append(str(row.level))
|
||||
|
||||
return levels
|
||||
|
||||
def get_mission_levels2(self, level):
|
||||
mission_coefficients = [0.7001, 0.75, 0.8, 0.85, 0.9, 1.0, 1.1, 1.2, 1.3, 1.5, 1.7913]
|
||||
mission_levels = set()
|
||||
for i in mission_coefficients:
|
||||
val = math.floor(level * i)
|
||||
if val < 1:
|
||||
val = 1
|
||||
elif val > 250:
|
||||
val = 250
|
||||
|
||||
# I couldn't get 4 values to match with 1.3?
|
||||
if i == 1.3 and (level == 90 or level == 170 or level == 180 or level == 190):
|
||||
val -= 1
|
||||
|
||||
mission_levels.add(val)
|
||||
|
||||
return ",".join(map(lambda x: str(x), sorted(mission_levels)))
|
||||
Reference in New Issue
Block a user