Target NPC by GUID menu

User Tag List

Results 1 to 11 of 11
  1. #1
    Ploski's Avatar Member
    Reputation
    1
    Join Date
    Aug 2009
    Posts
    16
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Target NPC by GUID

    Hi,

    I think the topic speech for it self. I want to code an intelligent mob selection to avoid a pull of a mob that is in range of another mob, to avoid the risk of a death. I got almost evrything, but now i got the problem that i dont know how to Target that specifig target. I got the Guid of the enemy but if i write it to PlayerUnitFieldTarget or 0x01127770 (Static TargetGUID) the Player doesnt target the enemy. Is there any possibility to target an specific GUID?

    PS: Is there any offset to get the UnitFaction? To make out if an NPC is friendly or not? (searched ... with no results)
    Last edited by Ploski; 08-18-2009 at 07:02 PM.

    Target NPC by GUID
  2. #2
    lanman92's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2007
    Posts
    1,033
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah. you can use DoString+Getlocalizedtext with UnitReaction.

    For the first question, use SelectTarget? Try reversing InteractUnit. Awesome stuff in there.

  3. #3
    Ploski's Avatar Member
    Reputation
    1
    Join Date
    Aug 2009
    Posts
    16
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I dont work with injection, just with memory reading and writing, dont know if this is possible without injection, wise me up

  4. #4
    ramey's Avatar Member
    Reputation
    45
    Join Date
    Jan 2008
    Posts
    320
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    CGObject_C * pObj = GetObjectByGUID( wGUID )

    Then use SelectUnit( pObj );

    For the UnitReaction check out the lua functions, UnitReaction to be exact. Figure out what they use to get the reaction between two units. You will see a call to a function which looks up the TLS, and then gets GUID LocalPlayer by using that( probably, haven't looked ). After that, there will be a call to GetObjectByGUID, and then GetGUIDByKeyword from lua_tostring or i cant remember if it will even call lua_tostring on something from lua's stack or if its passed straight away.

    After it gets the guid by keyword it will call GetObjectByGUID, and then it will pass them to a function which takes two objects. Then you can use it like

    UnitReaction( LocalPlayer, pOtherObject );

    I'm sorry if the function doesn't go like that, I didn't look or anything. Its generally how most lua_ functions go. Good luck

  5. #5
    lanman92's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2007
    Posts
    1,033
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    GL on your treck with static addresses.

  6. #6
    Ploski's Avatar Member
    Reputation
    1
    Join Date
    Aug 2009
    Posts
    16
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    (not only static adresses, also variable adresses ^^)
    okay it seems that i can forget this intend, right?

  7. #7
    lanman92's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2007
    Posts
    1,033
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Pretty much. Just use blackmagic and call UnitReaction(the lua function);

  8. #8
    Ploski's Avatar Member
    Reputation
    1
    Join Date
    Aug 2009
    Posts
    16
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think i will convert to the "injectioners", thanks all for your help

  9. #9
    ramey's Avatar Member
    Reputation
    45
    Join Date
    Jan 2008
    Posts
    320
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why did I ever bother posting that lol

  10. #10
    lanman92's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2007
    Posts
    1,033
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    LOL^^ (filler)

  11. #11
    flo8464's Avatar Active Member
    Reputation
    30
    Join Date
    Apr 2009
    Posts
    434
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Write your GUID into the lasttargetGUID-field and send the targetlasttarget key in WoW.
    Thats working without injection.

Similar Threads

  1. Question: Target Unit By GUID in Addons, Possible?
    By zys924 in forum WoW Memory Editing
    Replies: 14
    Last Post: 12-30-2009, 12:57 PM
  2. Crashing when eating and targeting NPC's?
    By darkprince11 in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 01-11-2009, 11:02 AM
  3. Replies: 14
    Last Post: 10-31-2007, 01:17 PM
  4. [Guide] Creating and Compiling a Teleporter NPC
    By Gastricpenguin in forum WoW EMU Guides & Tutorials
    Replies: 59
    Last Post: 10-29-2007, 03:06 PM
All times are GMT -5. The time now is 03:53 PM. 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