moikano22 Posted March 3, 2018 at 12:29 PM Share Posted March 3, 2018 at 12:29 PM 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 Link to comment Share on other sites More sharing options...
xkillmt2 Posted March 3, 2018 at 05:40 PM Share Posted March 3, 2018 at 05:40 PM 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 More sharing options...
moikano22 Posted March 5, 2018 at 04:41 PM Author Share Posted March 5, 2018 at 04:41 PM Encontra-se igual mas na atlantida ando sempre a levar stun Link to comment Share on other sites More sharing options...
xkillmt2 Posted March 5, 2018 at 08:09 PM Share Posted March 5, 2018 at 08:09 PM 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now