[Request]: fortified remaining duration and auto last hit tower

hi, the script is available here (clickable)
put towerGlyph.lua into scripts folder, located in cheat root
Код:
/umbrella/scripts/towerGlyph.lua

About last hit:
unfortunately I don't play Dota2, so I wasn't able to fully test the last hit function on enemy towers (99.9% everything is fine)
it will only work if the tower is already in attack radius when the glyph falls. If you want the hero to run X distance for deny, then change the code on line 50
200 to 250-350
Код:
 NPC.GetAttackRange(localHero) + 250

If there are any problems with use — feel free to give feedback
 
can you show me how to do this? because I don't know precisely how the cheat work

Код:
active_button = Enum.ButtonCode.Capslock
while keyPress(active_button)
{
    tower = get_tower_nearby()
    tryLastHit(tower)
}