Jump to content

Kiss Anybody Without Permission


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
Share on other sites

Announcements



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