Jump to content
  • 0
Sign in to follow this  
Jedzkie

Separate Max HP for Trans Job and 3rd Job

Question

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

4 answers to this question

Recommended Posts

  • 0

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 this
Arch_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 by AnnieRuru

Share this post


Link to post
Share on other sites
  • 0

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 this
Arch_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.

Share this post


Link to post
Share on other sites
  • 0

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 by AnnieRuru

Share this post


Link to post
Share on other sites
  • 0

 

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.