05-03-2021, 01:27 AM
use this function
Quote
void CharacterCreateNew::SetJob ( int nSelIdx )
{
#ifdef CHAR_NIGHSHADOW
if (nSelIdx < 0 )
nSelIdx = TOTAL_JOB - 1;
if (nSelIdx >= TOTAL_JOB)
nSelIdx = 0;
#else
if (nSelIdx < 0 )
nSelIdx = TOTAL_JOB - 2; //remove ns
if (nSelIdx >= TOTAL_JOB - 1) //remove ns
nSelIdx = 0;
#endif
m_nSelectJob = nSelIdx;
m_nSelPrevJob = nSelIdx - 1;
m_nSelNextJob = nSelIdx + 1;
#ifdef CHAR_NIGHTSHADOW
if (m_nSelPrevJob < 0)
m_nSelPrevJob = TOTAL_JOB - 1;
if (m_nSelNextJob >= TOTAL_JOB)
m_nSelNextJob = 0;
#else
if (m_nSelPrevJob < 0)
m_nSelPrevJob = TOTAL_JOB - 2; //remove ns
if (m_nSelNextJob >= TOTAL_JOB - 1) //remove ns
m_nSelNextJob = 0;
#endif
}
he forgot to convert the -1s that are already there in the original code into -2s^^
now, if you add #define CHAR_NIGHTSHADOW in Define_USA.h, NS will be enabled again, if you remove it/comment it out, NS will be disabled on character creation ?

