Hi I found function call of pick up items in metin2 and I call it with cheat engine. First I alloc memory then place there code nad create thread. It's work but if i use it will pick up item once. I try call this with DLL but game crash or can i make script in autoassembly that create thread every 1-5 second but I can't find anything.
Code:
#include "pch.h"
#include <Windows.h>
#include <iostream>
#include <stdio.h>
int Main()
{
DWORD Arg1 = 0x01842824;
DWORD Arg2 = 0x004A4FF0;
DWORD Arg3 = 0x005A8BD0;
__asm
{
mov ecx, Arg1 // Arg 1
call Arg2 // Arg 2
jmp Arg3 // Arg3
ret
}
}
BOOL APIENTRY DllMain( HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
CloseHandle(CreateThread(nullptr, 0, (LPTHREAD_START_ROUTINE)Main, hModule, 0, nullptr));
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}
|
|