Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 16:20

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Autoit Pixel HP AND MP Bot Help

Discussion on Autoit Pixel HP AND MP Bot Help within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
EviLcLoWnS™'s Avatar
 
elite*gold: 20
Join Date: Nov 2006
Posts: 1,073
Received Thanks: 440
Autoit Pixel HP AND MP Bot Help

Well Its for Scarlet Blade, I just wanted the script to auto heal and fill my mp when ever function(HP or MP) is low. I know tons of people ask for this kind of stuff all the time, or so i thought. Most post are not up to date and old. I know Auto has changed thew the years. I tried Lawliet script but it didnt seem to work for me. I know this just may not work because SB has themida in it. I use macroGamer 2.7.5 by Toady for repeat 1-7 Key strokes, for skills to repeat. I was thinking well be nice too have auto hp/mp.

So Full hp would be all Red course.

Code:
Position 222,33
Color [COLOR="Red"]0xED4542[/COLOR]
Do nothing, but when HP gets low(color changes..Is not 0xED4542) Spam F9 Key until its back too 0xED4542.

--------------------------------------------------------------------

So Full mp would be all Blue course
Code:
Position 216,76
Color [COLOR="Blue"]0x5C83D8[/COLOR]
Do nothing, but when mp gets low(color changes..Is not 0x5C83D8) Spam F10 Key until its back too 0x5C83D8.

Wondering if someone could help me with a script that would do that. I do wanna learn and would post more in my thread. Just easier for me to have something basic then, learn how to add other functions. Thank you for your time.
EviLcLoWnS™ is offline  
Old 09/24/2013, 15:33   #2
 
butter123's Avatar
 
elite*gold: 95
Join Date: May 2011
Posts: 982
Received Thanks: 189
While Sleep(10)
If pixelgetcolor(222,33) <> 0xED4542 then
send(f9)
endif
If pixelgetcolor(216,76)<> 0x5C83D8then
send(f10)
endif
wend
butter123 is offline  
Old 09/24/2013, 18:41   #3
 
EviLcLoWnS™'s Avatar
 
elite*gold: 20
Join Date: Nov 2006
Posts: 1,073
Received Thanks: 440
Its really that simple, ahhhh! I was trying to do something else. Thinking Guess i didn't have to do all the other includes and stuff for something simple. Ty i will try it out.
EviLcLoWnS™ is offline  
Old 02/14/2014, 10:41   #4
 
elite*gold: 0
Join Date: Jun 2012
Posts: 17
Received Thanks: 0
Could u share your program ? cuz the one im using can spam only 1 pot when colour changes
DjNanos is offline  
Old 02/25/2014, 18:45   #5
 
butter123's Avatar
 
elite*gold: 95
Join Date: May 2011
Posts: 982
Received Thanks: 189
While Sleep(10)
If pixelgetcolor(222,33) <> 0xED4542 then
send(f9)
endif
If pixelgetcolor(216,76)<> 0x5C83D8then
send(f10)
endif
wend
butter123 is offline  
Old 02/27/2014, 12:42   #6
 
elite*gold: 0
Join Date: Jun 2012
Posts: 17
Received Thanks: 0
eh..is there a chance someone made it happen and send it to us too ? :3
DjNanos is offline  
Old 02/27/2014, 18:56   #7
 
mlukac89's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 473
Received Thanks: 104
Are you too lazy to compile it ?
mlukac89 is offline  
Old 02/28/2014, 19:01   #8
 
elite*gold: 0
Join Date: Jun 2012
Posts: 17
Received Thanks: 0
no..i just have no clue about how doing it and if i search about how to do it id spend whole day while someone from here could spend 5min making it.
DjNanos is offline  
Old 02/28/2014, 19:09   #9
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
It looks like a hard day for you.
alpines is offline  
Thanks
1 User
Old 02/28/2014, 19:30   #10
 
mlukac89's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 473
Received Thanks: 104
It's not so hard you play in window mode or full screen ?

Here is a example, but you must find position and color alone its not same for all desktop height and width.

If you don't understand it then go learn

here is link how to make bot with Autoit it have 8 videos

Code:
HotKeySet("{HOME}", "_run") ; HOME key calls function _run
HotKeySet("{ESC}", "_quit") ; ESC key calls function _run

Dim $run = False

While 1
	Sleep(20)
WEnd

; Function that runs bot
Func _run()
	; check if process exist
	If ProcessExists("calc.exe") Then

		$run = Not $run

		While $run
			If PixelGetColor(222, 33) <> 0xED4542 Then
				Send("{F9}")
				Sleep(500)
			EndIf
			If PixelGetColor(216,76) <> 0x5C83D8 Then
				Send("{F10}")
				Sleep(500)
			EndIf
		WEnd

	EndIf

