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 › Programming › Programming Tutorials › [Tutorial] Triggerbot Class

[Tutorial] Triggerbot Class

Posts 1–11 of 11 · Page 1 of 1
cjg333
cjg333
[Tutorial] Triggerbot Class
Written By Cobra and Str8Soulja
Game:WarRock
Here is a simple Triggerbot class that you can add to trainers, and if smart enough D3D's

Add these to the Globals
[PHP]#define PROP_VEHICLES 0x1
#define PROP_CHARACTER 0x2
#define PROP_OBJECTS 0xFF
DWORD Active;
HANDLE Control;[/PHP]

This is your Function

[PHP]
void log(char * towrite, char * filepath)
{
char * logbuf;
FILE * fp;
logbuf = ( char * )towrite;

if( (fp = fopen ( filepath , "addy")) != NULL )
{
fprintf ( fp, "%s\n", logbuf );
fclose (fp);
}[/PHP]

Put this in a Timer(trainers)

[PHP]
{//Characters
memory();
ReadProcessMemory( Control, (LPVOID*)0x8F544C, &Active, sizeof( BYTE ), NULL);
if( Active == PROP_CHARACTER)
mouse_event( MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0 );
else if ( Active != PROP_CHARACTER)
mouse_event( MOUSEEVENTF_LEFTUP, 0, 0, 0, 0 );

}


{//Vehicles
memory();
ReadProcessMemory( Control, (LPVOID*)0x8F544C, &Active, sizeof( BYTE ), NULL);
if( Active == PROP_VEHICLES )
mouse_event( MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0 );
else if ( Active != PROP_VEHICLES )
mouse_event( MOUSEEVENTF_LEFTUP, 0, 0, 0, 0 );
}[/PHP]
#1 · 18y ago
rob1cool
rob1cool
lol you have totaly lost me is this vb
or c++
i think this is c++ but i am not to shure lol if it is i am having trouble getting ot to wotk i no jak shizzal
#2 · 18y ago
RA
rambone11
making my own hack: think will be useful
#3 · 18y ago
RO
RoB07
give credits to k0nspire?
#4 · 18y ago
Alen
Alen
k0nspire? maybe to ***? Str8soulja is a co-coder there for the hacks lol - he knows enough about hacking so he doesnt leech...
#5 · 18y ago
castaway
castaway
k0nspire is ****** from t(g).s.
He made one too but i guess that one is different.
#6 · 18y ago
whydoihack
whydoihack
ty i will decipher that later
#7 · 18y ago
RO
RoB07
Its VERY Similar to the coding above.
#8 · 18y ago
SP
sponqebob
Is C++ is better or VB6
#9 · 18y ago
OL
olie122333
Quote Originally Posted by cjg333 View Post
Written By Cobra and Str8Soulja
Game:WarRock
Here is a simple Triggerbot class that you can add to trainers, and if smart enough D3D's

Add these to the Globals
[PHP]#define PROP_VEHICLES 0x1
#define PROP_CHARACTER 0x2
#define PROP_OBJECTS 0xFF
DWORD Active;
HANDLE Control;[/PHP]

This is your Function

[PHP]
void log(char * towrite, char * filepath)
{
char * logbuf;
FILE * fp;
logbuf = ( char * )towrite;

if( (fp = fopen ( filepath , "addy")) != NULL )
{
fprintf ( fp, "%s\n", logbuf );
fclose (fp);
}[/PHP]

Put this in a Timer(trainers)

[PHP]
{//Characters
memory();
ReadProcessMemory( Control, (LPVOID*)0x8F544C, &Active, sizeof( BYTE ), NULL);
if( Active == PROP_CHARACTER)
mouse_event( MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0 );
else if ( Active != PROP_CHARACTER)
mouse_event( MOUSEEVENTF_LEFTUP, 0, 0, 0, 0 );

}


{//Vehicles
memory();
ReadProcessMemory( Control, (LPVOID*)0x8F544C, &Active, sizeof( BYTE ), NULL);
if( Active == PROP_VEHICLES )
mouse_event( MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0 );
else if ( Active != PROP_VEHICLES )
mouse_event( MOUSEEVENTF_LEFTUP, 0, 0, 0, 0 );
}[/PHP]

Would you mind showing us how to put this in a D3D please ? I know you can, i've seen your D3D ...


For the noobs : Yes this is C++ code you nubs!


I was going to say something else, but I forgot what XD
#10 · 18y ago
castaway
castaway
Quote Originally Posted by olie122333 View Post
Would you mind showing us how to put this in a D3D please ? I know you can, i've seen your D3D ...


For the noobs : Yes this is C++ code you nubs!


I was going to say something else, but I forgot what XD
Put it in EndScene
#11 · 18y ago
Posts 1–11 of 11 · Page 1 of 1

Post a Reply

Similar Threads

  • [Tutorial]Simple class explanations[Stickied]By Ghost in World of Warcraft Tutorials
    20Last post 13y ago
  • [C#] Tutorial: Understanding ClassesBy richdude212 in Programming Tutorials
    9Last post 15y ago
  • [Tutorial]Change class without respawnBy vir2000 in Game Hacking Tutorials
    0Last post 20y ago
  • Soladis's Tutorial on Evan Class TutorialBy Soladis in MapleStory Tutorial & Guides
    2Last post 15y ago
  • [Tutorial] Helping people with: Class Perks Tips and Weapons.By xZaTiC in Call of Duty Modern Warfare 2 Discussions
    2Last post 16y ago

Tags for this Thread

#class#triggerbot#tutorial