Jump to content

Runescape Fighting bot


Con
 Share

Recommended Posts

Hi im trying to make a bot and im having a bit of trouble

my code

hotkeyset("{F1}","fight")

hotkeyset("{esc}","terminate")

func terminate()

Exit

EndFunc

func fight()

$inp=inputbox("Sleep","How long do you want to Sleep in between clicks","2000")

$pos=mousegetpos()

$gcol=PixelGetColor($pos,$pos)

while 1=1

pixelsearch(100,100,100,100,$gcol)

if not @error Then

mouseclick("left",$pos[0],$pos[1])

sleep($in)

EndIf

WEnd

EndFunc

while 1=1

;just to keep bot going

WEnd

What i want to do

  • attack an enemy (one at a time)
  • when i kill my enemy start attacking again
i need it to know when a enemy is dead because it goes crazy and clicks on 5 enemys if some one can help me i would appreciate it

thankyou in advance

Hello?
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...