ClickToMove Problems menu

User Tag List

Results 1 to 13 of 13
  1. #1
    HeroXx's Avatar Member
    Reputation
    1
    Join Date
    Feb 2008
    Posts
    36
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ClickToMove Problems

    Hello everyone, I have just started trying to get into hack programming and I have started with my favourite game

    I have programming all of the logic into my bot hoping that I would figure out the rest while I was working through it but I am having massive problems with the ClickToMove.

    My code is as follows:
    Code:
     public enum ClickToMove
            {
                CTM_Base = 0x001C7840,
                CTM_X = CTM_Base + 0x8C,
                CTM_Y = CTM_Base + 0x90,
                CTM_Z = CTM_Base + 0x94,
                CTM_Action = CTM_Base + 0x1C
            }
            private void walk_Tick(object sender, EventArgs e)
            {
                
                float moveToX = ObjectManager.Me.X + 10;
                float moveToY = ObjectManager.Me.Y + 10;
                ObjectManager.Write<float>((uint)ClickToMove.CTM_X, moveToX);
                ObjectManager.Write<float>((uint)ClickToMove.CTM_Y, moveToY);
                ObjectManager.Write<float>((uint)ClickToMove.CTM_Z, ObjectManager.Me.Z);
                ObjectManager.Write<Int32>((uint)ClickToMove.CTM_Action, 4);
            }
    The timer is called every 10 seconds so I am relatively sure I am not causing problems writing that frequently.

    I hope this isn't seen as a spoon-feeding attempt by people, I have really put some effort in to get as far as I possible can with this but I am unable to progress.

    ClickToMove Problems
  2. #2
    DrakeFish's Avatar Lazy Leecher

    Reputation
    634
    Join Date
    Nov 2008
    Posts
    569
    Thanks G/R
    0/14
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by HeroXx View Post
    Hello everyone, I have just started trying to get into hack programming and I have started with my favourite game

    I have programming all of the logic into my bot hoping that I would figure out the rest while I was working through it but I am having massive problems with the ClickToMove.

    My code is as follows:
    Code:
     public enum ClickToMove
            {
                CTM_Base = 0x001C7840,
                CTM_X = CTM_Base + 0x8C,
                CTM_Y = CTM_Base + 0x90,
                CTM_Z = CTM_Base + 0x94,
                CTM_Action = CTM_Base + 0x1C
            }
            private void walk_Tick(object sender, EventArgs e)
            {
                
                float moveToX = ObjectManager.Me.X + 10;
                float moveToY = ObjectManager.Me.Y + 10;
                ObjectManager.Write<float>((uint)ClickToMove.CTM_X, moveToX);
                ObjectManager.Write<float>((uint)ClickToMove.CTM_Y, moveToY);
                ObjectManager.Write<float>((uint)ClickToMove.CTM_Z, ObjectManager.Me.Z);
                ObjectManager.Write<Int32>((uint)ClickToMove.CTM_Action, 4);
            }
    The timer is called every 10 seconds so I am relatively sure I am not causing problems writing that frequently.

    I hope this isn't seen as a spoon-feeding attempt by people, I have really put some effort in to get as far as I possible can with this but I am unable to progress.
    First, are your offsets updated for current WoW Patch?
    Second, with 4.0, you now have to use your addresses as relative. You can't simply do MemoryWrite(Address, value), you have to use Module Base.

  3. #3
    HeroXx's Avatar Member
    Reputation
    1
    Join Date
    Feb 2008
    Posts
    36
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for your reply!

    I am using what looks like the latest offset according to this thread http://www.mmowned.com/forums/world-...mp-thread.html .

    From what you suggested it is quite likely that is the problem, is there a quick easy way to retrieve WoW's module base?

  4. #4
    Randomizer's Avatar Contributor
    Reputation
    120
    Join Date
    Jun 2008
    Posts
    188
    Thanks G/R
    6/0
    Trade Feedback
    1 (100%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I am using this. I am close.... but it will click in in the wrong place. For the life of me I can not figure out why. I have tried various debug'ing attempts, yet to no avail. It will print out the correct coords, it just will not go to them.

    If anyone has any insight as to why I am not moving correctly.. I am all ears and all help is appreciated.

    Code:
            public enum ClickToMove : uint
            {
                //CtmBase + 0x1C
                CtmAction = 0x008BD7F4,                     // 4.0.1 13164
    
                //ClickToMove_Base
                CtmBase = 0x008BD7D8,                       // 4.0.1 13164
    
                //CtmBase + 0x8C
                CtmX = 0x008BD864,                          // 4.0.1 13164
    
                //CtmBase + 0x90
                CtmY = 0x008BD868,                          // 4.0.1 13164
    
                //CtmBase + 0x94
                CtmZ = 0x008BD86C,
    
                //CtmBase + 0x20
                CtmGUID = 0x008BD8F8,                       // 4.0.1 13164
    
                //CtmBase + 0xC
                CtmDistance = 0x008BD8E4,                   // 4.0.1 13164
    
                CtmActivatePointer = 0x00981850,            // 4.0.1 13164
    
                CtmActivate = 0x30,                         // 4.0.1 13164
            }
    Code:
    		try
    		{
    			GObjectList.Memory.WriteFloat(MainForm._wowBase + (uint)GPointers.ClickToMove.CtmX, TargetCoord.X);
    			GObjectList.Memory.WriteFloat(MainForm._wowBase + (uint)GPointers.ClickToMove.CtmY, TargetCoord.Y);
    			GObjectList.Memory.WriteFloat(MainForm._wowBase + (uint)GPointers.ClickToMove.CtmZ, TargetCoord.Z);
    			GObjectList.Memory.WriteFloat(MainForm._wowBase + (uint)GPointers.ClickToMove.CtmDistance, distance);
    			GObjectList.Memory.WriteInt(MainForm._wowBase + (uint)GPointers.ClickToMove.CtmAction, (int)GPointers.ClickToMoveAction.ACTION_MOVE);
    			MMoMule.Log.log("X = " + TargetCoord.X + " Y = " + TargetCoord.Y + " Z = " + TargetCoord.Z, LogType.Debug);
    		catch (Exception e)
    		{
    			MMoMule.Log.Debug(e, "Fsm.Move");
    		}
    Last edited by Randomizer; 10-28-2010 at 05:29 PM.

  5. #5
    HeroXx's Avatar Member
    Reputation
    1
    Join Date
    Feb 2008
    Posts
    36
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Randomizer, how are you pulling your base address?

    Edit: Silly me posting too fast:

    var proc = Process.GetProcessesByName("Wow");
    ObjectManager.Initialize(proc[0].Id);
    WoWBase = proc[0].MainModule.BaseAddress;
    Last edited by HeroXx; 10-28-2010 at 05:39 PM.

  6. #6
    Randomizer's Avatar Contributor
    Reputation
    120
    Join Date
    Jun 2008
    Posts
    188
    Thanks G/R
    6/0
    Trade Feedback
    1 (100%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    http://www.mmowned.com/forums/world-...e-4-0-1-a.html - Credit to Miceiken for giving the method to find the _wowBase

  7. #7
    suicidity's Avatar Contributor
    Reputation
    207
    Join Date
    Oct 2006
    Posts
    1,439
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's because the Vector offset is at 0xA0, not 0x8C.. hf


  8. #8
    Randomizer's Avatar Contributor
    Reputation
    120
    Join Date
    Jun 2008
    Posts
    188
    Thanks G/R
    6/0
    Trade Feedback
    1 (100%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Thanks a ton! + rep suicidity

  9. #9
    HeroXx's Avatar Member
    Reputation
    1
    Join Date
    Feb 2008
    Posts
    36
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thought i'd keep this in my thread:

    Code:
    private void moveToAttack(ulong GUID)
            {
                ObjectManager.Write<float>((uint)WoWBase + (uint)ClickToMove.CtmDistance, 0.3f);
                ObjectManager.Write<float>((uint)WoWBase + (uint)ClickToMove.CtmGUID, GUID);
                ObjectManager.Write<Int32>((uint)WoWBase + (uint)ClickToMove.CtmAction, 10);
            }
    I have been trying to get this working, I am not entirely bothered about attacking NPC's because it is intended to be a gathering bot but it is frustrating me that I am unable to get it to move to a target and attack it (I have the target selected when I call this function).

  10. #10
    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)
    ObjectManager.Write<float>((uint)WoWBase + (uint)ClickToMove.CtmGUID, GUID);

    This.

  11. #11
    HeroXx's Avatar Member
    Reputation
    1
    Join Date
    Feb 2008
    Posts
    36
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by JuJuBoSc View Post
    ObjectManager.Write<float>((uint)WoWBase + (uint)ClickToMove.CtmGUID, GUID);

    This.
    ....F M L, must have been a late night Thanks for grabbing that.

  12. #12
    Bananenbrot's Avatar Contributor
    Reputation
    153
    Join Date
    Nov 2009
    Posts
    384
    Thanks G/R
    1/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ...?! Try writing an ulong instead of a float oO

  13. #13
    HeroXx's Avatar Member
    Reputation
    1
    Join Date
    Feb 2008
    Posts
    36
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is there some extra information that has to be written to the CTM struct to loot after interaction?

    At the moment I have got the whole navigate a waypoint list / attack on the way thing sorted but I can't figure out why it will not loot with auto loot enabled after interacting with the object. When a player calls the CTM from in game it uses action code 0x7 which is what I am writing.

    Any ideas?

Similar Threads

  1. Problem with CE.
    By Eldretch in forum World of Warcraft General
    Replies: 1
    Last Post: 08-08-2006, 06:49 PM
  2. realm list problem
    By robtuner in forum World of Warcraft General
    Replies: 2
    Last Post: 07-21-2006, 09:08 AM
  3. I have problem with BHW 3.0
    By sunrize1 in forum World of Warcraft General
    Replies: 1
    Last Post: 07-17-2006, 08:49 AM
  4. wow emu problem
    By bezike in forum World of Warcraft General
    Replies: 0
    Last Post: 07-09-2006, 04:45 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 02:53 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