Sign in to follow this  
Followers 0
Phat Phil

Recongize Monster Dies?

15 posts in this topic

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.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Gimmie a sec ill upload screenshots and all that jazz to make it more clear.

Share this post


Link to post
Share on other sites

Posted Image

I'd like it to see that the script has killed the monster and tell it to pixel search again for another 1.

How might I go about doing this?

Share this post


Link to post
Share on other sites

no ideas on how 2 do this?

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

Pols? Monsters have Pols? Are they Male????

haha.. uh.. ek. ugh.. gross.. pulse.. haha

Share this post


Link to post
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:

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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..

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