FAQ  •  Register  •  Login

WoW Classic: Game Helper Macro Error

Moderator: MiRai

<<

TonyO

Posts: 55

Joined: Mon Jun 13, 2011 6:37 pm

Post Wed Sep 25, 2019 6:41 am

WoW Classic: Game Helper Macro Error

My Classic game helper macros work fine, except for something like this: "/script CastSpellByName("Lightning Shield");"
CastSpellByName() is protected, so WoW Classic client throws a warning when this is executed ("A macro script has been blocked from an action only available to the Blizzard UI.").

What should I check? Or, should I even be able to execute protected functions from ISBoxer in classic?
<<

MiRai

User avatar

Vibrant Videographer

Posts: 2904

Joined: Fri Nov 20, 2009 3:30 pm

Post Wed Sep 25, 2019 9:48 am

Re: WoW Classic: Game Helper Macro Error

Macros, like the above, that worked on patch 1.12 fifteen years ago, do not work in Classic.
<<

TonyO

Posts: 55

Joined: Mon Jun 13, 2011 6:37 pm

Post Thu Sep 26, 2019 12:25 am

Re: WoW Classic: Game Helper Macro Error

It's true. I still write my alogrithm on a rock tablet before I start scripting.
How would you translate this ancient scripture from vanilla:
Code:
local bBuffed = false;
for i=1,40 do
  local name, icon, _, _, _, _ = UnitBuff("player",i)
  if name=="Lightning Shield" then
    bBuffed = true;
  end
end
if not bBuffed then
  CastSpellByName('player', "Lightning Shield");
end
<<

MiRai

User avatar

Vibrant Videographer

Posts: 2904

Joined: Fri Nov 20, 2009 3:30 pm

Post Thu Sep 26, 2019 8:19 am

Re: WoW Classic: Game Helper Macro Error

I honestly couldn't tell you, but making a macro in both Retail and Classic are the same:

https://wow.gamepedia.com/Making_a_macro
<<

TonyO

Posts: 55

Joined: Mon Jun 13, 2011 6:37 pm

Post Thu Sep 26, 2019 12:48 pm

Re: WoW Classic: Game Helper Macro Error

Thanks, that will help when I do macros.
<<

TonyO

Posts: 55

Joined: Mon Jun 13, 2011 6:37 pm

Post Fri Oct 04, 2019 5:58 am

Re: WoW Classic: Game Helper Macro Error

I figured out how to do the above with 2 Game Helper macros.
The first WoW macro is assigned a button named LSBuff:
Code:
/cast Lightning Shield


The second WoW macro (LSCheck) checks for Lightning Shield on the player, and disables LSBuff if it's up:
Code:
/run LSBuff:SetEnabled(true);for iI=1,40 do local sN,_,_,_,_,_ = UnitBuff('player',iI); if string.sub(sN,1,16)=='Lightning Shield' then LSBuff:SetEnabled(false);end end


So one of my hotkey keeps Lightning Shield up at all times without excessive casting.
<<

Wizeowel

Posts: 50

Joined: Mon Dec 10, 2018 11:13 am

Post Mon Oct 07, 2019 4:15 am

Re: WoW Classic: Game Helper Macro Error

That is a pretty clever loophole. Does it work in combat? Or only good for out-of-combat things like buffs?
<<

TonyO

Posts: 55

Joined: Mon Jun 13, 2011 6:37 pm

Post Mon Oct 07, 2019 10:08 am

Re: WoW Classic: Game Helper Macro Error

It works all the time so far, 2 days. I made a mapped key with both macros in a single step, LSCheck first.
<<

Wizeowel

Posts: 50

Joined: Mon Dec 10, 2018 11:13 am

Post Tue Oct 08, 2019 4:10 am

Re: WoW Classic: Game Helper Macro Error

Awesome, great for thorns and pally buffs and such.

Return to World of Warcraft

Who is online

Users browsing this forum: No registered users and 5 guests