ASM BlackMagic, Object->Interact(); Calling Errors. menu

Shout-Out

User Tag List

Results 1 to 4 of 4
  1. #1
    fusspawn's Avatar Member
    Reputation
    5
    Join Date
    May 2008
    Posts
    54
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ASM BlackMagic, Object->Interact(); Calling Errors.

    Hi There, Im trying to use modified code from (i think Shynd's blog) to call Object->Interact(); via Asm.

    my Method:
    PHP Code:
    public void Interact()
            {
                
                    
                
    uint ObjectVTable MemoryUtils.ReadPointer(BaseAddress);
                
    uint InteractMethod MemoryUtils.ReadPointer(ObjectVTable + (42 4)); // Object->Interact(); is the 42nd Method in the VTable
                
    uint CodeCave MemoryUtils.Reader.AllocateMemory();
                
    Console.WriteLine("VTable: {0}, InteractMethod: {1}, CodeCave: {2}"ObjectVTableInteractMethodCodeCave);
                
    Lua.Lua.instance.Clear();
                      
                
    Lua.Lua.instance.AddLine("MOV EDX,DWORD PTR DS:["+WowObjects.ObjectManagerBase+"]");
                
    Lua.Lua.instance.AddLine("MOV EAX,DWORD PTR FS:[2C]");
                
    Lua.Lua.instance.AddLine("MOV EAX,DWORD PTR DS:[EAX]");
                
    Lua.Lua.instance.AddLine("ADD EAX,08");
                
    Lua.Lua.instance.AddLine("MOV DWORD PTR DS:[EAX],EDX");
                
    Lua.Lua.instance.AddLine("MOV ECX,DWORD PTR DS:["+BaseAddress+"]");
                
    Lua.Lua.instance.AddLine("CALL "+InteractMethod);
                
    Lua.Lua.instance.AddLine("RETN");
                
                try
                {
                      
    Lua.Lua.instance.Execute();
                }
                catch (
    Exception E)
                {
                    
    Console.WriteLine("[WowObjects] Error in Object.Interact()");
                }
                finally
                {
                    if (
    CodeCave != 0)
                        
    MemoryUtils.Reader.FreeMemory(CodeCave);
                }

    calling this method on valid object output what seem totally valid locations. yet this actually seems to do nothing. im at a loss. any ideas?
    Last edited by fusspawn; 02-25-2010 at 11:44 AM.

    ASM BlackMagic, Object->Interact(); Calling Errors.
  2. #2
    Robske's Avatar Contributor
    Reputation
    305
    Join Date
    May 2007
    Posts
    1,062
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    IIRC you have to move the address of the object into the ECX register, not it's VMT as you are doing ([BaseAddress] = VMT)
    "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - Martin Golding
    "I cried a little earlier when I had to poop" - Sku

  3. #3
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1358
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Robske View Post
    IIRC you have to move the address of the object into the ECX register, not it's VMT as you are doing ([BaseAddress] = VMT)
    Correct. 'this' is a pointer to the object, not to its VMT.

  4. #4
    fusspawn's Avatar Member
    Reputation
    5
    Join Date
    May 2008
    Posts
    54
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, Now going to test this.

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. BlackMagic Memory Read - Error
    By Cryptography in forum WoW Memory Editing
    Replies: 10
    Last Post: 02-26-2009, 02:28 PM
  3. Object.Interact() VMT 34
    By Nesox in forum WoW Memory Editing
    Replies: 15
    Last Post: 10-28-2008, 11:00 PM
  4. Ok question about registration error config or w.e u wana call it.
    By whatshisface in forum WoW EMU Questions & Requests
    Replies: 14
    Last Post: 09-20-2008, 01:28 PM
  5. ASM function call?
    By akh in forum WoW Memory Editing
    Replies: 15
    Last Post: 09-02-2008, 12:31 AM
All times are GMT -5. The time now is 09:12 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