[Help] How to find InteractUnit function menu

User Tag List

Results 1 to 6 of 6
  1. #1
    Jirno's Avatar Member
    Reputation
    3
    Join Date
    Mar 2023
    Posts
    12
    Thanks G/R
    2/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Help] How to find InteractUnit function

    And yet again... function addresses and offsets

    I am working on my first fishing bot for 5.4.8 18414 x64 and I am stuck at finding InteractUnit function address for opening loot window
    Script_InteractUnit offset from info dump is not working for me (I know that info dumps are made for x32, I tested it on x32 and it's never called on interaction with anything + I found x64 analog and it don't work either)
    I tried to use CTM for interaction with bobber, but it's just not working

    So my questions:
    Do I even need Script_InteractUnit to open this loot window or it can be done by another function? (maybe DoString or idk)
    How can I manually find InteractUnit address? Not asking for spoonfeeding, just for place from where to start

    [Help] How to find InteractUnit function
  2. #2
    scizzydo's Avatar Contributor
    Reputation
    134
    Join Date
    Oct 2019
    Posts
    97
    Thanks G/R
    5/54
    Trade Feedback
    0 (0%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Search for the string InteractUnit, that'll take you to the string in the data section. List cross references to that. You'll find one where there is the string, then a sub_xxxxxx (real address would be there, not x's). That'll take you to the Script_InteractUnit lua function.

  3. #3
    Jirno's Avatar Member
    Reputation
    3
    Join Date
    Mar 2023
    Posts
    12
    Thanks G/R
    2/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by scizzydo View Post
    Search for the string InteractUnit, that'll take you to the string in the data section. List cross references to that. You'll find one where there is the string, then a sub_xxxxxx (real address would be there, not x's). That'll take you to the Script_InteractUnit lua function.
    Yeah I did that and it got me to the InteractUnit function, but it's never called on interaction with anything and throws exceptions when I try to call it
    Is it possible to open loot window with some other function?

  4. #4
    imnothonorbuddy's Avatar Member
    Reputation
    2
    Join Date
    Oct 2023
    Posts
    11
    Thanks G/R
    2/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Maybe you need to find wrapped c++ function in lua function, and call it)

    Like IsSpellKnown (thats from 9.2.7 ver )


    By the way, I'm wondering if it's even possible to just call Lua functions? This would simplify a lot
    Attached Thumbnails Attached Thumbnails [Help] How to find InteractUnit function-screenshot-2-png  
    Last edited by imnothonorbuddy; 10-12-2023 at 01:38 PM.

  5. #5
    aeo's Avatar Contributor
    Reputation
    127
    Join Date
    Apr 2007
    Posts
    270
    Thanks G/R
    84/62
    Trade Feedback
    7 (100%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    you can but you need to pass the state and push all the correct values to the stack. I suggest you read into how LUA works if you want to take the approach. Most of them are ret checked too.

  6. #6
    Jirno's Avatar Member
    Reputation
    3
    Join Date
    Mar 2023
    Posts
    12
    Thanks G/R
    2/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You all prob know this already, but for some starters like me in the future

    I misunderstood meaning of Script_InteractUnit function
    I was trying to find what function is called when I actually click on bobber to interact, but Script_InteractUnit is not about it
    It's called when you manually run script from game (like /run InteractUnit('target') in chat)

    When I understood it, it was easier for me just to unlock that specific function and simulate keypress on macro bind
    Anyways, thanks for replies!

  7. Thanks imnothonorbuddy (1 members gave Thanks to Jirno for this useful post)

Similar Threads

  1. [Help]How to find some addresses/offsets 5.0.5
    By broly7 in forum WoW Memory Editing
    Replies: 3
    Last Post: 01-09-2013, 05:32 PM
  2. [Help]how to find CGObject's VMT indies?
    By rik.chong in forum WoW Memory Editing
    Replies: 7
    Last Post: 01-20-2011, 11:16 AM
  3. [Help] How to find out Display ID's
    By Litenith in forum WoW ME Questions and Requests
    Replies: 4
    Last Post: 08-23-2009, 04:46 AM
  4. [Help] How to find WoW version as pointer?
    By Jadd in forum WoW Memory Editing
    Replies: 3
    Last Post: 08-23-2008, 06:19 AM
  5. [help] How to find fly hack address for the wow alpha ?
    By Phobe in forum WoW Memory Editing
    Replies: 4
    Last Post: 06-27-2008, 11:30 AM
All times are GMT -5. The time now is 11:54 PM. 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