Jump to content

[Proteção] Kick E Sync Hack


tierrilopes
 Share

Recommended Posts

Nome: kick hack / sync hack

 

Afeta: todos os cores

 

Resolução: Editar o seguinte na source, no ficheiro char.cpp:

 

 

 

bool CHARACTER::Sync(long x, long y)

{

if (!GetSectree())

return false;

 

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);

 

 

Para isto:

 

 


bool CHARACTER::Sync(long x, long y)
{
   if (!GetSectree())
       return false;

   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());      
           x = GetX();
           y = GetY();
           new_tree = GetSectree();

Link to comment
Share on other sites

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
 Share

×
×
  • Create New...