Close
Showing results 1 to 5 of 5
  1. #1

    Default Cast spell on key up?

    I would like to simplify the way I cast targetable spells in WoW (Blizzard, flamestrike, heroic leap, etc). Right now I'm using a simple @cursor in-game macro to cast wherever the mouse is. But sometimes that isn't precise enough.

    I'd like to find a way through some combination of in-game macros, addons, or allowed 3rd party software, such that pressing down a key brings up the targeting reticle, and then releasing that key casts the spell.

    In my mind this is a simple key remapping task. I want key down to perform 1 action, and then key up to perform another action.

  2. #2

    Default

    This seems to be what you're looking for, but beyond my own capabilities to implement. https://us.forums.blizzard.com/en/wo...spell/497074/7

  3. #3

    Default

    Yeah I'm unaware of any premade addon that does it. That post Wubsie put is exactly what I would do, it wouldn't take much more than creating a tiny addon with a toc file and a lua file, where the lua file contents are literally what is in that post, but you change the spell names in the "SetAttribute" lines and the 'key'. Easiest way would probably be to make one addon for each class, and only enable it on the relevant toons.

  4. #4

    Default

    I still wasn't understanding what exactly was needed, but a buddy over on the MooreaTv discord hooked me up. Its quite easy.

    Step 1 - create addon folder.
    In your addons folder, create a folder called SpellOnKeyUp
    (default path is: C:\Program Files (x86)\World of Warcraft\_classic_\Interface\AddOns\SpellOnKeyUp)

    Step 2 - create the .toc file.
    Open notepad (or any txt editor) and copy/paste this into it - save the file as "SpellOnKeyUp.toc" inside your SpellOnKeyUp folder

    Code:
    ## Interface: 11306
    ## Title: SpellOnKeyUp
    ## Notes: ^
    ## Author: Gello ?
    
    
    SpellOnKeyUp.lua
    Step 3 - create the .lua file
    Open any txt editor again and copy paste this into it - save the file as "SpellOnKeyUp.lua" inside your SpellOnKeyUp folder
    Code:
    local key = "5"if select(2,UnitClass("player"))=="MAGE" then
       local button = CreateFrame("Button","BlizzardOnUp",nil,"SecureActionButtonTemplate")
       button:RegisterForClicks("AnyDown","AnyUp")
       button:SetAttribute("type","macro")
       SecureHandlerWrapScript(button,"OnClick",button,[[
         if down then
           self:SetAttribute("macrotext","/cast blizzard")
         else
           self:SetAttribute("macrotext","/stopspelltarget\n/cast [@cursor] blizzard")
         end
       ]])
       button:RegisterEvent("PLAYER_LOGIN")
       button:SetScript("OnEvent",function(self,event,...)
         SetOverrideBindingClick(self,true,key,"BlizzardOnUp")
       end)
    end
    This turns your blizzard into a 1 button ordeal - press down to target, and release to cast the spell. You can change the button (default is 5) and even the spell (switch to flamestrike, or any targetable spell like heroic leap) by manually editing the .lua file - its not much more complex than editing a macro.

    The default for this is your 5 key and max rank blizzard - press 5 and you'll get the targeting reticle under your mouse like normal, but the spell will cast as soon as you release 5. It just saves 1 extra mouse click - which I find very useful in PvP, and I think it'll work well for boosting.

    Thank you all for your help!
    Last edited by jak3676 : 02-14-2021 at 12:48 AM

  5. #5

    Default

    Ha - someone just pointed out that its already been turned into an addon. Grounded - Addons - World of Warcraft - CurseForge

Posting Rules

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