Jump to content

Recommended Posts

  • Premium

There's any way to avoid people from ride horse or costume mount in combat?

when people are at war in city or any other map, people mount/unmount to avoid hits. Any way to fix this and avoid the use of mounts in combat?

if pc.get_sex() == true and npc.get_sex() == false then
	npc.purge()
end

 

Link to comment
https://metin2.dev/topic/18944-anti-mount-in-combat/
Share on other sites

Char.cpp

bool CAN_NOT_RIDE_IN_THIS_MAP(int32_t map_index)
{
	switch (map_index)
	{
		case 9999: // MAP INDEX OF MAP
			return true;;
	}

	return false;
}

CHAR.H

bool CAN_NOT_RIDE_IN_THIS_MAP(int32_t map_index);

QUESTLUA_PC

//  int pc_mount(lua_State* L)
auto map_index = ch->GetMapIndex();

if (CAN_NOT_RIDE_IN_THIS_MAP(map_index))
{
	ChatPacket(CHAT_TYPE_INFO, LC_TEXT("blabla."));
	return 0;
}

 

  • Love 1
Link to comment
https://metin2.dev/topic/18944-anti-mount-in-combat/#findComment-103140
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.