antiblock
Elveron
  • Chatbox

    You don't have permission to chat.
    Load More
  • 0
Sign in to follow this  
hamiltonstar

Adiconar PK em MAPA VIP.

Question

Boas cyber-gamers 

eu queria saber como adiconar, não ao PVP dentro do MAPA VIP.

Exemplo para jogadores dos três reinos não atacar um ao outro.

 

Agradeço a todos Obrigado <3 

 

Share this post


Link to post
Share on other sites

5 answers to this question

  • 0

Ficheiro battle.cpp

Na função: 

bool battle_is_attackable(LPCHARACTER ch, LPCHARACTER victim)

Adicionar isto no início:

	switch(ch->GetMapIndex())
	{
		case <map_id>:
			{
				if (victim->IsPC() && ch->IsPC())
					return false;
			}
	}

 

Share this post


Link to post
Share on other sites
antiblock
Elveron
  • 0

@Karbust onde eu boto o index do mapa que eu quero bloquear o pvp? 

	switch(ch->GetMapIndex())
	{
		case <map_id>:101 (Exemplo) ?
			{
				if (victim->IsPC() && ch->IsPC())
					return false;
			}
	}

Share this post


Link to post
Share on other sites
  • 0

Hmmm, talvez onde eu pus <map_id>, não achas?

Share this post


Link to post
Share on other sites
  • 0

Não querendo ser mau nem nada do género.. mas há limites...

bool battle_is_attackable(LPCHARACTER ch, LPCHARACTER victim)
{
  
  switch(ch->GetMapIndex())
	{
		case 200:
			{
				if (victim->IsPC() && ch->IsPC())
					return false;
			}
	}
  
  [...]
}

 

Share this post


Link to post
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
Sign in to follow this