xranzei 1
xranzei
mavzermete 1
mavzermete
Psych0SoociaL 1
Psych0SoociaL
Hikaye Ekle

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

HERAKLES Otomatik Avlı kalıcı sunucu. 19 Haziran'da açılıyor. Atius & Wizard güvencesiyle hemen kayıt ol, ön kayıt ödülleri aktif. HEMEN TIKLA!

Hp Sp degerini alip otomatik pot basma islemi yapmak istiyorum can barini kontrol eden fonksyon nedir bilen varsa yardim edebilir mi
 

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