Jump to content

Recommended Posts

Hello community.

Does anyone knows how to fix anti kick hack? There are 2 methods of this hack.
1) That a player can right click on a player, and if he click on the programm to kick him, he can kick him.
2) The other method, is he send him pm, and the client closes automatically.

Does anyone knows what do do?
Thanks for your time.

Link to comment
Share on other sites

  • Replies 13
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

30 minutes ago, MORTE said:

2) 

 

Yes i know. At the tutorial it say this:
 

Add these functions as public to char.h:

    void ClearPMCounter(void)       { m_iPMCounter = 0;      } 
    void IncreasePMCounter(void)    { m_iPMCounter++;        }
    void SetLastPMPulse(void);
    int  GetPMCounter(void)   const { return m_iPMCounter;   }
    int  GetLastPMPulse(void) const { return m_iLastPMPulse; }
    

Add these to char.h too, but as protected:

int m_iLastPMPulse;
int m_iPMCounter;


But, where i put them on char.h? what i need to search?
Link to comment
Share on other sites

5 minutes ago, zeimpekis9 said:

Yes i know. At the tutorial it say this:
 

Add these functions as public to char.h:


    void ClearPMCounter(void)       { m_iPMCounter = 0;      } 
    void IncreasePMCounter(void)    { m_iPMCounter++;        }
    void SetLastPMPulse(void);
    int  GetPMCounter(void)   const { return m_iPMCounter;   }
    int  GetLastPMPulse(void) const { return m_iLastPMPulse; }
    

Add these to char.h too, but as protected:


int m_iLastPMPulse;
int m_iPMCounter;


But, where i put them on char.h? what i need to search?

You can do so

KGcaQKHgTxqabY8N3yyPUQ.png

I at least did not follow this part of the tutorial, I did this one here

LoQHt8rHQOuHPS-Zh3Flmw.png

 

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

11 hours ago, zeimpekis9 said:

For the first method, is there any fix?

in char.cpp "bool CHARACTER::Sync(long x, long y)"

LPSECTREE new_tree = SECTREE_MANAGER::instance().Get(GetMapIndex(), x, y);

	if (!new_tree)
	{
		if (GetDesc())
		{
			sys_err("cannot find tree at %d %d (name: %s)", x, y, GetName());
			GetDesc()->SetPhase(PHASE_CLOSE);
		}
		else
		{
			sys_err("no tree: %s %d %d %d", GetName(), x, y, GetMapIndex());
			Dead();
		}

		return false;
	}

to

LPSECTREE new_tree = SECTREE_MANAGER::instance().Get(GetMapIndex(), x, y);
	if (!new_tree)
	{
		if (!GetDesc())
		{
			sys_err("No tree %s %ld %ld %ld", GetName(), x, y, GetMapIndex());
			Dead();
			return false;
		}
		
		x = GetX();
		y = GetY();
		new_tree = GetSectree();
		return false;
	}

 

Link to comment
Share on other sites

13 minutes ago, MORTE said:

in char.cpp "bool CHARACTER::Sync(long x, long y)"


LPSECTREE new_tree = SECTREE_MANAGER::instance().Get(GetMapIndex(), x, y);

	if (!new_tree)
	{
		if (GetDesc())
		{
			sys_err("cannot find tree at %d %d (name: %s)", x, y, GetName());
			GetDesc()->SetPhase(PHASE_CLOSE);
		}
		else
		{
			sys_err("no tree: %s %d %d %d", GetName(), x, y, GetMapIndex());
			Dead();
		}

		return false;
	}

to


LPSECTREE new_tree = SECTREE_MANAGER::instance().Get(GetMapIndex(), x, y);
	if (!new_tree)
	{
		if (!GetDesc())
		{
			sys_err("No tree %s %ld %ld %ld", GetName(), x, y, GetMapIndex());
			Dead();
			return false;
		}
		
		x = GetX();
		y = GetY();
		new_tree = GetSectree();
		return false;
	}

 

So this, will prevent from get kicked?

Link to comment
Share on other sites

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.