Jump to content
×
×
  • Create New...
  • 0

Map1 no duel or free mode ?


DeYaN.

Question

  • Answers 4
  • Created
  • Last Reply

Top Posters For This Question

4 answers to this question

Recommended Posts

  • 0

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
  • 0
//@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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Announcements

  • -15% Discount in Metin2 Dev Store (01/10/2021 => 31/12/2021) => Code => 15_PCT_OCT_TO_DEC_2021


  • Read our Rules
  • Activity

    1. 3

      Quest Craft

    2. 3

      Quest Craft

    3. 414

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

    4. 11

      Metin2 Patcher with Electron

    5. 17

      I Want Find freebsd 11.4 with remove unnecessary codes

    6. 17

      I Want Find freebsd 11.4 with remove unnecessary codes

    7. 3

      Quest Craft

  • Recently Browsing

    • No registered users viewing this page.

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.