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-21-2009
fish2k is online.
New User
  
 
Join Date: Nov 2008
Posts: 13
Reputation: 1
Points: 293, Level: 1
Points: 293, Level: 1 Points: 293, Level: 1 Points: 293, Level: 1
Level up: 74%, 107 Points needed
Level up: 74% Level up: 74% Level up: 74%
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%

SetFacing with memory writes

Hi and sorry for another SetFacing thread...

I'm currently changing my players angle for navigation. The problem is that it seems that there has to be some other indicator that the angle actually changed because I get some really strange looking moves :S
Sample:
Character looks in the correct direction but "walks" in another direction.

I've read the other threads about setting the facing angle but most of them call the "SetFacing" function. But I'm looking for something which works with memory-writes only. Whatever there was something about a movement flag which (seems) to be set after the angle changed. There was no address but I found something at [[player] + 7CC]. Has this something to do with my problem?

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-21-2009
peterwurst is offline.
Corporal
  
 
Join Date: Jul 2006
Posts: 20
Reputation: 5
Points: 1,020, Level: 2
Points: 1,020, Level: 2 Points: 1,020, Level: 2 Points: 1,020, Level: 2
Level up: 24%, 380 Points needed
Level up: 24% Level up: 24% Level up: 24%
Activity: 1.1%
Activity: 1.1% Activity: 1.1% Activity: 1.1%

You can either write a movementflag to the memory or you just tap a movement key, after you wrote your new facing.

(Pseudo)
WriteNewFacing(5.0f);
PressKey(TurnLeft);
Reply With Quote
  #3  
Old 09-21-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%

Why dont you set facing with CTM?
[Only registered and activated users can see links. ]

Code:
Memory.WriteInt(0x01281854, 1);
You need to write the XYZ or the GUID to it aswell and then the status, it's in the dump topic.
__________________

Reply With Quote
  #4  
Old 09-21-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%

Quote:
Originally Posted by peterwurst View Post
You can either write a movementflag to the memory or you just tap a movement key, after you wrote your new facing.

(Pseudo)
WriteNewFacing(5.0f);
PressKey(TurnLeft);
Can you provide info on writing the movement flag? I'm assuming that's:
Code:
    BaseField_MovementFlags             = 0x7C0,  // 3.0.9: 0x7F0
    // 0x80000001 - move forward
    // 0x80000002 - move backward
    // 0x80000004 - strafe left
    // 0x80000008 - strafe right
    
    // 0x80000010 - turn left
    // 0x80000020 - turn left
    
    // 0x80001000 - jumping
    
    // 0x80200000 - swimming
    
    // 0x81000000 - air mounted, on the ground
    // 0x83000400 - air mounted, in the air
    // 0x83400400 - air mounted, going up (spacebar)
    // 0x83800400 - air mounted, going down (sit key)
    // among others...
I always get insta-d/ced when I try this - thoughts?
Reply With Quote
  #5  
Old 09-21-2009
Nesox's Avatar
Nesox is offline.
MaiN's Biatch
Legendary User
  
 
Join Date: Mar 2007
Location: VirtualAllocEx
Posts: 1,115
Nominated 26 Times in 3 Posts
Nominated TOTM/W Award(s): 1
Reputation: 727
Points: 36,171, Level: 28
Points: 36,171, Level: 28 Points: 36,171, Level: 28 Points: 36,171, Level: 28
Level up: 95%, 129 Points needed
Level up: 95% Level up: 95% Level up: 95%
Activity: 14.1%
Activity: 14.1% Activity: 14.1% Activity: 14.1%

Wow uses radians, using the 'pulsed' ctm struct for setting you facing is pretty nice or if you find à wrapper that does all the writes for you. Soon the warden Guy wakes up and starts to check that section of .text thats what i believe atleast
__________________
omg ive started a blog nao! what's wrong with MEH!? -> [Only registered and activated users can see links. ]
Reply With Quote
  #6  
Old 09-21-2009
luciferc's Avatar
luciferc is offline.
Contributor
  
 
Join Date: Jul 2008
Location: Node #23
Posts: 316
Reputation: 89
Points: 3,571, Level: 5
Points: 3,571, Level: 5 Points: 3,571, Level: 5 Points: 3,571, Level: 5
Level up: 97%, 29 Points needed
Level up: 97% Level up: 97% Level up: 97%
Activity: 0.7%
Activity: 0.7% Activity: 0.7% Activity: 0.7%

btw for those who never took calc/geo or any math class its as such

Pi = 180 Degrees
2 Pi = 360 Degrees

Pi = A Radian
Reply With Quote
  #7  
Old 09-21-2009
fish2k is online.
New User
  
 
Join Date: Nov 2008
Posts: 13
Reputation: 1
Points: 293, Level: 1
Points: 293, Level: 1 Points: 293, Level: 1 Points: 293, Level: 1
Level up: 74%, 107 Points needed
Level up: 74% Level up: 74% Level up: 74%
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%

