[AutoIt] Problem with SetRotation and Walking menu

Shout-Out

User Tag List

Results 1 to 11 of 11
  1. #1
    spudstar99's Avatar Member
    Reputation
    12
    Join Date
    Aug 2008
    Posts
    99
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [AutoIt] Problem with SetRotation and Walking

    Hello,

    my Problem is the following

    i read the x y z and rotation stuff from memory

    then i calculate the distance and the needed rotation

    then i write the rotation (to the target) into the memory

    Code:
    _SetRotation($Handle,$pBase, $RotNeeded)
    
    Func _SetRotation ($Handle,$pBase, $RotNeeded)
    	_BMWriteMemory($Handle, $pBase + $UnitRotation, $RotNeeded, "float")	
    EndFunc
    $UnitRotation = 0x7A8

    pBase is the player base and bla


    now the bot looks at the target all the time and tries to walk there but he doesn't .. the bot just look at it and runs in the former direction

    i tried to stop the walking process before the _setRotation
    but this didn't helped

    is there maybe a little thing that i miss ?!

    thanks for reading

    sincery spud

    [AutoIt] Problem with SetRotation and Walking
  2. #2
    zutto's Avatar Active Member
    Reputation
    39
    Join Date
    Aug 2007
    Posts
    210
    Thanks G/R
    3/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    didnt really get that, so basicly it walks over target without stopping and looks at the mob all the time?
    drugs are baad kids.. m'kay.

  3. #3
    spudstar99's Avatar Member
    Reputation
    12
    Join Date
    Aug 2008
    Posts
    99
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    the bot tries to reach the target

    but he faces the old direction


    an example

    if i log in the rotations is 10

    the target is at rotation 15

    now the bot change the rotation to 10 so that ingame it looks like the bot looks at the target at 10

    but still runs to 15


    thats the problem .. hopefully i explained it better now

    unfortunaly i'm not a nativ speaker

    thanks for reading

    sincery spud

  4. #4
    Nesox's Avatar ★ Elder ★
    Reputation
    1280
    Join Date
    Mar 2007
    Posts
    1,238
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You need to 'nudge' ure toon either left or right if ure raping the HRotation or only the model will turn.
    Or you could call SetFacing instead

  5. #5
    spudstar99's Avatar Member
    Reputation
    12
    Join Date
    Aug 2008
    Posts
    99
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    setfacing is that the Lua function for this?!

    i think to enable Lua commands i need some fancy ASM stuff and i don't have that...

    if this is a value of the player i have to search harder

    but thanks .. maybe you give me an asskick and then i see the hole thing

    sincery spud

  6. #6
    Shynd's Avatar Contributor
    Reputation
    97
    Join Date
    May 2008
    Posts
    393
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Calculate the average radians turned by sending a left arrow down, left arrow up keystroke to the WoW window, then set your facing that many radians to the right of the target and have your program tap the left button. It's a shitty way to do it, but it will save you from having to call engine functions (with that ASM stuff that you don't have).

  7. #7
    spudstar99's Avatar Member
    Reputation
    12
    Join Date
    Aug 2008
    Posts
    99
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    so i should just set my Rotation to the value of a for example "left down" and "left up"

    will test this tomorrow .. thanks all for fast response

    sincery spud

  8. #8
    Shynd's Avatar Contributor
    Reputation
    97
    Join Date
    May 2008
    Posts
    393
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I mean, say you're using Send() or ControlSend() to send a simple tap of the left arrow key to WoW, and you find that it rotates you 0.367 radians to the left whenever you Send("{LEFTDOWN}{LEFTUP}"). Say you want to face rad 2.582, you would write to your character's facing address 2.215f (which is 2.582 - 0.367) and then tap the left button using Send("{LEFTDOWN}{LEFTUP}").

    Somehow, I think you don't understand what we're talking about. When you simply write your rotation to memory without updating your character's rotation with a hardware event, your character model has its rotation changed but the game still thinks you're facing the same way you WERE facing. By writing a rotation that is just to the right of where you want to face and tapping the left arrow key, you cause it to update your true facing because you trigger a hardware event, all while keeping the added benefit of near-instantaneous turning.

    Again, I will stress that you need to find out how many radians are rotated by using Send("{LEFTDOWN}{LEFTUP}"). My 0.367 was just an example. You need to actually figure this out for yourself, I'm just giving you the theory behind something I believe should work and get you what you want.

  9. #9
    xwinterx's Avatar Member
    Reputation
    26
    Join Date
    Apr 2009
    Posts
    103
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just an idea, but on the AutoIt forums, Malu05 (dont remember if he is on this board or what, havent been here too long) did a travel bot. It used the mouse to hold down the rightbutton and move the character until the facing was correct. I don't write stuff to memory and have just started playing with this memory stuff, so if the nudge stuff seems clunky for you, you could try that. I personally havent played with it.

  10. #10
    spudstar99's Avatar Member
    Reputation
    12
    Join Date
    Aug 2008
    Posts
    99
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    @Shynd

    ok now i got it

    i read something about to "refresh" the ne radiation with movementkeys but i ever read something with forward key.

    thanks alot and yes you shouldn't do my work yeah thats right ... but sometimes i'm that blind and clueless about such situation and so i ask the "experienced" user if they have a clue

    ok have a nice day

    i will try this when i come from work

    sincery spudstar

    @xwinterx
    i know malus bot but i don't want to use mouse for turning but thanks for the info

  11. #11
    ashleyww's Avatar Banned
    Reputation
    6
    Join Date
    Apr 2009
    Posts
    131
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Per Send("{Left down}{Left up}") you rotate by 0.31730079650879

    Enjoy

Similar Threads

  1. Problem with server and router
    By SoulReaverRaziel in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 07-17-2009, 06:48 AM
  2. [Autoit] Problem with Memory reading for looting *resolved*
    By spudstar99 in forum WoW Memory Editing
    Replies: 4
    Last Post: 05-15-2009, 10:26 PM
  3. Problem with login and world
    By toyjoe1 in forum WoW EMU Questions & Requests
    Replies: 10
    Last Post: 12-09-2008, 01:57 PM
  4. problem with item and mount size when i change my tauren size
    By rhunvan in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 04-20-2008, 01:55 PM
  5. Serious Problem with Crashing, and language bug.
    By EmuGod in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 02-16-2008, 09:26 PM
All times are GMT -5. The time now is 06:06 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