Phat Phil Posted July 14, 2007 Share Posted July 14, 2007 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 More sharing options...
Developers Jos Posted July 14, 2007 Developers Share Posted July 14, 2007 (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 July 15, 2007 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 More sharing options...
Phat Phil Posted July 14, 2007 Author Share Posted July 14, 2007 Gimmie a sec ill upload screenshots and all that jazz to make it more clear. Link to comment Share on other sites More sharing options...
Phat Phil Posted July 14, 2007 Author Share Posted July 14, 2007 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? Link to comment Share on other sites More sharing options...
Phat Phil Posted July 14, 2007 Author Share Posted July 14, 2007 no ideas on how 2 do this? Link to comment Share on other sites More sharing options...
jvanegmond Posted July 14, 2007 Share Posted July 14, 2007 http://www.autoitscript.com/forum/index.ph...te=%2BRuneScapeBesides 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. github.com/jvanegmond Link to comment Share on other sites More sharing options...
Phat Phil Posted July 14, 2007 Author Share Posted July 14, 2007 (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. expandcollapse popup$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 July 14, 2007 by Phat Phil Link to comment Share on other sites More sharing options...
Phat Phil Posted July 15, 2007 Author Share Posted July 15, 2007 Pols? Monsters have Pols? Are they Male????haha.. uh.. ek. ugh.. gross.. pulse.. haha Link to comment Share on other sites More sharing options...
Phat Phil Posted July 15, 2007 Author Share Posted July 15, 2007 expandcollapse popup$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 Link to comment Share on other sites More sharing options...
qazwsx Posted July 15, 2007 Share Posted July 15, 2007 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 More sharing options...
Phat Phil Posted July 15, 2007 Author Share Posted July 15, 2007 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. Link to comment Share on other sites More sharing options...
Generator Posted July 15, 2007 Share Posted July 15, 2007 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 More sharing options...
Developers Jos Posted July 15, 2007 Developers Share Posted July 15, 2007 Pols? Monsters have Pols? Are they Male????mmm thought you were "trying" to learn Dutch .... 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 More sharing options...
Phat Phil Posted July 15, 2007 Author Share Posted July 15, 2007 Other people around me do dmg tho so it shows their dmg too. (red) Link to comment Share on other sites More sharing options...
jvanegmond Posted July 15, 2007 Share Posted July 15, 2007 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.. github.com/jvanegmond Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now