you used
but 939F70 was the memory addres for pw international 1.3.9, could have been changed since last release (release at the moment of writing this is v 1.4.0 build 2265)
so you will have to find out the addres to write the 1 to yourself.
this is the function call:
see that PUSH ecDMCMul.00939F70 ?
and call ebx calls swscanf, and swscanf returns the value (it gets that value from console:1, since the other parameter is console:%d it writes 1) in 00939F70.
Now for your version lets take a look
it is PUSH CFclient.903E80
so to patch your client into having console, you will have to do it like this:
Code:
MOV DWORD PTR ES:[939F70],1
so you will have to find out the addres to write the 1 to yourself.
this is the function call:
Code:
0043B7AF |. 68 709F9300 PUSH ecDMCMul.00939F70 0043B7B4 |. 68 FC168E00 PUSH ecDMCMul.008E16FC ; UNICODE "console:%d" 0043B7B9 |. 50 PUSH EAX 0043B7BA |. FFD3 CALL EBX
and call ebx calls swscanf, and swscanf returns the value (it gets that value from console:1, since the other parameter is console:%d it writes 1) in 00939F70.
Now for your version lets take a look
it is PUSH CFclient.903E80
so to patch your client into having console, you will have to do it like this:
Code:
MOV DWORD PTR ES:[903E80],1 JMP SHORT CFclient.0043B81F