Jump to content

Recongize Monster Dies?


Recommended Posts

How can I make it where I shoot down a monster with my bow n arrow. Then once its dead, have it recongize the monster is dead, and attack another one. Doesnt need to move or ne thing just recongize that the monster is dead I know how 2 do the rest.

Link to comment
Share on other sites

  • Developers

How can I make it where I shoot down a monster with my bow n arrow. Then once its dead, have it recongize the monster is dead, and attack another one. Doesnt need to move or ne thing just recongize that the monster is dead I know how 2 do the rest.

Check its wrist for heartbeats ? (sorry couldn't resist but you haven't given much to make it even slightly clear for us) Edited by JdeB

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

http://www.autoitscript.com/forum/index.ph...te=%2BRuneScape

Besides that, I am pretty sure that the majority of people could write this entirely for you.. However, if you are not going to put any effort into this, I might suggest that you hire a programmer.

$g_szVersion = "pottytrain.exe"
If WinExists($g_szVersion) Then Exit ; It's already running
AutoItWinSetTitle($g_szVersion)
;----------------------------------------------------------------------------
; AutoIt: Version: 3.2.4.9
; Author: PhatPhil
;----------------------------------------------------------------------------
HotKeySet("{HOME}", "DoWhatever") ;Set HOME key to start the main function
HotKeySet("{END}", "Terminate") ;Set END key to exit the program

PauseScript() ;Call PauseScript function which will make the script sleep

Func DoWhatever()
     HotKeySet("{HOME}", "PauseScript") ;reassign the HOME key to pause the script
     While 1 ;The number 1 just tells it to go forever (or until it's interrupted but a hotkey being pressed)

$sleep = Random(125,150)
$sleep2 = Random(500,1000)
$sleep3 = Random(33000,34000)

$repeat = 0
$five = 2
Do
    $coord = PixelSearch(135,60,640,215,0x564F27,2)
    Sleep($sleep)
    MouseClick("left", $coord[0] + $five, $coord[1], 2, 0)
    Sleep($sleep3)
    $repeat = $repeat + 1
Until $repeat = 7

$randomx3 = Random(681,695)
$randomy3 = Random(237,245)
MouseMove($randomx3,$randomy3)
Sleep($sleep2)
MouseClick("left")

$randomx4 = Random(720,833)
$randomy4 = Random(472,480)
MouseMove($randomx4,$randomy4)
Sleep($sleep2)
MouseClick("left")


     WEnd
EndFunc

Func PauseScript()
     HotKeySet("{HOME}", "DoWhatever") ;reassign the HOME key to start the main function again
     While 1
          Sleep(100) ;Just makes script sleep until it's given further instruction (a hotkey is pressed)
     WEnd
EndFunc

Func Terminate()
     Exit
EndFunc

I have been putting effort into it. However I dont no even where to begin for this. I'm not asking for this to be done for me but to get some help to do this. Like.. Where to start... Thanks for postn.

ALSO the problem I'm having with that script, is it goes 2 the very edge of the monster and doesnt click at all it seems. I've tryed added like 2-5 pixels onto the end of that to see if it would then, but it still doesnt click. I've also tryed making it double click, it still doesnt click.

Edited by Phat Phil
Link to comment
Share on other sites

$g_szVersion = "pottytrain.exe"
If WinExists($g_szVersion) Then Exit ; It's already running
AutoItWinSetTitle($g_szVersion)
;----------------------------------------------------------------------------
; AutoIt: Version: 3.2.4.9
; Author: PhatPhil
;----------------------------------------------------------------------------
HotKeySet("{HOME}", "DoWhatever") ;Set HOME key to start the main function
HotKeySet("{END}", "Terminate") ;Set END key to exit the program

PauseScript() ;Call PauseScript function which will make the script sleep

Func DoWhatever()
     HotKeySet("{HOME}", "PauseScript") ;reassign the HOME key to pause the script
     While 1 ;The number 1 just tells it to go forever (or until it's interrupted but a hotkey being pressed)

$sleep = Random(100,120)
$sleep2 = Random(500,1000)
$sleep3 = Random(33000,34000)

$repeat = 0
$five = 1
Do
    $coord = PixelSearch(135,60,640,215,0x564F27,2)
    Sleep($sleep)
    MouseClick("left", $coord[0] + $five, $coord[1], 1, 0)
    Sleep($sleep)
    MouseClick("left")
    Sleep($sleep3)
    $repeat = $repeat + 1
Until $repeat = 7

$randomx3 = Random(681,695)
$randomy3 = Random(237,245)
MouseMove($randomx3,$randomy3)
Sleep($sleep2)
MouseClick("left")

$randomx4 = Random(720,833)
$randomy4 = Random(472,480)
MouseMove($randomx4,$randomy4)
Sleep($sleep2)
MouseClick("left")


     WEnd
EndFunc

Func PauseScript()
     HotKeySet("{HOME}", "DoWhatever") ;reassign the HOME key to start the main function again
     While 1
          Sleep(100) ;Just makes script sleep until it's given further instruction (a hotkey is pressed)
     WEnd
EndFunc

Func Terminate()
     Exit
EndFunc

Okay so I got it to click on the monster by adding another mouseclick. wtf yo? oh well.

but sometimes it clicks and the monster has moved within the 100miliseconds of it moving the mouse to the spot is there a way to make it follow the pixel color that it has selected?

This might be a way for me to recongize if it dies if so :whistle:

Link to comment
Share on other sites

I dont see the same shade of red that appears when it dies anywhere else so u could pixelsearch for that, i also don't see the color of the "8" anywhere else in the playing window so you also do a pixelsearch for that.

Link to comment
Share on other sites

When it dies it doesnt show red. It jus falls over and disappears. On top of that you dont always hit 8's its random 0-max hit max hit depends on ur range lvl. Thanks for posting.

Maybe do a check so stop if you are not doing any damage, think this way. If a monster die, your red damage thing won't appear, therefore it shows a monster is dead.
Link to comment
Share on other sites

Other people around me do dmg tho so it shows their dmg too. (red)

That may be a bit difficult to do. As I recall, sometimes monsters walk into each other and only one is visible.. So how do you know it is YOUR monster that dies?

I think it will be easiest and quickest to put a BIG sleep in it, like 2 minutes, until you are sure the monster is dead. Then pick a new target..

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...