Florian0 GUI Call

07/28/2020 04:28 thaidu0ngpr0#1
I want to call these windows from filter. Do you have any ideas? Give me a suggestion
[Only registered and activated users can see links. Click Here To Register...]
07/28/2020 08:47 Hercules*#2
[Only registered and activated users can see links. Click Here To Register...]
07/28/2020 17:15 thaidu0ngpr0#3
Quote:
Originally Posted by Hercules* View Post
[Only registered and activated users can see links. Click Here To Register...]
I have included it in sro_dev but it shows nothing
Can you guide how to help it work. I really need it
07/28/2020 17:25 thaidu0ngpr0#4
Quote:
Originally Posted by Faaruk View Post
u need to use brain.exe :rollsafe:

If I were good, I wouldn't have asked, I just wanted to learn more, if you knew you could help me?
07/28/2020 17:56 Hercules*#5
Quote:
Originally Posted by thaidu0ngpr0 View Post
I have included it in sro_dev but it shows nothing
Can you guide how to help it work. I really need it
ex.

Code:
printf("> " __FUNCTION__ " ~ Got Msg 0x%04x\n", MsgBuffer>msgid());
if (MsgBuffer->msgid() == 0x1666)//packet 
{
//READ THE BYTES HERE
//AFTER READING 
//ADD THIS 
MsgBuffer->FlushRemaining();
}
//CRASH !! 
// IF YOUR READING ORG PACKET 
//AFTER READING 
//ADD THIS 
MsgBuffer->m_currentReadBytes = 0;
Quote:
Originally Posted by Faaruk View Post
u need to use brain.exe :rollsafe:
And you need a new life .
07/28/2020 18:24 thaidu0ngpr0#6
Quote:
Originally Posted by Hercules* View Post
ex.

Code:
printf("> " __FUNCTION__ " ~ Got Msg 0x%04x\n", MsgBuffer>msgid());
if (MsgBuffer->msgid() == 0x1666)//packet 
{
//READ THE BYTES HERE
//AFTER READING 
//ADD THIS 
MsgBuffer->FlushRemaining();
}
//CRASH !! 
// IF YOUR READING ORG PACKET 
//AFTER READING 
//ADD THIS 
MsgBuffer->m_currentReadBytes = 0;


And you need a new life .
add it here right bro?
[Only registered and activated users can see links. Click Here To Register...]

my discord
Thaidu0ngpr0#3327
Can bro give me some detailed instructions, actually I'm just starting to do it
07/28/2020 18:41 Hercules*#7
Quote:
Originally Posted by thaidu0ngpr0 View Post
add it here right bro?
[Only registered and activated users can see links. Click Here To Register...]

my discord
Thaidu0ngpr0#3327
Can bro give me some detailed instructions, actually I'm just starting to do it
Code:
int CPSMission::OnPacketRecv(MsgStreamBuffer* MsgBuffer)
{
if(MsgBuffer->Opcode ==0x1666)
{
//you call here
}
    //Returning 1 means packet is accepted & read, 0 means fail & afair client may crash if you do return 0
    //Also, if you're planning to read original packets, set TotalReadBytes to 0 after you finish reading, because sro_client will re-read this stuff and if any byte were read before, it'll crash because it attempts to read over max bytes limit.
    return reinterpret_cast<int(__thiscall*)(CPSMission*, MsgStreamBuffer*)>(0x0084CAB0)(this, MsgBuffer);
}