How do i get Memory Coords to Screen coods for attact? menu

User Tag List

Results 1 to 4 of 4
  1. #1
    ace1810's Avatar Private
    Reputation
    1
    Join Date
    Jun 2012
    Posts
    9
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How do i get Memory Coords to Screen coods for attact?

    If i have objectPosithion x,z,y and me position x.y.z , how do i change Screen coods.... i need that method for a mob attact. plz help me..

    How do i get Memory Coords to Screen coods for attact?
  2. #2
    st0724's Avatar Member
    Reputation
    2
    Join Date
    Feb 2007
    Posts
    60
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by ace1810 View Post
    If i have objectPosithion x,z,y and me position x.y.z , how do i change Screen coods.... i need that method for a mob attact. plz help me..
    I actually implemented this a long time ago but never used it. Basically you need 2 steps. First is a 135 degree rotation. Second is a projection between the screen rectangle and the in-game trapezoid region around your character. A bit of trail and error is needed to get the proper scaling.

  3. #3
    siklon's Avatar Member
    Reputation
    4
    Join Date
    Jun 2012
    Posts
    57
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You will need to find the camera position regardless. Look here: 3D projection

  4. #4
    Choochoo545's Avatar Private
    Reputation
    1
    Join Date
    Jun 2012
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I found this on a seperate site, not sure I am allowed to post link to it, I am new here:

    --If you wrote this code, thank you!

    Opt("MouseCoordMode", 2) ;1=absolute, 0=relative, 2=client
    WinActivate( "Diablo III")


    ;;--------------------------------------------------------------------------------
    ;; GetCurrentPosWorld()
    ;;--------------------------------------------------------------------------------
    Func GetCurrentPosWorld()
    dim $return[3]
    $return[0] = _MemoryRead($_Myoffset + 0x0A0, $d3, 'float')
    $return[1] = _MemoryRead($_Myoffset + 0x0A4, $d3, 'float')
    $return[2] = _MemoryRead($_Myoffset + 0x0A8, $d3, 'float')
    return $return
    EndFunc


    ;;--------------------------------------------------------------------------------
    ;; MoveToPosClicky()
    ;;--------------------------------------------------------------------------------
    func MoveToPosClicky($_x,$_y,$_z)
    $CurrentLoc = GetCurrentPosWorld()
    $xd = $_x-$CurrentLoc[0]
    $yd = $_y-$CurrentLoc[1]
    $zd = $_z-$CurrentLoc[2]
    $w = -0.515 * $xd + -0.514 * $yd + -0.686 * $zd + 97.985
    $X = (-1.682 * $xd + 1.683 * $yd + 0 * $zd + 7.045e-3) / $w
    $Y = (-1.54 * $xd + -1.539 * $yd + 2.307 * $zd + 6.161) / $w
    $X = ($X + 1) / 2 * 800
    $Y = (1 - $Y) / 2 * 600
    MouseClick( "middle", $X, $Y, 1, 0)
    while 1
    $CurrentLoc = GetCurrentPosWorld()
    $xd = $_x-$CurrentLoc[0]
    $yd = $_y-$CurrentLoc[1]
    $zd = $_z-$CurrentLoc[2]
    $Distance = Sqrt($xd*$xd + $yd*$yd + $zd*$zd)
    if $Distance < 2 then ExitLoop
    if _MemoryRead($ClickToMoveToggle, $d3, 'float') = 0 then ExitLoop
    sleep(10)
    WEnd
    EndFunc

Similar Threads

  1. Trying to be self-sufficient, how to get memory offsets
    By radarlove in forum WoW Memory Editing
    Replies: 6
    Last Post: 02-15-2016, 12:50 PM
  2. How do I get sick/ill/fever/cold overnight for MoP?
    By chriddez in forum Community Chat
    Replies: 28
    Last Post: 10-03-2012, 11:39 PM
  3. [newbie guide] How to (not) get values from memory
    By zdud in forum Diablo 3 Memory Editing
    Replies: 0
    Last Post: 08-22-2012, 06:05 AM
  4. How can i get my screen like this
    By Mike3667 in forum World of Warcraft General
    Replies: 4
    Last Post: 09-09-2006, 07:31 PM
  5. How do i get?
    By Bossman4 in forum Community Chat
    Replies: 22
    Last Post: 06-08-2006, 01:28 PM
All times are GMT -5. The time now is 03:04 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search