can anyone fix this macro?

My problem is The King of jungle dosent activates , anyone can solve it ?

Sequences[“feraldrPVP”] = {
StepFunction = [[
stepa = “122391225467”

limit = string.len(stepa) or 1
if stepc == nil then
stepc = 1
end
if stepc >= limit then
stepc = 1
else
stepc = stepc + 1
end
step = tonumber(strsub (stepa, stepc, stepc))
]],
PreMacro = [[
]],

– Macro 1
[[
/run(“Executing macro 1! (Rake)”)
/cast Rake
]],

– Macro 2
[[
/run(“Executing macro 2! (Shred)”)
/cast Shred
]],

– Macro 3
[[
/run(“Executing macro 3! (Rip)”)
/cast Rip
]],

– Macro 4
[[
/run(“Executing macro 4! (Tiger’s Fury)”)
/cast Tiger’s Fury

]],

– Macro 5
[[
/run(“Executing macro 5! (Ferocious Bite)”)
/cast Ferocious Bite
]],

– Macro 6
[[
/run(“Executing macro 6! (Mighty Bash)”)
/cast Mighty Bash
]],

– Macro 7
[[
/run(“Executing macro 7! (Wild charge)”)
/cast Wild charge
]],

– Macro 8
[[
/run(“Executing macro 8! (Skull Bash)”)
/cast Skull Bash
]],

– Macro 9
[[
/run(“Executing macro 9! (Thrash)”)
/cast Thrash
]],

– Macro 10
[[
/run(“Executing macro 10! (Incarnation: King of the Jungle)”)
/cast Incarnation: King of the Jungle
]],

PostMacro = [[
/startattack
/cast [combat]Heart of the wild
/cast [combat]Berserk
/cast [combat]Force Of Nature
/use Draenic Agility Potion
/use 13
/use 14
]],
}

Let me preface this by :

  1. I dont play this class/spec so i have no ideal as to what any of the moves mean,lol
    22)I do not know alot about the macros , but what I do know i try to share
    3)I dont really understand the stepfunction you have set up there , any chance you can explain it a bit ? or point me in the direction of something that does ? it looks like your telling it what macro to cast in what order?.

Heres the Macro, please let me know if it works or not:


Sequences['feraldrPVP'] = {
StepFunction = [[
stepa = “122391225467”

limit = string.len(stepa) or 1
if stepc == nil then
stepc = 1
end
if stepc >= limit then
stepc = 1
else
stepc = stepc + 1
end
step = tonumber(strsub (stepa, stepc, stepc))
]],
PreMacro = [[
/targetenemy [noharm][dead]
]],
'/cast Rake',
'/cast Shred',
'/cast Rip',
"/cast Tiger’s Fury",
'/cast Ferocious Bite',
'/cast Mighty Bash',
'/cast Wild Charge',
'/cast Skull Bash',
'/cast Thrash',
"/cast Incarnation: King of the Jungle",
PostMacro = [[
/startattack
/cast [combat]Heart of the wild
/cast [combat]Berserk
/cast [combat]Force Of Nature
/use Draenic Agility Potion
/use 13
/use 14
]],
}

-James


Sequences['feraldrPVP'] = {
StepFunction = [[
	limit = limit or 1
	if step == limit then
		limit = limit % #macros + 1
		step = 1
	else
		step = step % #macros + 1
	end
]],
PreMacro = [[
/targetenemy [noharm][dead]
]],
'/cast Rake',
'/cast Shred',
'/cast Rip',
"/cast Tiger’s Fury",
'/cast Ferocious Bite',
'/cast Mighty Bash',
'/cast Wild Charge',
'/cast Skull Bash',
'/cast Thrash',
"/cast Incarnation: King of the Jungle",
PostMacro = [[
/startattack
/cast [combat]Heart of the wild
/cast [combat]Berserk
/cast [combat]Force Of Nature
/use Draenic Agility Potion
/use 13
/use 14
]],
}

AFAIK, a custom step function can only work with up to 9 macros. Also, your custom step doesn’t call macro #8, which should be it’s own key anyway. This should fix it for you.