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

Map1 no duel or free mode ?


DeYaN.

Question

Hei everyone , i want to make map1 non-pvp. but when we try to kill a mobs , to work. Or something like a npc mob Guardian who kill the player with free mode or who`s atack ?

Sorry for my english ..

Link to comment
  • 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


  • Read our Rules
  • Activity

    1. 0

      Fix CursorImage 'NoneType' object is not callable.

    2. 0

      [Land of Heroes] We are looking for Game / Game Economy Designers

    3. 177

      Render Target Remastered

    4. 1

      MySQL stop when start server

    5. 0

    6. 59

      Emoji in TextLine

    7. 1

      MySQL stop when start server

  • 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.