TᴀᴋᴏGʀᴀᴘʜiC 1
TᴀᴋᴏGʀᴀᴘʜiC
noisiv 1
noisiv
Manwe Work 1
Manwe Work
kaptanmikro1 1
kaptanmikro1
metiin2hero 1
metiin2hero
Bodyguardd 1
Bodyguardd
kralhakan2009 1
kralhakan2009
Vahsi Uzman 1
Vahsi Uzman
Reklam vermek için turkmmo@gmail.com

Otomatik Hp Sp Basma

  • Konuyu başlatan Konuyu başlatan kaplan1524
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 41
  • Görüntüleme Görüntüleme 5K

En Çok Reaksiyon Alan Mesajlar

Öğeyi görmek için üye olmalısınız.
Kod:
#include <Windows.h>
#include <iostream>
#include <vector>

int GetStatus(DWORD dwType, DWORD moduleBase) {
typedef int(__thiscall* tCPythonPlayerGetStatus)(void* This, DWORD dwType);
DWORD calladdr = moduleBase + 0x1EE4AD0;
DWORD PythonPlayer = moduleBase + 0x01D9F9DF;
tCPythonPlayerGetStatus CPythonPlayerGetStatus = (tCPythonPlayerGetStatus)(calladdr);

return CPythonPlayerGetStatus((void*)PythonPlayer, dwType);
}

void Main() {
DWORD moduleBase = (DWORD)GetModuleHandle("metin2client.exe");
AllocConsole();
FILE* f;
freopen_s(&f, "CONOUT$", "w", stdout);
printf("M2 Test\n");
printf("moduleBase address: 0x%X\n", moduleBase);
Sleep(3000);




int maxHP = GetStatus(6,moduleBase);

int currentHP = GetStatus(5, moduleBase);

printf("Max HP: %d\n", maxHP);
printf("Current HP: %d\n", currentHP);
FreeConsole();

}

BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) {
switch (ul_reason_for_call) {
case DLL_PROCESS_ATTACH:
CreateThread(NULL, 0, reinterpret_cast<LPTHREAD_START_ROUTINE>(Main), hModule, 0, NULL);
break;
}
return TRUE;
}
C++:
typedef int(__thiscall* tCPythonPlayerGetStatus)(void* This, DWORD dwType);
DWORD calladdr = base + 0xdeadbeef;
DWORD PythonPlayer = *reinterpret_cast<DWORD*>(base + 0xdeadbeef);
tCPythonPlayerGetStatus CPythonPlayerGetStatus = (tCPythonPlayerGetStatus)(calladdr);

int GetStatus(DWORD dwType)
{
    return CPythonPlayerGetStatus((void*)PythonPlayer, dwType);
}

//maxhp

int maxHP = GetStatus(6);

//currenthp

int currentHP = GetStatus(5);

gerisi sende addreslerini ver bakalım
C++:
typedef int(__thiscall* tCPythonPlayerGetStatus)(void* This, DWORD dwType);
DWORD calladdr = base + 0xdeadbeef;
DWORD PythonPlayer = *reinterpret_cast<DWORD*>(base + 0xdeadbeef);
tCPythonPlayerGetStatus CPythonPlayerGetStatus = (tCPythonPlayerGetStatus)(calladdr);

int GetStatus(DWORD dwType)
{
    return CPythonPlayerGetStatus((void*)PythonPlayer, dwType);
}

//maxhp

int maxHP = GetStatus(6);

//currenthp

int currentHP = GetStatus(5);

gerisi sende addreslerini ver bakalım
 
C++:
typedef int(__thiscall* tCPythonPlayerGetStatus)(void* This, DWORD dwType);
DWORD calladdr = base + 0xdeadbeef;
DWORD PythonPlayer = *reinterpret_cast<DWORD*>(base + 0xdeadbeef);
tCPythonPlayerGetStatus CPythonPlayerGetStatus = (tCPythonPlayerGetStatus)(calladdr);

int GetStatus(DWORD dwType)
{
    return CPythonPlayerGetStatus((void*)PythonPlayer, dwType);
}

//maxhp

int maxHP = GetStatus(6);

//currenthp

int currentHP = GetStatus(5);

gerisi sende addreslerini ver bakalım
cok tesekkur ederim bi ugrasayim
 

Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)

Geri
Üst