[Classic] 1.13.2.32089 Is there a flag known a unit has been attack? menu

User Tag List

Results 1 to 6 of 6
  1. #1
    garbled's Avatar Member
    Reputation
    4
    Join Date
    Jan 2011
    Posts
    27
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Classic] 1.13.2.32089 Is there a flag known a unit has been attack?

    [Classic] 1.13.2.32089

    Is there a flag to know a unit has been attack?

    sorry, my english is poor

    [Classic] 1.13.2.32089 Is there a flag known a unit has been attack?
  2. #2
    xalcon's Avatar Contributor ふたなり
    Authenticator enabled
    Reputation
    198
    Join Date
    Oct 2008
    Posts
    291
    Thanks G/R
    20/58
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Check out Script_UnitIsTapDenied
    It takes a unit token and returns a lua boolean.
    "Threads should always commit suicide - they should never be murdered" - DirectX SDK

  3. #3
    garbled's Avatar Member
    Reputation
    4
    Join Date
    Jan 2011
    Posts
    27
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by xalcon View Post
    Check out Script_UnitIsTapDenied
    It takes a unit token and returns a lua boolean.
    Appreciate that

  4. #4
    Kwapuzzi's Avatar Member
    Reputation
    12
    Join Date
    Apr 2007
    Posts
    62
    Thanks G/R
    2/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i dont think taped is correct. dont know exactly for memory, but simple lua it is affectingCombat = UnitAffectingCombat("target"); so i think you have to look for this flag

  5. #5
    charles420's Avatar Contributor
    Reputation
    315
    Join Date
    Jun 2009
    Posts
    329
    Thanks G/R
    25/119
    Trade Feedback
    0 (0%)
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    signed __int64 __fastcall Script_UnitAffectingCombat(__int64 a1)
    {
    __int64 v1; // rbx
    signed __int64 result; // rax
    __int64 v3; // rax
    __int64 v4; // rax

    v1 = a1;
    if ( lua_isstring(a1, 1i64) )
    {
    v3 = lua_tolstring(v1, 1i64);
    v4 = Script_GetGUIDFromToken_0(v3, 0i64);
    if ( v4 && (*(*(v4 + 0x18 + 0x158i64) >> 0x13) & 1 )
    {
    lua_pushboolean(v1, 1i64);
    result = 1i64;
    }
    else
    {
    lua_pushboolean(v1, 0i64);
    result = 1i64;
    }
    }
    else
    {
    luaL_error(v1, "Usage: UnitAffectingCombat("unit")");
    result = 0i64;
    }
    return result;
    }


    This Part if ( v4 && (*(*(v4 + 0x18 + 0x158i64) >> 0x13) & 1 )

  6. #6
    xalcon's Avatar Contributor ふたなり
    Authenticator enabled
    Reputation
    198
    Join Date
    Oct 2008
    Posts
    291
    Thanks G/R
    20/58
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    UnitAffectingCombat is used to check if a unit is in combat.
    UnitIsTapDenied is used to check if the unit is tapped by someone else (making it pointless to kill).

    I thought he wanted to know the latter, but we will probably never know :P
    "Threads should always commit suicide - they should never be murdered" - DirectX SDK

Similar Threads

  1. [Classic] 1.13.2.32089 - WorldToScreen
    By NoxiaZ in forum WoW Memory Editing
    Replies: 5
    Last Post: 07-18-2021, 07:19 AM
  2. [Classic] 1.13.2.32089 - SpellBook, Cooldowns, WorldToScreen
    By NoxiaZ in forum WoW Memory Editing
    Replies: 8
    Last Post: 04-17-2020, 10:31 AM
  3. [Classic] 1.13.2.32089 - Spell Names?
    By NoxiaZ in forum WoW Memory Editing
    Replies: 11
    Last Post: 12-26-2019, 04:43 AM
  4. [Classic] 1.13.2.32089
    By SatyPardus in forum WoW Memory Editing
    Replies: 24
    Last Post: 11-05-2019, 08:49 PM
  5. [Classic] [Classic] 1.13.2.32089 - Learned Spells
    By NoxiaZ in forum WoW Memory Editing
    Replies: 14
    Last Post: 10-17-2019, 04:32 PM
All times are GMT -5. The time now is 11:20 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search