the easiest way to make a triggerbot
you must know some basic C++ to do this
1- make all the characters flat(remove texture)/use white players ..
2- look up GetPixel on MSDN and see how the parameters work
i think its somthing like GetPixel(hdc,512,384) // i just gave u the center of the screen
3- give the color that the GetPixel finds to a COLORREF you have initialized
ex : COLORREF pixel_color = GetPixel(hdc,512,384);
4- now you need to scan if pixel_color is the color your looking for (white players)
well i did the work for you and the white players are RGB(130,130,130)
5- do an "if" statement so that if the two colors are the same, it wil do a mouse click
ex: if(pixel_color == RGB(130,130,130))
// do stuff
6- and in this case, the stuff we want it to do is a mouse click/hold or wt ever
this can easyly be done by :
Code:
void left_click()
{
INPUT Input={0};
Input.type = INPUT_MOUSE;
Input.mi.dwFlags = MOUSEEVENTF_LEFTDOWN;
SendInput( 1, &Input, sizeof(INPUT) );
Sleep(250);
ZeroMemory(&Input,sizeof(INPUT));
Input.type = INPUT_MOUSE;
Input.mi.dwFlags = MOUSEEVENTF_LEFTUP;
SendInput( 1, &Input, sizeof(INPUT) );
}
or
Code:
void left_click()
{
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
Sleep(250);
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
}
i put the sleep in the middle cuz the GetPixel API is actually preaty slow so like this it will shot 3-4 shots when ever you are on an object, and if ur with a sniper it will not interfere and will still shot 1 shot at a time.
NOTE: if you are using a sniper with this trigger bot, you are going to have to move the point thats for the center of the screen 1 pixel to the left or up doesnt make a difference, because the red dot created with the scope zoom is actually at the points 512,384 so if you scan that pixel it will always get the color red, so try doing this 512,383 and it should work fine
any questions just comment below
credits me and the allmighty MSDN lol
PRESS THANKS CUZ I KNO I HELPED YOU