Help With Paladin Seal Macro
Posted:
Thu Jul 16, 2015 1:48 am
by Rhoen
Presently I use this
/script c=CastSpellByName if IsAltKeyDown() then c("Seal of Wisdom(rank 3)"); else if IsControlKeyDown() then c("Seal of Light(rank 4)"); else if IsShiftKeyDown() then c("Seal of the Crusader(rank 6)");else c("Seal of righteousness(rank 8)");end;end;end
Is there anyway I can set up a multi modifier? like shift+cntrl+button= seal of justice?
Re: Help With Paladin Seal Macro
Posted:
Thu Jul 16, 2015 1:51 am
by Rhoen
It's not much but I'll give a 30g reward for whoever can help me get this functioning
Re: Help With Paladin Seal Macro
Posted:
Thu Jul 16, 2015 11:01 am
by LYQ
/run c=CastSpellByName if IsAltKeyDown() then c("Seal of Wisdom(Rank 3)") elseif IsControlKeyDown() then c("Seal of Light(Rank 4)") elseif IsShiftKeyDown() then c("Seal of the Crusader(Rank 6)") else c("Seal of Righteousness(Rank 8)")end
this would cast r3 if alt is down, r4 if control and r6 when shift, else he uses r8
- if that's what you meant (check for typos in the spellnames, I just copied the spellnames as you listed)
NOTE: to get such macro working without problems, you need to be sure of one small detail. if you place the macro eg. on hotkey '4' you need to unbind Shift-4 and Control-4 in the key bindings menu since those are keybinds used by blizzard default (shift + number is on default switch of mainbar, control is the petbar I think).
but yeah it would also be possible to cast something with multiple modifier like shift+control or all three or any other combo
you don't really need to send me your gold
lua if cases work like
if something then
-- do something
ifelse somethingelse then
-- if the first case is not true but this one is
else
-- this is default it will do shit if no case before worked
end
note that this way eg the 2nd case can not be reached if the first one is true.
another way would be
if something then
-- if something is true
if somethingelse then
-- this can only happen if something is already true, but somethingelse is also
else
-- this would be if something is true but somethingelse is not
end
else
-- if something is false
end
in this version the somethingelse case can be reached if the something else case is true, but otherwise somethingelse can not be reached if something is not