Network: WoW Gold | WoW Accounts | MPS Games | FPSowned
MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides
Homepage »      Register »      Hall of Fame »      Ranks And Awards »      Advertise »      Marketplace »
 
Sign up



Do you like this excellent information? Then Donate HERE to remove ads and support the MMOwned community.


Go Back   MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides > World of Warcraft > Bots and Programs > WoW Memory Editing

WoW Memory Editing WoW Memory Editing for learning purposes only.
This section is more advanced than others on MMOwned Read the section specific rules, infractions will be given out if u break them!That is including the expectations! - If you don't meet them then don't post

Reply
 
LinkBack Thread Tools
  #1  
Old 09-16-2009
ostapus is offline.
Sergeant
  
 
Join Date: Nov 2008
Posts: 67
Reputation: 32
Points: 477, Level: 1
Points: 477, Level: 1 Points: 477, Level: 1 Points: 477, Level: 1
Level up: 16%, 423 Points needed
Level up: 16% Level up: 16% Level up: 16%
Activity: 3.3%
Activity: 3.3% Activity: 3.3% Activity: 3.3%

CTM again

Hi,

Anyone would be so kind to provide description for CTM function ? i remember there was discussion but coudn't find it anymore. What are parameters to that call (4 parameters).

thanks
Reply With Quote


Donate to remove ads, get your "DONATOR title, and get access to the MMOwned community's elite Shoutbawx.

  #2  
Old 09-16-2009
bolototo is offline.
New User
  
 
Join Date: May 2009
Posts: 22
Reputation: 0
Points: 244, Level: 1
Points: 244, Level: 1 Points: 244, Level: 1 Points: 244, Level: 1
Level up: 61%, 156 Points needed
Level up: 61% Level up: 61% Level up: 61%
Activity: 0.7%
Activity: 0.7% Activity: 0.7% Activity: 0.7%

private const uint ctmBase = 0x01281838;

private const uint ctmTurnScale = ctmBase + 0x04;
private const uint ctmDistance = ctmBase + 0x0c;
private const uint ctmAction = ctmBase + 0x1c;
private const uint ctmTarget = ctmBase + 0x20;
private const uint ctmDestinationX = ctmBase + 0x8C;
private const uint ctmDestinationY = ctmDestinationX + 0x4;
private const uint ctmDestinationZ = ctmDestinationY + 0x4;



CtmAction :
FaceTarget = 1,
FaceDestination = 2,
Walk = 4,
InteractNpc = 5,
Loot = 6,
InteractItem = 7,
Attack = 10,
Idle = 13




[Only registered and activated users can see links. ]
Reply With Quote
  #3  
Old 09-16-2009
luciferc's Avatar
luciferc is offline.
Contributor
  
 
Join Date: Jul 2008
Location: Node #23
Posts: 316
Reputation: 89
Points: 3,566, Level: 5
Points: 3,566, Level: 5 Points: 3,566, Level: 5 Points: 3,566, Level: 5
Level up: 96%, 34 Points needed
Level up: 96% Level up: 96% Level up: 96%
Activity: 0.7%
Activity: 0.7% Activity: 0.7% Activity: 0.7%

Unkowned has a full Documentation if you want to go to his wiki.

But the above is correct.

Basic Use ( Psuedo - Code )

SET X FLOAT
SET Y FLOAT
[[Optional]]
SET Z FLOAT --Only for Flying Mounts
Set Dist (How close to the location) FLOAT << Mess around with this for interaction (there is a Dist that lets you interact w/o moving)
Set TurnScale (How fast you turn only applys if over 180 deg) FLOAT
[[/Optional]]

Set CTM Action to 4 INT

Your done!

Last edited by luciferc; 09-16-2009 at 05:06 PM.
Reply With Quote
  #4  
Old 09-16-2009
furang's Avatar
furang is offline.
Master Sergeant
  
 
Join Date: Jul 2009
Posts: 84
Reputation: 19
Points: 315, Level: 1
Points: 315, Level: 1 Points: 315, Level: 1 Points: 315, Level: 1
Level up: 79%, 85 Points needed
Level up: 79% Level up: 79% Level up: 79%
Activity: 5.1%
Activity: 5.1% Activity: 5.1% Activity: 5.1%

