Interact Issues VMT menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 25
  1. #1
    HeroXx's Avatar Member
    Reputation
    1
    Join Date
    Feb 2008
    Posts
    36
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Interact Issues VMT

    Hello everyone

    I have been slogging away at my little harvest bot and everything is looking good apart from the final piece - harvesting!

    I am unable to get this working, I have double checked all values being passed to it and the offsets and they all look fine, I don't get a crash or anything.

    Code:
    private void moveToHarvest(uint obj)
            {
                uint codeCave = wow.AllocateMemory();
                uint VMT44 = wow.ReadUInt(wow.ReadUInt(obj) + (44 * 4));
                wow.Asm.Clear();
                wow.Asm.AddLine("fs mov eax, [0x2C]");
                wow.Asm.AddLine("mov eax, [eax]");
                wow.Asm.AddLine("add eax, 0x10");
                wow.Asm.AddLine("mov dword [eax], {0}", ObjectManager.CurrentManager);
                wow.Asm.AddLine("mov ecx, {0}", obj);
                wow.Asm.AddLine("call {0}", VMT44);
                wow.Asm.AddLine("retn");
                wow.Asm.InjectAndExecute(codeCave);
                wow.FreeMemory(codeCave);
            }
    Any help is greatly appreciated.

    Interact Issues VMT
  2. #2
    Cromon's Avatar Legendary


    Reputation
    840
    Join Date
    Mar 2008
    Posts
    714
    Thanks G/R
    0/7
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Aint Interact just.. err.. interacting with the object and not moving to it? Im not sure, its a long time i used injected code...

  3. #3
    HeroXx's Avatar Member
    Reputation
    1
    Join Date
    Feb 2008
    Posts
    36
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That's what I thought although I have another function handling the movement to the node, after it reaches the node (3.6 distance) the harvest function is called. I know the function name is a little misleading.

  4. #4
    Evieh's Avatar Contributor
    Reputation
    92
    Join Date
    Aug 2006
    Posts
    191
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Because interact is 45 not 44.

  5. #5
    HeroXx's Avatar Member
    Reputation
    1
    Join Date
    Feb 2008
    Posts
    36
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the update on the offset there, unfortunately I am still getting no interaction.

  6. #6
    Evieh's Avatar Contributor
    Reputation
    92
    Join Date
    Aug 2006
    Posts
    191
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ehh, I'm not familiar with code cave injections but last time I checked you should suspend the main thread then resume it after injecting.

  7. #7
    HeroXx's Avatar Member
    Reputation
    1
    Join Date
    Feb 2008
    Posts
    36
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    private void moveToHarvest(uint obj)
            {
                uint codeCave = wow.AllocateMemory();
                uint VMT45 = wow.ReadUInt(wow.ReadUInt(obj) + (45 * 4));
                wow.Asm.Clear();
                wow.Asm.AddLine("fs mov eax, [0x2C]");
                wow.Asm.AddLine("mov eax, [eax]");
                wow.Asm.AddLine("add eax, 0x10");
                wow.Asm.AddLine("mov dword [eax], {0}", ObjectManager.CurrentManager);
                wow.Asm.AddLine("mov ecx, {0}", obj);
                wow.Asm.AddLine("call {0}", VMT45);
                wow.Asm.AddLine("retn");
                wow.SuspendThread();
                wow.Asm.InjectAndExecute(codeCave);
                wow.FreeMemory(codeCave);
                wow.ResumeThread();
            }
    Still no joy.

    Edit: And exactly like last time, I take a second to look over the code and see 0x10 For anyone interested in the solution, "add eax, 0x10" should be "add eax, 0x08".

    Cheers for the help everyone.
    Last edited by HeroXx; 11-05-2010 at 04:43 PM.

  8. #8
    amadmonk's Avatar Active Member
    Reputation
    124
    Join Date
    Apr 2008
    Posts
    772
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    BTW, if you have click-to-move enabled, interact should, in many cases, trigger a click-to-move. Meaning that you often don't require a separate move and interact step.

    It's still not a bad idea to ensure you're in range before attempting actions, though
    Don't believe everything you think.

  9. #9
    JuJuBoSc's Avatar Banned for scamming CoreCoins Purchaser
    Reputation
    1019
    Join Date
    May 2007
    Posts
    922
    Thanks G/R
    1/3
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    And call it from another thread will lead you to a crash, go hook something and call it from main thread.

  10. #10
    HeroXx's Avatar Member
    Reputation
    1
    Join Date
    Feb 2008
    Posts
    36
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by JuJuBoSc View Post
    And call it from another thread will lead you to a crash, go hook something and call it from main thread.
    Beyond my learning at the moment but thanks for the advice

  11. #11
    Evieh's Avatar Contributor
    Reputation
    92
    Join Date
    Aug 2006
    Posts
    191
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by HeroXx View Post
    Beyond my learning at the moment but thanks for the advice
    It shouldn't crash if you're suspending the main thread and resuming after it has finished executing the injected code, I also recommend doing everything through the main thread and you might as well go fully injected then (dll injection) it will also save you from having to do crap like this.

  12. #12
    HeroXx's Avatar Member
    Reputation
    1
    Join Date
    Feb 2008
    Posts
    36
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    While I've got a thread open, has anyone got any of the following offsets:

    DX_DEVICE
    DX_DEVICE_IDX
    ENDSCENE_IDX

    They don't look like they are very popular.

  13. #13
    Cheatz0's Avatar Member
    Reputation
    14
    Join Date
    May 2009
    Posts
    36
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Evieh View Post
    It shouldn't crash if you're suspending the main thread and resuming after it has finished executing the injected code, I also recommend doing everything through the main thread and you might as well go fully injected then (dll injection) it will also save you from having to do crap like this.
    But it will, eventually, crash due to race conditions.

  14. #14
    HeroXx's Avatar Member
    Reputation
    1
    Join Date
    Feb 2008
    Posts
    36
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So it is crashing as previously stated.

    Can this be solved out of process?

  15. #15
    JuJuBoSc's Avatar Banned for scamming CoreCoins Purchaser
    Reputation
    1019
    Join Date
    May 2007
    Posts
    922
    Thanks G/R
    1/3
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You're already injecting so you're in process, why just don't detour the EndScene or something else, you're doing some ASM here, so we assume you understand it

Page 1 of 2 12 LastLast

Similar Threads

  1. [Question][C#][ASM] Object -> Interact (VMT 38)
    By -Ryuk- in forum WoW Memory Editing
    Replies: 5
    Last Post: 05-10-2010, 06:05 PM
  2. NPC Interaction issues
    By dbuck85 in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 01-07-2010, 09:15 AM
  3. [Solved] CTM - Interact Issue
    By weber7655 in forum WoW Memory Editing
    Replies: 29
    Last Post: 12-23-2009, 10:41 PM
  4. Object.Interact() VMT 34
    By Nesox in forum WoW Memory Editing
    Replies: 15
    Last Post: 10-28-2008, 11:00 PM
  5. [Patch 1.11] - Known Issues (6-20-06)
    By Cypher in forum World of Warcraft General
    Replies: 1
    Last Post: 06-24-2006, 12:42 AM
All times are GMT -5. The time now is 04:57 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