Am I doing it wrong with CTM? menu

User Tag List

Results 1 to 3 of 3
  1. #1
    gaxton's Avatar Private
    Reputation
    1
    Join Date
    Dec 2011
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Am I doing it wrong with CTM?

    Hey guys...

    I'm totally confused,maybe someone could give me a hint about it.

    Here's my codes
    Code:
            public enum CTMType : uint
            {            
                FaceTarget = 0x1,
                FaceDestination = 0x2,
                Stop_ThrowsException = 0x3,
                MoveTo = 0x4,
                InteractNPC = 0x5,
                Loot = 0x6,
                InteractObject = 0x7,
                FaceOther = 0x8,
                Skin = 0x9,
                Attack = 0x10,
                AttackPosition = 0xA,
                AttackGuid = 0xB,
                ConstantFace = 0xC,
                None = 0xD,
                Idle = 0x13
            }
    
            public enum CTMStruct : uint
            {
                ctmBase = 0x9D4A08,
                ctmTurnScale = ctmBase + 0x4,
                ctmStopDistance = ctmBase + 0xC,
                ctmAngle = ctmBase + 0x14,
                ctmAction = ctmBase + 0x1C,
                ctmGuid = ctmBase + 0x20,
                DestinationX = ctmBase + 0x8C,
                DestinationY = ctmBase + 0x90,
                DestinationZ = ctmBase + 0x94,
                ctmActivatePointer = 0xAD5E6C,
                ctmActivateOffset = 0x30
            }
    And
    Code:
            public void ClickToMove(float x, float y, float z,float distance, ulong targetGuid, Offsets.CTMType type)
            {
                IntPtr Action = IntPtr.Add(Manager.WoWBaseAddress, (int)Offsets.CTMStruct.ctmAction);
                IntPtr Distance = IntPtr.Add(Manager.WoWBaseAddress, (int)Offsets.CTMStruct.ctmStopDistance);
                IntPtr X = IntPtr.Add(Manager.WoWBaseAddress, (int)Offsets.CTMStruct.DestinationX);
                IntPtr Y = IntPtr.Add(Manager.WoWBaseAddress, (int)Offsets.CTMStruct.DestinationY);
                IntPtr Z = IntPtr.Add(Manager.WoWBaseAddress, (int)Offsets.CTMStruct.DestinationZ);
                IntPtr GUID = IntPtr.Add(Manager.WoWBaseAddress, (int)Offsets.CTMStruct.ctmGuid);
    
                if (distance != 0)
                {
                    Manager.Write<float>(Distance, distance);
                }
                if (x != 0)
                {
                    Manager.Write<float>(X, x);
                }
                if (y != 0)
                {
                    Manager.Write<float>(Y, y);
                }
                if (z != 0)
                {
                    Manager.Write<float>(Z, z);
                }
                if (targetGuid != 0)
                {
                    Manager.Write<ulong>(GUID, targetGuid);
                }
                Manager.Write<int>(Action, (int)type);
            }
    with the codes above when i call
    Code:
           ClickToMove(0, 0, 0, 0, OM.Me.TargetGUID, Offsets.CTMType.InteractNPC);
    it works just fine!
    but when i use CTM like this
    Code:
            private void bGOInteract_Click(object sender, EventArgs e)
            {
                int i = lbGameObjects.SelectedIndex;
                if (i == -1)
                    return;
                GameObject obj = OM.GameObjects[i];
                OM.Me.ClickToMove(0, 0, 0, 3, obj.GUID, Offsets.CTMType.InteractObject);
            }
    my character just walk to the mine i chosen and stood within the distance i used here(3f).

    the question here is how can i get my character do the mining job?

    Am I doing it wrong with CTM?
  2. #2
    Frosttall's Avatar Active Member
    Reputation
    64
    Join Date
    Feb 2011
    Posts
    261
    Thanks G/R
    16/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Write the GUID of the mining into your current target GUID and Press "Interact with Target" (Note, that you can't write the GUID directly into your current target GUID like it was possible before. Just think which functions changes the target GUID)

  3. #3
    gaxton's Avatar Private
    Reputation
    1
    Join Date
    Dec 2011
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thx for your reply!
    i'll try later.

    Job Done, thx pal!
    Last edited by gaxton; 02-25-2012 at 05:42 AM.

Similar Threads

  1. [LUA/SQL] What could I be doing wrong with ALL of my scripts?
    By davidknag in forum WoW EMU Questions & Requests
    Replies: 5
    Last Post: 03-15-2010, 02:46 PM
  2. Something wrong with My macro :S
    By Sørensen in forum World of Warcraft General
    Replies: 2
    Last Post: 03-22-2007, 08:38 AM
  3. sumtin wrong with the repair tool?
    By foxfire60 in forum World of Warcraft General
    Replies: 3
    Last Post: 01-17-2007, 05:46 PM
  4. Blizzard's Policy and whats wrong with it PART ONE
    By WoWLegend in forum World of Warcraft General
    Replies: 12
    Last Post: 11-26-2006, 07:59 AM
  5. Whats wrong with my video card?
    By Matt in forum Community Chat
    Replies: 2
    Last Post: 07-20-2006, 03:17 AM
All times are GMT -5. The time now is 10:02 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