Results 1 to 4 of 4
  1. #1
    MrCurie's Avatar
    Join Date
    Aug 2016
    Gender
    male
    Posts
    12
    Reputation
    10
    Thanks
    0

    Failing to get CrossHairID

    Hello everyone!
    I'm trying to code a simple triggerbot. First of all I'm just trying to make a very simple one, my first one.

    I've done the basics: got the process, client.dll module, got the localplayer, localteam, health. Looks fine so far. How ever I was having trouble finding a way to get the enemy where my player was pointing to using the CrossHairID, so I find this line of code from a couple of different source codes:
    Code:
    EnemyInCrossHair = ClientDLL + entityList + (PlayerInCrossHair - 1) * 0x10));
    First I don't know exactly why it works this way, why does it have to be -1 and multiplied by 0x10?

    And after a few hours trying to make this work I failed.
    So I began to debug everything to find where it was failing, so here what happens:

    It prints correctly the module, the localplayer, the localteam and localhealth.
    HOWEVER I noticed that the "PlayerInCrossHair" value wasn't changing no matter what I was looking at in game. Always the same value, so what it could be? The offsets I thought, but I'm using the updated value from the dumper: 0xAA48.
    Any ideas why it is not returning the actual value?
    I am using this method to get the PlayerInCrossHair:
    Code:
    PlayerInCrossHair = ClientDLL + playerBase + crosshairOffset

  2. #2
    ironsdkk's Avatar
    Join Date
    Aug 2016
    Gender
    male
    Location
    Some randoms basement
    Posts
    14
    Reputation
    10
    Thanks
    1
    My Mood
    Dead
    DWORD CrosshairID = 0x0000AA54;

    you need to make sure PlayerInCrossHair is

    Crosshair > 0 && Crosshair <= 64

    so

    if(PlayerInCrossHair > 0 && PlayerInCrossHair <= 64)
    {
    EnemyInCrossHair = ClientDLL + entityList + (PlayerInCrossHair - 1) * 0x10));
    }

  3. #3
    MrCurie's Avatar
    Join Date
    Aug 2016
    Gender
    male
    Posts
    12
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by ironsdkk View Post
    DWORD CrosshairID = 0x0000AA54;

    you need to make sure PlayerInCrossHair is

    Crosshair > 0 && Crosshair <= 64

    so

    if(PlayerInCrossHair > 0 && PlayerInCrossHair <= 64)
    {
    EnemyInCrossHair = ClientDLL + entityList + (PlayerInCrossHair - 1) * 0x10));
    }
    That's exactly what I'm doing.
    However it doesn't trigger. So when I use cout to print the PlayerInCrossHair value it showes a value like "10214847" and it doesn't matter what I am looking at in-game it's always the same value.

    EDIT ~
    Well, looks like there's something wrong with my dumper. It's giving me a wrong offset for the crosshair, just used yours and it's working now, thanks!!
    Last edited by MrCurie; 09-08-2016 at 11:40 AM.

  4. #4
    Smoke's Avatar
    Join Date
    Nov 2014
    Gender
    male
    Posts
    11,899
    Reputation
    2661
    Thanks
    4,610
    My Mood
    Amazed
    Been over a week since last update/bump after answers, assuming solved.

    /Closed.


    CLICK TO BUY NOW!!


    Quote Originally Posted by Liz View Post
    This is my first vouch, ever. Rapidgator account worked perfectly. Would buy in the future.

Similar Threads

  1. "Failed to get authenticated by Game Guard" - How to fix this error?
    By ccman32 in forum Alliance of Valiant Arms (AVA) Help
    Replies: 5
    Last Post: 07-07-2012, 08:25 AM
  2. [ERROR] Failed to get authentication. Please re-connect!
    By Picadoce_Backup in forum Alliance of Valiant Arms (AVA) Help
    Replies: 1
    Last Post: 10-21-2011, 02:34 PM
  3. [Help Request] Failed-to-get-Authentication ???
    By ownerofthegold2 in forum Alliance of Valiant Arms (AVA) Help
    Replies: 2
    Last Post: 08-10-2011, 12:13 AM
  4. [Help Request] Failed to get Authentication
    By xDenzx in forum Alliance of Valiant Arms (AVA) Help
    Replies: 3
    Last Post: 06-07-2011, 04:31 PM
  5. i failed to get off a ticket
    By ShunnyBun in forum General
    Replies: 26
    Last Post: 05-06-2011, 12:28 AM