Autor Tema: MaxVoll - Disabled PvP Skill Twisting slash [DownGrade]  (Leído 1535 veces)

MaxVoll

Como miro que muchos andan con el tema del DownGrade aqui un pequeño aporte, para deshabilitar el PvP del skill twisting slash, dejando nada mas el PvM.

Source GameServer buscar:

En Attack.cpp Dentro de "bool CAttack::Attack" Buscar:

Código
int skill = ((lpSkill==0)?SKILL_NONE:lpSkill->m_skill);

y abajo colocar lo siguiente:

Código
if (gServerInfo.m_DisableDamageTwisting == 1)
 {
if (lpObj->Type == OBJECT_USER && lpTarget->Type == OBJECT_USER && skill == SKILL_TWISTING_SLASH)
{
return 0;
}
}


Credits: MaxVoll

Gracias:


Ravoc

Infelizmente não rolou, não tem a definição para desativar m_DisableDamageTwisting

Gracias:

cbv.erick

Desconectado Louis

  • *
  • *


  • 1273

    180

    26658
  • br
  • Louis Emulator
    • +55 15 997401274 +55 15 997401274
    • louisemulator louisemulator
Infelizmente não rolou, não tem a definição para desativar m_DisableDamageTwisting

Você tem que criar

se não quiser criar use apenas assim

Código
if (lpObj->Type == OBJECT_USER && lpTarget->Type == OBJECT_USER && skill == SKILL_TWISTING_SLASH)
{
return 0;
}
Update 45 ready
www.jogandomu.com.br
Discord: louisemulator

Gracias:


una ayuda, y como podria hacer para crear una opcion para desabilitarlo desde el GameServerInfo - Custom?
ayuda porfa

 

.