Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2
You last visited: Today at 16:57

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

Advertisement



[ERROR]Calling SendAttackPacket()

Discussion on [ERROR]Calling SendAttackPacket() within the Metin2 forum part of the Popular Games category.

Reply
 
Old 06/07/2017, 04:39   #16
 
elite*gold: 0
Join Date: Dec 2014
Posts: 442
Received Thanks: 211
Well, as I mentioned in a previous post, you'll need the this-ptr (ecx) in order to call this function. The send function is declared as a member function inside a class which means it uses the __thiscall calling convention.
the class-instance-ptr (this-ptr) is usually stored in ecx (some compilers store it in general use registers such as edx,eax and then move it to ecx) and is then called with the function call. In your example, EBP-0x18 contains the classptr which can be found easily by either looking around a few instructions prior or by using cross references to search for uses of this function which obviously then require the classptr ^^.

also, don't forget to append the sequence byte to the data which is usually appended in most common packets after the auth phase.
_asm is offline  
Thanks
1 User
Old 01/26/2018, 21:31   #17
 
elite*gold: 0
Join Date: May 2016
Posts: 9
Received Thanks: 0
Hi, i'm building a small hack but now, i'm having some problems on calling the SendAttackPacket() function.
This is my code for now:

This is the error that is being showed:

Send Battle :
Call Func :



This'is My Code but Not Work
Code:
bool SendBattleAttack(int vId)
{
	DWORD NetPointer = *(DWORD*)0x1268868;
	DWORD BattleCall = 0x055A4D0;
	__asm {
		mov ecx, [NetPointer]
		push vId
		push 0
		call BattleCall
	}
	return 0;

}

DWORD WINAPI MainFunction(LPVOID lpParam) {
	MessageBoxA(NULL, "TarGetDamage", "Info", MB_ICONINFORMATION);
	while (true)
	{
		DWORD GetTargetVID = (*(DWORD*)(*(DWORD*)0x1268868 + 0x0134DC));

		if (GetTargetVID>0)
		{

		SendBattleAttack(GetTargetVID);

		}
		Sleep(1000);
	}

}
Hope somone can help.
EliteHileKontrol is offline  
Reply


Similar Threads Similar Threads
İbot Error-Error Video- Error İmages-HELP
04/10/2012 - DarkOrbit - 11 Replies
SORRY, MY ENGLİSH VERY BAD.I USE TO GOOGLE TRANSLATE :) Most people trying to ibot but in my computer İbot not working. Declared out this error everywhere but I do not get answers Here's the error Video http://youtu.be/q0fK09v-K3c
API Error Code: 100 API Error Description: Invalid parameter Error Message: redirect_
04/08/2012 - elite*gold Trading - 2 Replies
API Error Code: 100 API Error Description: Invalid parameter Error Message: redirect_uri URL is not properly formatted Das bekomme ich wenn ich ne App installiere... ich habe schon 3 Apps richtig installiert, danach kam immer das bei anderen Apps die ich installiert habe.. was heisst das? redirect_uri URL is not properly formatted
[Error]Error when using Zero's method/And another Error
09/16/2011 - Shaiya Private Server - 5 Replies
well here is a screeny of my problem. Any assistance is greatly appreciated. I haven't come across this error before nor seen any posts up here about it. Also this is me executing the NpcQuest_cvs.bat and yes i changed python to C:/Python27/Python.exe in the command line. http://img707.imageshack.us/img707/9997/errorgx.p ng Ok So my second error involves changing Stat points per lvl here is my screen shots http://img854.imageshack.us/img854/6412/nosave.pn g
[Error] Server Error [/Error]
03/30/2011 - Dekaron Private Server - 7 Replies
Okay so i just start the server as usual but then i got this error: http://i.min.us/ibDMH2.jpg
ERROR ERROR ERROR!
11/08/2008 - Dekaron - 5 Replies
Hello, everytime i launch 2moons and log in it freezes just as the map is finished loading and the DAMN CRASH REPORTER comes up and the game closes. Can anyone help me get around this? I tried deleting the bug reporter(LOL) but all that happened was that it crashed without it popping up. PS. I think i read somewhere that it was caused because i needed to update something or change files, but no one would reply to me :( I am using the crc bypass from the sticky Anticipating your...



All times are GMT +2. The time now is 16:57.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.