Insolence Posted November 23, 2006 Author Share Posted November 23, 2006 Bump, again "I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar. Link to comment Share on other sites More sharing options...
Insolence Posted November 23, 2006 Author Share Posted November 23, 2006 (edited) http://img183.imageshack.us/my.php?image=xydistbp8.jpg Edited November 23, 2006 by Insolence "I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar. Link to comment Share on other sites More sharing options...
Snarg Posted November 23, 2006 Share Posted November 23, 2006 I'm surprised you are still playing with Diablo Good luck Insolence and don't let the Warden get you... A little reading goes a long way. Post count means nothing. Link to comment Share on other sites More sharing options...
Insolence Posted November 23, 2006 Author Share Posted November 23, 2006 (edited) I haven't played in almost a year, this is a nice blast from the past Thanks, best wishes to you too. Edited November 23, 2006 by Insolence "I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar. Link to comment Share on other sites More sharing options...
jvanegmond Posted November 23, 2006 Share Posted November 23, 2006 (edited) Just because I was thinking about this during math class. We were talking about the Unit circle again.The next edited screenshot makes more sense then yours. I don't know how Diablo II world coordinates are calculated, so I am still guessing in the dark.Or with a 45 degree angle: ( Cos(Alpha+0.5*pi) , Sin(Alpha+0.5*pi) ) in radians.Here is my futile attempt at calculating the angle from a non-zero center and an other position, using the mouse in this case. Does anyone know how to properly do this?$pi = 3.14159265358979 $CenterX = @DesktopWidth/2 $CenterY = @DesktopHeight/2 While 1 $MouseX = MouseGetPos(0) $DifferenceX = ( 0.5 - ( $MouseX / @DesktopWidth) ) * 2 ToolTip(Int(ACos($DifferenceX)/$pi*180),$CenterX,$CenterY) WEnd Edited November 23, 2006 by Manadar github.com/jvanegmond Link to comment Share on other sites More sharing options...
Insolence Posted November 23, 2006 Author Share Posted November 23, 2006 (edited) Manadar, if you play USWest I can get you some better items; if you'd like EDIT: Diablo II world coordinates work how I showed in the picture, that's how the grid system works. Edited November 23, 2006 by Insolence "I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar. Link to comment Share on other sites More sharing options...
erifash Posted December 3, 2006 Share Posted December 3, 2006 In my sig: #include <Math.au3> $rad = _Radian(5) ; degrees to radians $deg = _Degree(3.14) ; radians to degrees My UDFs:_FilePrint() | _ProcessGetName() | _Degree() and _Radian()My Scripts:Drive Lock - Computer Lock Using a Flash DriveAU3Chat - Simple Multiuser TCP ChatroomStringChunk - Split a String Into Equal PartsAutoProxy - Custom Webserver Link to comment Share on other sites More sharing options...
Golbez Posted December 3, 2006 Share Posted December 3, 2006 (edited) why dont you move the diablo window to 1,1 so it will be easyer 2 get cords? also dont forget that if your desktop pixels are most of the time are set bigger then diablos pixels... 800x600 or 600x480 this some times will cause the cords 2 to changes... you also factor in: CaretCoordMode, MouseCoordMode sry if i seem like im calling you a noob or anythin i just want to hlep you out Edited December 3, 2006 by Golbez Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now