Sign in to follow this  
Followers 0
ecstatic

GetMosPos, pixelsearch then back to original poisiton

2 posts in this topic

#1 ·  Posted (edited)

Hey guys.

Heres an image of what im trying to do

Posted Image

Edit: posted a better picture

I want to get current position, by scanning by my characters feet, there is a tiny red dot, then finding that position, clicking the purple square, then going back to the original position

Heres what i tried sofar

$center = 0xF83864
$npc = 0xA420FC

$Centerlook = pixelsearch(391, 309, 414, 326, $center)

if not @error Then
MouseMove($centerlook[0], $centerlook[1])
$A1 = MouseGetPos()
$NPCCheck = Pixelsearch(0, 0, 800, 600, $npc)
MouseClick("left", $NpcCheck[0]-$Centerlook[0], $NpcCheck[1]-$Centerlook[1])
Sleep(500)
MouseClick("left", $NpcCheck[0]+$Centerlook[0], $NpcCheck[1]+$Centerlook[1])
endif

Any idea's why it doesnt work/what im doing wrong?

Edited by ecstatic

Share this post


Link to post
Share on other sites



There are hundreds, if not thousands, of scripts and questions for Diablo 2 in this forum. You only need to search the forum to find ready-made stuff.

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0