Jump to content

Duvida Imune


moikano22
 Share

Recommended Posts

5 horas atrás, moikano22 disse:

Boas amigos,

No meu servidor o imune encontra-se bugado parece que bloqueia com muito pouca probabilidade,

alguem sabe como corrigi-lo na source?

Obrigado

Vá em game/src/char_resist.cpp

bool CHARACTER::IsImmune(DWORD dwImmuneFlag)
{
    if (IS_SET(m_pointsInstant.dwImmuneFlag, dwImmuneFlag))
    {
        int immune_pct = 90;
        int    percent = number(1, 100);
	        if (percent <= immune_pct)    // 90% Immune
        {
            if (test_server && IsPC())
                ChatPacket(CHAT_TYPE_PARTY, "<IMMUNE_SUCCESS> (%s)", GetName());
	            return true;
        }
        else
        {
            if (test_server && IsPC())
                ChatPacket(CHAT_TYPE_PARTY, "<IMMUNE_FAIL> (%s)", GetName());
	            return false;
        }
    }
	    if (test_server && IsPC())
        ChatPacket(CHAT_TYPE_PARTY, "<IMMUNE_FAIL> (%s) NO_IMMUNE_FLAG", GetName());
	    return false;
}

Link to comment
Share on other sites

3 horas atrás, moikano22 disse:

Encontra-se igual mas na atlantida ando sempre a levar stun

Altere a porcentagem de 90% para 100% ou substitua o código por esse abaixo:

bool CHARACTER::IsImmune(DWORD dwImmuneFlag)
{
    if (IS_SET(m_pointsInstant.dwImmuneFlag, dwImmuneFlag))
    {
	        if (test_server && IsPC())
            ChatPacket(CHAT_TYPE_PARTY, "<IMMUNE_SUCCESS> (%s)", GetName());
            return true;
    }
        if (test_server && IsPC())
            ChatPacket(CHAT_TYPE_PARTY, "<IMMUNE_FAIL> (%s) NO_IMMUNE_FLAG", GetName());
            return false;
}

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...