Message window

Posts 1–11 of 11 · Page 1 of 1
Message window
Hi, guys!

This code shows the message window after the game start (of course it's not mine):

Code:
void ShowMessage(char* string, DWORD CShell)
{
    DWORD MsgBoxFunc = CShell + 0x7D780;
    __asm
    {
        push string;
        push 0;
        push 0x70;
        push 0x1C;
        call MsgBoxFunc;
        add esp, 16;
    }
}
It's works very great for CF NA, but i want do this for another loc. The problem is when i use this function the game crashes. I think the problem is in this value - 0x7D780. How i can find an actual value? Maybe string or something. I also try constant search in Olly and found nothing.
@giniyat101
have posted for long away the source -.-
its not the full code

Here the full code:
Code:
void ShowMessage(char* string,DWORD CShell);
ShowMessage("BlahBlah ",CShell);
		void ShowMessage(char* string, DWORD CShell)
{
                 DWORD MsgBoxFunc = CShell + 0x7D780;
                 __asm
		{
			push string;
			push 0;
			push 0x70;
			push 0x1C;
			call MsgBoxFunc;
			add esp, 16;
		}
}
Quote Originally Posted by MasterOf View Post
@giniyat101
have posted for long away the source -.-
its not the full code

Here the full code:
Code:
void ShowMessage(char* string,DWORD CShell);
ShowMessage("BlahBlah ",CShell);
		void ShowMessage(char* string, DWORD CShell)
{
                 DWORD MsgBoxFunc = CShell + 0x7D780;
                 __asm
		{
			push string;
			push 0;
			push 0x70;
			push 0x1C;
			call MsgBoxFunc;
			add esp, 16;
		}
}
Lol, i Know how to call functions in C, and all works fine for CF North America, but when i do this thing for my crossfire localization, the read memory error comes.
I think problem in this value - 0x7D780, i must change it to make the function works correct, but i don't know how to find this value. Maybe someone knows here.
i can confirm it is correct..
Quote Originally Posted by giniyat101 View Post
i can confirm it is correct..
the addy is old?
Quote Originally Posted by Assassin's Creed View Post


the addy is old?
it is up to date..
Quote Originally Posted by giniyat101 View Post
it is up to date..
giniyat101, how you found this addy?

Quote Originally Posted by JusCaus View Post
What he is wanting to know is how to update it once it gets detected.... he isnt using cf na.
No, it's not detected. The game just crashes with read memory error.
Quote Originally Posted by cc00_ View Post
giniyat101, how you found this addy?


No, it's not detected. The game just crashes with read memory error.
well is your not using cfna maybe the adress is different in the other cf?
What he is wanting to know is how to update it once it gets detected.... he isnt using cf na.
Still can't fix this error. Damn shit.
Posts 1–11 of 11 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us