Jump to content
  • 0

Think I found an error


Katrina Mishow

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  05/13/18
  • Last Seen:  

So, I set transcendent_status_points in player.conf to a higher number... but I noticed that it seems to have no affect.   While perusing pc.cpp, I noticed this block of code.

// Give or reduce transcendent status points
    if( (b_class&JOBL_UPPER) && !(sd->class_&JOBL_UPPER) ){ // Change from a non t class to a t class -> give points
        sd->status.status_point += battle_config.transcendent_status_points;
        clif_updatestatus(sd,SP_STATUSPOINT);
    }else if( !(b_class&JOBL_UPPER) && (sd->class_&JOBL_UPPER) ){ // Change from a t class to a non t class -> remove points
        if( sd->status.status_point < battle_config.transcendent_status_points ){
            // The player already used his bonus points, so we have to reset his status points
            pc_resetstate(sd);
        }
        sd->status.status_point -= battle_config.transcendent_status_points;
        clif_updatestatus(sd,SP_STATUSPOINT);
    }

If I understand this correctly...  transcendent_status_points is supposed to be in battle.conf, not player..  

I'm *SUPER* new at playing with the scripting so I'm not sure if I'm right on this.  [Note: Added it to battle, but doesn't seem to have done anything either, so it's likely I'm wrong, but figure I'd point it out anyways?]

Also, curiously, if this is the correct spot, is it possible to add classes to this list that get the extra points?  

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2347
  • Joined:  10/28/11
  • Last Seen:  

Wrong section. Moved to "Source Support".

ensure your battle_config.transcendent_status_points has value?

trace where else it altered the statuspoint ?

 

If its an NPC script, you could easily alter the status point from there.

if (Class == Job_Swordman) {
    StatusPoint += 10000;
}

 

Edited by Emistry
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...