Remove NightShadow Client & DB
#15

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 ?



Messages In This Thread
[No subject] - by BayBay - 05-01-2021, 03:11 PM
[No subject] - by kravens - 05-01-2021, 04:55 PM
[No subject] - by BayBay - 05-01-2021, 05:08 PM
[No subject] - by Desarija - 05-01-2021, 05:34 PM
[No subject] - by BayBay - 05-01-2021, 05:40 PM
[No subject] - by Scura - 05-01-2021, 06:07 PM
[No subject] - by BayBay - 05-01-2021, 07:28 PM
[No subject] - by Desarija - 05-01-2021, 10:23 PM
[No subject] - by BayBay - 05-02-2021, 01:14 AM
[No subject] - by Desarija - 05-02-2021, 02:23 PM
[No subject] - by rondo157 - 05-02-2021, 03:08 PM
[No subject] - by BayBay - 05-02-2021, 08:23 PM
[No subject] - by BayBay - 05-02-2021, 08:25 PM
[No subject] - by BayBay - 05-02-2021, 10:25 PM
[No subject] - by Desarija - 05-03-2021, 01:27 AM
[No subject] - by BayBay - 05-03-2021, 02:56 AM
[No subject] - by BayBay - 05-03-2021, 03:08 AM
[No subject] - by Desarija - 05-03-2021, 09:30 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)