Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 18:48

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

Advertisement



GetItemIndex [Assembly]

Discussion on GetItemIndex [Assembly] within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
Anihilat0r's Avatar
 
elite*gold: 0
Join Date: Apr 2014
Posts: 85
Received Thanks: 69
GetItemIndex [Assembly]

Hello, I am trying to make GetItemIndex for a pserver, but I am having some problems.
This is the function:


And this is the code I was using for other servers:

Code:
int GetItemIndex(int index)
{
	int value;
	__asm
	{
		mov ecx, [0x6E24A8]
		mov edx, [ecx+ 0x4]
		mov edx, [edx+ 0x40]
		add ecx, 4
		push index
		call edx
		mov value, eax
	}
	return value;
}
But as you can see from the screen, the function is a bit different, so this is my code:

Code:
int GetItemIndex(int index)
{
	int value;
	__asm
	{
		mov ecx, [0x6C4148]
		mov edx, [ecx+0x4]
		add ecx, 4
		push index
		mov eax, [edx+0x40]
		call eax
		mov value, eax
	}
	return value;
}
But it's always returning 0.
Any hints on how to fix this are appreciated, thanks in advance
Anihilat0r is offline  
Old 06/01/2015, 14:56   #2

 
elite*gold: 64
Join Date: May 2011
Posts: 1,229
Received Thanks: 854
In some M2-Clients you have to do:

"index = (index * 0x100) + 1;"
or
"index = (index * 100) + 1;"

Not sure.
BladeTiger12 is offline  
Thanks
1 User
Old 06/01/2015, 15:27   #3
 
Anihilat0r's Avatar
 
elite*gold: 0
Join Date: Apr 2014
Posts: 85
Received Thanks: 69
Quote:
Originally Posted by BladeTiger12 View Post
In some M2-Clients you have to do:

"index = (index * 0x100) + 1;"
or
"index = (index * 100) + 1;"

Not sure.
First one, thanks a lot BladeTiger
Anihilat0r is offline  
Old 06/01/2015, 19:46   #4


 
Zevion's Avatar
 
elite*gold: 906
Join Date: Sep 2009
Posts: 17,295
Received Thanks: 4,400
Arrow Metin2 Main - Discussions / Questions -> Metin2 PServer - …

#moved
Zevion is offline  
Old 02/08/2018, 10:55   #5
 
elite*gold: 0
Join Date: May 2016
Posts: 9
Received Thanks: 0
Can you help me , my porblem GetItemIndex
EliteHileKontrol is offline  
Old 02/10/2018, 00:20   #6
 
elite*gold: 0
Join Date: Dec 2017
Posts: 22
Received Thanks: 13
Is it for clientside getting the Item on a specified inventory cell? You should give more information about the binary you reverse engineered or upload it.
_0N is offline  
Old 02/10/2018, 07:08   #7
 
elite*gold: 0
Join Date: Apr 2012
Posts: 12
Received Thanks: 1
#define ITEM(x) (((x * 257) -x)+1)
Rayyor90 is offline  
Reply


Similar Threads Similar Threads
assembly local.81 into c++
11/15/2014 - C/C++ - 5 Replies
ich hab ein kleines problem unzwar will ich den assembly code mit c++ editieren und habe in olly dbg den teil: MOV , EDX MOV EAX, in c++ füg ich eine zeile hinzu, aber dieses local weiß ich nicht anzugeben, hoffe ihr könnt mir helfen, bisher sieht das in c++ so aus. __asm { MOV , EDX
Assembly to byte[]?
06/07/2014 - .NET Languages - 6 Replies
I wanted to get all loaded .NET assemblies as byte to check that. I know, I could load the Assembly File into byte using a FileStream or something equivalent. But this is how to modify .NET Code during runtime (without touching the File itself). Result: Assembly File Data doesn't match runtime code. Any idea how to 'serialize' an assembly to an byte array?
TWSRO DC Bug Assembly
08/07/2013 - SRO Private Server - 1 Replies
hello, about twsro files the DC button doesnt work. I do not know what i have to search in sro client to fix it. Need the professional assembly guys :D And yeah the lightstone crash too if anyone knows it.
Assembly
01/18/2011 - CO2 Programming - 5 Replies
Well, I really want to learn assembly. I've already read some guides, but I want to be good at it. I understand only less asm. Is there any good guides for learning it?
Assembly Help
08/19/2009 - Dekaron - 8 Replies
I am still trying to learn assembly, but I'm getting better. I found a tut that looked really promising (by Lela or something), but it was all about cracking registration things and such, which doesn't really help me with 2Moons. So if anybody has a tut that is more guided to game hacking, a link would be greatly appreciated. Anyway, here is what I need help with. Here is the part of the code I'm looking at: http://i221.photobucket.com/albums/dd193/sachamo5 12/Olly1.jpg What I need...



All times are GMT +1. The time now is 18:50.


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.