Jump to content

[C++] Jogadores não podem matar lojas


webnull
 Share

Recommended Posts

Este sistema evita que jogadores matem lojas fora do circulo, pode ser útil para alguém.

char_battle.cpp

Procurar por:

bool CHARACTER::Attack(LPCHARACTER pkVictim, BYTE bType)

 

E depois de:

 if (pkVictim->CanBeginFight())
        pkVictim->BeginFight(this);

 

Adicionar por baixo:

if (pkVictim->GetMyShop())
{
return false;
}

 

battle.cpp

Procurar por:

bool battle_is_attackable(LPCHARACTER ch, LPCHARACTER victim)


 

E depois de:

if (victim->IsDead())
return false;

 

Adicionar por baixo:

if (victim->GetMyShop())
return false;

 

Compilar e está feito.

 

 

  • Like 2
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...