Jump to content
  • 0
Tio Akima

jobchange and sc_end

Question

when i use pc-> jobchange () it finishes some SC_ (sc originals) and my sc_ custom it doesn't finish ...
The idea is that he will stop finishing all SCs

 

error-SC.png

 

the two original sc_ he is finalizing ... I can not understand why he finalizes these two, and my custom not

 

I looked at the whole pc->jobchange() function
And I found this condition that from status_change_end,

I left commented //

 

//    if ((job & MAPID_UPPERMASK) != (sd->job & MAPID_UPPERMASK)) { //Things to remove when changing class tree.
//        const int class_idx = pc->class2idx(sd->status.class);
//        short id;
//        for (i = 0; i < MAX_SKILL_TREE && (id = pc->skill_tree[class_idx][i].id) > 0; i++) {
            //Remove status specific to your current tree skills.
//            enum sc_type sc = status->skill2sc(id);
//            if (sc > SC_COMMON_MAX && sd->sc.data[sc]){
//                status_change_end(&sd->bl, sc, INVALID_TIMER);
//            }
//        }
//    }

but it did not work

the strange thing is that it finish (sc_end) only the original sc

in sc_config they are set the same

with these flags

Flags: {
		NoDeathReset: true
		NoDispelReset: true
		NoClearanceReset: true
		NoMadoReset: true
	}

 

 

@EDIT SOLVED! 

Edited by Tio Akima

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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

×
×
  • Create New...

Important Information

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