how to "click to move" to the location what i want? menu

User Tag List

Results 1 to 4 of 4
  1. #1
    sandra11's Avatar Member
    Reputation
    1
    Join Date
    Dec 2012
    Posts
    13
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to "click to move" to the location what i want?

    1,first,i come to the location what i want my character come to,and use the code below to record the coordinate string.
    Code:
            public string GetCoordString()
            {
                uint playerBase = wowBaseAddr+0xCCA50C;
    
                uint xCoordAddr = playerBase + 0xF0;
                uint yCoordAddr = xCoordAddr + 4;
    
                return Memory.ReadFloat(xCoordAddr).ToString() + "," + Memory.ReadFloat(yCoordAddr).ToString();
            }
    2,then,i run my character to a location nearby,and use the code below to move my character back
    Code:
            public void ClickToMove(string coord)
            {
                string x = coord.Substring(0, coord.IndexOf(","));
                string y = coord.Substring(coord.IndexOf(",") + 1);
    
                uint CTM_PUSH = CTM_Base + 0x1C;
                uint CTM_X = CTM_Base + 0x8C;
                uint CTM_Y = CTM_X + 0x4;
                uint CTM_Distance =CTM_X+0xC;
    
                Memory.WriteFloat(CTM_X, float.Parse(x));
                Memory.WriteFloat(CTM_Y, float.Parse(y));
                Memory.WriteUInt(CTM_PUSH, 4);
            }
    but it's not the location what i want,even not the correct direction
    what's wrong with it?

    These ads disappear when you log in.

  2. #2
    dan934's Avatar Banned
    Reputation
    33
    Join Date
    Jun 2009
    Posts
    80
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You're reading from the wrong offset.

    Code:
    uint playerBase = wowBaseAddr+0xCCA50C;
    This is not the playerbase. This is the Camera base + offsets for camera xyz. you need find the real one from the obj manager.

    correct xyz offsets:

    x = pbase + 0x7e8
    y = pbase + 0x7ec( or X + 0x4 )
    z = pbase + 0x7f0( or Y + 0x4 )

  3. #3
    sandra11's Avatar Member
    Reputation
    1
    Join Date
    Dec 2012
    Posts
    13
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thank you dan934,

    but still not the correct location...
    i use CTM_Base = 0xC7CC90;
    is there any other wrong with my code?

  4. #4
    dan934's Avatar Banned
    Reputation
    33
    Join Date
    Jun 2009
    Posts
    80
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The issue is that you're recording the position where your camera is, Not the location of your character.

    I'd suggest looking around the forums for a guide on how to use wow's object manager, and pull your player base from there.
    once you have your proper playerbase the offsets i posted in my previous post will get you the X/Y/Z floats that you need.

    also i'd suggest setting CTM_Z as well otherwise some weird things might happen.

    From the 5.1.0 dump thread:
    Originally Posted by Endecs View Post
    CTM_Base = 0xC7CC90, // // 5.1
    CTM_Push = 0x1C, // 5.1
    CTM_X = 0x8C, // 5.1
    CTM_Y = CTM_X + 0x4, // 5.1
    CTM_Z = CTM_X + 0x8, // 5.1
    CTM_GUID = 0x20, // 5.1
    CTM_Distance = 0xC // 5.1
    Last edited by dan934; 12-07-2012 at 05:45 AM.

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 Make NPC's Move Around!
    By sasoritail in forum WoW EMU Guides & Tutorials
    Replies: 19
    Last Post: 05-10-2009, 03:11 PM
  3. [Question] How can I make a moving game object?
    By dude891 in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 04-16-2008, 09:50 AM
  4. How Do I Edit This Line To Make It Do What I Want??
    By BillyBob31 in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 03-23-2008, 07:53 PM
  5. How do I make a moving Avatar
    By OMGPWN in forum Community Chat
    Replies: 2
    Last Post: 02-04-2007, 07:07 PM
All times are GMT -5. The time now is 04:55 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2021 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2021 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search