Jump to content
  • 0

Excluding a certain class out of code


Dori

Question


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  332
  • Reputation:   15
  • Joined:  12/11/11
  • Last Seen:  

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~

Edited by Phenex
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  332
  • Reputation:   15
  • Joined:  12/11/11
  • Last Seen:  

Thanks for the reply Stolao, but the code didn't work.

This however worked:

sd->status.status_point = statp[sd->status.base_level] + ( sd->class_&JOBL_UPPER ? 52 : 0 ) + ( sd->class_&JOBL_THIRD && sd->class_&JOBL_BABY && (sd->class_ != MAPID_SUPER_BABY_E) ? 52 : 0 );

Thank you Corrosive for the help~

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  


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

Link to comment
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.   Paste as plain text instead

  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.

×
×
  • Create New...