Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › MultiPlayer Game Hacks & Cheats › Other Semi-Popular First Person Shooter Hacks › WarRock - International Hacks › WarRock Hack Source Code › #Lesson 6 - Mid functions

Post#Lesson 6 - Mid functions

Posts 16–30 of 31 · Page 2 of 3
pusongbato
pusongbato
Quote Originally Posted by AeroMan View Post
I'm confused, why would you look for it here?
I released them public in the ph section.
And without subs you could find any code to.
your right, I saw your post first there in this section before I saw your post in warrock ph section, that's why.
#16 · 11y ago
_PuRe.LucK*
_PuRe.LucK*
very nice tut! You took much time of you to do this and only 8 thanks ;(
#17 · 11y ago
AeroMan
AeroMan
Quote Originally Posted by .Paradox* View Post
very nice tut! You took much time of you to do this and only 8 thanks ;(
Thanks, it took longer to make then i expected.
Nothing we can do about that, if 2 people actually read the tutorial it would be allot.
Most of the guys on this site are to lazy to try something them self.
#18 · 11y ago
WhiteHat PH
WhiteHat PH
Quote Originally Posted by .Paradox* View Post
very nice tut! You took much time of you to do this and only 8 thanks ;(
I think they dont know what is that ! some of there are KIDS
#19 · 11y ago
_PuRe.LucK*
_PuRe.LucK*
Quote Originally Posted by WhiteHat PH View Post


I think they dont know what is that ! some of there are KIDS
"some" xDD
#20 · 11y ago
jericsond
jericsond
im almost getting this mid function lesson
but i got confused with this one because i only have no menu base.
Code:
PlaceJMP((BYTE*)CoDJmpStart, (DWORD)CallOfDuty_Check, 7);
where / how do i put these ?

Code:
	__asm mov Check, 1 //We set our check to 1, (Check = Defenition => We entered game!)
Code:
HRESULT WINAPI myEndScene(LPDIRECT3DDEVICE9 pDev)
{
	if (Check){ //If we entered the game (which the midfunction will tell us.
		//We execute this code:
		CFont.MenuRender(pDev, 13, 600, (TCHAR*)Decrypt(STRING_FONT));
		pMenu->DrawCrosshair(WHITE, 36, pDev);
		return pEndScene(pDev);
	}
}
tnxx
#21 · 11y ago
AeroMan
AeroMan
Quote Originally Posted by jericsond View Post
im almost getting this mid function lesson
but i got confused with this one because i only have no menu base.
Code:
You place this in your DllMain
PlaceJMP((BYTE*)CoDJmpStart, (DWORD)CallOfDuty_Check, 7);
where / how do i put these ?

Code:
This is simply a check i made (defenition on top) to see if we have entered the game, if the function is looped we entered the game so we set the value to 1
	__asm mov Check, 1 //We set our check to 1, (Check = Defenition => We entered game!)
Code:
This is my endscene you dont need to use this in a nomenu
HRESULT WINAPI myEndScene(LPDIRECT3DDEVICE9 pDev)
{
	if (Check){ //If we entered the game (which the midfunction will tell us.
		//We execute this code:
		CFont.MenuRender(pDev, 13, 600, (TCHAR*)Decrypt(STRING_FONT));
		pMenu->DrawCrosshair(WHITE, 36, pDev);
		return pEndScene(pDev);
	}
}
tnxx

I hope this answered your questions.
#22 · 11y ago
jericsond
jericsond
Quote Originally Posted by AeroMan View Post
I hope this answered your questions.
oh i see now. you have D3D . and i only have no menu. thanks!
#23 · 11y ago
Ryuzaki™
Ryuzaki™
Result:

#24 · edited 11y ago · 11y ago
Jhem
Jhem
Hello @AeroMan
How can you tell that the
__asm mov Check, 1 // will tell if we entered the game?
#25 · 11y ago
AeroMan
AeroMan
Quote Originally Posted by Jhem View Post
Hello @AeroMan
How can you tell that the
__asm mov Check, 1 // will tell if we entered the game?
the following code only gets runned when the game loads
Code:
//Addresses= Addresses + 400000 (Start address)
DWORD CoDJmpStart = 0x5BF5D9; //iw3sp.exe + 1BF5D9 - 89 84 8F 34030000 - mov[edi + ecx * 4 + 00000334], eax
DWORD CoDJmpBack  = 0x5BF5E0; //iw3sp.exe + 1BF5E0 - 5B - pop ebx
__declspec(naked)void CallOfDuty_Check(void)
{
	//We replace the original code here because we simply make a check in this tutorial.
	//Replacing the eax with your val (mov eax, 10) could set your to 10 instead of dropping.
	__asm mov[edi + ecx * 0x4 + 0x334], eax //Original code (set ammo)
	__asm pushad //Push to stack

	__asm mov Check, 1 //We set our check to 1, (Check = Defenition => We entered game!)

	__asm popad //Stack to register
	__asm jmp[CoDJmpBack] //Jmp back to our original code
}
Because the part where we jmp to this function gets only runned when we entered the game.
For example: The game is loading, we set our ammo to full so we start with a full clip of ammo when we first enter the game.
This part where the ammo is first set meant we have spawned and our character is ingame.
So we jmped from that code block (where the game sets it's ammo value -> we entered the game) to our code.
This means we executed our code the moment the game has set the ammo.
So then our code sets the 'Check' to value 1, meaning we entered the game.
Our default value was 0, so if it's 1 it has obviously executed the code.
At this point we execute our endscene or whatever you would like to.

Code:
if(Check){ code here }
So if we entered the game (Check = 1) the code is true and we execute the code between that check.

EDIT: __asm mov Check, 1
can be seen as Check = 1;
We simply put the value 1 inside Check.

I hope this makes sence, if not let me know and i'll try to explain it diffrently
#26 · edited 11y ago · 11y ago
firefox800
firefox800
Nice Tutorial- it's better late than never to read this keep it up
#27 · 11y ago
WhiteHat PH
WhiteHat PH
Thank you my Friend

#28 · 11y ago
jericsond
jericsond
after many time spent reviewing @AeroMan 's tut, i finally understand it's concept. now its time to try coding what I learned.
thank you i hope i can do this. HAHAHA
#29 · 11y ago
WhiteHat PH
WhiteHat PH
Quote Originally Posted by jericsond View Post
after many time spent reviewing @AeroMan 's tut, i finally understand it's concept. now its time to try coding what I learned.
thank you i hope i can do this. HAHAHA
believe in yourself that you can do it!
#30 · 11y ago
Posts 16–30 of 31 · Page 2 of 3

Post a Reply

Similar Threads

  • Mid function hookBy giniyat202 in CrossFire Hack Coding / Programming / Source Code
    17Last post 15y ago
  • Mid Function HookBy MarkHC in Programming Tutorials
    5Last post 11y ago
  • DIP / Present / SetTransform Mid FunctionsBy DirecTX_ in WarRock Hack Source Code
    2Last post 14y ago
  • Mid FunctionBy DiogoMAT in Piercing Blow Hack Coding/Source Code
    4Last post 14y ago
  • Menu Selection v4 Mid FunctionBy luizimloko in Combat Arms BR Hack Coding/Source Code
    65Last post 14y ago

Tags for this Thread

None