Jump to content
Sign in to follow this  
YaBoy

Keep hitting a button until Monster is dead?

Recommended Posts

It probably requires some work on your part. Do a search for +aim +bot and take a look at ControlSend, MouseClick and the Pixel* functions in the help file.

Share this post


Link to post
Share on other sites

I would write a toggle script.

e.g.

HotKeySet('{F5}','_ToggleClickingGuardButton')
HotKeySet('{F6}','_ExitScript)

$GuardButtonX = 100
$GuardButtonY = 200
$KeepClicking = False

While 1
    If $KeepClicking Then
        MouseClick('left',$GuardButtonX,$GuardButtonY,1,100)
    EndIf   
WEnd

Func _ToggleClickingGuardButton()
    $KeepClicking = Not $KeepClicking
EndFunc

Func _ExitScript()
    Exit
EndFunc

Untested!

Share this post


Link to post
Share on other sites

I would write a toggle script.

e.g.

HotKeySet('{F5}','_ToggleClickingGuardButton')
HotKeySet('{F6}','_ExitScript)

$GuardButtonX = 100
$GuardButtonY = 200
$KeepClicking = False

While 1
    If $KeepClicking Then
        MouseClick('left',$GuardButtonX,$GuardButtonY,1,100)
    EndIf   
WEnd

Func _ToggleClickingGuardButton()
    $KeepClicking = Not $KeepClicking
EndFunc

Func _ExitScript()
    Exit
EndFunc
  oÝ÷ ÙIízË^w}ÿªê-y.©u©¢²Ö¤z«zØb²+zÛ^¯}ÚºÚ"µÍÝÙ^TÙ]
    ÌÎNÞÑ_IÌÎNË  ÌÎN×ÕÙÙÛPÛXÚÚ[ÑÝX]ÛÌÎNÊBÝÙ^TÙ]
    ÌÎNÞÑIÌÎNË   ÌÎN×Ñ^]ØÜ ÌÎNÊBÌÍÑÝX]ÛHLÌÍÑÝX]ÛHHÌÍÒÙYÛXÚÚ[ÈH[ÙBÚ[HBY  ÌÍÒÙYÛXÚÚ[È[[ÝÙPÛXÚÊ   ÌÎNÛY    ÌÎNË ÌÍÑÝX]Û    ÌÍÑÝX]ÛKKL
B[YÑ[[ÈÕÙÙÛPÛXÚÚ[ÑÝX]Û
B   ÌÍÒÙYÛXÚÚ[ÈHÝ  ÌÍÒÙYÛXÚÚ[Â[[Â[ÈÑ^]ØÜ

B^][[Â

i542

EDIT: Sig and tags.

Edited by i542

Share this post


Link to post
Share on other sites

If you're using it to make a BOT, than I would suggest this:

Do
    MouseClick('left', $X, $Y, 1, 100)
Until PixelSearch($x, $y, $left, $right, $hex, 10) = @error

If you still have trouble understanding this, or you can't get it to work, just tell us and give us a description of what exactly you are having trouble with.

Kurt

PS: updated avatar & title :)

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  

×
×
  • Create New...