Jump to content

Change Empire Monarch Case


Recommended Posts

Hello , i was trying to add a case for player if he's a king ( monarch ) so he cant change his kingdom 


so i added this into char_change_empire.cpp but it didn't work 


 

on the top : 
#include "monarch.h"

and after ( married case ) 

    {
        // 3. 각 캐릭터의 결혼 정보를 얻어온다.
        //   한 캐릭터라도 결혼 상태라면 제국 이동을 할 수 없다.
        for (int i = 0; i < loop; ++i)
        {
            if (marriage::CManager::instance().IsEngagedOrMarried(dwPID[i]) == true)
                return 3;
        }
    }

i added
    {
        // 4. 각 캐릭터의 결혼 정보를 얻어온다.
        //   한 캐릭터라도 결혼 상태라면 제국 이동을 할 수 없다.
        for (int i = 0; i < loop; ++i)
        {
            if (monarch::CMonarch::instance().IsMonarch(dwPID[i]) == true)
                return 4;
        }
    }

and im getting this error https://metin2.download/picture/Ku9MtlEQM3cR5GB6d9Vtj3X6LutZOPGD/.png help me please

 

 

thank you in advance

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.