is my source exactly

Posts 17 of 7 · Page 1 of 1
is my source exactly
Hi everyone, i'm new to write cheat.
I have been attached my dll to crossfire (i am using open source from phonix-cf).
i try to add some feature like shot throught the wall.

I found some string and code
___:109880A8 aPerfectwallsho db 'PerfectWallShotEnabled',0
___:109880BF align 10h
___:109880C0 aWallshotenable db 'WallShotEnabled',0
___:109880D0 aEdgeshotenable db 'EdgeShotEnabled',0
Code:
___:0DA8D7B2                 push    offset aPerfectwallsho ; "PerfectWallShotEnabled"
___:0DA8D7B7                 push    eax
___:0DA8D7B8                 call    sub_DFAB870
___:0DA8D7BD                 add     esp, 8
___:0DA8D7C0                 cmp     eax, ebx
___:0DA8D7C2                 jz      short loc_DA8D7E0
___:0DA8D7C4                 mov     ecx, [eax+4]
___:0DA8D7C7                 mov     edx, [ecx+4]
___:0DA8D7CA                 mov     eax, [edx+4]
___:0DA8D7CD                 push    eax
___:0DA8D7CE                 call    ebp ; dword_E0786C4
___:0DA8D7D0                 mov     ecx, dword_F11B37C  (F11b37c-base=0x19CB37C)
___:0DA8D7D6                 add     esp, 4
___:0DA8D7D9                 mov     [esi+ecx+570h], eax
in my dll. i calculated base is address_of_base= cshell_base_ + 0x19CB37C; (F11b37c-base=0x19CB37C). and guess three offet is.568 56c 570

my code i use to hack is:
Code:
		for (int i=0; i < 0x3F; i++)
		{
			int n = i * 0x594;
			if ((address_of_base) + n)
			{
				*(bool*)(this->address_of_wall + n + 0x568) = 1;
				*(bool*)(this->address_of_wall + n + 0x56c) = 1;
				*(bool*)(this->address_of_wall + n + 0x570) = 1;
			}
		}
but it does not work. please tell me what is wrong
for (int i=0; i < 0x3F; i++)

change to

for (int i=0; i < 64; i++)
Quote Originally Posted by jhetro1254 View Post
for (int i=0; i < 0x3F; i++)

change to

for (int i=0; i < 64; i++)
thank you, but it is not solved.
this code for shoot through wall, so you can try this code
Code:
 
		if(pWallClass) 
		{
		for(int i = 0;i<64;i++)	{
			*(float*)(pWallClass+(i*0x0594)+0x568) = true;
			*(float*)(pWallClass+(i*0x0594)+0x56c) = true;
			*(float*)(pWallClass+(i*0x0594)+0x570) = true;
		}
            }
Quote Originally Posted by ComboDance View Post
this code for shoot through wall, so you can try this code
Code:
 
		if(pWallClass) 
		{
		for(int i = 0;i<64;i++)	{
			*(float*)(pWallClass+(i*0x0594)+0x568) = true;
			*(float*)(pWallClass+(i*0x0594)+0x56c) = true;
			*(float*)(pWallClass+(i*0x0594)+0x570) = true;
		}
            }
thank you but i think my code is same as you, but it do not work
for (int i = 0; i < 64; i++)
{
int n = i * 0x594;
if (this->address_of_wall + n)
{
*(float*)(this->address_of_wall + n + 0x568) = true;
*(float*)(this->address_of_wall + n + 0x56c) = true;
*(float*)(this->address_of_wall + n + 0x570) = true;
}
}
is my this->address_of_wall = this->cshell_base_ + 0x19CB37C; is wrong ???
Quote Originally Posted by cuongh View Post
thank you but i think my code is same as you, but it do not work


is my this->address_of_wall = this->cshell_base_ + 0x19CB37C; is wrong ???
i don't know, this is my full of STW and it's work fine :
Code:
DWORD pWallClass = *(DWORD*)(CShell + 0x19cb37c);
if (stw == 1 ) 
	{
        if (pWeaponMgr != 0)// DWORD oWeaponMgr
		{
		if(pWallClass) 
		{
		for(int i = 0;i<64;i++)	{
			*(float*)(pWallClass+(i*0x0594)+0x568) = true;
			*(float*)(pWallClass+(i*0x0594)+0x56c) = true;
			*(float*)(pWallClass+(i*0x0594)+0x570) = true;
		}
		}

		}
	}
Quote Originally Posted by ComboDance View Post
i don't know, this is my full of STW and it's work fine :
Code:
DWORD pWallClass = *(DWORD*)(CShell + 0x19cb37c);
if (stw == 1 ) 
	{
        if (pWeaponMgr != 0)// DWORD oWeaponMgr
		{
		if(pWallClass) 
		{
		for(int i = 0;i<64;i++)	{
			*(float*)(pWallClass+(i*0x0594)+0x568) = true;
			*(float*)(pWallClass+(i*0x0594)+0x56c) = true;
			*(float*)(pWallClass+(i*0x0594)+0x570) = true;
		}
		}

		}
	}
thank you very much, I had seen my mistake in * (DWORD*) (CShell + 0x19cb37c);, I do not read a double word in this pointer.
but it show error 18_1. can you tell me how to bypass it
Posts 17 of 7 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?