World marker cycle macro

Hello,

I have this macro:

/click ActionButton8 Button5
/run local b=ActionButton8 _MH=_MH or(b:SetAttribute(“*type5”,“macro”)or SecureHandlerWrapScript(b,“PreClick”,b,‘Z=IsShiftKeyDown()and 0 or(Z or 0)%5+1 self:SetAttribute(“macrotext5”,“/cwm [mod]all\10/wm [nomod]”…Z)’))or 1

which was used to cycle between world markers. It sequentially placed all five markers (looped after that) - or cleared all if the shift key was held. However it doesn’t seem to be working anymore, at least not on regular basis. I was able to use it for a while yesterday, but after I relogged it ceased to function again.

Any ideas what I can get to fix it or what can I use to achieve the same result?

Appreciate all the help.

I also used to use this macro, I modified it a bit:

/cwm [mod] all
/click ActionButton8 Button5
/run local b=ActionButton8 _MH=_MH or(b:SetAttribute("*type5","macro")or SecureHandlerWrapScript(b,"PreClick",b,'Z=IsShiftKeyDown()and 0 or(Z or 0)%8+1 self:SetAttribute("macrotext5","/wm [nomod]"..Z)'))or 1

The clear function works and it cycles through more than just the five original markers (i.e. all eight). This has been working well for me so far, problem is I have no clue about lua scripting so I just deleted things until it didn’t work anymore and then reverted to the last working version.

Any help regarding cleanup of the script would be much appreciated.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.