Jump to content

Join our Slack

Talk to other users and have a great time
Slack Server

Welcome to our Community

Click here to get your Exiled Bot license
Donation Store
rodin

Auto-pot for Quicksilver Flasks

Recommended Posts

Menu, Tray, Icon, quicksilver.bmp

loop {

	IfWinActive, Path of Exile
	{
		
    		
		ImageSearch, posx, posy, 5, 25, 210, 60, *30 hatred.bmp ; 
		If Errorlevel = 1
		Sleep 200
		Else
		{
			ImageSearch, posx, posy, 5, 25, 210, 60, *30 quicksilver.bmp
			If Errorlevel = 0
			Sleep 200
			Else
			{
    				Send {3}
				Sleep 6000	
				Send {4}	
				Sleep 6000
    			
			}
    		
		}
    			
    		
    	 }
     }



hatred.bmp = Some img of some aura you use that will trigger the usage of quicksilver potion. If you use some other aura you will need to get a new img for the search.

quicksilver.bmp = Img of the quicksilver potion so the script dont overlap usage.

5 , 25 , 210, 60 = Coords for the imagesearch in the client window

Send {3} and Send {4} = Keys where your quicksilver flasks are, jut change the number inside according to your setup.

 

Created some txt file and put the code inside, rename to autoQuick.ahk and put this file and both imgs in the same directory.

 

You problably will have to get new imgs so it can match your specs, just use print screen, open mspaint, paste , zoom in all you can, select the midle of the aura/quicksilver img and make a new one.

To optimize the rendiment of this script you pretty much have to use Warlords Marks and some % increased charge recovery mod, using this I have 80% uptime.

 

fa3980.png

 

Open this tool to get your coords if mine dont match your specs. Just right click some ahk script thats already running.

 

j0xnuv.png

 

The red coords are the coords you want.

 

r8im3r.png

 

You have to get two sets of coords, first at the PURPLE DOT, second at BLACK DOT. Just replace the ones in the script.

 

2mooy0p.png

 

Here is some example of how to get your img for search, you will use the selected area, just cut and save in a new file.

 

If you have any doubts feel free to ask, but this shit is very smple and you guys are smart to figure out just reading this usefull link and using google.

 

Usefull links:

http://www.autohotkey.com/docs/commands/ImageSearch.htm

 

Edit. THIS IS ANOTHER SCRIPT MADE BY IMMO, working as good as mine. All the "how to make it work" are inside the code in the commented line (the one after the ;)

; User Config
_name_poe_win = Path of Exile						; Name of the window when you run game exe
_qsDuration = 6										; enter your Quicksilver Flask duration !in seconds!
_firstQuicksilver = 4								; inGame Hotkey for your first Quicksilver Flask
_secondQuicksilver = 5								; inGame Hotkey for your second Quicksilver Flask
_outOfTown = 0x506D8B								; In order to get your correct Pixelcolor please press F5
												; !!! before pressing F5 make sure your character is currently not in any town! (you must be able to use a skill) !!!

; some needed calculations
_qsDurationTrue := (_qsDuration * 1000) + 250

; introduction
TrayTip, QS-Script loaded!, Options:`n> F8: Get the needed Pixelcolor!`n> F9: Start the Script (if already configured correctly)! , 2, 2
Pause On

; Main loop for activating the Quicksilver Flask
loop
{

	IfWinActive, %_name_poe_win%
	{
		PixelSearch, Px, Py, 655, 582, 655, 582, %_outOfTown%, 0, Fast
		If Errorlevel = 1
			Sleep 100
		Else
		{
			PixelSearch, Px, Py, 5, 25, 210, 60, 0xEFFF10, 0, Fast
			If Errorlevel = 0
				Sleep 100
			Else
			{
				Send {%_firstQuicksilver%}
				Sleep %_qsDurationTrue%
				PixelSearch, Px, Py, 655, 582, 655, 582, %_outOfTown%, 0, Fast
				If Errorlevel = 0
				{
					Send {%_secondQuicksilver%}
					Sleep %_qsDurationTrue%
				}
				else
				{
					sleep 100
				}
			}
		}
    }
}

