Jump to content

Obtain the symbol of whether it is a dungeon


Recommended Posts

 Dear great developers  !!!!

I want to block the implementation of some functions in the dungeon map, so with this, I added these codes, but they cannot be compiled

PythonBackground.cpp

bool CPythonBackground::IsDungeonMap()
{
    static constexpr auto s_lstDungeonMaps = {
        "metin2_map_deviltower1", "dungeon2", "dungeon3"
    };

    const auto szMapName = CPythonBackground::Instance().GetWarpMapName();
    return std::any_of(s_lstDungeonMaps.begin(), s_lstDungeonMaps.end(), [szMapName](const char* szDungeonMap) {
        return std::strcmp(szMapName, szDungeonMap) == 0;
    });
}

bool CPythonBackground::CheckAdvancing(CInstanceBase * pInstance)

PythonBackground.h

	void RenderAfterLensFlare();

	bool IsDungeonMap();

	bool CheckAdvancing(CInstanceBase * pInstance);

InstanceBaseBattle.cpp

BOOL CInstanceBase::CheckAdvancing()
{
#ifdef ENABLE_NEW_AUTO_HUNT_SYSTEM
    if (CPythonPlayer::instance().IsAutoHuntEnabled() && IsPC() && IsWalking() && !IsDungeonMap()) {
    } else {
        return false;
    }
#endif

Thank you all

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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.