here's function i'm using
Quote:
int WalkToCoords (float x, float y, float z)
{
int go=4;
WriteProcessMemory(hProc,(LPVOID)(BASEADDR+CTM_X),&x,sizeof(x),NULL);
WriteProcessMemory(hProc,(LPVOID)(BASEADDR+CTM_Y),&y,sizeof(y),NULL);
WriteProcessMemory(hProc,(LPVOID)(BASEADDR+CTM_Z),&z,sizeof(z),NULL);
WriteProcessMemory(hProc,(LPVOID)(BASEADDR+CTM_STATUS),&go,sizeof(int),NULL);
return 0;
}
and here are some consts that you may need
Quote:
#define BASEADDR 0x1281838
#define CTM_X 0x8C
#define CTM_Y 0x90
#define CTM_Z 0x94
Reply With Quote
  #5  
Old 09-16-2009
Tanaris4 is offline.
Sergeant Major
  
 
Join Date: Oct 2008
Posts: 146
Reputation: 12
Points: 1,169, Level: 2
Points: 1,169, Level: 2 Points: 1,169, Level: 2 Points: 1,169, Level: 2
Level up: 54%, 231 Points needed
Level up: 54% Level up: 54% Level up: 54%
Activity: 6.2%
Activity: 6.2% Activity: 6.2% Activity: 6.2%

Other actions:

enum ctmActionType{
ctmFaceTarget = 0x1,
ctmFaceDestination = 0x2,
ctmStop = 0x3,
ctmWalkTo = 0x4,
ctmInteractNpc = 0x5,
ctmLoot = 0x6,
ctmInteractObject = 0x7,
ctmFaceOther = 0x8,
ctmSkin = 0x9,
ctmAttack = 0x10,
ctmIdle = 0x13,
ctmAttackPos = 0xA,
ctmAttackGuid = 0xB,
ctmWalkAndRotate = 0xC,
ctmNone = 0xD
};

Last edited by Tanaris4; 09-16-2009 at 05:52 PM.
Reply With Quote
  #6  
Old 09-16-2009
ostapus is offline.
Sergeant
  
 
Join Date: Nov 2008
Posts: 67
Reputation: 32
Points: 477, Level: 1
Points: 477, Level: 1 Points: 477, Level: 1 Points: 477, Level: 1
Level up: 16%, 423 Points needed
Level up: 16% Level up: 16% Level up: 16%
Activity: 3.3%
Activity: 3.3% Activity: 3.3% Activity: 3.3%

Sweet,

appreciate it everyone. hmm... wasn't there something related to GUID as well (or i just dont remember it ) ? like in case of ctmInteractObject/Npc...
What is url for Unkowned's wiki ?

Last edited by ostapus; 09-16-2009 at 06:14 PM.
Reply With Quote
  #7  
Old 09-16-2009
FartBlast's Avatar
FartBlast is offline.
Knight-Lieutenant
  
 
Join Date: Mar 2007
Posts: 263
Reputation: 38
Points: 2,635, Level: 4
Points: 2,635, Level: 4 Points: 2,635, Level: 4 Points: 2,635, Level: 4
Level up: 77%, 165 Points needed
Level up: 77% Level up: 77% Level up: 77%
Activity: 0.4%
Activity: 0.4% Activity: 0.4% Activity: 0.4%

Quote:
Originally Posted by ostapus View Post
Sweet,

appreciate it everyone. hmm... wasn't there something related to GUID as well (or i just dont remember it ) ? like in case of ctmInteractObject/Npc...
What is url for Unkowned's wiki ?
Yeah you write the guid to private const uint ctmTarget = ctmBase + 0x20; and then call interact
__________________

Reply With Quote
  #8  
Old 09-25-2009
ostapus is offline.
Sergeant
  
 
Join Date: Nov 2008
Posts: 67
Reputation: 32
Points: 477, Level: 1
Points: 477, Level: 1 Points: 477, Level: 1 Points: 477, Level: 1
Level up: 16%, 423 Points needed
Level up: 16% Level up: 16% Level up: 16%
Activity: 3.3%
Activity: 3.3% Activity: 3.3% Activity: 3.3%

Can anyone confirm CTM offsets (well, i saw offsets in 3.2.2 topic but just in case)

ctmBase = 0x01297920;
ctmTurnScale = ctmBase + 0x04;
ctmAnotherDistanceLike = ctmBase + 0x08; -- ClickToMove use it
ctmDistance = ctmBase + 0x0C;
ctmAction = ctmBase + 0x1c;
ctmTarget = ctmBase + 0x20;
ctmDestinationX = ctmBase + 0x8C;
ctmDestinationY = ctmDestinationX + 0x90;
ctmDestinationZ = ctmDestinationY + 0x94;


for some reason, Action 4 - WalkTo behave strange for me with following "code"

