c++ SendChatPacket With SendSpecial

02/12/2022 22:46 macnn50#1
Edit : Fixed
02/13/2022 00:04 FyreMage32#2
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
02/13/2022 01:14 macnn50#3
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 :(
02/21/2022 11:40 x3Syntax#4
Can I ask why you dont use Visual Studio instead ?
03/23/2022 02:01 Rayyor90#5
You have crash because main module base change , apply base + offset

@[Only registered and activated users can see links. Click Here To Register...] and if its global you need to find module first