Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 22:24

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Help]PickUp metin2 dll

Discussion on [Help]PickUp metin2 dll within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
Dr0p3r96's Avatar
 
elite*gold: 0
Join Date: Jun 2012
Posts: 17
Received Thanks: 5
[Help]PickUp metin2 dll

Hello...
I have a problem to create PickUp in metin2.. I Inject the dll and crash the game.

Function asm:
Code:
00403770 - 8B 0D 20E07C00    - mov ecx,[007CE020]
00403776 - E8 25020300       - call 4339A0
Dllmain.cpp:
Code:
#include <windows.h>
DWORD pickup2=0x004339A0;

void pickup()
{
	__asm
	{
			MOV ECX,DWORD PTR DS:[0x7CE020]
			CALL pickup2

	}
}


DWORD WINAPI Watek( LPVOID )
{
		while(true)
		{
			pickup();
			Sleep(300);
		}
        return true;
}
int __stdcall DllMain(_In_ void * _HDllHandle, _In_ unsigned _Reason, _In_opt_ void * _Reserved)
{
        if(DLL_PROCESS_ATTACH== _Reason)
        {
              CreateThread(NULL, NULL, Watek, NULL, NULL, NULL);
        }

        return 1;
}
Crash game after inject :c
Dr0p3r96 is offline  
Old 09/10/2013, 02:28   #2



 
+Yazzn's Avatar
 
elite*gold: 420
Join Date: Jan 2012
Posts: 1,082
Received Thanks: 1,000
Maybe a nullptr is being dereferenced. Try to call pickup only when *reinterpret_cast<DWORD *>(0x7CE020) != nullptr.
+Yazzn is offline  
Old 09/10/2013, 11:11   #3
 
.SkyneT.'s Avatar
 
elite*gold: 273
Join Date: Sep 2010
Posts: 1,831
Received Thanks: 786
Better use a Detour at the main function of the game
and execute the pickup function like that:
Code:
PyObject_Call(PyObject_GetAttrString(PyImport_ImportModule("player"), "PickCloseItem"), args, NULL);
.SkyneT. is offline  
Thanks
1 User
Old 09/12/2013, 21:05   #4
 
[uLow]NTX?!'s Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 1,266
Received Thanks: 627
from where do you have the code?
*


Updated ASM etc ?

which metin2 version ?
[uLow]NTX?! is offline  
Reply


Similar Threads Similar Threads
Pickup bot mit großem pickup-Umkreis
11/17/2009 - Metin2 - 1 Replies
Ich habe im Metin2 forum gelesen, dass es einen neuen "Pickup_Bot" gibt. Mithilfe diesem Hack kannst du Items, die nicht in deiner Reichweite sind, aufheben. Giebt es sowas wirklich, oder haben die metin2 GMs sich das nur ausgedacht? (es gibt ja den Trick, um etwas mit Speedhack aufzuheben, obwohl es aussieht als wärest du noch ausser Reichweite...) Meinen die damit den Speedhack Trick? Oder gibt es wirklich so einen wunderbaren Hack?



All times are GMT +1. The time now is 22:24.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.