Thanks for all your replies.
I can't use CTM because I need more control over the movement.

@Tanaris4:
That's what i've tried. Also hat problems with DCs

@peterwurst
The SendKey thing looks pretty dirty to me. I'm more interested in the movement-flag method because I can't get it to work =(

Thanks

Last edited by fish2k; 09-21-2009 at 07:21 PM.
Reply With Quote
  #8  
Old 09-21-2009
Nesox's Avatar
Nesox is offline.
MaiN's Biatch
Legendary User
  
 
Join Date: Mar 2007
Location: VirtualAllocEx
Posts: 1,115
Nominated 26 Times in 3 Posts
Nominated TOTM/W Award(s): 1
Reputation: 727
Points: 36,171, Level: 28
Points: 36,171, Level: 28 Points: 36,171, Level: 28 Points: 36,171, Level: 28
Level up: 95%, 129 Points needed
Level up: 95% Level up: 95% Level up: 95%
Activity: 14.1%
Activity: 14.1% Activity: 14.1% Activity: 14.1%

Just call CInputControl__SetFacing(float* pAngle) thats probablly the most accurate way unless you do it like apoc o.o
__________________
omg ive started a blog nao! what's wrong with MEH!? -> [Only registered and activated users can see links. ]
Reply With Quote
  #9  
Old 09-21-2009
Apoc's Avatar
Apoc is offline.
MMOwned WebDev
Legendary User
  
 
Join Date: Jan 2008
Posts: 1,918
Nominated 5 Times in 1 Post
Reputation: 1029
Points: 22,725, Level: 21
Points: 22,725, Level: 21 Points: 22,725, Level: 21 Points: 22,725, Level: 21
Level up: 21%, 1,275 Points needed
Level up: 21% Level up: 21% Level up: 21%
Activity: 37.0%
Activity: 37.0% Activity: 37.0% Activity: 37.0%

Quote:
Originally Posted by Nesox View Post
Just call CInputControl__SetFacing(float* pAngle) thats probablly the most accurate way unless you do it like apoc o.o
Pffft. Less offsets to maintain, and an *always working* approach > yours.
__________________
[Only registered and activated users can see links. ]
Reply With Quote
  #10  
Old 09-21-2009
fish2k is online.
New User
  
 
Join Date: Nov 2008
Posts: 13
Reputation: 1
Points: 293, Level: 1
Points: 293, Level: 1 Points: 293, Level: 1 Points: 293, Level: 1
Level up: 74%, 107 Points needed
Level up: 74% Level up: 74% Level up: 74%
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%

Quote:
Originally Posted by Nesox View Post
Just call CInputControl__SetFacing(float* pAngle) thats probablly the most accurate way unless you do it like apoc o.o
Hm, yeah I tried to avoid that but maybe I should just inject my code.
Do I have to know what Apoc's approach was? Tell me! O_o
Reply With Quote
  #11  
Old 09-21-2009
Apoc's Avatar
Apoc is offline.
MMOwned WebDev
Legendary User
  
 
Join Date: Jan 2008
Posts: 1,918
Nominated 5 Times in 1 Post
Reputation: 1029
Points: 22,725, Level: 21
Points: 22,725, Level: 21 Points: 22,725, Level: 21 Points: 22,725, Level: 21
Level up: 21%, 1,275 Points needed
Level up: 21% Level up: 21% Level up: 21%
Activity: 37.0%
Activity: 37.0% Activity: 37.0% Activity: 37.0%

Quote:
Originally Posted by fish2k View Post
Hm, yeah I tried to avoid that but maybe I should just inject my code.
Do I have to know what Apoc's approach was? Tell me! O_o
Not really my approach. Was actually ISXWoW/Greyman's (kudos to them, also kudos to jjaa for porting it to work in Onyx :P)

Now that I think about it... it's not really my approach at all!
__________________
[Only registered and activated users can see links. ]
Reply With Quote
  #12  
Old 09-21-2009
fish2k is online.
New User
  
 
Join Date: Nov 2008
Posts: 13
Reputation: 1
Points: 293, Level: 1
Points: 293, Level: 1 Points: 293, Level: 1 Points: 293, Level: 1
Level up: 74%, 107 Points needed
Level up: 74% Level up: 74% Level up: 74%
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%

Quote:
Originally Posted by Apoc View Post
Not really my approach. Was actually ISXWoW/Greyman's (kudos to them, also kudos to jjaa for porting it to work in Onyx :P)

Now that I think about it... it's not really my approach at all!
Okay doesn't really tell anything about any approach but was still funny to read
Reply With Quote
  #13  
Old 09-22-2009
grosfilsdepute is offline.
New User
  
 
Join Date: Mar 2008
Posts: 26
Reputation: 1
Points: 478, Level: 1
Points: 478, Level: 1 Points: 478, Level: 1 Points: 478, Level: 1
Level up: 16%, 422 Points needed
Level up: 16% Level up: 16% Level up: 16%
Activity: 0.7%
Activity: 0.7% Activity: 0.7% Activity: 0.7%

CTM FaceTarget works well!

Code:
Memory.Instance.WriteUInt64(Memory.Instance.MemoryReader.ProcessHandle, 0x01281838 + 0x20,
                            m_ObjMgr.TargetObject.GetGUID());

Memory.Instance.WriteInt(Memory.Instance.MemoryReader.ProcessHandle, 0x01281854,
                            1);
Thread.Sleep(100);
Memory.Instance.WriteUInt64(Memory.Instance.MemoryReader.ProcessHandle, 0x01281838 + 0x20,
                            0);
Memory.Instance.WriteInt(Memory.Instance.MemoryReader.ProcessHandle, 0x01281854,
                            3);
Reply With Quote
  #14  
Old 09-24-2009
adaephon is offline.
New User
  
 
Join Date: May 2009
Posts: 31
Reputation: 4
Points: 240, Level: 1
Points: 240, Level: 1 Points: 240, Level: 1 Points: 240, Level: 1
Level up: 60%, 160 Points needed
Level up: 60% Level up: 60% Level up: 60%
Activity: 0.4%
Activity: 0.4% Activity: 0.4% Activity: 0.4%

Quote:
Originally Posted by luciferc View Post
btw for those who never took calc/geo or any math class its as such

Pi = 180 Degrees
2 Pi = 360 Degrees

Pi = A Radian
And for those who have forgotten some maths, Pi != a radian ;-)

