CTM Issue.. Same Coordinates / different actions? menu

Shout-Out

User Tag List

Results 1 to 4 of 4
  1. #1
    hesi's Avatar Sergeant
    Reputation
    56
    Join Date
    Feb 2011
    Posts
    63
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CTM Issue.. Same Coordinates / different actions?

    Hey guys,

    I'm working on a simple "traveling" bot and i have a very strange situation.
    Maybe someone is able to help me out (trying to solve it since last friday).


    Some code first:

    Code:
    $coordX = 10099.927734375
    $coordY = -6622.677734375
    $coordZ = 4.10249280929565
    CTM_click($hWow, $coordX, $coordY, $coordZ)
    Code:
    Func CTM_click($hwnd, $cX, $cY, $cZ)
        _MemoryWrite($wowbase+$CTM_X, $hwnd, $cX, "float")
        _MemoryWrite($wowbase+$CTM_Y, $hwnd, $cY, "float")
        _MemoryWrite($wowbase+$CTM_Z, $hwnd, $cZ, "float")
        _MemoryWrite($wowbase+$CTM_PUSH, $hwnd, 4, "int")
        botLOG(2,"CTM XYZ: " & $cX & " " & $cY & " " & $cZ)
    EndFunc
    Code:
    Global Const $CTM = 0x9D4A08				; 4.3.2-15211
    Global Const $CTM_GUID = 0x20				; 4.3.2-15211
    Global Const $CTM_PUSH = $CTM + 0x1C				; 4.3.2-15211
    Global Const $CTM_X = $CTM + 0x8C				; 4.3.2-15211
    Global Const $CTM_Y = $CTM + 0x90				; 4.3.2-15211
    Global Const $CTM_Z = $CTM + 0x94				; 4.3.2-15211
    Code:
    Func enableCTM($hwnd)
    	$inputtosend = '/run SetCVar("AutoInteract", 1)'
    	If Not WinActive($hwnd) Then
    		WinActivate($hwnd)
    		WinWaitActive($hwnd, "", 1)
    		If WinActive($hwnd) Then
    			Sleep(15)
    			Send("{ENTER}")
    			ClipPut($inputtosend)
    			Sleep(15)
    			Send("^v")
    			Sleep(15)
    			Send("{ENTER}")
    			Sleep(15)
    		EndIf
    	EndIf
    EndFunc
    I try to test the CTM_click function with single coordinates.

    But the result is wired:

    The char..
    .. walks into a different direction.
    .. (or) walks through the waypoint (hitting the coordinates and doesn't stop). looks like running endless.

    I can see the "ctm-click" at the correct position, but the char does something else.

    When the coordinates are in front of him, he will hit the point (without a stop).
    When the coordinates are behind him, he will walk away from it.
    It seems, that he will just walk the faced direction. But why?

    [Edit]: When i use my mouse it works like it should (ctm).


    I guess the "4" of _MemoryWrite($wowbase+$CTM_PUSH, $hwnd, >>>4<<<, "int") is correct (walk to..) .. also the var type "int" is correct. Isn't it?


    Currently testing it at [43:28] in the Eversong Woods, but in other places too... same situation.

    I checked the addresses, the functions, etc etc.. thousand times..
    but i don't get it.

    ..the ctm activation is maybe a bit "oldschoolish", but should fit my needs for now.


    anyway, thanks in advance
    hesi

    [Edit2]: I use <NomadMemory.au3> to read/write memory
    Last edited by hesi; 02-27-2012 at 07:17 AM.

    CTM Issue.. Same Coordinates / different actions?
  2. #2
    -Ryuk-'s Avatar Elite User CoreCoins Purchaser Authenticator enabled
    Reputation
    529
    Join Date
    Nov 2009
    Posts
    1,028
    Thanks G/R
    38/51
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Have you manually used CTM in game first?
    |Leacher:11/2009|Donor:02/2010|Established Member:09/2010|Contributor:09/2010|Elite:08/2013|

  3. #3
    hesi's Avatar Sergeant
    Reputation
    56
    Join Date
    Feb 2011
    Posts
    63
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Good point.

    When i use CTM manually first, it works..

    Is there an "untouched" variable/function, that i need to handle first?
    Should i change my ctm activator? Or is it another issue?

    btw.. thanks so far

  4. #4
    -Ryuk-'s Avatar Elite User CoreCoins Purchaser Authenticator enabled
    Reputation
    529
    Join Date
    Nov 2009
    Posts
    1,028
    Thanks G/R
    38/51
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I always had this problem....

    This is because you are writing to the struct and not calling the function.

    You would be better calling the function directly, via a delegate or ASM.

    You would need to learn a new language tho, as au3 is very bad for this soft of thing.


    [[Sent from my iPad using Tapatalk]]
    |Leacher:11/2009|Donor:02/2010|Established Member:09/2010|Contributor:09/2010|Elite:08/2013|

Similar Threads

  1. [Selling] Alliance 90 Druid, 90 Monk also with 90 DK. Same bnet, different accounts.
    By ajflex in forum WoW-US Account Buy Sell Trade
    Replies: 1
    Last Post: 07-09-2013, 02:33 PM
  2. [Buying] 2x 85 At Same Realm, Different accounts.
    By retoxed in forum WoW-EU Account Buy Sell Trade
    Replies: 3
    Last Post: 01-26-2012, 05:06 PM
  3. CTM Issue
    By wag321 in forum WoW Memory Editing
    Replies: 6
    Last Post: 07-06-2011, 05:09 PM
  4. [Solved] CTM issue
    By Thongs in forum WoW Memory Editing
    Replies: 5
    Last Post: 12-12-2009, 07:38 PM
  5. Same thread different sections ( Under Index )
    By [Lucky] in forum Suggestions
    Replies: 1
    Last Post: 09-02-2008, 06:27 AM
All times are GMT -5. The time now is 06:33 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