ArcEmu SetUInt64Value not working menu

User Tag List

Results 1 to 3 of 3
  1. #1
    Renyei's Avatar Contributor Hand of God
    Reputation
    112
    Join Date
    Sep 2008
    Posts
    127
    Thanks G/R
    0/8
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ArcEmu SetUInt64Value not working

    Hey, I'm trying to get LUA to modify the UNIT_FIELD_FLAGS of a mob that the script spawns so that is is untargetable (un-selectable) on the client.

    This should apparently work (I've checked my rev's Unit.H and UnitFields.h and it's correct)...

    OBJECT_END = 0x0006
    UNIT_FIELD_FLAGS = OBJECT_END + 0x0035
    UNIT_NOT_SELECTABLE = 0x02000000

    pUnit:SetUInt64Value(UNIT_FIELD_FLAGS, UNIT_NOT_SELECTABLE)

    100% pUnit is the correct pointer for the mob in question and it works fine, the above doesn't even throw an LUA error in the console, just seems to do nothing.

    Any help here would be appreciated!
    Last edited by stoneharry; 02-20-2011 at 12:54 PM. Reason: Added Prefix.

    ArcEmu SetUInt64Value not working
  2. #2
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    You do it like so:

    Code:
    local OBJECT_END = 0x0006
    local UNIT_FIELD_FLAGS = OBJECT_END + 0x0035 -- Size: 1, Type: INT, Flags: PUBLIC
    local UNIT_FLAG_NOT_SELECTABLE = 0x02000000 -- 26    33554432  cannot select the unit
    
    ...
    pUnit:SetUInt32Value(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE)
    ...

  3. #3
    Renyei's Avatar Contributor Hand of God
    Reputation
    112
    Join Date
    Sep 2008
    Posts
    127
    Thanks G/R
    0/8
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks! Once again you solved my problem! +rep

Similar Threads

  1. ArcEmu Svn not working helppz
    By UnknownEncryption in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 08-11-2010, 04:13 AM
  2. [Arcemu] Mailbox not working
    By lorht in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 03-23-2010, 07:20 AM
  3. Arcemu private to live not working
    By mrshmugles in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 11-20-2009, 08:55 PM
  4. ArcEmu commands not working
    By SupernovaHH in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 02-09-2009, 11:11 AM
  5. [Help] Arcemu not working in vista
    By dude891 in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 12-03-2008, 02:36 AM
All times are GMT -5. The time now is 05:34 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