_writeDouble(ctmDestinationX, x) ; _writeDouble(ctmDestinationY, y) ; _writeDouble(ctmDestinationZ, z)
_writeDouble(ctmTurnScale, 3.14) ; -- default like
_writeDouble(ctmDistance, distance) ;
_writeDword(ctmAction, 4)

just want to make sure it works for other so i will dig it out...
Reply With Quote
  #9  
Old 09-25-2009
ostapus is offline.
Sergeant
  
 
Join Date: Nov 2008
Posts: 67
Reputation: 32
Points: 477, Level: 1
Points: 477, Level: 1 Points: 477, Level: 1 Points: 477, Level: 1
Level up: 16%, 423 Points needed
Level up: 16% Level up: 16% Level up: 16%
Activity: 3.3%
Activity: 3.3% Activity: 3.3% Activity: 3.3%

BLEH ME! once i posted - i found what is wrong )
Reply With Quote
  #10  
Old 09-25-2009
ashleyww is offline.
Banned
  
 
Join Date: Apr 2009
Posts: 139
Nominated 2 Times in 1 Post
Reputation: 6
Points: 593, Level: 1
Points: 593, Level: 1 Points: 593, Level: 1 Points: 593, Level: 1
Level up: 39%, 307 Points needed
Level up: 39% Level up: 39% Level up: 39%
Activity: 2.8%
Activity: 2.8% Activity: 2.8% Activity: 2.8%

Heres what I use

Code:
 
Const $ClickToMove = 0x01297920 ;Updated
Const $ClickToMove_Xpos = 0x012979ac;Updated
const $ClickToMove_Ypos  =0x012979b0;Updated
Const $ClickToMove_Zpos = 0x012979b4;Updated
Const $ClickToMove_InteractDistance = 0x0129792c;Updated
Const $ClickToMove_Target = 0x01297940;Updated
Const $ClickToMove_State = 0x0129793c;Updated
And to use CTM i use

Code:
	_BMWriteFloat($handle, $ClickToMove_Xpos, $XCoord)
	_BMWriteFloat($handle, $ClickToMove_Ypos, $YCoord)
	_BMWriteFloat($handle, $ClickToMove_Zpos, $ZCoord)
	_BMWriteInt($handle, $ClickToMove_State, "4")
Reply With Quote
  #11  
Old 09-25-2009
Apoc's Avatar
Apoc is offline.
MMOwned WebDev
Legendary User
  
 
Join Date: Jan 2008
Posts: 1,909
Nominated 5 Times in 1 Post
Reputation: 1029
Points: 22,637, Level: 21
Points: 22,637, Level: 21 Points: 22,637, Level: 21 Points: 22,637, Level: 21
Level up: 15%, 1,363 Points needed
Level up: 15% Level up: 15% Level up: 15%
Activity: 37.7%
Activity: 37.7% Activity: 37.7% Activity: 37.7%

Wow you guys are funny. You do realize that the CTM stuff is stored as a struct in memory right? And that struct's layout hasn't changed since as long as I can remember...

Code:
        [StructLayout(LayoutKind.Sequential)]
        public struct ClickToMoveInfoStruct
        {
            public float Unknown1F;
            public float TurnScale;
            public float Unknown2F;

            /// <summary>
            /// This can be left alone. There is no need to write to it!!
            /// </summary>
            public float InteractionDistance;

            public float Unknown3F;
            public float Unknown4F;
            public uint Unknown5U;

            /// <summary>
            /// As per the ClickToMoveAction enum members.
            /// </summary>
            public uint ActionType;

            public ulong InteractGuid;

            /// <summary>
            /// Check == 2 (This might be some sort of flag?)
            /// Always 2 when using some form of CTM action. 0 otherwise.
            /// </summary>
            public uint IsClickToMoving;

            [MarshalAs(UnmanagedType.ByValArray, SizeConst = 21)]
            public uint[] Unknown6U;

            /// <summary>
            /// This will change in memory as WoW figures out where exactly we're going to stop. (Also the actual end location)
            /// </summary>
            public Point Dest;

            /// <summary>
            /// This is wherever we actually 'clicked' in game.
            /// </summary>
            public Point Click;

            /// <summary>
            /// Returns the fully qualified type name of this instance.
            /// </summary>
            /// <returns>
            /// A <see cref="T:System.String"/> containing a fully qualified type name.
            /// </returns>
            /// <filterpriority>2</filterpriority>
            public override string ToString()
            {
                string tmp = "";
                for (int i = 0; i < Unknown6U.Length; i++)
                {
                    tmp += "Unknown6U_" + i + ": " + Unknown6U[i].ToString("X") + ", ";
                }
                return
                    string.Format(
                        "TurnScale: {0}, InteractionDistance: {1}, ActionType: {2}, InteractGuid: {3}, IsClickToMoving: {4}, ClickX: {5}, ClickY: {6}, ClickZ: {7}, DestX: {8}, DestY: {9}, DestZ: {10}, Unk4f: {12}, UNK: {11}",
                        TurnScale, InteractionDistance, (ClickToMoveType) ActionType, InteractGuid.ToString("X"),
                        IsClickToMoving == 2, Click.X, Click.Y, Click.Z, Dest.X, Dest.Y, Dest.Z, tmp, Unknown4F);
            }
        }
