Originally Posted by
cjg333
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]