Dota macros - Dota scripts AutoHotkey

Post gaming related scripts
Posts: 5
Joined: 03 Feb 2018, 15:21

Dota macros - Dota scripts AutoHotkey

03 Feb 2018, 15:54

I share here 3 types of scripts:
- Queue script
- Looping script
- Script with delays

Is using macros considered as cheating?

They aren't cheats, they do not hack the game. Also the main macro presented here rely on an in game feature called "Action Queue" or "Shift Queue". The macro will simply hold shift and press your items and abilities shortcut then release shift. The main difference are that the queue is created automatically for you and it is created instantly, so it does not reflect your real skill.


- Set every spells and items to quickcast. Every shortcuts here are those by default.
- I recommend you to use Ctrl + right click to trigger the main macro so don't use this shortcut for anything else.
- For the courier I recommend you to use the shortcut "g".
- Quick Attack must be enabled in the options and Smart Attack Move in the advanced options.
- I recommend you to use one ability and at the end because they have cast animations and backswing while items are instantly used, excepted for the Mask of Madness and Refresher Orb.

Queue script

To use the script you will need to put your cursor on an enemy and activate it. You can do it from far away, your heroe will use everything in the order when he will get in range.

When you execute it, it closes the chat, select your heroe, make it stop moving then queue your items and abilities.
I haven't included the b and n key inputs to put your refresher, heals, tp scrolls, etc. Remove the shortcut that you use manually, for example I like to use the c for the shadow blade so I remove it from the script.
End with a single spell, for example with Nature Prophet the queue is "zxcvq" to use every items then sprout.

Code: Select all

SendInput, {esc}s{shift down}zxcvrqwedfa{shift up}
Items with self-cast target must use Alt, for example the Mjollnir on the c key gives: {alt down}c{alt up}
The items are those one:
- Mjollnir
- Lotus Orb
- Force Staff
- Ethereal Blade
- Eul
- Urn

Important: items that stop the queue if not used in priority (you can end with one of them too):
- phase boots
- arcane boot
- blademail
- shiva
- cloack
- mek
- drum
- soul ring
- crimson
- satanic
- glimmer cape
- necronomicon

Items that stop the queue that must be the last used:
- manta style
- refresher orb
- mask of madness

Advices on items and abilities' order

When you queue your ability if you start with a blademail make sur you will quickly get in range to attack your enemy with a blink dagger just after. You can use a disabler before the blademail like an orchid to make sure the blademail will be used once you will be in range.

Do not use in priority an item with a small cast range like for example a nullifier, because your heroe will need to be close to the enemy to cast it then will use the other items. Use a blink dagger first or get close with a shadow blade.

For safer blink you can use hex before blinking because if your heroe is facing the wrong direction after blinking that will delay the cast of the other items (though the enemy will need to have a very good reaction time or see you coming).

- Shiva
- Cloak
- Blademail
- Glimmer Cape
- Lotus Orb

- Blink dagger

Item with long range:
- Rod of Atos (priority)
- Medallion
- Veil of Discord

Items with travel speed:
- Ethereal blade
- Nullifier

Strong disablers:
- Scythe of Vyse
- Orchid
- Halberd

- Diffusal blade
- Solar Crest

Items active:
- almost every items with an active including Necronomicon

Items with an aura:
- Drum of Endurance
- Pipe of Insight

- Every abilities without cast animation then use progressively the ability with the highest cast animation unless they need a specific order of execution like a damage amplification.

Last item:
- Mask of Madness
- Refresher

Rat macro:

- necronomicon
- manta style
- drum of endurance

The use your shortcut to select other units shortcutm I recommend you the shortcut F3. Use F2 for all units and F1 for your hero.


Offensive Blink physical build:

z: Blink Dagger
x: Bloodthorn
c: Nullifier
v: Mask of Madness

Start with power treads then orchid, blink, MoM, nullifier and finally bloodthorn. If the enemies gets blademail go for a nullifier before the MoM. If needed you can buy a shadow blade as defensive and offensive item, do not include it in the macro.
All those items have very low cooldown, the longest is the MoM which is 22 seconds.

Offensive Blink magical build:

z: Blink Dagger
x: Ethereal Blade
c: Dagon
v: Eul (to run away)

The Blink is to allow the projectile to hit the enemy before the Dagon so make sure you are in range with the Blink Dagger. You can add a veil, orchidor hex to the build and remove the Eul. An Aether Lens or Shadow Blade can be purchased to approach your enemy.

Looping script

Here is another script, it loops. Toggle it On or Off with the ` key. Use the minimum amount of inputs to avoid lags and abilities with no cast animations. The backswing is avoided since it's not queued, to avoid the auto-attack backswing you can add a "Click, right" bellow the SendInput. It could make your hero do less attacks if you can't track the enemy with the mouse. The riht click can also be used with {tab} to switch between every controlled units and move them to the cursor.

Code: Select all

Toggle = 0
#MaxThreadsPerHotkey 2

SendInput, {esc}{F1}
Toggle := !Toggle
While Toggle{
	SendInput, zxcvrqwedf{tab}
	sleep 75
Here are a set of script you an use in a loop

Fast click. Minimum sleep 1.

Code: Select all

Click, right
Call the courrier. Minimum sleep 50:

Code: Select all

SendInput, g
Instapick (this one picks Bristleback). Minimum sleep 75.

Code: Select all

Click, left, 1520, 794
sleep 1
Scripts you can use (not looped):

This script will quickly buy an healing salve and a mango then call the courier, you can adjust it to only buy one item:

Code: Select all

MouseGetPos, xpos, ypos
Click, 1730, 1050 ;shop
Click, right, 1655, 414 ;mango
Click, right, 1660, 375 ;salve
MouseMove, %xpos%, %ypos%
SendInput, {esc}g
Bonus macros:

You can add a taunt shortcut at the end of a macro if you want.

Auto laugh: it will trigger the laugh of your hero every 15 seconds:

Code: Select all

SendInput, {esc}
Toggle := !Toggle
While Toggle{
	SendInput, {esc}
	sleep 20
	SendInput, {enter}
	sleep 20
	SendInput, /laugh
	sleep 20
	SendInput, {esc}
	sleep 20
	SendInput, {enter}
	sleep 20
	SendInput, {esc}
	sleep 15000
Re-enter the lobby after being kicked:

Code: Select all

Toggle := !Toggle
While Toggle{
	Click, left, 960, 615
	sleep 50
	Click, left, 1500, 900
	sleep 50

Script with delays

This is the easiest to use, you press the macro key and it executes. You must add a sleep of 75 ms minimum between each keys. If the character needs to face the enemy add an additional 150 ms. For example after blinking you want to use the orchid, then after you want to use a nullifier, you must do 75 ms after the blink, then 150 + 75 after the orchid so you are sure the heroe has the time to turn and use it before the nullifier.
If there is a cast animation include the time in the sleep then add 75 ms: ... backswings
For example Sprout has a 0.35 cast point, so use 350 + 75 before adding a macro after. You can also end with a macro with long cast point. Try to avoid than a macro last more than half of a second.

Code: Select all

SendInput, z
sleep 75
SendInput, x
sleep 75
SendInput, c
sleep 75
SendInput, v
sleep 75
SendInput, e
sleep 75
SendInput, q

Return to “Gaming”

Who is online

Users browsing this forum: No registered users and 5 guests