Interact Problems menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 25
  1. #1
    luciferc's Avatar Contributor
    Reputation
    90
    Join Date
    Jul 2008
    Posts
    373
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Interact Problems

    When my bot Interacts it checks via Guid and then Interacts with it.

    The problem is that wow sometimes crashes with no error what so ever on an interact.

    Log #1
    NoMorePasting.com
    Log #2
    NoMorePasting.com


    So Basically it will Display when it finds a mine and what BaseAddr it Interacts W/.

    Ex:
    ###### mine is an interact

    Code:
    /// <summary>
            /// Interact with a object
            /// </summary>
            /// <param name="obj">object to interact with</param>
            public void Interact(uint obj)
            {
                Process.EnterDebugMode(); 
    
                
                //get the adress of the call for vmt 36 (Interact)
                uint VMT36 = wow.ReadUInt((wow.ReadUInt(obj) + (36 * 4)));
    
                wow.Asm.AddLine("fs mov eax, [0x2C]");
                wow.Asm.AddLine("mov eax, [eax]");
                wow.Asm.AddLine("add eax, 8");
                wow.Asm.AddLine("mov dword [eax], {0}", ObjectManager.s_curMgr);
                wow.Asm.AddLine("mov ecx, {0}", obj);
                wow.Asm.AddLine("call {0}", VMT36); //read pointer to Interact method
                wow.Asm.AddLine("retn");
    
    
                wow.Asm.InjectAndExecute(codeCave);
    
                wow.Asm.Clear();
                //wow.FreeMemory(codeCave);  ''Uses the Same Memory Alloc for all ASM Code''
                Main_Window.logAddLine(obj + " mine");
            }
    Last edited by luciferc; 01-04-2009 at 08:41 PM.

    Interact Problems
  2. #2
    Nesox's Avatar ★ Elder ★
    Reputation
    1280
    Join Date
    Mar 2007
    Posts
    1,238
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That happens to me sometimes too :yuck:
    dunno what the problem is tho

  3. #3
    luciferc's Avatar Contributor
    Reputation
    90
    Join Date
    Jul 2008
    Posts
    373
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Anyone have any ideas?

  4. #4
    hypnodok's Avatar Member
    Reputation
    19
    Join Date
    Nov 2007
    Posts
    65
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Probably another threading issue.

  5. #5
    luciferc's Avatar Contributor
    Reputation
    90
    Join Date
    Jul 2008
    Posts
    373
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do you mean i have to many threads not checking what they are doing.

    B/c i only have 1 thread doing looting as a whole and any loots must be passed thru its checks and then are looted (and it sleeps whilst it is looting so you can't double loot etc..).

  6. #6
    Shynd's Avatar Contributor
    Reputation
    97
    Join Date
    May 2008
    Posts
    393
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You have one thread and WoW has one (main) thread and they are both accessing WoW's TLS at the same time...

  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)
    I'm not sure bro, but I think you can avoid almost all threading issues by calling from WoW's main thread through detouring EndScene or something. You would have to FindPattern() it and I'm not so sure it would be easy to detour out-of-process. WoW does a lot of random stuff when you don't use it's main thread.

  8. #8
    MartyT's Avatar Active Member
    Reputation
    39
    Join Date
    Jan 2009
    Posts
    24
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How did ISXWoW manage it to call stuff?

  9. #9
    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)
    I'm pretty sure ISXWow hooks EndScene() and uses IPC or w/e to place their opcodes into the detoured EndScene(). Not sure if they use IPC or just do it straight from their DLL. Never really looked into ISX much.

  10. #10
    Nesox's Avatar ★ Elder ★
    Reputation
    1280
    Join Date
    Mar 2007
    Posts
    1,238
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by lanman92 View Post
    I'm pretty sure ISXWow hooks EndScene() and uses IPC or w/e to place their opcodes into the detoured EndScene(). Not sure if they use IPC or just do it straight from their DLL. Never really looked into ISX much.
    that would be nice to set up so you can call functions from a injected dll from a c# application by hooking/detouring endscene with the dll, it would solve the problem with asyncwaiting != false when you try to call SetGlueScreen("charcreate") from the CharSelect glue

  11. #11
    luciferc's Avatar Contributor
    Reputation
    90
    Join Date
    Jul 2008
    Posts
    373
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So if the problem is with the looting when i interact with the bot if i am correct.

    Because it has sleeps way over 3Seconds for a Mine so it never errors on that.

    So maybe i will try to not touch it at all and see how long it can go.

  12. #12
    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)
    The problem is just with bad timing. The only realistic way to do this out of process is to write a C++ stub and inject it and detour something in the mainthread of WoW. Do your dirty work there. Have it uninject itself when it's done.

  13. #13
    Shynd's Avatar Contributor
    Reputation
    97
    Join Date
    May 2008
    Posts
    393
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Or, if you wanted, you could, instead of creating a new thread, hijack WoW's main thread using GetThreadContext and SetThreadContext. Look at Magic.SInject in the BlackMagic source; there should be a DLL injection method named something like InjectRedirectThread that outlines how to do such a thing. No idea if that would cause more crashes or less.

  14. #14
    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)
    Never thought about that. Similar to the way I inject DLLs. Grab context, change EIP, run my shit, set it back. Good idea. I think I'm gonna go that route...

    EDIT: How can you make sure that you are grabbing the main thread? Is there a struct inside each thread that tells if it is the main thread of a process?
    Last edited by lanman92; 01-05-2009 at 09:05 PM.

  15. #15
    Shynd's Avatar Contributor
    Reputation
    97
    Join Date
    May 2008
    Posts
    393
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, there's a few ways of doing it, actually. Firstly, in .NET, the main thread is almost always index zero in the Process.Threads collection. You could also use CreateToolhelp32Snapshot, if working with unmanaged code. Another way (there is ALWAYS another way) is to read the information from the process' PDB, ala Dll Injection (Appendix B, may not work in managed code, probably will have to inject an ASM stub into the process that takes care of it).

Page 1 of 2 12 LastLast

Similar Threads

  1. Interact problems with Click to move
    By natt_ in forum WoW Memory Editing
    Replies: 3
    Last Post: 09-28-2014, 02:12 PM
  2. [Question] Problem with Fishbot - Interact with Target
    By VexeRR in forum WoW Memory Editing
    Replies: 15
    Last Post: 01-11-2011, 07:22 AM
  3. [Help] Mouseover interact problem
    By xwinterx in forum WoW Memory Editing
    Replies: 1
    Last Post: 12-13-2010, 03:26 AM
  4. [Autoit][3.1.3] Problem with interact with npcs
    By grigitokarz in forum WoW Memory Editing
    Replies: 1
    Last Post: 08-19-2009, 03:40 PM
  5. Site problems
    By Shanaar in forum Community Chat
    Replies: 10
    Last Post: 05-14-2006, 01:15 AM
All times are GMT -5. The time now is 06:20 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