
*Assigns the value of cur_spell to the first available In the case of all spells being off cooldown

*Initiates cur_spell to your highest priority spell SpellLogic(cur_spell, ByRef cur_key, ByRef cur_cool) End of subroutine group to reset cooldowns. SetTimer, spell_%cur_spell%, %neg_cur_cool% Start of Spell 1 Script-Ĭur_spell := spellLogic(cur_spell, cur_key, cur_cool) Initializes getaways availability array to 1 (off cooldown) Set your getaways priority here, 1 being highest, 3 being lowest Set the number of getaways you have here Initializes spell availability array to 1 (off cooldown) Set your spell priority here, 1 being highest, 10 being lowest The key bindings for this script are defined in the Key Bindings section at

Start of Spell Script Global Variables-Ĭooldowns and priorities are defined below.
#Majesty 2 spell hotkeys code#
More you can add to your config.cfg for comfort (use F1-F4 to level up QWER)īind "F1" "dota_ability_learn_mode dota_ability_execute 0 dota_ability_learn_mode "īind "F2" "dota_ability_learn_mode dota_ability_execute 1 dota_ability_learn_mode "īind "F3" "dota_ability_learn_mode dota_ability_execute 2 dota_ability_learn_mode "īind "F4" "dota_ability_learn_mode dota_ability_execute 5 dota_ability_learn_mode "Īnd heres the beast code ofc it takes some memory (mental) power to work it but it works great

Here's a script i made for invoker + dota but first what u need to add to your config.cfgĮdit: It's much better to make the game do QWE for you because it will do it on 0.09 delay each orb so its basically instantaneous.īind "KP_0" "dota_ability_execute 0 dota_ability_execute 1 dota_ability_execute 2"īind "KP_1" "dota_ability_execute 1 dota_ability_execute 1 dota_ability_execute 1"īind "KP_2" "dota_ability_execute 1 dota_ability_execute 1 dota_ability_execute 0"īind "KP_3" "dota_ability_execute 1 dota_ability_execute 1 dota_ability_execute 2"īind "KP_4" "dota_ability_execute 0 dota_ability_execute 0 dota_ability_execute 0"īind "KP_5" "dota_ability_execute 0 dota_ability_execute 0 dota_ability_execute 1"īind "KP_6" "dota_ability_execute 0 dota_ability_execute 0 dota_ability_execute 2"īind "KP_7" "dota_ability_execute 2 dota_ability_execute 2 dota_ability_execute 2"īind "KP_8" "dota_ability_execute 2 dota_ability_execute 2 dota_ability_execute 0"īind "KP_9" "dota_ability_execute 2 dota_ability_execute 2 dota_ability_execute 1" SetWorkingDir %A_ScriptDir% Ensures a consistent starting directory. SendMode Input Recommended for new scripts due to its superior speed and reliability. #Warn Recommended for catching common errors. #NoEnv Recommended for performance and compatibility with future AutoHotkey releases. This script will help you play Invoker in Dota 2, it will invoke a certain spell with 1 key instead of doing the combinationĮach spell takes 1 second to invoke and also i used the key's alt and alt + x to invoke the spells, the script is fairly simple so if anyone wants to change the key's or timing it should be really easy
