Click To Move (Help!) menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    DarkLinux's Avatar Former Staff
    CoreCoins Purchaser Authenticator enabled
    Reputation
    1627
    Join Date
    May 2010
    Posts
    1,846
    Thanks G/R
    193/539
    Trade Feedback
    16 (100%)
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)

    Click To Move (Help!)

    Click To Move (Help!)
    I hate to start a new Thread but I can not get CTM to work. I have looked over many threads and this is what I have.

    The 1st thread I found was http://www.mmowned.com/forums/world-...g-writing.html.

    The code given for CTM is this,
    Code:
    wow.WriteFloat(0x00CB9814, x here); // x pos from prompt
    wow.WriteFloat(0x00CB9818, y here); // y pos from prompt
    wow.WriteInt(0x00CB97A4, 4);//makes character walk
    I know for a fact that the offsets are out of date. I found this out when the code did not work the 1st time. So I went looking for update.

    I found this thread http://www.mmowned.com/forums/world-...mp-thread.html
    It had a combination of different offsets codes for CTM.
    Code:
    005D75D0    CGPlayer_C__CTMAttackUnit
    005D3E80    CGPlayer_C__CTMClickTerrain
    005D3E10    CGPlayer_C__CTMFace
    005D3EE0    CGPlayer_C__CTM
    
    005CFB70    CGPlayer_C__ClickToMove
    
    005BE3B0    ClickToMove__CanUseAction
    005C3C30    ClickToMove__GetInteractDistanceOfAction
    
    005BE3A0    GetClickToMoveState
    005BE430    GetClickToMoveStruct
    
    
    By: Apoc
    and
    Code:
    00B9252C   CTM_Type
    00B92530   CTM_GUID
    00B9259C   CTM_Xpos
    By: DrakeFish
    My problem is that the 1st example does not give a lot of info on CTM. So I have no idea what the real name of x, y and move are. Unless I am missing the offset codes above. I have also looked over http://www.mmowned.com/forums/world-...explained.html

    Code:
    public enum ClickToMoveType
    {
    FaceTarget = 0x1,
    Face = 0x2,
    /// <summary>
    /// Will throw a UI error. Have not figured out how to avoid it!
    /// </summary>
    Stop_ThrowsException = 0x3,
    Move = 0x4,
    NpcInteract = 0x5,
    Loot = 0x6,
    ObjInteract = 0x7,
    FaceOther = 0x8,
    Skin = 0x9,
    AttackPosition = 0xA,
    AttackGuid = 0xB,
    ConstantFace = 0xC,
    None = 0xD,
    Attack = 0x10,
    Idle = 0x13,
    }
    At this point I have no idea what is going on. The offset values do not even look anything like the other offset values.

    So my question to you is am I looking at the right 3.3.3a offset codes for CTM and/or am I missing some offset codes? How can I use CTM like in example 1 at the top, but with up to date offset codes. I have spent days working on this and have made no progress.

    System:
    Windows 7
    C# 2010

    Thanks for all your help!
    Last edited by DarkLinux; 05-29-2010 at 08:30 PM.

    Click To Move (Help!)
  2. #2
    tymezz's Avatar Member
    Reputation
    9
    Join Date
    Nov 2007
    Posts
    44
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You have the addresses needed already, except CTM_Y.

    Basically in the example you pasted, it means:

    Write(CTM_X, position.x)
    Write(CTM_Y, position.y)
    Write(CTM_Type, ClickToMoveType)

    ClickToMoveType = 4 to move, 2 to face.. etc. You also pasted the enum.

  3. #3
    DarkLinux's Avatar Former Staff
    CoreCoins Purchaser Authenticator enabled
    Reputation
    1627
    Join Date
    May 2010
    Posts
    1,846
    Thanks G/R
    193/539
    Trade Feedback
    16 (100%)
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Thanks you so much!! That is what I needed! YES!! +rep

    ---------- Post added at 11:51 PM ---------- Previous post was at 11:44 PM ----------

    Next question, how do I find CTM_Y if it is not on the 3.3.3a offset page. I think it is but I do not see it.

  4. #4
    tymezz's Avatar Member
    Reputation
    9
    Join Date
    Nov 2007
    Posts
    44
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    CTM_Y = CTM_X + 0x4, I believe.

    edit: Looks like that's correct, for the Z address: CTM.Y + 0x4 (or add 8 to X)
    Last edited by tymezz; 05-30-2010 at 01:57 AM.

  5. #5
    DarkLinux's Avatar Former Staff
    CoreCoins Purchaser Authenticator enabled
    Reputation
    1627
    Join Date
    May 2010
    Posts
    1,846
    Thanks G/R
    193/539
    Trade Feedback
    16 (100%)
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    CTM Loot or Face
    I have some more questions about CTM, so I am just going to add it on to this post.

    I would like to loot or face an object with CTM. I am using BlackRain Library.
    So this is the code I am using.
    Code:
    wow.WriteInt(CTM_GUID, ObjectManager.Me.Target);
    wow.WriteInt(CTM_Type, Loot);
    My first error is that Target is giving me a 20 long number and I think it needs to be 16.
    Also I think I need to convert Target into uint. It does not like the float for some reasons, lols.

    Thanks for the Help!
    Last edited by DarkLinux; 06-06-2010 at 10:59 AM.

  6. #6
    Seifer's Avatar Site Donator
    Reputation
    129
    Join Date
    Apr 2007
    Posts
    270
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by DarkLinux View Post
    CTM Loot or Face
    I would like to loot or face an object with CTM. I am using BlackRain Library.
    So this is the code I am using.
    Code:
    wow.WriteInt(CTM_GUID, ObjectManager.Me.Target);
    wow.WriteInt(CTM_Type, Loot);
    My first error is that Target is giving me a 20 long number and I think it needs to be 16.
    Also I think I need to convert Target into uint. It does not like the float for some reasons, lols.

    Thanks for the Help!
    GUIDs are 64 bits, therefore; ulong.

    And I strongly suggest you look up CTM on WowDev. It contains an article which describes the members of the CTM struct, and their ranges, e.g:

    Code:
    0x74 =		float	X move to
    0x78 =		float	Y move to
    0x7C =		float	Z move to
    So, Memory.WriteFloat(CTM + 0x74, Target.X); would suffice.

    ps. If you are actually using BlackRain properly, you can access the BlackMagic instance for the current Wow process using ObjectManager.Memory, not wow.Write<T>, if you renamed Memory to wow, ignore this bit.

  7. #7
    DarkLinux's Avatar Former Staff
    CoreCoins Purchaser Authenticator enabled
    Reputation
    1627
    Join Date
    May 2010
    Posts
    1,846
    Thanks G/R
    193/539
    Trade Feedback
    16 (100%)
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the help! and yes I renamed Memory to wow.

    ---------- Post added at 12:54 PM ---------- Previous post was at 12:45 PM ----------

    Can you link me that web site (WowDev)
    Last edited by DarkLinux; 06-06-2010 at 12:19 PM.

  8. #8
    eLaps's Avatar Active Member
    Reputation
    34
    Join Date
    Sep 2007
    Posts
    123
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  9. #9
    DarkLinux's Avatar Former Staff
    CoreCoins Purchaser Authenticator enabled
    Reputation
    1627
    Join Date
    May 2010
    Posts
    1,846
    Thanks G/R
    193/539
    Trade Feedback
    16 (100%)
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Is my code out of date, this is my table
    Code:
            public const int Stop_ThrowsException = 0x3;
            public const int Move = 0x4;
            public const int NpcInteract = 0x5;
            public const int Loot = 0x6;
            public const int ObjInteract = 0x7;
            public const int FaceOther = 0x8;
            public const int Skin = 0x9;
            public const int AttackPosition = 0xA;
            public const int AttackGuid = 0xB;
            public const int ConstantFace = 0xC;
            public const int None = 0xD;
            public const int Attack = 0x10;
            public const int Idle = 0x13;
    and the table at Click To Move - WoW.Dev Wiki. looks like this,

    Code:
    1 =	Face Target (GUID)
    3 =	Stop?
    4 =	Walk to Assigned POS
    5 =	Move to + Interact (NPC ONLY)
    6 =	Loot
    7 =	Move to + Interact (OBJECT ONLY)
    8 =	Faceother
    9 =	Skin
    10= 	Attack Assigned POS
    11= 	Attack GUID pos?
    12= 	Walk + Rotate?
    So my question is, is this the right way to target an object.

    Code:
    ObjectManager.Memory.WriteFloat(TargetGUID, ObjectManager.Me.Target);
    ObjectManager.Memory.WriteFloat(CTM_Type, Loot);


    ---------- Post added at 01:37 PM ---------- Previous post was at 01:36 PM ----------

    NVM I think I am just missing somethings from my table.. lols
    But still how do I set it up the right way with Blackrain

  10. #10
    tymezz's Avatar Member
    Reputation
    9
    Join Date
    Nov 2007
    Posts
    44
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You need to use SelectUnit or some other method of targeting. You can't target by writing values to the CTM Struct.

  11. #11
    Seifer's Avatar Site Donator
    Reputation
    129
    Join Date
    Apr 2007
    Posts
    270
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by DarkLinux View Post
    So my question is, is this the right way to target an object.

    But still how do I set it up the right way with Blackrain
    BlackRain is no different from regular memory reading and writing with BlackMagic; meaning you have to figure out what you need to write, in which format, and where you need to write it to.

    If you look at the subroutine that calls CTM in IDA, you'll see something like the following:

    Code:
    .text:005D3D99                 mov     edx, [esi]
    .text:005D3D9B                 mov     edx, [edx+2Ch]
    .text:005D3D9E                 push    ecx             ; float
    .text:005D3D9F                 lea     eax, [ebp+var_C]
    .text:005D3DA2                 fstp    [esp+1Ch+var_1C]
    .text:005D3DA5                 push    eax
    .text:005D3DA6                 mov     ecx, esi
    .text:005D3DA8                 call    edx
    .text:005D3DAA                 push    eax             ; int
    .text:005D3DAB                 push    ebx             ; int
    .text:005D3DAC                 mov     ebx, [ebp+arg_4]
    .text:005D3DAF                 push    ebx             ; int
    .text:005D3DB0                 mov     ecx, edi
    .text:005D3DB2                 call    sub_5CFB70 ; Call CGPlayer_C__ClickToMove
    You can directly write your values to those locations too, as the CTM struct is pulsed.
    Last edited by Seifer; 06-06-2010 at 01:45 PM.

  12. #12
    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)
    Or you can also write guid as unsigned int64 instead of float.

  13. #13
    lapari72's Avatar Member
    Reputation
    5
    Join Date
    Apr 2009
    Posts
    9
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have a question to people, who are using CTM for moving with writing values to memory locations.
    First time, when the character enters wow, using CTM this way selects the ground on the correct location, but the character moves forward, where he is actually facing. If i use CTM with mouse click manully before this, the character moves as expected.
    I think using CTM normally would set (initialize?) something...
    I tried to set the timestamp field of the CTM struct, but this didn't correct the error.
    Plus sometimes (rarely) the character stops moving, and further mem writing CTM will fail until i manually click on the ground.
    Any suggestions ?

  14. #14
    DarkLinux's Avatar Former Staff
    CoreCoins Purchaser Authenticator enabled
    Reputation
    1627
    Join Date
    May 2010
    Posts
    1,846
    Thanks G/R
    193/539
    Trade Feedback
    16 (100%)
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    If CTM is not set up right and then you try and use it, it will move to the last place you clicked to. If we can see a little code I think I can help. Also are you trying to face something like me or trying to move?

  15. #15
    lapari72's Avatar Member
    Reputation
    5
    Join Date
    Apr 2009
    Posts
    9
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    My code for CTM move is:

    Code:
           
                    MemoryManager.WriteFloat((IntPtr)(0x00B925A0), x);
                    MemoryManager.WriteFloat((IntPtr)(0x00B9259C), y);
                    MemoryManager.WriteFloat((IntPtr)(0x00B925A4), z);
    
                    MemoryManager.WriteUInt32((IntPtr)(0x00B9252C), 4);
    Hexa addresses converted to int before use, I just wrote it this way for simplicity. It's working smoothly if manual CTM is used before.
    I'm trying to move. The character can't move to the last CTM position, because no CTM is used before. The strange is that the ground is selected on the correct spot, where it has to move, but the character just moves forward regardless of the position. But if i right click on the ground somewhere, the CTM move will be working as expected.
    That's why i think something must be initalized, or set when CTM is used properly (manual click on the ground).
    Maybe somebody has an idea, who reversed this function...

Page 1 of 2 12 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. Click to Move - Explained
    By Apoc in forum WoW Memory Editing
    Replies: 33
    Last Post: 01-19-2010, 07:28 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 06:34 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