; get the needed pixel color for checking if in town or not
F8::
	WinActivate, %_name_poe_win%
	PixelGetColor, color, 655, 582
	_outOfTown = %color%
	TrayTip, Individual Pixelcolor found!, Define ''_outOfTown'' by using this color:`n`n                >>               %color%               <<`n`nBut for this time you can simply press F9 to start the script... , 10, 1
return

; Simple Pause/Unpause Function
F9::
	if A_IsPaused
	{
		Pause off
		TrayTip, QS-Script unpaused!, 1, 2
	}
	else
	{
		TrayTip, QS-Script paused!, Press F9 to resume... , 1, 2
		Pause On
	}
return

; Exitfunction
F10::
	TrayTip, , terminating QS-Script! , 2.5
	sleep 3000
	ExitApp
return 

quicksilver.bmp

hatred.bmp

Edited by rodin
  • Upvote 2

Share this post


Link to post
Share on other sites

So it is working fine for you guys? Let me know if any1 need any help, this has improved my exp/h immensely. Not hat is hard to make it work, it is so simple.

Edited by rodin

Share this post


Link to post
Share on other sites

this has improved my exp/h immensely.

 

Sooo true! I'm using an similar Script which i created about a month ago and since using it i almost doubled my exp/h and even my currency/h.

 

my AHK Solution looks like:

(using pixelsearch instead of imagesearch, so no pictures needed)

; User Config
_name_poe_win = Path of Exile						; Name of the window when you run game exe
_qsDuration = 6										; enter your Quicksilver Flask duration !in seconds!
_firstQuicksilver = 4								; inGame Hotkey for your first Quicksilver Flask
_secondQuicksilver = 5								; inGame Hotkey for your second Quicksilver Flask
_outOfTown = 0x506D8B								; In order to get your correct Pixelcolor please press F5
												; !!! before pressing F5 make sure your character is currently not in any town! (you must be able to use a skill) !!!

; some needed calculations
_qsDurationTrue := (_qsDuration * 1000) + 250

; introduction
TrayTip, QS-Script loaded!, Options:`n> F8: Get the needed Pixelcolor!`n> F9: Start the Script (if already configured correctly)! , 2, 2
Pause On

; Main loop for activating the Quicksilver Flask
loop
{

	IfWinActive, %_name_poe_win%
	{
		PixelSearch, Px, Py, 655, 582, 655, 582, %_outOfTown%, 0, Fast
		If Errorlevel = 1
			Sleep 100
		Else
		{
			PixelSearch, Px, Py, 5, 25, 210, 60, 0xEFFF10, 0, Fast
			If Errorlevel = 0
				Sleep 100
			Else
			{
				Send {%_firstQuicksilver%}
				Sleep %_qsDurationTrue%
				PixelSearch, Px, Py, 655, 582, 655, 582, %_outOfTown%, 0, Fast
				If Errorlevel = 0
				{
					Send {%_secondQuicksilver%}
					Sleep %_qsDurationTrue%
				}
				else
				{
					sleep 100
				}
			}
		}
    }
}

; get the needed pixel color for checking if in town or not
F8::
	WinActivate, %_name_poe_win%
	PixelGetColor, color, 655, 582
	_outOfTown = %color%
	TrayTip, Individual Pixelcolor found!, Define ''_outOfTown'' by using this color:`n`n                >>               %color%               <<`n`nBut for this time you can simply press F9 to start the script... , 10, 1
return

; Simple Pause/Unpause Function
F9::
	if A_IsPaused
	{
		Pause off
		TrayTip, QS-Script unpaused!, 1, 2
	}
	else
	{
		TrayTip, QS-Script paused!, Press F9 to resume... , 1, 2
		Pause On
	}
