[C#] Help ObjMgr Units\Players Enemy menu

User Tag List

Results 1 to 6 of 6
  1. #1
    BersAcc's Avatar Member
    Reputation
    3
    Join Date
    Mar 2012
    Posts
    13
    Thanks G/R
    4/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [C#] Help ObjMgr Units\Players Enemy

    Hello! please help me find a solution.
    how to search for enemy unit \ players?
    or unit \ players who can attack ...


    Code:
            public bool IsEnemy
            {
                get {
    
                    uint by = ObjectManager.Memory.ReadUInt(BaseAddress + 0x8);
    
                    return ObjectManager.Memory.Read(????????????)
                    
                }
            }


    I apologize for my bad English.

    [C#] Help ObjMgr Units\Players Enemy
  2. #2
    Robske's Avatar Contributor
    Reputation
    305
    Join Date
    May 2007
    Posts
    1,062
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    CGUnit_C::UnitReaction
    "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - Martin Golding
    "I cried a little earlier when I had to poop" - Sku

  3. #3
    BersAcc's Avatar Member
    Reputation
    3
    Join Date
    Mar 2012
    Posts
    13
    Thanks G/R
    4/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I apologize once again have to bother.
    my experience is very bad in the hook.
    or I'm doing is not what we need.


    Code:
     public uint Reaction
            {
                get
                {
                    return WoW.Lua.UnitReaction(BaseAddress, ObjtMgr.Me.BaseAddress);
                }
            }
    ////////////////////////////////////////////////////////////////////////////////////
     public static uint UnitReaction(uint baseaddress, uint Me)
            {
                uint pReaction = Hook.Memory.AllocateMemory(0x4);
    
                string[] asm = new string[]
                {
                    "push " + baseaddress,
                    "mov ecx, " + Me,
                    "call " + Hook.Process.BaseOffset()+(uint)0x8E7F40,
                    "mov [" + pReaction + "], eax",
                    "retn",
                };
    
                WoW.Lua.Hook.InjectAndExecute(asm);
    
                uint reaction = Hook.Memory.ReadUInt(pReaction);
    
                Hook.Memory.FreeMemory(pReaction);
    
                return reaction;
            }
    //////////////////////////////////////////////////////////////////////////////////////////
    
    error:
    throw gcnew Exception(String::Format("Assembly failed!  Error code: {0};  Error Line: {1}", fasm_state->error_code, fasm_state->error_data->line_number));
    As I understand it, the problem AllocateMemory (0x4) - how to count?
    or in something else?
    is it possible to ask you for a more recent example UnitReaction?
    very difficult to learn misunderstanding how it should work =)

    sorry for my disgusting English

  4. #4
    Holico's Avatar Contributor
    Reputation
    85
    Join Date
    Jul 2009
    Posts
    114
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do you need those information for Players (Enemy and Friends) or NPCs?

  5. #5
    BersAcc's Avatar Member
    Reputation
    3
    Join Date
    Mar 2012
    Posts
    13
    Thanks G/R
    4/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    do for BG and AOE packs
    1. find all targets within 30 yards of me (Units \ Players) - OK
    2. distinguish them from enemies -
    3. check on dead - OK
    4. Check Availability my debuffs - OK

    there was only a 2 point

  6. #6
    TOM_RUS's Avatar Legendary
    Reputation
    914
    Join Date
    May 2008
    Posts
    699
    Thanks G/R
    0/52
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

  7. Thanks BersAcc (1 members gave Thanks to TOM_RUS for this useful post)

Similar Threads

  1. [Help][C#] Reading player level
    By -Ryuk- in forum Programming
    Replies: 5
    Last Post: 12-11-2009, 11:12 AM
  2. [help plz] spawning players with items
    By whitewolf007 in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 05-03-2009, 09:12 AM
  3. help with unit.cpp and arcemu
    By igud2 in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 04-29-2009, 05:55 AM
  4. Unit/Player Facing for Z axis
    By g3gg0 in forum WoW Memory Editing
    Replies: 15
    Last Post: 01-17-2009, 09:53 AM
  5. [Help] Attack Rnd Player LUA Script
    By wurstbr0t in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 02-02-2008, 11:01 AM
All times are GMT -5. The time now is 03:20 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