Quote:
Originally Posted by wikipedia
One radian is the angle subtended at the center of a circle by an arc that is equal in length to the radius of the circle.
Pi radians = 180 degrees (i.e. 3.14ish radians = 180 degrees)
Reply With Quote
  #15  
Old 09-25-2009
xzidez is offline.
New User
  
 
Join Date: Dec 2007
Posts: 48
Reputation: 3
Points: 476, Level: 1
Points: 476, Level: 1 Points: 476, Level: 1 Points: 476, Level: 1
Level up: 16%, 424 Points needed
Level up: 16% Level up: 16% Level up: 16%
Activity: 5.2%
Activity: 5.2% Activity: 5.2% Activity: 5.2%

Eh.. I thought I would give this a try instead of they "keypress and wait" method.
But I still cant seem to get it working. This is what I got.

Code:
Address   Hex dump          Command                                  Comments
00949C50  /$  55            PUSH EBP                                 ; Wow.00949C50(guessed Arg1)
00949C51  |.  8BEC          MOV EBP,ESP
00949C53  |.  D945 08       FLD DWORD PTR SS:[ARG.1]
00949C56  |.  56            PUSH ESI
00949C57  |.  D9C0          FLD ST
00949C59  |.  8BF1          MOV ESI,ECX
00949C5B  |.  D866 20       FSUB DWORD PTR DS:[ESI+20]
00949C5E  |.  D9E1          FABS
00949C60  |.  D81D 64CB9A00 FCOMP DWORD PTR DS:[9ACB64]              ; FLOAT 9.536743e-07
00949C66  |.  DFE0          FSTSW AX
00949C68  |.  F6C4 05       TEST AH,05
00949C6B  |.  7B 1C         JPO SHORT 00949C89
00949C6D  |.  F746 44 00100 TEST DWORD PTR DS:[ESI+44],00001000
00949C74  |.  D95E 20       FSTP DWORD PTR DS:[ESI+20]
00949C77  |.  75 12         JNE SHORT 00949C8B
00949C79  |.  6A 00         PUSH 0                                   ; /Arg1 = 0
00949C7B  |.  E8 60E4FFFF   CALL 009480E0                            ; \Wow.009480E0
00949C80  |.  8366 44 CF    AND DWORD PTR DS:[ESI+44],FFFFFFCF
00949C84  |.  5E            POP ESI
00949C85  |.  5D            POP EBP
00949C86  |.  C2 0400       RETN 4
00949C89  |>  DDD8          FSTP ST
00949C8B  |>  8366 44 CF    AND DWORD PTR DS:[ESI+44],FFFFFFCF
00949C8F  |.  5E            POP ESI
00949C90  |.  5D            POP EBP
00949C91  \.  C2 0400       RETN 4
Seems like we have an StdCall with 1 param as returnValue? Looking at RETN 4.
so..
Code:
        [UnmanagedFunctionPointer(CallingConvention.StdCall)]
        private unsafe delegate int SetFacing(float floatPtr);
Not sure about the float floatPtr. But ive tried almost everything as argument, pointer to the float value.. etc etc Everything crashes wow. :/

I really suck at ASM.. sigh..
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:25 PM.




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