[HELP] Auto pickup dll metin2 priv

07/22/2023 04:38 Dupszot22#1
Hi I'm trying to write an auto pickup in c++ dll. When I inject dll with cheat engine or using this
metin2 closes.

Code:
#include "pch.h"
#include <Windows.h>

DWORD Call1 = 0x5084C0;

int Main()
{
	__asm
	{
		MOV ECX, DWORD PTR DS : [0x17D9ED4]
		CALL Call1
	}
	Sleep(20);
}


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;
}
[Only registered and activated users can see links. Click Here To Register...][Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
07/26/2023 12:48 Drewfire#2
Try to change
Code:
CloseHandle(CreateThread(nullptr, 0, (LPTHREAD_START_ROUTINE)Main(, hModule, 0, nullptr));
to
Code:
CloseHandle(CreateThread(nullptr, 0, (LPTHREAD_START_ROUTINE)Main, hModule, 0, nullptr));
You have a random comma after Main(
07/28/2023 10:48 Dupszot22#3
Quote:
Originally Posted by Drewfire View Post
Try to change
Code:
CloseHandle(CreateThread(nullptr, 0, (LPTHREAD_START_ROUTINE)Main(, hModule, 0, nullptr));
to
Code:
CloseHandle(CreateThread(nullptr, 0, (LPTHREAD_START_ROUTINE)Main, hModule, 0, nullptr));
You have a random comma after Main(
It still does not work. I found base address of pickup item/attack but this work only if I first click on item to get ID of this item. I try ReClass to get pickup address "z" button but I only found "space bar" attack, character name, "wasd" move. If I want use pickup with mouse click I should get somehow close ID item but if If I'm not mistake, I need to call getvid. Is it possible to call the pickup with memory edit just like in the video with auto attack?

07/29/2023 15:51 Dupszot22#4
Update:
I found address of itemID on ground but this only work if no one is around (mob/players). If mob is around player then value change to random mobID. Static address works until it detects mob or player. I try found ID with ReClass searching by item name and item id in eq but nothing is found. If I generate pointers map in different map then pointerscan show 0 results. Is it possible to get around this to search only for item id or specific ones by name/unique id?

This is what it looks like

07/31/2023 20:23 DonAirBerlin#5
I guess you need to search more, your goal should be a pointer to a list that contains all items (type, unique id, x pos, y pos, etc.) If you got this your work is basically done you can easily iterate over the list and do your instructions.