Jump to content

Jedzkie

Script Developers
  • Content Count

    632
  • Joined

  • Days Won

    4

Posts posted by Jedzkie


  1.  

    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.


  2. 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.


  3. Hello Guys,

    I am using Pre-Renewal (2013-12-23) and I observed that the awakening and concentration potion is not working. There's no additional aspd when I use it.

     

    Is anyone who experience the same problem? How did you fix it? Thank you in advance.

     

    Can you post a Screen shot before and after you use these items? I can't reproduce it.


  4. Ok that is sounds good   :)

     

    This is an english translation project 

     

    https://github.com/ROClientSide/Translation

     

    Can you give me a hint what files should I change and what files I shouldn't 

     

    At the end I will share my work with all hercules users and it will be a valuable add for this great forum  :lv:

     

    For me start first at https://github.com/ROClientSide/Translation/blob/master/data/msgstringtable.txt


  5.  

    hmm ... its simpler this time

    someone must have optimized this code

     src/map/atcommand.c | 5 +++++ 1 file changed, 5 insertions(+)diff --git a/src/map/atcommand.c b/src/map/atcommand.cindex ff88f2c..cabef1e 100644--- a/src/map/atcommand.c+++ b/src/map/atcommand.c@@ -1019,6 +1019,11 @@ ACMD(jobchange) 		return true; 	} +	if ( pc->jobid2mapid(job) & JOBL_THIRD ) {+		clif->message(fd, msg_fd(fd,155)); // You are unable to change your job.+		return false;+	}+ 	if (pc->jobchange(sd, job, upper) != 0) { 		clif->message(fd, msg_fd(fd,155)); // You are unable to change your job. 		return false;

     

    Thanks annie, ill try this.


  6.  

    LMAO !!

    I messed up the upper job (JOBL_UPPER) and third job (JOBL_THIRD)

    1 more time

     

    patchy

     src/map/atcommand.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)diff --git a/src/map/atcommand.c b/src/map/atcommand.cindex b5e8fa7..1c11ad7 100644--- a/src/map/atcommand.c+++ b/src/map/atcommand.c@@ -973,8 +973,12 @@ static inline const char* atcommand_help_string(AtCommandInfo *info) { 		return true; 	} 	-	if (pcdb_checkid(job)) {-		if (pc->jobchange(sd, job, upper) == 0)+	if ( pcdb_checkid(job) ) {+		if ( pc->jobid2mapid(job) & JOBL_THIRD ) {+			clif->message(fd, msg_txt(155)); // You are unable to change your job.+			return false;+		}+		else if (pc->jobchange(sd, job, upper) == 0) 			clif->message(fd, msg_txt(12)); // Your job has been changed. 		else { 			clif->message(fd, msg_txt(155)); // You are unable to change your job.

     

    @@AnnieRuru, can you update this code to support the latest version of hercules? Thanks!

×
×
  • Create New...

Important Information

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