Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Dota 2 - Hero Autoselect



  • Please log in to reply
4 replies to this topic
FaithLV
  • Members
  • 45 posts
  • Last active: Jan 28 2013 06:29 PM
  • Joined: 25 Feb 2012

Hello again.

I would like to know, how to make a script, that automaticly picks a hero for me.

 

Like, when game loads, i press CTRL to show all heroes, and then it clicks on a ''Troll Warlord''.

 

If it's needed, i'll provide images.

 

Image of troll warlord icon - http://imageshack.us...ollwarlordf.jpg

 

Image of whole hero screen - http://imageshack.us...4/nonameivb.jpg



Sanctus
  • Members
  • 283 posts
  • Last active: Dec 06 2014 04:05 PM
  • Joined: 30 Nov 2012
✓  Best Answer

Won't work more than 1 time.

 

Dota 2 randomizes certain pixels by a small degree each time you load a game.

So ImageSearch wont work more than one time

 

What you want to do is:

 

x::
SendInput, {T}{R}{O}
Sleep, 500
PixelSearch, FoundaX, FoundaY, 870, 657, 888, 730, 0x3B3635, 10, Fast ;Pick Hero
if ErrorLevel = 0
{
MouseClick, Left, 875, 680
Sleep, 2500
}
return

 

When hero select loads press 'x' or any key you set it as it will search for hero beginning with tro and pick troll warlord.

You might be able to shorten the Sleep to 300 but to be absolutely sure it reaches troll warlord I have it at 500 this means that in 0.5 seconds you pick troll warlord (if you remember to press the button required)

Enjoy, I only did this because I already had a similar code ready :)


Check out ALL My Scripts  ;)


FaithLV
  • Members
  • 45 posts
  • Last active: Jan 28 2013 06:29 PM
  • Joined: 25 Feb 2012

Won't work more than 1 time.

 

Dota 2 randomizes certain pixels by a small degree each time you load a game.

So ImageSearch wont work more than one time

 

What you want to do is:

 

x::
SendInput, {T}{R}{O}
Sleep, 500
PixelSearch, FoundaX, FoundaY, 870, 657, 888, 730, 0x3B3635, 10, Fast ;Pick Hero
if ErrorLevel = 0
{
MouseClick, Left, 875, 680
Sleep, 2500
}
return

 

When hero select loads press 'x' or any key you set it as it will search for hero beginning with tro and pick troll warlord.

You might be able to shorten the Sleep to 300 but to be absolutely sure it reaches troll warlord I have it at 500 this means that in 0.5 seconds you pick troll warlord (if you remember to press the button required)

Enjoy, I only did this because I already had a similar code ready happy.png

 

Ok...is it difficult to make that for each hero? :/



Sanctus
  • Members
  • 283 posts
  • Last active: Dec 06 2014 04:05 PM
  • Joined: 30 Nov 2012

Ok...is it difficult to make that for each hero? unsure.png

Already made it, (few days ago actually) but still has few kinks, like it needs to be in 1920x1080 res.. but it works for the most part. has gui and everything :)

has every hero in game.. not ready to release it just yet, but will do in few days :) stay tuned ;)


Check out ALL My Scripts  ;)


devil yuri
  • Members
  • 2 posts
  • Last active: Mar 08 2014 05:54 PM
  • Joined: 08 Mar 2014

where is program how i download it