

![]() |
![]() |
|
|||||||
![]() |
![]() |
| Code Snippets and Tutorials The place for open source releases, great information, and tutorials written by other members. |
![]() |
|
|
LinkBack | Thread Tools |
![]() |
![]() |
|
|
#21 (permalink) | |
|
rol 3905h, 8
Senior Member
Administrator ![]() ![]() Saint Join Date: Jul 2004
Location: Canada
Posts: 5,414
![]() |
Quote:
|
|
|
|
|
![]() |
![]() |
| Sponsored links | |
|
Advertisement
|
|
![]() |
![]() |
|
|
#22 (permalink) |
|
Ereetu.
Senior Member
Game Hacking Staff ![]() ![]() High Priest Join Date: Oct 2005
Location: xor 1D27,1337
Posts: 1,565
![]() ![]() ![]() ![]() |
And an even better looking drawtransparentbox, thanks to KC!
Code:
void BW_DrawTransparentBox(DWORD x, DWORD y, DWORD w,DWORD h,BYTE clr, BYTE midclr)
{
bool bDraw = true;
for(int i = y; i < y+h; i++)
{
for(int z = x; z < x+w; z++)
{
if(bDraw)
BW_DrawBox( z, i, 1, 1, midclr);
bDraw = !bDraw;
}
bDraw = !bDraw;
}
BW_DrawBox(x, y, w, 2, clr);
BW_DrawBox(x, y+h, w, 2, clr);
BW_DrawBox(x, y, 1, h, clr);
BW_DrawBox(x+w, y, 1, h, clr);
}
![]() If the image is too small, it draws in a checker pattern. xoxoxoxoxoxox oxoxoxoxoxoxo xoxoxoxoxoxox oxoxoxoxoxoxo xoxoxoxoxoxox oxoxoxoxoxoxo |
|
|
|
![]() |
![]() |
![]() |
![]() |
|
|
#25 (permalink) |
![]() Heretic Join Date: Apr 2008
Posts: 28
![]() |
Could you pls provide how to use the drawbox function in c++ without the use of assambler?
I tried this void (_stdcall*drawBox)(int x, int y, int width, int height, u8 color) = (void(_stdcall*)(int x, int y, int width, int height, u8 color))0x4E18E0; But got crash |
|
|
|
![]() |
![]() |
![]() |
![]() |
|
|
#28 (permalink) |
![]() ![]() Deviant Join Date: Oct 2007
Posts: 53
![]() |
When I did an automatic conversion 1.14->1.15.2 the address 004E18C0 was translated to 004E2620. Btw how do you update offsets for patches which changed the compiler(settings) and thus generates a different asmcode? I think 1.13->1.14 was such a patch.
__________________
We are the Others. We serve different forces, but in the Twilight there is no difference between the absence of darkness and the absence of light. |
|
|
|
![]() |
![]() |
![]() |
![]() |
|
|
#30 (permalink) | |
|
rol 3905h, 8
Senior Member
Administrator ![]() ![]() Saint Join Date: Jul 2004
Location: Canada
Posts: 5,414
![]() |
Quote:
The rare time that there is really nothing to cross reference, you just have to find the function on your own the way you did it the first time. It doesn't take too long if you've done it already. |
|
|
|
|
![]() |
![]() |