Jump to content

Recommended Posts

//@cmd_emotion.cpp
//Search for:
	#include "wedding.h"
//Add after:
	#include <algorithm>
	#include <vector> 

//Search for:
ACMD(do_emotion)
//Add before:
bool CanKissAnybody(DWORD dwPID)
{
	static const DWORD dwArrayIndex[] =
	{
		// Add in array the pid of players from player.player row "id".
		13200,
		14812,
		15910
		// ..... more
	};
	
	std::vector<DWORD> m_vec_pids (dwArrayIndex, dwArrayIndex + _countof(dwArrayIndex));
	return std::find(m_vec_pids.begin(), m_vec_pids.end(), dwPID) != m_vec_pids.end();
}

//Search for:
	if (!victim->IsPC() || victim == ch)
//Before, you will see if (victim)
//Replace if (victim) with:
	if (victim && !CanKissAnybody(ch->GetPlayerID()))

 

https://paste.ubuntu.com/24760441/
Especially thx to Vegas

  • Metin2 Dev 1
  • Love 2
Link to comment
https://metin2.dev/topic/15927-kiss-anybody-without-permission/
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.