Jump to content

Block guild war score count if killed same ip


Go to solution Solved by metin2team,

Recommended Posts

I am trying to block the score count of the guild war if a victim is killed with the same ip as the killer.
I tried to add these lines to these two files but it still counts a kill if i kill my character.

guild_manager.cpp

void CGuildManager::Kill(LPCHARACTER killer, LPCHARACTER victim)
{
	if (killer->GetDesc()->GetHostName() == victim->GetDesc()->GetHostName())
		return;

war_map.cpp

void CWarMap::OnKill(LPCHARACTER killer, LPCHARACTER ch)
{
	if (m_bEnded)
		return;

	if (killer->GetDesc()->GetHostName() == ch->GetDesc()->GetHostName())
		return;

What am i missing?

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

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.