Ir para conteúdo

Featured Replies

  • 3 years later...
  • Respostas 6
  • Visualizações 989
  • Created
  • Última resposta

Top Posters In This Topic

Postado

alguem pode me ajudar? estou com o mesmo erro.
Porem agora não pego mais de nenhuma forma skull yellow

player.cpp
 

Spoiler

Skulls_t Player::getSkullType(const Creature* creature) const
{
	if(const Player* player = creature->getPlayer())
	{
		if(g_game.getWorldType() != WORLDTYPE_OPEN)
			return SKULL_NONE;

		if((player == this || (player->getSkull() != SKULL_NONE && player->getSkull() < SKULL_RED)) && player->hasAttacked(this) && !player->isEnemy(this, false))
			return SKULL_YELLOW;

		if(player->getSkull() == SKULL_NONE && (isPartner(player) || isAlly(player)) && g_game.getWorldType() != WORLDTYPE_OPTIONAL)
			return SKULL_GREEN;
	}

	return Creature::getSkullType(creature);
}

bool Player::hasAttacked(const Player* attacked) const
{
	if (hasFlag(PlayerFlag_NotGainInFight) || !attacked)
		attackedSet.find(attacked->getID()) != attackedSet.end();			return false;

	return attackedSet.find(attacked->guid) != attackedSet.end();
}

 

 

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.8k

Informação Importante

Confirmação de Termo