-
Main.exe functions
i try about 2 days to find the functions used by main to show the texts to screen(chat texts and yellow text) but i ran out of ideas.
I found some old sources of leo123 coded for truemu and i compared function from leo's main to my and looks like the function changed a lot and its calls also and i can't find it so my question will be where or how to search this functions?
Thanks in advance!
-
Re: Main.exe functions
You need to think in packets :
Code:
1º When you write something , main.exe sends a packet to the GS. (send API)
2º GS gets that packet and sends it to the near players and to you too, in order to the see the message. (recv and send API)
So only with those 2 points and a little basic knowledge of ollydbg you can find the function :wink:
PD : If you have /post source code it would be a great idea for start.
-
Re: Main.exe functions
i found the chat packet c1 len 00 nick(10 bytes) msg and i don't know what to do next.
I was thinking to go for switches but they are a lot and i don't know where it start and stop.
Can you please give me a last hint,i don't learned asm so it goes a little harder xD?
PS: i looked for recv api and it have 2 calls than store the dates to eax but i stuck
-
Re: Main.exe functions
Search in main.exe for "CMP EAX, 0F4".
0F4 means the maximum packet type, if a packet have more than 0F4 it ignores it.
Code:
CMP EAX,0F4
PUSH EBX
PUSH EBP
PUSH ESI
PUSH EDI
JA XXX
So if you found "CMP EAX, 0F4" you found the main packet switch, all the packet that main gets goes there.
PD : I remember that in MuGlobal new client, there was a new max type (0F5), but that was because they added a new button.