Jump to content

Recommended Posts

Posted

Global $Paused

HotKeySet("/", "Pause")

Func Pause()

$Paused = NOT $Paused

While $Paused

Sleep (100)

WEnd

EndFunc

while 1

attack()

wend

func attack()

$pix = PixelSearch( 255, 293, 506, 526, 0xFF00FF, 55, 2)

If Not @error Then

mouseMove($pix[0],$pix[1],0)

MouseClick("left",$pix[0],$pix[1])

attack1024()

RotateRight(0)

else

$pix = PixelSearch( 50, 100, 1000, 525, 0xFF00FF, 55, 2)

If Not @error Then

MouseMove($pix[0],$pix[1],0)

Sleep (100)

MouseClick("left",$pix[0],$pix[1])

attack1024()

RotateRight(0)

Sleep (500)

endif

endif

EndFunc

Func RotateRight($varrec)

If $varrec<>0 Then

Return 1

else

MouseClickDrag ( "Right",514, 406, 941, 406, 20 )

sleep(2000)

endif

EndFunc

Func attack1024()

$setvalue = 1

$pix = PixelSearch(435,45,436,45, 0xFFC6C6, 10,2) AND $setvalue<>1 ;checks health of monster

If Not @error Then

execute some keys;

send ("1")

else

;someother key

send("2")

$setvalue = 0

endif

EndFunc

As everyone can see this is total disaster. Well i hardly remeber what the base code was but anyway.

I like your help, with this script what it does is search for certain color if found attacks it by sending in items in 1 ,2,3,4 . Now i want to keey attack1024() func and also RotateRight() . Basically its more of Function of randomly moving the character to some other place by right click drag.

The thing is first i wrote it kept on executing and now that i rewritten this way it never works for the right click part.

I want rotateright() to be executed only if Monster Hp = 0 or which ideally means no target was found. I tried putting timer but that doesnt help me out either as if a random mob spawns close to me i wud certainly get rotated other way round.

But all this thing does is keep on rigth click draggin and in some time it stops as if the script is inhert. I blow my brains out for such a stupid simple .

Any help with this 2 issues as to why it keep right click draggin and stops forever?

thanks

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
×
×
  • Create New...