[1.12.1] CTM with flag 0x2 only faces north (rotation 0) menu

Shout-Out

User Tag List

Results 1 to 8 of 8
  1. #1
    Saridormi's Avatar Contributor
    Reputation
    307
    Join Date
    Mar 2007
    Posts
    556
    Thanks G/R
    19/17
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [1.12.1] CTM with flag 0x2 only faces north (rotation 0)

    Hi, forgive me if I'm missing something obvious here but whenever I try to call the ClickToMove function with MoveType.Face (0x2), it only ever faces north instead of facing the location I want it to face.

    I am calling the function like this:

    Code:
    mov ecx, PlayerBase
    push Precision ; 0
    push ctmStruct ; pointer to CTM struct in format fY, fX, fZ
    push guid ; pointer to GUID (Int64)
    push 2 ; MoveType.Face
    call ClickToMove ; CTM function
    The player base is correct, the co-ordinates are correct, the function address is correct, and I can walk perfectly using MoveType.Walk (0x4) and I can face a target using MoveType.FaceTarget (0x1) (and passing in the target GUID).

    I'd appreciate any help getting location facing to work (:


    [1.12.1] CTM with flag 0x2 only faces north (rotation 0)
  2. #2
    fvicaria's Avatar Active Member
    Reputation
    29
    Join Date
    Jan 2009
    Posts
    55
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How are you calling this code?
    Last edited by fvicaria; 02-02-2015 at 01:40 AM.

  3. #3
    Saridormi's Avatar Contributor
    Reputation
    307
    Join Date
    Mar 2007
    Posts
    556
    Thanks G/R
    19/17
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by fvicaria View Post
    How are you calling this code?
    I hook EndScene to jmp to a codecave created by VirtualAllocEx


  4. #4
    Corthezz's Avatar Elite User Authenticator enabled
    Reputation
    386
    Join Date
    Nov 2011
    Posts
    325
    Thanks G/R
    191/98
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    CTM is very unreliable in Vanilla. You should if possible switch to a different system for moving the character.
    For facing I got a function SetFacing which works much better (will post it later when arriving at home). Setting the facing with CTM always gave problems (not facing the right direction to attack a mob etc.)

  5. #5
    Saridormi's Avatar Contributor
    Reputation
    307
    Join Date
    Mar 2007
    Posts
    556
    Thanks G/R
    19/17
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Corthezz View Post
    CTM is very unreliable in Vanilla. You should if possible switch to a different system for moving the character.
    For facing I got a function SetFacing which works much better (will post it later when arriving at home). Setting the facing with CTM always gave problems (not facing the right direction to attack a mob etc.)
    Ahh damn, I did try to reverse SetFacing first (I wanted ISXWoW-like movement) but I got stuck and wanted to get movement working faster so figured CTM would be a better choice. I'll give SetFacing another look, thanks

    Edit: ok I went looking some more and found (some) success; by calling 0x7c6f30, I can update my orientation while moving and that works fine, however if I update the orientation while stood still it doesn't seem to send the update to the server... any idea how to update the orientation without just nudging the character?

    Edit2: managed to find some hardware function at 0x4b7990 that I can call to nudge my character without lua, but would be much nicer to be able to call a form of SetFacing that updates the server - I'm currently working on trying to call 0x76dce0 but I'm fairly new to this so it's taking me some time
    Last edited by Saridormi; 02-02-2015 at 11:03 AM.


  6. #6
    Saridormi's Avatar Contributor
    Reputation
    307
    Join Date
    Mar 2007
    Posts
    556
    Thanks G/R
    19/17
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, at this point I'm convinced that 0x76dce0 is related to something completely different, so unless someone else can give me a reason to believe otherwise I'm just going to assume that it's irrelevant

    So far I'm still just setting my orientation with 0x7c6f30 and then nudging the character to update the server, any ideas how to update the server without nudging the character? Short of just building the packet manually I'm out of ideas..


  7. #7
    Cael01's Avatar Member
    Reputation
    1
    Join Date
    Feb 2015
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Take a look in Script_TurnStart functions.

    Failing that send a heartbeat packet by calling the function (No packet building required) and your character won't be moved, yet the server will update the location/direction

  8. #8
    Saridormi's Avatar Contributor
    Reputation
    307
    Join Date
    Mar 2007
    Posts
    556
    Thanks G/R
    19/17
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Cael01 View Post
    Take a look in Script_TurnStart functions.

    Failing that send a heartbeat packet by calling the function (No packet building required) and your character won't be moved, yet the server will update the location/direction
    With some help from Corthezz I ended up just sending the packet manually, it's still a bit messier than I'd like but I have more important things to worry about so it'll have to wait til another day

    I'll take a look at Script_TurnStart as well, thank you (:


Similar Threads

  1. -= Warsong Gulch Dont Get Killed With Flag AREA =-
    By TuFF in forum World of Warcraft Exploits
    Replies: 11
    Last Post: 12-30-2007, 03:56 AM
  2. do you like my rogue? MMOs with REP 58+ !!! ONLY!!!
    By ggqqhaha in forum WoW PvP & Battlegrounds
    Replies: 0
    Last Post: 08-01-2007, 08:58 PM
  3. Cast With Your Staff (Only tested On Mindflay...and such effects..)
    By KammaZaZeE in forum World of Warcraft Exploits
    Replies: 11
    Last Post: 01-02-2007, 11:18 AM
  4. Make noobs in newb area flagged [hunters only]
    By wicked_joe in forum World of Warcraft Exploits
    Replies: 1
    Last Post: 06-09-2006, 06:23 PM
All times are GMT -5. The time now is 07:30 AM. 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