XYZ memory menu

User Tag List

Thread: XYZ memory

Results 1 to 5 of 5
  1. #1
    lut4's Avatar Private
    Reputation
    1
    Join Date
    Mar 2011
    Posts
    5
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    XYZ memory

    Hello.

    I am new to this forum, but i have read gononono64's post about making a wowbot. I have come to a place in my own attempt of making a bot, where i cant get it working properly. I am clearly missing some kind of knowledge. Well, i cant get my char rotating. I have tested my code, and it gives me position and angle of my char.

    I have tried to do like this:
    Code:
    Func PLAYERROT()
    ;//The bot reads from the white list box, and the list box reads from the INI file, so thats why i use the For->Next loop
    Const $TX = 71
    Const $TY = 41
    
    
    		
        $PX = $pXPos
        $PY = $pYPos
        $A = _ATAN2($TY - $PY, $TX - $PX)
         ;//Sometimes youll get a negitive result, and WoW Doesnt use negitive rotation(0-6.3)
            ;  we normalize this by adding (PI * 2) Done!
        If $A < 0 Then
            $A = $A + ($pi * 2)
        EndIf
         ;//Then write to the Rotation offset which turns the player towards destination or waypoint~!
        _MEMORYWRITE($UnitRotationOffset, $hWow, $A, "float")
    EndFunc
    
    
    PLAYERROT()
    That is a modified version of a code i found on the internet. But the thing i am mostly missing is, how can you get the char to rotate. I have tried _MemoryWrite, but there is not happening anything. Maybe someone can see the flaws in my method?

    I hope i meet your expectations in my thread.

    p.s. like gononono64's post, this is in AutoIt 3

    -Lut4

    XYZ memory
  2. #2
    Bananenbrot's Avatar Contributor
    Reputation
    153
    Join Date
    Nov 2009
    Posts
    384
    Thanks G/R
    1/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Simply writing your rotation to a client side struct (in this case the player's descriptor) is like overwriting the minus sign in your bank statement;
    you sadly won't achieve any server side change.

    try this for out of process rotation:
    Movement « Shynd’s WoW Modification Journal
    Or search in this forum... iirc there was a more recent thread about it

  3. #3
    psyf4's Avatar Private
    Reputation
    2
    Join Date
    Jul 2010
    Posts
    9
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can write to the rotation offset (and pitch) but it must be followed by a hardware action to update it. If you don't really know what you're doing, the easiest way is to send a movement key, such as the smallest turn in one direction possible. If you're not able to send a millisecond turn, you can even subtract (from your rotation) the extra that will be added. There are far better methods but this one is extremely simple.

  4. #4
    gononono64's Avatar Contributor
    Reputation
    100
    Join Date
    Jul 2009
    Posts
    85
    Thanks G/R
    1/5
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    also to solve your negative angle you can go,
    Code:
    Global $pi = 4 * ATan(1)
    if $A < 0 then
    $A = $A + (2 * $pi)
    endif
    \

    i have more to fix the other problem but i have to go to work right now... ill post later tonight
    Hi! My name is Devon and I’m an alcoholic. Moving on…
    https://www.ownedcore.com/forums/world-of-warcraft/world-of-warcraft-bots-programs/wow-memory-editing/319172-guide-how-make-wow-bot-complete-newbs.html

  5. #5
    gononono64's Avatar Contributor
    Reputation
    100
    Join Date
    Jul 2009
    Posts
    85
    Thanks G/R
    1/5
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Excuse the sloppy code:

    Code:
    Func Rotate($x,$y)
    	While 1
    		update() ;to keep coords and rotation updated. Also has close function. You need a sort of update function
    
    		Local $targetXY[2] = [$x,$y] ;i have a gettargetxy function so i swapped it out to make it work for other people.
    
    		If Not Around($pXPos, $targetXY[0], 0.8) Or Not Around($pYPos, $targetXY[1], 0.8) Then ;Checks to see if current position is close to target pos.
    
    			$angle = _ATan2($targetXY[1] - $pYPos, $targetXY[0] - $pXPos) ;Some trigonomitry
    			Local $tempAngle = $angle - $pRotation ;to see the difference between the 2 angles. Used for later to check which way to turn
    			If $tempAngle < 0 Then ;makes sure its not less than zero
    				$tempAngle = $tempAngle + (2 * $pi);if it is, do a full circle example -1 = 259 degrees
    			EndIf
    
    			If $tempAngle < $pi Then ;if less than 180 degrees turn counter clockwise
    				While Not Around($pRotation, $angle, 0.08);checks to see if current rotation is close to target rotation
    					ControlSend("World of Warcraft", "", "", "{a down}");sends key to wow (wow can be minimized)
    					update()
    				WEnd
    				ControlSend("World of Warcraft", "", "", "{a up}")
    				Return
    			EndIf
    
    			If $tempAngle > $pi Then ;if more than 180 degrees turn clockwise
    				While Not Around($pRotation, $angle, 0.08)
    					ControlSend("World of Warcraft", "", "", "{d down}")
    					update()
    				WEnd
    				ControlSend("World of Warcraft", "", "", "{d up}")
    				Return
    			EndIf
    
    		EndIf
    
    	WEnd
    EndFunc   ;==>Rotate
    That should rotate your character to the target xy... after that you can send w key to move forward.

    Its probably best if you figure out how this function works then create your own so u learn something.
    Last edited by gononono64; 03-12-2011 at 06:26 PM.
    Hi! My name is Devon and I’m an alcoholic. Moving on…
    https://www.ownedcore.com/forums/world-of-warcraft/world-of-warcraft-bots-programs/wow-memory-editing/319172-guide-how-make-wow-bot-complete-newbs.html

Similar Threads

  1. [Hack] Swtor xyz memory hacking
    By modey3 in forum SWTOR Memory Editing
    Replies: 14
    Last Post: 04-15-2012, 06:10 PM
  2. MK Memorial (idk I thought it was appropriate)
    By Dhorak in forum Community Chat
    Replies: 14
    Last Post: 07-08-2007, 09:17 PM
  3. [AutoIT3] WoW Cordinator (X,Y,MapID and rotation memory reading)
    By Vladinator in forum World of Warcraft Bots and Programs
    Replies: 22
    Last Post: 05-15-2007, 03:26 AM
  4. Tsearch / whatever other memory hacker
    By Beastslayer in forum World of Warcraft Guides
    Replies: 5
    Last Post: 04-09-2007, 07:39 PM
  5. How do you find memory offsets in the game?
    By koalaz2004 in forum World of Warcraft General
    Replies: 0
    Last Post: 08-18-2006, 09:40 PM
All times are GMT -5. The time now is 09:15 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