Jump to content

  •  

Phenex

Member Since 21 Aug 2013
Offline Last Active Sep 09 2016 05:05 PM
-----

Topics I've Started

Excluding a class out of a code

17 June 2016 - 09:06 PM

So, this is the code which is located in Pc.c that give 100 stat points after rebirth.

sd->status.status_point = statp[sd->status.base_level] + ( sd->class_&JOBL_UPPER ? 52 : 0 ); // extra 52+48=100 stat points

 

I've added 3rd baby jobs into it:

 

sd->status.status_point = statp[sd->status.base_level] + ( sd->class_&JOBL_UPPER ? 52 : 0 ) + ( sd->class_&JOBL_THIRD && sd->class_&JOBL_BABY ? 52 : 0 ); // extra 52+48=100 stat points

And it works.
 
The problem is Expanded Baby Super Novice class is also a 3rd baby class, and I don't want them to have 100 stat points given.
 
I want to exclude the Expanded Baby Super Novice out of this code. How do I do it? I don't know how to code it that way and I've been trying literally the whole day with various methods trying get it to work.
 
Really hoping one of you Src experts could shed some light in to this. Thank you~


socket #5, error 111: Connection refused

11 February 2016 - 04:34 AM

Hello Hercules,

I'm trying to set up a hercules server (on Centos 5) and i am currently stuck at this point.
Everything is connecting ok except I get this error which wouldn't let me connect to character selection.

[Error]: make_connection: connect failed (socket #5, error 111: Connection refused)!



Any help on this is appreciated, thanks.



Nevermind. Figured it out.

I was using a 2012 client and I switched to 2014.