__________________
[Only registered and activated users can see links. ]
Reply With Quote
  #12  
Old 09-25-2009
ostapus is offline.
Sergeant
  
 
Join Date: Nov 2008
Posts: 67
Reputation: 32
Points: 477, Level: 1
Points: 477, Level: 1 Points: 477, Level: 1 Points: 477, Level: 1
Level up: 16%, 423 Points needed
Level up: 16% Level up: 16% Level up: 16%
Activity: 3.3%
Activity: 3.3% Activity: 3.3% Activity: 3.3%

Well, i dont think so. everywhere in wow (well, where i saw operations with ctm "structure") wow operates on absolute addresses, not "structure offsets". i assume it is global variables in source code.

thanks for info anyway as little contribution (useless one though : ) )

Unknown2F will hold "interact" distance returned from here
0069E8E3 call myf_ctmGetInteractDistanceOfAction

myf_ctmGetInteractDistanceOfAction takes action as parameter and returns appropriate distance or displays error like "too far" etc...
later square root of that distance will be used as InteractionDistance in CGPlayer_C__ClickToMove, code:

.text:0069E99A fld myv_ctmAnotherDistanceLike
.text:0069E9A0 fsqrt
.text:0069E9A2 fstp myv_mmow_ptrClickToMove_InteractDistance

myv_ctmAnotherDistanceLike = Unknown2F (referring to Apoc's info)
Reply With Quote
  #13  
Old 09-25-2009
Apoc's Avatar
Apoc is offline.
MMOwned WebDev
Legendary User
  
 
Join Date: Jan 2008
Posts: 1,909
Nominated 5 Times in 1 Post
Reputation: 1029
Points: 22,637, Level: 21
Points: 22,637, Level: 21 Points: 22,637, Level: 21 Points: 22,637, Level: 21
Level up: 15%, 1,363 Points needed
Level up: 15% Level up: 15% Level up: 15%
Activity: 37.7%
Activity: 37.7% Activity: 37.7% Activity: 37.7%

The CTM addresses you guys keep barking about, is a global struct. (Not a pointer!!)

So yes, I do think so.
__________________
[Only registered and activated users can see links. ]
Reply With Quote
  #14  
Old 09-25-2009
ostapus is offline.
Sergeant
  
 
Join Date: Nov 2008
Posts: 67
Reputation: 32
Points: 477, Level: 1
Points: 477, Level: 1 Points: 477, Level: 1 Points: 477, Level: 1
Level up: 16%, 423 Points needed
Level up: 16% Level up: 16% Level up: 16%
Activity: 3.3%
Activity: 3.3% Activity: 3.3% Activity: 3.3%

mmm, i see.. so, if we have

global struct
{
a, b
} mystruct ;

in binary that will be
mov eax, <absolute address> [a]
mov eax, <absolute address> [b]

is that correct ? not something like
mov edx, <absolute address> mystruct
mov eax, [edx+4] // as a
mov edx, [esdx+8] // as b

? lazy to check it myself )
Reply With Quote
  #15  
Old 09-26-2009
EmilyStrange is offline.
Corporal
  
 
Join Date: Jul 2009
Location: Los Angeles, CA
Posts: 27
Reputation: 18
Points: 214, Level: 1
Points: 214, Level: 1 Points: 214, Level: 1 Points: 214, Level: 1
Level up: 54%, 186 Points needed
Level up: 54% Level up: 54% Level up: 54%
Activity: 0.4%
Activity: 0.4% Activity: 0.4% Activity: 0.4%

Deleted by author. (I was being mean, woke up in a bad mood.)

Last edited by EmilyStrange; 09-26-2009 at 05:01 PM.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On



All times are GMT -4. The time now is 06:03 AM.




Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.1

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493