return

; Exitfunction
F10::
	TrayTip, , terminating QS-Script! , 2.5
	sleep 3000
	ExitApp
return 

Just in case you're interested...

 

 

 

So it is working fine for you guys?

 

aah yeah i quickly tested your script to give some feedback!

After configuring the AuraPictures, everything was working as intended!

Nice job!

Edited by immo
  • Upvote 2

Share this post


Link to post
Share on other sites

Get all flasks with Adrenalin sufix and boost quicksilvers quality to 20% :D. Very good zone clear time -> now you just need to get best quantity/quality eq...

Share this post


Link to post
Share on other sites

 

Sooo true! I'm using an similar Script which i created about a month ago and since using it i almost doubled my exp/h and even my currency/h.

 

my AHK Solution looks like:

(using pixelsearch instead of imagesearch, so no pictures needed)

; User Config
_name_poe_win = Path of Exile						; Name of the window when you run game exe
_qsDuration = 6										; enter your Quicksilver Flask duration !in seconds!
_firstQuicksilver = 4								; inGame Hotkey for your first Quicksilver Flask
_secondQuicksilver = 5								; inGame Hotkey for your second Quicksilver Flask
_outOfTown = 0x506D8B								; In order to get your correct Pixelcolor please press F5
												; !!! before pressing F5 make sure your character is currently not in any town! (you must be able to use a skill) !!!

; some needed calculations
_qsDurationTrue := (_qsDuration * 1000) + 250

; introduction
TrayTip, QS-Script loaded!, Options:`n> F8: Get the needed Pixelcolor!`n> F9: Start the Script (if already configured correctly)! , 2, 2
Pause On

; Main loop for activating the Quicksilver Flask
loop
{

	IfWinActive, %_name_poe_win%
	{
		PixelSearch, Px, Py, 655, 582, 655, 582, %_outOfTown%, 0, Fast
		If Errorlevel = 1
			Sleep 100
		Else
		{
			PixelSearch, Px, Py, 5, 25, 210, 60, 0xEFFF10, 0, Fast
			If Errorlevel = 0
				Sleep 100
			Else
			{
				Send {%_firstQuicksilver%}
				Sleep %_qsDurationTrue%
				PixelSearch, Px, Py, 655, 582, 655, 582, %_outOfTown%, 0, Fast
				If Errorlevel = 0
				{
					Send {%_secondQuicksilver%}
					Sleep %_qsDurationTrue%
				}
				else
				{
					sleep 100
				}
			}
		}
    }
}

; get the needed pixel color for checking if in town or not
F8::
	WinActivate, %_name_poe_win%
	PixelGetColor, color, 655, 582
	_outOfTown = %color%
	TrayTip, Individual Pixelcolor found!, Define ''_outOfTown'' by using this color:`n`n                >>               %color%               <<`n`nBut for this time you can simply press F9 to start the script... , 10, 1
return

; Simple Pause/Unpause Function
F9::
	if A_IsPaused
	{
		Pause off
		TrayTip, QS-Script unpaused!, 1, 2
	}
	else
	{
		TrayTip, QS-Script paused!, Press F9 to resume... , 1, 2
		Pause On
	}
return

; Exitfunction
F10::
	TrayTip, , terminating QS-Script! , 2.5
	sleep 3000
	ExitApp
return 

Just in case you're interested...

 

 

 

 

aah yeah i quickly tested your script to give some feedback!

After configuring the AuraPictures, everything was working as intended!

Nice job!

 

 

dont work for me, got bug with stash item. Can u make version with read image file ? maybe this work that.

Share this post


Link to post
Share on other sites

Thx for the script.

Will try it soon and give feedback if there's any issues with it.

 

However it would be awesome of the EB team develop the bot so it uses it's quicksilver flasks, not to be needed AHK scripts.

 