EndFunc

; Function that exit bot
Func _quit()
	Exit
EndFunc
mlukac89 is offline  
Old 03/01/2014, 14:11   #11
 
elite*gold: 0
Join Date: Jun 2012
Posts: 17
Received Thanks: 0
Quote:
Originally Posted by alpines View Post
It looks like a hard day for you.
Most useful tip ive ever seen. Thank you



Quote:
Originally Posted by mlukac89 View Post
It's not so hard you play in window mode or full screen ?

Here is a example, but you must find position and color alone its not same for all desktop height and width.

If you don't understand it then go learn

here is link how to make bot with Autoit it have 8 videos


Code:
HotKeySet("{HOME}", "_run") ; HOME key calls function _run
HotKeySet("{ESC}", "_quit") ; ESC key calls function _run

Dim $run = False

While 1
	Sleep(20)
WEnd

; Function that runs bot
Func _run()
	; check if process exist
	If ProcessExists("calc.exe") Then

		$run = Not $run

		While $run
			If PixelGetColor(222, 33) <> 0xED4542 Then
				Send("{F9}")
				Sleep(500)
			EndIf
			If PixelGetColor(216,76) <> 0x5C83D8 Then
				Send("{F10}")
				Sleep(500)
			EndIf
		WEnd

	EndIf

EndFunc

; Function that exit bot
Func _quit()
	Exit
EndFunc

Quote:
Originally Posted by DjNanos View Post
no..i just have no clue about how doing it and if i search about how to do it id spend whole day while someone from here could spend 5min making it.
*by next month ill over with it, even tho i guess the script you gave me makes it easier... thanks.
DjNanos is offline  
Old 03/01/2014, 17:04   #12
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
Quote:
Originally Posted by DjNanos View Post
Most useful tip ive ever seen. Thank you
Oh dear, you make me quite embarrassed...

Whatever, the parts of the script were all posted here so just find them and make a solid solution. It won't take longer than 5 minutes.
alpines is offline  
Old 03/04/2014, 15:27   #13
 
elite*gold: 0
Join Date: Jun 2012
Posts: 17
Received Thanks: 0
i took the script mlukac89 gave me above, changed colour/pixel/Fkeys but its not working, and its says "script paused" at my taskbar
DjNanos is offline  
Old 03/04/2014, 16:19   #14
 
mlukac89's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 473
Received Thanks: 104
Post full code
mlukac89 is offline  
Old 03/05/2014, 04:26   #15
 
elite*gold: 0
Join Date: Jun 2012
Posts: 17
Received Thanks: 0
i tried to run this

Code:
HotKeySet("{HOME}", "_run") ; HOME key calls function _run
HotKeySet("{ESC}", "_quit") ; ESC key calls function _run

Dim $run = False

While 1
	Sleep(20)
WEnd

; Function that runs bot
Func _run()
	; check if process exist
	If ProcessExists("calc.exe") Then

		$run = Not $run

		While $run
			If PixelGetColor(165, 64) <> 0x5A4D39 Then
				Send("{F11}")
				Sleep(500)
			EndIf
			If PixelGetColor(140, 92) <> 0x184563 Then
				Send("{F12}")
				Sleep(500)
			EndIf
		WEnd

	EndIf

EndFunc

; Function that exit bot
Func _quit()
	Exit
EndFunc
DjNanos is offline  
Reply


Similar Threads Similar Threads
Autoit und Pixel!!
05/30/2012 - elite*gold Trading - 0 Replies
Hallo Forum. Ich bin gerade beim bot schreiben auf ein Problem gestoßen ... und zwar ich hab ein spiel und der bot soll auf den X-Y feld nach einem pixel suche ... wenn er es gefunden hatt soll er drauf klicken ...(falls es noch nicht da ist soll er so lange warten bis er es findet) dann solls weiter gehen nach erfolgreichen klicken auf die eine farbe kommt die suche nach der nächsten ... wieder mit den gleich bedingungen ... und so weiter...
Autoit / Pixel Detection / SRO
06/08/2011 - SRO Coding Corner - 1 Replies
Ok guys im new to all this and new to coding, i basicly wanna start in coding programs from SRO and my long term goal is to develop a working bot. Ive been doing some research and so far Autoit looks a good place to start, my question is how well does pixel detection work with sro, and what obsitcales am i likely to face? Thanks for the help in advanced time to do some more research.



All times are GMT +1. The time now is 16:22.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.