Autor Tema: [Sources] Fix AutoPot in Helper  (Leído 8072 veces)

Applayo

  • Newbie
  • *
  • Mensajes: 40
  • : 2
  • Applayo
    • Ver Perfil
[Sources] Fix AutoPot in Helper
« en: Abril 21, 2021, 04:35:33 pm »
Fix AutoPot consertar desconexão automática

[hide login=1]
Código: [Seleccionar]
    __declspec(naked) void CheckAutoPote( ){
       static DWORD Pointer;
       static DWORD main_addr = 0x0095E1C4;


       _asm
       {
          MOV ECX,DWORD PTR SS:[EBP-0x1874]
          MOV Pointer,ECX
       }


       if ( *(BYTE *)(Pointer + 176) )
       {
          if ( ViewCurHP < ( ViewMaxHP * *(BYTE *)(Pointer + 177) / 100 )
          && *(BYTE *)(*(DWORD *)(Pointer + 4) + 780) == 1
          && ViewCurHP > 0 )
          {
             main_addr = 0x0095E1B9;
          }
       }


       _asm
       {
          JMP [main_addr]
       }
    }
[/hide]

Creditos: StevenDX

robins1998

  • Newbie
  • *
  • Mensajes: 40
  • : 0
    • Ver Perfil
Re: [Sources] Fix AutoPot in Helper
« Respuesta #1 en: Mayo 27, 2021, 02:35:19 am »
Very helpful, thanks for sharing.