Because, for instance, if I get it correctly - the bot will use the flask even if he is attacking, not moving.

Therefore, there will be inefficiency of the flask uses.

Share this post


Link to post
Share on other sites

Elaborate more and maybe I can "fix" your problem.

 

Well if bot try stash items, sometime cant, becouse if try stash item, keep other in hand and try stash other item. I dont know how to write but I think u know what i mean.

Ex. Try stash alternation but in hand keep scouring and dont put scouring first (idk why), keep scouring in hand and try stash alternation always. And keep keep keep in hand. And this is answer why i need fix it.

Share this post


Link to post
Share on other sites

mhmm I do not think that your stashing problem is caused by one of the two scripts. Both scripts only use Quicksilver Flasks if Char is outside town. In town these scripts should do nothing...

 

If you're using my solution be sure to have the correct pixelcolor! For me the pixelcolor changed since the latest PoE Patch.

  1. Start the script
  2. go outside town (u have to be able to cast skills!)
  3. press F5
  4. note down the pixelcolor shown in the tooltip
  5. edit "_outOfTown = 0x506D8B" to the correct value and save the ahk-file
  6. restart the script
  7. press F9

works perfect for me and so it should for you.

Share this post


Link to post
Share on other sites

mhmm I do not think that your stashing problem is caused by one of the two scripts. Both scripts only use Quicksilver Flasks if Char is outside town. In town these scripts should do nothing...

 

If you're using my solution be sure to have the correct pixelcolor! For me the pixelcolor changed since the latest PoE Patch.

  1. Start the script
  2. go outside town (u have to be able to cast skills!)
  3. press F5
  4. note down the pixelcolor shown in the tooltip
  5. edit "_outOfTown = 0x506D8B" to the correct value and save the ahk-file
  6. restart the script
  7. press F9

works perfect for me and so it should for you.

 

I make it and bot use flask but have problem with stash item in town. Sometime keep item in hand and try stash other item. Tested it and always this same error. Can't use this script : <

Share this post


Link to post
Share on other sites

@nolifero This is not connected directly to the script - I've observed this kind of behaviour while using auto-flask scripts. I didn't see this kind of effect without using AHK scripts. So this is probably AHK - but need to be checked. Try to observe if this occurs without the scripts.

  • Upvote 1

Share this post


Link to post
Share on other sites

thanks for sharing.

 

also for me script is not usable for now. too often happens that bot tries to stash.

i used Immo's

 

edit: i tried the other and this works without the stash bug. i think its up to the vmware version.

 

can someone write me a blood rage script? i tried it minimum 3 hours . the fucking shit isnt working.

 

Menu, Tray, Icon, bloodrage.bmp
 
loop {
 
IfWinActive, Path of Exile
{
 
   
ImageSearch, posx, posy, 5, 25, 210, 60, *30 hatred.bmp ; 
If Errorlevel = 1
Sleep 200
Else
{
ImageSearch, posx, posy, 5, 25, 210, 60, *30 eye.bmp
If Errorlevel = 0
Sleep 200
Else
{
    Send {Q}
Sleep 5000
   
}
   
}
   
   
    }
     }

 
any suggestions? 
sometimes it sends Q sometimes not. im fucking raging.....
( i think its obvious that the code is copy and pasted ^^. thanks for sharing again)
Edited by dasnon

Share this post


Link to post
Share on other sites

mhmm I do not think that your stashing problem is caused by one of the two scripts. Both scripts only use Quicksilver Flasks if Char is outside town. In town these scripts should do nothing...

 

But it does try to use flasks in town. When I am in town and I have one of the scripts on and I enter the chat I automatically start typing 4545454545 (those are slots for flasks).

Edited by benis

Share this post


Link to post
Share on other sites

when using my script which Pixelcolor does the script finds outside of a town (press F9)?

 

When I press F8 either in the Library or in the Sarn Encampment I get "0x2A3D63".

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...