//@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()))
[Hidden Content]
Especially thx to Vegas