Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2
You last visited: Today at 13:48

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

Advertisement



c++ SendChatPacket With SendSpecial

Discussion on c++ SendChatPacket With SendSpecial within the Metin2 forum part of the Popular Games category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2021
Posts: 73
Received Thanks: 5
c++ SendChatPacket With SendSpecial

Edit : Fixed
macnn50 is offline  
Old 02/13/2022, 00:04   #2
 
FyreMage32's Avatar
 
elite*gold: 0
Join Date: Dec 2021
Posts: 7
Received Thanks: 11
Why use inline assembly and call NetworkStream functions by packet structure when you can do this:

Declare and define the address of the game function you want to call
Code:
uintptr_t SendChatPacketAddress = 0x1234AB;
Create a prototype for the function you want to call
Code:
typedef bool ( __thiscall* tSendChatPacket )( void* This, const char* c_szChat, BYTE byType);
tSendChatPacket SendChatPacket = ( tSendChatPacket ) SendChatPacketAddress;
Call it
Code:
SendChatPacket (CPythonNetworkStreamInstance, "Hello World", CHAT_TYPE);
Do you REALLY need (for some reason) to call the function in the way you've showed? Otherwise, it's much better to make a prototype and call it
FyreMage32 is offline  
Old 02/13/2022, 01:14   #3
 
elite*gold: 0
Join Date: Apr 2021
Posts: 73
Received Thanks: 5
Quote:
Originally Posted by FyreMage32 View Post
Why use inline assembly and call NetworkStream functions by packet structure when you can do this:

Declare and define the address of the game function you want to call
Code:
uintptr_t SendChatPacketAddress = 0x1234AB;
Create a prototype for the function you want to call
Code:
typedef bool ( __thiscall* tSendChatPacket )( void* This, const char* c_szChat, BYTE byType);
tSendChatPacket SendChatPacket = ( tSendChatPacket) SendChatPacketAddress;
Call it
Code:
SendChatPacket (CPythonNetworkStreamInstance, "Hello World", CHAT_TYPE);
Do you REALLY need (for some reason) to call the function in the way you've showed? Otherwise, it's much better to make a prototype and call it

because I am using rad studio and this compiler only supports asm
macnn50 is offline  
Old 02/21/2022, 11:40   #4
 
elite*gold: 115
Join Date: Jun 2019
Posts: 20
Received Thanks: 4
Can I ask why you dont use Visual Studio instead ?
x3Syntax is offline  
Old 03/23/2022, 02:01   #5
 
elite*gold: 0
Join Date: Apr 2012
Posts: 12
Received Thanks: 1
You have crash because main module base change , apply base + offset

@ and if its global you need to find module first
Rayyor90 is offline  
Reply


Similar Threads Similar Threads
SendChatPacket
11/22/2017 - Metin2 Private Server - 3 Replies
hi i want to do "SpamBot" but I could not https://prnt.sc/hbaaz6 and https://prnt.sc/hbabyq I don't know what to do now sorry for my bad english I'm italian
[S]Aktuelle SendChatPacket Adresse
04/03/2012 - Metin2 - 0 Replies
Hallo, Da nach dem Patch die Spambots leider nichtmehr funktionieren, und ich einen brauche folgende Frage: Kennt jemand die Aktuelle SendChatPacket Adresse? Gruß



All times are GMT +2. The time now is 13:48.


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.