Jump to content
Maintenance ×
×
×
  • Create New...
  • 0

Block guild war score count if killed same ip


Germais

Question

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

  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.


  • Activity

    1. 1

      Metin2 TitleBar Move Frezze

    2. 1

      Metin2 TitleBar Move Frezze

    3. 0

      Navicat "Trial" Reset

    4. 13

      Item ToolTip Width Fix

    5. 0

      Guild icon wrong position

    6. 3

      Monster health

    7. 4

      Luffy Pet

    8. 38

      Core X → Top Metin2 & Metin2 Download → Changelogs

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.