Jump to content
Welcome, Guest
Existing user? Sign In

Sign In



Sign Up
The MatriX
  • Welcome To Ghbsys
  • CS GO Streaming Version is released. Have fun streaming while cheating!
  • Have a Payment Issue? Send us a Support ticket.
  • Make a thread if you need support or join our discord for live support.
  • Have Suggestions? Make a thread and you'll earn Ghbsys Points for implemented suggestions.
  • Join our discord to stay well connected! Don't forget to integrate your discord to the site
  • Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum

    Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of [GHB] - GAmEhAcKbAsTaRdS Forum by signing in or creating an account.
    • Start new topics and reply to others
    • Subscribe to topics and forums to get email updates
    • Get your own profile page and make new friends
    • Send personal messages to other members.

    [warrock] Triggerbot Class


    NeoIII
     Share

    Recommended Posts

    class cTbot{
    public:
    cTbot( BYTE* bBot );
    ~cTbot( );
    void DoBot( );
    BYTE GetTbotVal( BYTE* bebo );
    bool IsBotOn;
    private:
    BYTE curStatus;
    BYTE* cur_ptr;
    };

     

    #include "stdafx.h"
    #include <windows.h>
    #include "cTbot.h"
    
    #define PROP_VEHICLE 0x1
    #define PROP_HUMAN 0x2
    #define PROP_OTHER 0xFF
    
    BYTE cTbot::GetTbotVal( BYTE* bebo )
    {
    BYTE bRet = 0x0;
    DWORD dwOld = 0x0;
    VirtualProtect( bebo, sizeof( BYTE ), PAGE_EXECUTE_READWRITE, &dwOld);
    bRet = *( BYTE* )bebo;
    VirtualProtect( bebo, sizeof( BYTE ), dwOld, NULL );
    return bRet;
    }
    
    cTbot::cTbot( BYTE* bBot )
    {
    IsBotOn = false;
    curStatus = GetTbotVal( bBot );
    cur_ptr = bBot;
    }
    
    cTbot::~cTbot( )
    {
    IsBotOn = false;
    curStatus = 0;
    cur_ptr = 0;
    }
    
    void cTbot::DoBot( )
    {
    curStatus = GetTbotVal( cur_ptr );
    if( curStatus == PROP_HUMAN || curStatus == PROP_VEHICLE )
    {
    	IsBotOn = true;
    	mouse_event( MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0 );
    }else if( IsBotOn && ( curStatus != PROP_HUMAN || curStatus != PROP_VEHICLE ) ){
    	IsBotOn = false;
    	mouse_event( MOUSEEVENTF_LEFTUP, 0, 0, 0, 0 );
    }
    }

     

    im not going to tell you the address you need, that wouldnt be fun at all.

     

    but the values of the address are right there, plain as day.

     

    this may not be posted elsewhere but may be linked to.

     

    if you use this at all, including the information provided please credit me ( s0beit ).

    Link to comment
    Share on other sites

    • 1 year later...
    Guest
    This topic is now closed to further replies.
     Share

    • Recently Browsing   0 members

      • No registered users viewing this page.
    ×
    ×
    • Create New...