TargetUnit menu

User Tag List

Thread: TargetUnit

Results 1 to 3 of 3
  1. #1
    kingdeking's Avatar Member
    Reputation
    4
    Join Date
    Oct 2008
    Posts
    50
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    TargetUnit

    Hi,

    how do i fill TargetUnit. It says it takes the name of the unit as a parameter but analyzing the function with IDA results in an int as a parameter. How do i feed the function corretctly. I need to know that since i want to call the function using a dll. Thats Ida's Pseudocode:

    Code:
    int __cdecl TargetUnit(int a1)
    {
      char *v1; // edi@1
      int v2; // eax@1
      __int64 v3; // qax@1
    
      v1 = (char *)sub_801D20(a1, 1, 0);
      v2 = sub_7CAFF0(a1, 2, 0);
      LODWORD(v3) = sub_4BFB30(v1, 8, 0, v2, 3.402823466385289e38, 1);
      if ( v3 )
        sub_4C5450();
      return 0;
    }
    Lets say the function takes the UnitID as a param, how do i get this ID? ty for all answers.

    TargetUnit
  2. #2
    Kryso's Avatar Active Member
    Reputation
    40
    Join Date
    Jul 2009
    Posts
    97
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's lua function, so it takes one parameter (lua state) and returns int (number of returned values)

    If you want to target unit with injection use CGGameUI__Target ( 004CA260 ), signature should be int __cdecl CGGameUI__Target(WGUID guid)

  3. #3
    Azzie2k8's Avatar Member
    Reputation
    11
    Join Date
    Apr 2009
    Posts
    190
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have no idea why you would use this function.
    you could use CGGameUI__Target with the target guid. This function takes a pointer to a guid as argument. Hope this helps.

    Edit: Okay I was too slow...

All times are GMT -5. The time now is 01:38 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search