WarRock EU - Code Snippets

12/02/2011 22:50 WarFk#6001
Full&Black ...well if i think right black only should be a a lower rgb code...
12/02/2011 22:52 GraFixPL#6002
please give me source!!!
12/02/2011 22:57 xMicroX#6003
You can use this

if (CH_FullBright==1)
{
pDevice->SetRenderState(D3DRS_LIGHTING, false);
pDevice->SetRenderState(D3DRS_AMBIENT,D3DCOLOR_ARGB(255, 255,255,255));
}
12/02/2011 23:10 GraFixPL#6004
Addys... No HOOK ...
12/02/2011 23:28 Krasti#6005
Is it possible,make a msgbox from warrock?I mean that little window,say a message.
12/02/2011 23:36 xTriplexXx#6006
you can use on value sth. like 1092779973
12/02/2011 23:49 CyBerTürk.™#6007
Quote:
Originally Posted by GraFixPL View Post
Looking for codes for:
-Fulbright
-BlackBright
Only, that is to be at the addresses!

Addys Seurce :

int CH_FLBRGHT = 0;

if (CH_FLBRGHT==1)
{
*(int*)ADR_FLBRGHT1 = 1092779973;
*(int*)ADR_FLBRGHT2 = 1092779973;
*(int*)ADR_FLBRGHT3 = 1092779973;
}

Addys:

#define ADR_FLBRGHT1 0x9EC5BC
#define ADR_FLBRGHT2 0x9EC5C0
#define ADR_FLBRGHT3 0x9EC5C0

Menü Seurce :

int CH_Fllbrght =0; // FullBright

if (CH_Fllbrght)
{
pDevice->SetRenderState(D3DRS_LIGHTING, false);
pDevice->SetRenderState(D3DRS_AMBIENT,D3DCOLOR_ARGB(255, 255,255,255));}
else
{pDevice->SetRenderState(D3DRS_AMBIENT, false);}
12/03/2011 02:16 NikM#6008
@xCeManx
yes it is possible
you just need to find the startaddress of the messagebox subroutine
and you just need to push the text and to call the startaddress
12/03/2011 09:06 .xD1997™#6009
Quote:
Originally Posted by Venom' View Post
Kann mir jemand sagen was Px Items für eine Art ist ?
Wat für ne' Art?
12/03/2011 11:10 xTriplexXx#6010
if (CH_Fllbrght)
{
pDevice->SetRenderState(D3DRS_LIGHTING, false);
pDevice->SetRenderState(D3DRS_AMBIENT,D3DCOLOR_ARGB(255, 255,255,255));}
else
{pDevice->SetRenderState(D3DRS_AMBIENT, false);}

Now think, what you posted...
12/03/2011 11:25 GraFixPL#6011
Quote:
Originally Posted by CyBerTürk.™ View Post
Addys Seurce :

int CH_FLBRGHT = 0;

if (CH_FLBRGHT==1)
{
*(int*)ADR_FLBRGHT1 = 1092779973;
*(int*)ADR_FLBRGHT2 = 1092779973;
*(int*)ADR_FLBRGHT3 = 1092779973;
}

Addys:

#define ADR_FLBRGHT1 0x9EC5BC
#define ADR_FLBRGHT2 0x9EC5C0
#define ADR_FLBRGHT3 0x9EC5C0

Menü Seurce :

int CH_Fllbrght =0; // FullBright

if (CH_Fllbrght)
{
pDevice->SetRenderState(D3DRS_LIGHTING, false);
pDevice->SetRenderState(D3DRS_AMBIENT,D3DCOLOR_ARGB(255, 255,255,255));}
else
{pDevice->SetRenderState(D3DRS_AMBIENT, false);}

Does not work. I added to the database NoMenu this code:
void FullBright()
{
*(int*)ADR_FLBRGHT1 = 1092779973;
*(int*)ADR_FLBRGHT2 = 1092779973;
*(int*)ADR_FLBRGHT3 = 1092779973;
}

:( :( :(
12/03/2011 11:30 theitfan1337#6012
Quote:
Originally Posted by NikM View Post
@xCeManx
yes it is possible
you just need to find the startaddress of the messagebox subroutine
and you just need to push the text and to call the startaddress
Depends on its calling convention, most likely to be cdecl. Then you would have to clean the stack yourself. At least I vaguely remember that thing to be as stated.
12/03/2011 12:07 Raz9r#6013
Quote:
Originally Posted by Nomad' View Post
Depends on its calling convention, most likely to be cdecl. Then you would have to clean the stack yourself. At least I vaguely remember that thing to be as stated.
you'll need to add something like
add esp, [size_of_arguments_in_bytes]
after the call, if it's the cdecl convention, which is the default calling convention in c++. but: keep in mind the WinAPI has been written in c/c# using the stdcall convention.
12/03/2011 13:14 theitfan1337#6014
Incrementing the stack pointer - what you are doing by adding the params' size to esp - is nothing else then what I meant with "cleaning the stack" ;)
12/03/2011 15:13 Raz9r#6015
Quote:
Originally Posted by Nomad' View Post
Incrementing the stack pointer - what you are doing by adding the params' size to esp - is nothing else then what I meant with "cleaning the stack" ;)
There's a little difference: pop gets from stack and decrements esp by the popped arguments size , push adds to the stack and increments the stack pointer. Incrementing the stack pointer needs to be done to let the next call be able to know where it needs to start to pop from stack. A stack is a so called LILO-structure (last-in, last-out).

The stack itself cannot be cleaned by either of these commands.