Close
Showing results 1 to 5 of 5

Threaded View

  1. #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

Posting Rules

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