Interact delegate menu

User Tag List

Results 1 to 4 of 4
  1. #1
    wag321's Avatar Member
    Reputation
    1
    Join Date
    Jul 2010
    Posts
    17
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Interact delegate

    So I am in the process of converting from asm to delegates. And I noticed that interact (which i c/pd from another thread) looks like
    Code:
                        "fs mov eax, [0x2C]",
                        "mov eax, [eax]",
                        "add eax, 0x08",
                        "mov dword [eax], "+ CurMgr
                        "mov ecx, "+ ObjPointer
                        "call "+ ObjInteractPointer
                        "retn"
    Unless I'm wrong it's accessing the fs segment register. I couldn't figure out why it would be doing this so I created a delegate ala
    Code:
            [UnmanagedFunctionPointer(CallingConvention.ThisCall)]
            private delegate void InteractDelegate(uint target);
    Which works fine.
    Although it's working I can't help but wonder what that fs magic is all about? Can anyone explain?

    Interact delegate
  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)
    It is updating the TLS of the local thread(redundancy?). The object manager is stored in TLS, so you have to update the TLS pointer when you make calls using the object manager most of the time. It is not necessary when you use an EndScene hook for obvious reasons.

  3. #3
    wag321's Avatar Member
    Reputation
    1
    Join Date
    Jul 2010
    Posts
    17
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah great thanks!

  4. #4
    namreeb's Avatar Legendary

    Reputation
    668
    Join Date
    Sep 2008
    Posts
    1,029
    Thanks G/R
    8/222
    Trade Feedback
    0 (0%)
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Note that it is not necessary when called from an EndScene hook ASSUMING that nothing but WoW is calling EndScene. If you are injecting a GUI framework (XNA, SlimDX, etc.), you may still have a problem. The easiest way to handle this scenario is to only execute your EndScene code when the current thread is the main thread.

Similar Threads

  1. Object.Interact() VMT 34
    By Nesox in forum WoW Memory Editing
    Replies: 15
    Last Post: 10-28-2008, 11:00 PM
  2. interacting with diffrent things as zombie
    By whorkitty in forum World of Warcraft Exploration
    Replies: 10
    Last Post: 10-26-2008, 09:23 AM
  3. How to make horde interact with Alliance?
    By zlo in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 08-05-2008, 08:29 AM
  4. [Useless] - Permanent Shattrath Interaction.
    By Nominated in forum World of Warcraft Exploits
    Replies: 10
    Last Post: 03-21-2008, 11:28 AM
  5. Interactive Map Coordinates for 1-70?
    By frozenlake in forum World of Warcraft General
    Replies: 0
    Last Post: 03-29-2007, 12:08 PM
All times are GMT -5. The time now is 01:47 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