Update world marker code for DF

This commit is contained in:
Andrew Tomaka 2022-11-30 11:55:22 -05:00
parent 1e03a13d39
commit f2c6935c06
Signed by: atomaka
GPG key ID: 61209BF70A5B18BE

View file

@ -97,8 +97,19 @@ function events:MERCHANT_SHOW(...)
end end
function events:PLAYER_LOGIN(...) function events:PLAYER_LOGIN(...)
-- found from some forums -- Updated for DF from
local b=ActionButton8 _MH=_MH or(b:SetAttribute("*type5","macro")or SecureHandlerWrapScript(b,"PreClick",b,'Z=IsAltKeyDown()and 0 or(Z or 0)%8+1 self:SetAttribute("macrotext5","/wm [nomod]"..Z)'))or 1 -- https://www.reddit.com/r/CompetitiveWoW/comments/yy4ldr/one_button_world_marker_circle_marco_df_prepatch/
local button = ActionButton8
_MH = _MH
or (
button:SetAttribute("*type5","macro")
or SecureHandlerWrapScript(
button, "PreClick", button,
'marker = (marker or 0) % 8 + 1\n'..
'self:SetAttribute("macrotext5", "/wm "..marker)'
)
)
or 1
end end
function events:PLAYER_REGEN_DISABLED(...) function events:PLAYER_REGEN_DISABLED(...)