DeYaN. 29 Posted October 17, 2016 Share Posted October 17, 2016 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 Share on other sites More sharing options...
VegaS 1087 Posted October 17, 2016 Share Posted October 17, 2016 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 More sharing options...
DeYaN. 29 Posted October 18, 2016 Author Share Posted October 18, 2016 Mersii frumos , dar skillurile de gramada care nu necesita o tinta,dau damage in continuare Thank you, but the skill who don`t need a target is working .. Link to comment Share on other sites More sharing options...
VegaS 1087 Posted November 12, 2016 Share Posted November 12, 2016 #wrongpost #requestoremovepost Link to comment Share on other sites More sharing options...
VegaS 1087 Posted November 19, 2016 Share Posted November 19, 2016 //@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 More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now