War3 (DotA) Target Self?

This is a discussion on War3 (DotA) Target Self? within the Warcraft 3 forum board part of the Hot Games category; Been trying to figure this out for a while. Prime example, playing Omni, I want to cast my heal spell ...

Page 1 of 3 123 LastLast
Results 1 to 10 of 29
  1. #1
    Wynthar's Avatar
    Wynthar is offline Advanced Hacker
    Array
    Join Date
    Feb 2009
    Location
    So Cal, USA
    Posts
    267
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    10
    Reputation
    243

    Question War3 (DotA) Target Self?

    Been trying to figure this out for a while.



    Prime example, playing Omni, I want to cast my heal spell on myself. Fastest way for me to do that, is to press heal hotkey, and click on either myself or my portrait.

    I have searched for a way to press a key to target self. But have not found one. Ideally I would like to press one key to self cast the heal spell, so I can spend my time right clicking, to run next to an enemy hero, then press one key to heal self (and thus nuke the enemy).

    Any thoughts on this? I've asked multiple times and always get called a noob. But, they never tell me how, so apparently they don't know either! Or are too stubborn to give me an idea. I've considered finding some third party program that would function solely to press the hotkey, then mouse click the location of the hero portrait, but I don't think that is idea.

    Thoughts?

  2. #2
    risker is offline Banned User Array
    Join Date
    Oct 2008
    Location
    Australia
    Posts
    2,734
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    673
    You would need to create a macro .. and it wouldn't be that hard

  3. #3
    Wynthar's Avatar
    Wynthar is offline Advanced Hacker
    Array
    Join Date
    Feb 2009
    Location
    So Cal, USA
    Posts
    267
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    10
    Reputation
    243
    Which program would you use?

  4. #4
    Raigor is offline Mentor
    Array
    Join Date
    Oct 2008
    Posts
    140
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    11
    Reputation
    246

  5. #5
    Wynthar's Avatar
    Wynthar is offline Advanced Hacker
    Array
    Join Date
    Feb 2009
    Location
    So Cal, USA
    Posts
    267
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    10
    Reputation
    243
    Quote Originally Posted by Raigor View Post
    Works like a charm. Thanks man! +Rep

  6. #6
    risker is offline Banned User Array
    Join Date
    Oct 2008
    Location
    Australia
    Posts
    2,734
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    673
    Lol beat me to it.

  7. #7
    Wynthar's Avatar
    Wynthar is offline Advanced Hacker
    Array
    Join Date
    Feb 2009
    Location
    So Cal, USA
    Posts
    267
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    10
    Reputation
    243

    Lightbulb

    Oh, right. So I figured it out. Here's some code for autohotkey that will cast the spell and target self.

    Code:
    ; Got a lot of ideas and code from
    ; a script by Valarauka
    #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
    SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
    #InstallKeybdHook        ; Force install of keyboard hook
    SendMode Play            ; Game-compatible input mode.
    Suspend On     ;Start in suspended mode
    
    
    #IfWinActive, Warcraft III
    #UseHook On  ; Force hotkeys to use keyboard hook
    
    *F5::       ;toggle hotkeys and do initial setup
    ;*~Enter::   ;Enter will also enable/disable script so you can chat easily
      Suspend
      GridSetup()
      if (A_IsSuspended)
        SoundPlay *64
      else
        SoundPlay *48
      return
    
    *F12:: ;; TP home
      Send {Numpad1}
      SetMouseDelay, 1, Play   ; Tiny mouse-delay for compatibility
      ClickReturn(sentinelx, sentinely)   ;Click sentinel fountain on minimap
      SetMouseDelay, -1, Play
      return
    
    *F11:: ;;For Omni -- Heal Self
      SetMouseDelay, 1, Play   ; Tiny mouse-delay for compatibility
      ClickReturn(x1, y3)
      ClickReturn(selfx, selfy) ;Click Self Portrait
      SetMouseDelay, -1, Play
      return
    
    
    ClickReturn(x, y)   ;click then return mouse to original position
    {
      MouseGetPos, xpos, ypos
      if (GetKeyState("Alt"))    ;Modifier button for right-click - can be changed to "Ctrl" etc. 
        Send {Click %x%, %y%, R}
      else
        Send {Click %x%, %y%, L}
      MouseMove, %xpos%, %ypos%
    }
    
    GridSetup()   ;set up the screen coords for clicking
    {
      global
      x1:=(510*A_ScreenWidth)//640
      x2:=(544*A_ScreenWidth)//640
      x3:=(578*A_ScreenWidth)//640
      x4:=(612*A_ScreenWidth)//640
    
      y1:=(390*A_ScreenHeight)//480
      y2:=(424*A_ScreenHeight)//480
      y3:=(458*A_ScreenHeight)//480
    
      sentinelx:=(13*A_ScreenWidth)//640   ;Sentinel fountain
      sentinely:=(467*A_ScreenHeight)//480
    
      scourgex:=(110*A_ScreenWidth)//640   ;Scourge fountain
      scourgey:=(374*A_ScreenHeight)//480
    
      selfx:=(200*A_ScreenWidth)//640
      selfy:=(420*A_ScreenHeight)//480
    }
    Obviously (or not so obviously?) F11 will cast the spell in the first slot, and cast it on yourself. One way to break this is to hold down the right mouse button while pressing F11, because it prevents the cursor from moving down and clicking on your spells and image. But, if you right click to move, then press F11, then wait 0.25 sec it should complete no problem.

    Also a little treat, if you put a town portal in your bottom left (spot 1) slot, and press F12, and are on Sent's you will tp directly in front of your fountain.

    If you need any help with it, post a question, or pm me. (Posting a question might be better so everyone can benefit from the answer). I will help with any autohotkey scripts for DotA. Also wrote a little tutorial for invoker, but it's awaiting moderation.

    Peace,
    -Spike

  8. #8
    Woulny is offline Member
    Array
    Join Date
    Dec 2007
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    10
    Reputation
    2
    warkeys > autohotkey

  9. #9
    Wolfszorn's Avatar
    Wolfszorn is offline Advanced Hacker
    Array
    Join Date
    Sep 2007
    Posts
    318
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    12
    Reputation
    212
    @dotacrazy: The Script doesnt work for me, my mouse icon disappears but nothing happens.

    No heal and no using of tp =/

  10. #10
    Raigor is offline Mentor
    Array
    Join Date
    Oct 2008
    Posts
    140
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    11
    Reputation
    246
    Warkeys is based on Autohotkey, so Autohotkey>Warkeys.

Page 1 of 3 123 LastLast

Similar Threads

  1. Memoirs of World of Warcraft
    By Hallowsend in forum WoW forum
    Replies: 21
    Last Post: 08-28-2013, 10:34 AM
  2. The Ultimate WoW PVP Guide of Knowledge
    By Havok in forum WoW Guides
    Replies: 8
    Last Post: 12-06-2008, 02:19 AM
  3. All About War3 Ladder [For Begginners]
    By xHack in forum Warcraft 3 Strategies and replays
    Replies: 2
    Last Post: 10-07-2008, 05:08 PM
  4. The Ultimate PvP Guide Of Knowledge
    By Toxik in forum WoW Guides
    Replies: 0
    Last Post: 10-02-2008, 12:13 AM
  5. Lich King Alpha Testing
    By Bossform in forum WoW forum
    Replies: 10
    Last Post: 05-24-2008, 03:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •