[Classic] How Click To Move? menu

User Tag List

Page 1 of 3 123 LastLast
Results 1 to 15 of 32
  1. #1
    imzz's Avatar Active Member
    Reputation
    24
    Join Date
    May 2011
    Posts
    36
    Thanks G/R
    37/17
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Classic] How Click To Move?

    I use Arctium WoW Sandbox and Compare 8.2 client , find the offsets:MoveTo = 0x9D6C70 // 1.13.2.30979
    The same method, but not working on the classic.
    I want to know what methods everyone uses to achieve click to move.
    Code:
            public void MoveTo(Vector3 position)
            {
                    if (ObjectManager.InGame)
                    {
                        //Get pPlayer
                        IntPtr ptr = ObjectManager.GetActivePlayerObjPtr();
    
                        IntPtr Codecave = Memory.MemoryManager.AllocateRawMemory(0xC);
                        Memory.MemoryManager.Write<float>(positionCodecave, position.X);
                        Memory.MemoryManager.Write<float>(positionCodecave + 4, position.Y);
                        Memory.MemoryManager.Write<float>(positionCodecave + 8, position.Z);
                        
                        var Mnemonics = new string[]                    
                        {
                        "sub rsp, 0x18",
                        $"mov rdx, {Codecave}",
                        $"mov rcx, {ptr}",
                        $"mov rax, {Memory.ModulesManager.MainModule.BaseAddress+(int)Offsets.Function.MoveTo}",
                        "call rax",
                        "add rsp, 0x18",
                        "retn"
                        };
    
                        InjectAndExecute(Mnemonics);
                        Memory.MemoryManager.FreeRawMemory(positionCodecave);
                    }
            }
    Last edited by imzz; 07-15-2019 at 07:58 PM.
    回首向来萧瑟处,归去,也无风雨也无晴。

    [Classic] How Click To Move?
  2. #2
    h42's Avatar Contributor CoreCoins Purchaser
    Reputation
    130
    Join Date
    Oct 2006
    Posts
    108
    Thanks G/R
    139/52
    Trade Feedback
    12 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Classic client is based on 7.3.5/8.0.1, so it's before the big 8.1 changes.
    If you have notes from one of those clients I would compare against that to begin with.

    I haven't done any CTM'ing for a few expansions, but don't you have to write the ActionType/Trigger/Push after you've written the destination to make it start the action?
    Looks like you are only writing the destination in your example, does it work for you on 8.2?

    Edit: Nevermind, I was confused by my memories, you're calling the function rather than writing to the struct.
    Calling the function is probably safer anyway.
    I would doublecheck the function signature with the client versions I mentioned earlier, and debug from there.
    Last edited by h42; 07-16-2019 at 02:25 AM.

  3. Thanks imzz (1 members gave Thanks to h42 for this useful post)
  4. #3
    imzz's Avatar Active Member
    Reputation
    24
    Join Date
    May 2011
    Posts
    36
    Thanks G/R
    37/17
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It does work on 8.2 !
    MoveTo = 0xB3A380, //8.2.0.30993
    I have been using this method since, because I have not found other methods.
    I don't know if my method is correct.
    回首向来萧瑟处,归去,也无风雨也无晴。

  5. #4
    imzz's Avatar Active Member
    Reputation
    24
    Join Date
    May 2011
    Posts
    36
    Thanks G/R
    37/17
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by DarkLinux View Post
    Have they added any new return checks to the click to move wrapper? Can you post the asm function?
    I am using the YASM function in MyMemory.
    GitHub - JuJuBoSc/MyMemory: Process manipulation library for .NET that support x86/x64 written in C++/CLI.
    回首向来萧瑟处,归去,也无风雨也无晴。

  6. #5
    Icesythe7's Avatar Contributor
    Reputation
    231
    Join Date
    Feb 2017
    Posts
    168
    Thanks G/R
    10/111
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Works fine for me on latest build (31043)

    Code:
    			
    //store a temp position for testing
    const auto lPlayer = reinterpret_cast<int64_t(__cdecl*)()>(ClassicMorph::ClntObjMgrGetActivePlayerPtr)();
    tPos = *reinterpret_cast<ReClass::Vector3*>(lPlayer + 0x1600);
    printf("%s", tPos.ToString(3));
    
    //moved player and called function with prev saved pos
    reinterpret_cast<void(__fastcall*)(int64_t, ReClass::Vector3*)>(ClassicMorph::Base + 0x9DF110)(lPlayer, &tPos);
    P.S. Make sure you have click to move enabled or this will do nothing
    让它下雨
    Last edited by Icesythe7; 07-17-2019 at 11:13 AM.

  7. Thanks imzz, ylb001 (2 members gave Thanks to Icesythe7 for this useful post)
  8. #6
    ylb001's Avatar Member
    Reputation
    1
    Join Date
    Mar 2011
    Posts
    2
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    //store a temp position for testing
    const auto lPlayer = reinterpret_cast<int64_t(__cdecl*)()>(ClassicMorph::ClntObjMgrGetActivePlayerPtr )();
    tPos = *reinterpret_cast<ReClass::Vector3*>(lPlayer + 0x1600);
    printf("%s", tPos.ToString(3));

    //moved player and called function with prev saved pos
    reinterpret_cast<void(__fastcall*)(int64_t, ReClass::Vector3*)>(ClassicMorph::Base + 0x9DF110)(lPlayer, &tPos);

    please give me version 31727 new address , thank you very much!

  9. #7
    doityourself's Avatar ★ Elder ★
    Reputation
    1424
    Join Date
    Nov 2008
    Posts
    843
    Thanks G/R
    35/448
    Trade Feedback
    0 (0%)
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by ylb001 View Post
    //store a temp position for testing
    const auto lPlayer = reinterpret_cast<int64_t(__cdecl*)()>(ClassicMorph::ClntObjMgrGetActivePlayerPtr )();
    tPos = *reinterpret_cast<ReClass::Vector3*>(lPlayer + 0x1600);
    printf("%s", tPos.ToString(3));

    //moved player and called function with prev saved pos
    reinterpret_cast<void(__fastcall*)(int64_t, ReClass::Vector3*)>(ClassicMorph::Base + 0x9DF110)(lPlayer, &tPos);

    please give me version 31727 new address , thank you very much!
    Dump the exe and find it

  10. #8
    84771768's Avatar Member
    Reputation
    1
    Join Date
    Aug 2018
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Have u found a way to move?:gusta:

  11. #9
    sanyle's Avatar Member
    Reputation
    1
    Join Date
    Dec 2019
    Posts
    27
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do you have the latest version of CTM offset address? I'm still a novice in robot production, with only recent memory dump files. I tried IDA for a long time, but I couldn't find the offset. I also tried to use CE to search clicktomovetype and failed.

    Thank you very much for any tips or guidance.

  12. #10
    fonillius's Avatar Active Member WINNER OF THE BEST BOT DEVELOPER COMPETITION
    CoreCoins Purchaser
    Reputation
    55
    Join Date
    May 2007
    Posts
    248
    Thanks G/R
    5/33
    Trade Feedback
    4 (75%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    My lua code to enable "click-to-move"

    functionset_ctm(on_or_off) SetCVar("AutoInteract", on_or_off and "1" or "0");
    end

    set_ctm(1);--enables clicktomove on
    I hope this helps you find it
    -fonillius

  13. #11
    sanyle's Avatar Member
    Reputation
    1
    Join Date
    Dec 2019
    Posts
    27
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by fonillius View Post
    My lua code to enable "click-to-move"



    I hope this helps you find it
    Thank you for your guidance, I will study it later.

  14. #12
    sanyle's Avatar Member
    Reputation
    1
    Join Date
    Dec 2019
    Posts
    27
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by fonillius View Post
    My lua code to enable "click-to-move"



    I hope this helps you find it
    Do you have the offset address to execute the CTM function? I don't have the IDA signature of the previous version. I can't find it in the current version. Thanks.

  15. #13
    Icesythe7's Avatar Contributor
    Reputation
    231
    Join Date
    Feb 2017
    Posts
    168
    Thanks G/R
    10/111
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by sanyle View Post
    Do you have the offset address to execute the CTM function? I don't have the IDA signature of the previous version. I can't find it in the current version. Thanks.
    Code:
    48 83 ec ? 48 8b 81 ? ? ? ? 48 83 b8 ? ? ? ? ? 7e ? 4c 8b 41
    theres the sig for ida

    33728 offset is 0x8CAE30

  16. #14
    sanyle's Avatar Member
    Reputation
    1
    Join Date
    Dec 2019
    Posts
    27
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Icesythe7 View Post
    Code:
    48 83 ec ? 48 8b 81 ? ? ? ? 48 83 b8 ? ? ? ? ? 7e ? 4c 8b 41
    theres the sig for ida

    33728 offset is 0x8CAE30
    thank you very much. I browsed some of your earlier posts and got a lot of help. Learning is continuing.

  17. #15
    xbec's Avatar Member
    Reputation
    3
    Join Date
    Jun 2019
    Posts
    31
    Thanks G/R
    12/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    how can find ClntObjMgrGetActivePlayerPtr in IDA?

Page 1 of 3 123 LastLast

Similar Threads

  1. [Help] How can I implement click to move?
    By yeahlol in forum WoW Bots Questions & Requests
    Replies: 0
    Last Post: 08-21-2013, 03:02 AM
  2. how to "click to move" to the location what i want?
    By sandra11 in forum WoW Memory Editing
    Replies: 3
    Last Post: 12-07-2012, 05:39 AM
  3. [3.2] Click To Move
    By Kamuuk in forum WoW Memory Editing
    Replies: 25
    Last Post: 08-22-2009, 10:59 AM
  4. Click to move?
    By ashleyww in forum WoW Memory Editing
    Replies: 32
    Last Post: 07-18-2009, 08:48 PM
  5. Click to Move Problem
    By Rival-Fr in forum WoW Memory Editing
    Replies: 5
    Last Post: 07-03-2009, 09:27 AM
All times are GMT -5. The time now is 03:06 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