Jump to content

Map1 no duel or free mode ?


Recommended Posts

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

File: //UserInterface//InstanceBase.cpp:

//1.) Search:

	if (GetVirtualID() == rkInstVictim.GetVirtualID())
		return false;

//2.) Add bellow:

#ifdef ENABLE_DISABLE_ATTACK_SPECIALS_MAP
//vegasfunctionTest874
	std::string strGetMapName = CPythonBackground::Instance().GetWarpMapName();
	const char* arrayMapList[] = {"metin2_map_a1", "metin2_map_b1", "metin2_map_c1"}; /* loaded from atlasinfo.txt */		
	
	for (int idx = 0; idx < _countof(arrayMapList); idx++) {
		if (IsPC() && rkInstVictim.IsPC() && arrayMapList[idx] == strGetMapName)
			return false;
	}
#endif

File: //UserInterface//Locale_inc.h:

#define ENABLE_DISABLE_ATTACK_SPECIALS_MAP

 

Link to comment
Share on other sites

  • 4 weeks later...
//@svn/Source/Client/UserInterface/InstanceBaseBattle.cpp
//1.) Search:
bool CInstanceBase::NEW_UseSkill(UINT uSkill, UINT uMot, UINT uMotLoopCount, bool isMovingSkill)
{
//2.) Add bellow:
#ifdef ENABLE_DISABLE_ATTACK_SPECIALS_MAP
	std::string uCurrentMap = CPythonBackground::Instance().GetWarpMapName();

	static const char* uArrayListOfMaps[] = {
		"metin2_map_a1",
		"metin2_map_b1",
		"metin2_map_c1"
	}; /* loaded from atlasinfo.txt */		
	
	for (int arg=0; arg<_countof(uArrayListOfMaps); arg++)
	{
		if (IsPC() && uArrayListOfMaps[arg] == uCurrentMap)
		{
			TraceError("CInstanceBase::Skill on map %s was blocked. Vegas have big dick oOoOoOoOo", uArrayListOfMaps[arg]);
			return false;
		}
	}
#endif

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 13

      Metin2 Closed Beta Content (2003-2004)

    2. 25

      [SRC] Metin2 on LINUX - The Old Metin2 Project

    3. 2

      United/Club/Midgard serverfiles?

    4. 13

      Metin2 Closed Beta Content (2003-2004)

    5. 13

      Metin2 Closed Beta Content (2003-2004)

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.