QuestionHelpXtrap detecting the string "NoRecoil" possible?

Posts 1–14 of 14 · Page 1 of 1
Xtrap detecting the string "NoRecoil" possible?
hey guys, I made working memory hack with my D3D hack now!! WooHoo!

BUT When I add NoRecoil it gives me a Xtrap detected.

this is my code:
Code:
void MyHacks (void *)
{
	MessageBeep(MB_ICONINFORMATION);
    MessageBoxA(0,Msg,Title,0);
	while(1)
   {
	DWORD CShell     = (DWORD)GetModuleHandleA(CShellEncrypted);
    DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);

	 //hotkeys toggle
        if(GetAsyncKeyState(VK_F2)  || GetAsyncKeyState(VK_NUMPAD0) &1) {
		NoRecoil = !NoRecoil;
		Beep(512, 100); 
		}
        if(GetAsyncKeyState(VK_F3) || GetAsyncKeyState(VK_NUMPAD1) &1) {
		InstantReload = !InstantReload;
		Beep(512, 100); 
		}

		//no reload
        if(InstantReload)
        {
            if (pWeaponMgr)
            {
                for(int i=0; i<999; i++)
                {
                    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL)
                        *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + NoReload) = 100;
                }
            }
        }
		//no recoil
        if(NoRecoil)
        {
            if (pWeaponMgr)
            {
                for(int i=0; i<999; i++)
                {
					
                    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL)
					*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + NoRecoil1) = 0;
					*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + NoRecoil2) = 0;
					*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + NoRecoil3) = 0;
					*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + NoRecoil4) = 0;
			                *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + NoRecoil5) = 0;
				        *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + NoRecoil6) = 0;
				        *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + NoRecoil7) = 0;
					
                }
            }
        }
		Sleep(100);
	}
	}
it works fine with the reload section, but as soon as i add this:
Code:
//no recoil
        if(NoRecoil)
        {
            if (pWeaponMgr)
            {
                for(int i=0; i<999; i++)
                {
					
                    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL)
					*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + NoRecoil1) = 0;
					*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + NoRecoil2) = 0;
					*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + NoRecoil3) = 0;
					*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + NoRecoil4) = 0;
			                *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + NoRecoil5) = 0;
				        *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + NoRecoil6) = 0;
				        *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + NoRecoil7) = 0;
					
                }
            }
        }
I get XTrap Detect. why is this?? Is it posibly the string "NoRecoil" ? cause this method works fine with NoReload,, I know about the "int y=0, y=9, y++" that I left out, but that shouldn't give XTrap error still?

Any Help Appreciated.

---------- Post added at 08:36 AM ---------- Previous post was at 08:30 AM ----------

No nvm its now giving it to me without Recoil too, it's cause I don't have any sleeps or anything, hack only loads when i press OK
for me no recoil work fine
Could it be my loop

while(1){

}
that causes the error? if so, how else would I loop?

---------- Post added at 08:55 AM ---------- Previous post was at 08:54 AM ----------

@pingo yeah I'm trying that now
Quote Originally Posted by kinibayVIP4 View Post
Could it be my loop

while(1){

}
that causes the error? if so, how else would I loop?
NA? probably the loop
Nope I still got an error, this time Xtrap error,

---------- Post added at 08:58 AM ---------- Previous post was at 08:58 AM ----------

Yeah the loop prob, @Pingo what else could I use instead loop?
Quote Originally Posted by kinibayVIP4 View Post
Nope I still got an error, this time Xtrap error,

---------- Post added at 08:58 AM ---------- Previous post was at 08:58 AM ----------

Yeah the loop prob, @Pingo what else could I use instead loop?
Does the dll inject fine without the loop? Comment out the loop and your hack and see if it injects.
Allow it to create the thread though.

I'v had an issue with xtrap detecting empty dll's.
I'd just use that patcher, think i gave it to you.
Yeah I just tested, I removed ALL the junctions, leaving just this:
Code:
void MyHacks (void *)
{
	MessageBeep(MB_ICONINFORMATION);

	while(1)
   {
	DWORD CShell     = (DWORD)GetModuleHandleA(CShellEncrypted);
    DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);

		Sleep(100);
	}
	}
and still detected, must be the loop maybe?

---------- Post added at 09:23 AM ---------- Previous post was at 09:20 AM ----------

Bru @LucN the mem hacks are random parts from everywhere, not just C+p from somewhere, from everywhere combined lol, I know how mem hack works I'm just too lazy to rewrite everything. I'm gettin desperate with mem hacking never working, Only got it working earlier now detected again
The Sleep is for Lag.

Btw not C+p from ur stuff
Quote Originally Posted by Pingo View Post
Does the dll inject fine without the loop? Comment out the loop and your hack and see if it injects.
Allow it to create the thread though.

I'v had an issue with xtrap detecting empty dll's.
I'd just use that patcher, think i gave it to you.
Empty dll's and much more dll's are detected by a new cheking system added some time ago, but as we already know it was a fail again for those who know some coding and not only C+P is prity easy to get pass
Quote Originally Posted by bandi12 View Post
Empty dll's and much more dll's are detected by a new cheking system added some time ago, but as we already know it was a fail again for those who know some coding and not only C+P is prity easy to get pass
Yea i noticed it awhile after it happened. I came back to cf after not doing anything with it for ages and one of my private test dlls was detected.
I was like wtf but it didn't take long to fix.
well now i've figured it out @-[I]fLuX ,,,, Its to do with when my thread is created :L since it only created when I press OK on msgbox... if I press OK as it pops up crossfire closes no window, too late and get Xtrap error, and sometimes if it goes in I get a "Client MFC" aplication has stopped working error, got any sugestions anyone??
Have you tried removing the messagebox.
@Pingo yeah it injects just fine, Its a D3D hack u helped me with lol, works 100%

Infact, earlier I had NoReload working 100% with the D3D hack, then I added NoRecoil and from there on it detected

and been using Patcher all along
Why the hell you're doing sleep in the end of while (1).... and stop c&p..
@Pingo nahh found the problem, In the loop I was defining CShell over and over again Hahah. and using diff method to loop now.

Solved!

---------- Post added at 01:35 PM ---------- Previous post was at 01:21 PM ----------

NOPE not solved
If it isn't in a loop, then mem hacks don't work, and if it is, then the CF window doesn't even show or open.

Now I'm trying loop it only if NoReload is enabled.
Posts 1–14 of 14 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us