Jedzkie 58 Posted December 5, 2015 Hi! how can i make separate max hp configuration for trans job and 3rd job? @@AnnieRuru HIHIHIHIH Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted December 5, 2015 (edited) maybe should move to database request since this can be done with database alone Arch Bishop job_db.conf looks like this Arch_Bishop: { Weight: 30000 BaseASPD: { Fist: 45 Mace: 45 TwoHandMace: 45 Rod: 60 Knuckle: 50 Book: 44 TwoHandRod: 55 Shield: 5 } HPTable:[ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, // 1 - 10 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, // 11 - 20 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, // 21 - 30 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, // 31 - 40 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, // 41 - 50 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, // 51 - 60 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, // 61 - 70 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, // 71 - 80 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, // 81 - 90 91, 92, 93, 94, 95, 96, 97, 98, 4300, 4333, // 91 - 100 4412, 4491, 4570, 4649, 4728, 4807, 4886, 4965, 5044, 5123, // 101 - 110 5202, 5281, 5360, 5439, 5518, 5597, 5676, 5755, 5834, 5913, // 111 - 120 5992, 6071, 6150, 6229, 6308, 6387, 6466, 6545, 6624, 6703, // 121 - 130 6782, 6861, 6940, 7019, 7098, 7177, 7256, 7335, 7414, 7493, // 131 - 140 7572, 7651, 7730, 7809, 7888, 7967, 8046, 8125, 8204, 8283, // 141 - 150 8362, 8441, 8520, 8599, 8678, 8757, 8836, 8915, 8994, 9115, // 151 - 160 9276, 9438, 9601, 9765, 9930, 10096, 10263, 10431, 10600, 10770, // 161 - 170 10941, 11113, 11286, 11460, 11635] // 171 - 175 SPTable:[ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, // 1 - 10 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, // 11 - 20 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, // 21 - 30 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, // 31 - 40 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, // 41 - 50 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, // 51 - 60 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, // 61 - 70 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, // 71 - 80 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, // 81 - 90 91, 92, 93, 94, 95, 96, 97, 98, 800, 810, // 91 - 100 818, 826, 834, 842, 850, 858, 866, 874, 882, 890, // 101 - 110 898, 906, 914, 922, 930, 938, 946, 954, 962, 970, // 111 - 120 978, 986, 994, 1002, 1010, 1018, 1026, 1034, 1042, 1050, // 121 - 130 1058, 1066, 1074, 1082, 1090, 1098, 1106, 1114, 1122, 1130, // 131 - 140 1138, 1146, 1154, 1162, 1170, 1178, 1186, 1194, 1202, 1210, // 141 - 150 1258, 1286, 1334, 1372, 1410, 1458, 1466, 1474, 1482, 1490, // 151 - 160 1499, 1508, 1517, 1526, 1535, 1545, 1555, 1565, 1575, 1585, // 161 - 170 1596, 1607, 1618, 1629, 1640] // 171 - 175}and Arch Bishop Trans looks like thisArch_Bishop_Trans: { Inherit: ("Arch_Bishop")}means you know what to do right ? EDIT: so it seems like the hp/sp increase for trans job is calculated in the source code ... yeah https://github.com/HerculesWS/Hercules/blob/master/src/map/status.c#L2182 Edited December 5, 2015 by AnnieRuru Quote Share this post Link to post Share on other sites
0 Jedzkie 58 Posted December 5, 2015 maybe should move to database requestsince this can be done with database aloneArch Bishop job_db.conf looks like this Arch_Bishop: { Weight: 30000 BaseASPD: { Fist: 45 Mace: 45 TwoHandMace: 45 Rod: 60 Knuckle: 50 Book: 44 TwoHandRod: 55 Shield: 5 } HPTable:[ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, // 1 - 10 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, // 11 - 20 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, // 21 - 30 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, // 31 - 40 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, // 41 - 50 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, // 51 - 60 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, // 61 - 70 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, // 71 - 80 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, // 81 - 90 91, 92, 93, 94, 95, 96, 97, 98, 4300, 4333, // 91 - 100 4412, 4491, 4570, 4649, 4728, 4807, 4886, 4965, 5044, 5123, // 101 - 110 5202, 5281, 5360, 5439, 5518, 5597, 5676, 5755, 5834, 5913, // 111 - 120 5992, 6071, 6150, 6229, 6308, 6387, 6466, 6545, 6624, 6703, // 121 - 130 6782, 6861, 6940, 7019, 7098, 7177, 7256, 7335, 7414, 7493, // 131 - 140 7572, 7651, 7730, 7809, 7888, 7967, 8046, 8125, 8204, 8283, // 141 - 150 8362, 8441, 8520, 8599, 8678, 8757, 8836, 8915, 8994, 9115, // 151 - 160 9276, 9438, 9601, 9765, 9930, 10096, 10263, 10431, 10600, 10770, // 161 - 170 10941, 11113, 11286, 11460, 11635] // 171 - 175 SPTable:[ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, // 1 - 10 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, // 11 - 20 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, // 21 - 30 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, // 31 - 40 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, // 41 - 50 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, // 51 - 60 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, // 61 - 70 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, // 71 - 80 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, // 81 - 90 91, 92, 93, 94, 95, 96, 97, 98, 800, 810, // 91 - 100 818, 826, 834, 842, 850, 858, 866, 874, 882, 890, // 101 - 110 898, 906, 914, 922, 930, 938, 946, 954, 962, 970, // 111 - 120 978, 986, 994, 1002, 1010, 1018, 1026, 1034, 1042, 1050, // 121 - 130 1058, 1066, 1074, 1082, 1090, 1098, 1106, 1114, 1122, 1130, // 131 - 140 1138, 1146, 1154, 1162, 1170, 1178, 1186, 1194, 1202, 1210, // 141 - 150 1258, 1286, 1334, 1372, 1410, 1458, 1466, 1474, 1482, 1490, // 151 - 160 1499, 1508, 1517, 1526, 1535, 1545, 1555, 1565, 1575, 1585, // 161 - 170 1596, 1607, 1618, 1629, 1640] // 171 - 175}and Arch Bishop Trans looks like thisArch_Bishop_Trans: { Inherit: ("Arch_Bishop")}means you know what to do right ?EDIT: so it seems like the hp/sp increase for trans job is calculated in the source code ... yeahhttps://github.com/HerculesWS/Hercules/blob/master/src/map/status.c#L2182 Oops, what i mean is the max hp limit looool. Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted December 6, 2015 (edited) find this line if(bstatus->max_hp > (unsigned int)battle_config.max_hp) bstatus->max_hp = battle_config.max_hp;change into if ( pc->jobid2mapid(sd->status.class_) & (EAJL_UPPER|EAJL_THIRD) ) { // trans 3rd class if ( bstatus->max_hp > (amount) ) bstatus->max_hp = (amount); } else if ( pc->jobid2mapid(sd->status.class_) & EAJL_THIRD ) { // regular 3rd class if ( bstatus->max_hp > (amount) ) bstatus->max_hp = (amount); } else { // other jobs if ( bstatus->max_hp > (amount) ) bstatus->max_hp = (amount); }didn't test but you are developer so should at least able to debug this crap Edited December 6, 2015 by AnnieRuru 1 Jedzkie reacted to this Quote Share this post Link to post Share on other sites
0 Jedzkie 58 Posted December 6, 2015 find this line if(bstatus->max_hp > (unsigned int)battle_config.max_hp) bstatus->max_hp = battle_config.max_hp;change into if ( pc->jobid2mapid(sd->status.class_) & (EAJL_UPPER|EAJL_THIRD) ) { // trans 3rd class if ( bstatus->max_hp > (amount) ) bstatus->max_hp = (amount); } else if ( pc->jobid2mapid(sd->status.class_) & EAJL_THIRD ) { // regular 3rd class if ( bstatus->max_hp > (amount) ) bstatus->max_hp = (amount); } else { // other jobs if ( bstatus->max_hp > (amount) ) bstatus->max_hp = (amount); }didn't test but you are developer so should at least able to debug this crap LOL. Quote Share this post Link to post Share on other sites
Hi! how can i make separate max hp configuration for trans job and 3rd job? @@AnnieRuru HIHIHIHIH
Share this post
Link to post
Share on other sites