[Solved] CTM issue menu

User Tag List

Results 1 to 6 of 6
  1. #1
    Thongs's Avatar Member
    Reputation
    10
    Join Date
    Oct 2006
    Posts
    51
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Solved] CTM issue

    I've searched, but have not found anything which fixes my problem. From what I've read (and I've read a lot in search of this), I'm doing this exactly how I should be.

    I'm implementing a simple CTM method to my bot via memory writes with Blackmagic in C#. I've written my XYZ values, then written 0x4 to action type. My character DOES move, but the XYZ values do not seem to have worked properly, as I do not move towards the point specified.

    If I click somewhere in-game first (so the game sets those XYZ values I assume) and then call this function, it will move to where I last clicked and disregard the values that I have written.

    Code:
    public static uint ctmBase = 0x0CB9788;
            enum ctmOffsets : uint
            {
                turnScale = 0x4,
                distance = 0xC,
                action = 0x1C,
                guid = 0x20,
                x = 0x74,
                y = 0x78,
                z = 0x7C,
            }
    
            public static void MoveTo(float x, float y, float z)
            {
                Mem.WriteFloat((ctmBase + (uint)ctmOffsets.x), x);
                Mem.WriteFloat((ctmBase + (uint)ctmOffsets.y), y);
                Mem.WriteFloat((ctmBase + (uint)ctmOffsets.z), z);
                Mem.WriteInt((ctmBase + (uint)ctmOffsets.action), 4);
            }
    I do realize how tedious these questions are, but I have searched and searched and have not solved my problem.
    Last edited by Thongs; 12-12-2009 at 07:36 PM.

    [Solved] CTM issue
  2. #2
    Tanaris4's Avatar Contributor Authenticator enabled
    Reputation
    148
    Join Date
    Oct 2008
    Posts
    646
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you need to be writing to distance and turnScale, or it won't work

    (or you can right click first), search my posts you will see what you should be writing
    https://tanaris4.com

  3. #3
    Sychotix's Avatar Moderator Authenticator enabled
    Reputation
    1421
    Join Date
    Apr 2006
    Posts
    3,943
    Thanks G/R
    285/572
    Trade Feedback
    1 (100%)
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Are you sure that your offsets are correct? Use a memory editor to view the addresses, and see what is being written to each. THis will tell you if it is a problem with your address or if its a problem with how you are writing to it.

  4. #4
    Thongs's Avatar Member
    Reputation
    10
    Join Date
    Oct 2006
    Posts
    51
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the quick replies.

    I tried reading out of the offsets, and it looks as if the were written to those addresses properly, but the addresses do seem to be wrong. After clicking a random location and reading from the memory again, the values do not update. I'll check for more values, but I have already used ones taken directly off the 3.3 Info Dump Thread (those didn't seem to work, so I switched to these).

    Thanks.

  5. #5
    Thongs's Avatar Member
    Reputation
    10
    Join Date
    Oct 2006
    Posts
    51
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Figured it out. I reverted back to using the offsets posted in the 3.3 Info Dump Thread, as I had it before. Turns out that my bot (which has been running perfectly for the past ~3 months) has had its X and Y values confused this entire time.

    So, for example, if I were to write MoveTo(targetX, targetY), it would be setting the Y values to the X, and vice versa.

    I feel extremely dumb. I apologize for what was clearly a dumb question.

  6. #6
    Sychotix's Avatar Moderator Authenticator enabled
    Reputation
    1421
    Join Date
    Apr 2006
    Posts
    3,943
    Thanks G/R
    285/572
    Trade Feedback
    1 (100%)
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Try these offsets.

    ctmBaseAddy+$8C
    ctmBaseAddy+$90
    ctmBaseAddy+$94

    They are my offsets for the last patch.

    EDIT: ahh, k. guess you fixed it.
    Last edited by Sychotix; 12-12-2009 at 07:40 PM.

Similar Threads

  1. Vanilla CTM Issue
    By Achilees in forum WoW Memory Editing
    Replies: 3
    Last Post: 09-16-2013, 12:13 AM
  2. CTM Issue.. Same Coordinates / different actions?
    By hesi in forum WoW Memory Editing
    Replies: 3
    Last Post: 02-27-2012, 12:26 PM
  3. CTM Issue
    By wag321 in forum WoW Memory Editing
    Replies: 6
    Last Post: 07-06-2011, 05:09 PM
  4. [Solved] CTM - Interact Issue
    By weber7655 in forum WoW Memory Editing
    Replies: 29
    Last Post: 12-23-2009, 10:41 PM
All times are GMT -5. The time now is 01:35 AM. 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