step function spamming chat

How do i get this to stop spamming chat with exectuing macro spam

Sequences[‘SUB2’] = {
StepFunction = [[
stepa = “1234”

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 = [[
/startattack
/cast [nostealth,nocombat] Stealth
]],
– Macro 1
[[
'/cast slice and dice
]],

-- Macro 2
[[

'/cast rupture
]],

-- Macro 3
[[

'/cast eviscerate
]],
– Macro 4
[[
'/cast eviscerate
]],
}

fixed your macro not sure why evis is in there twice but here it is

Sequences["sub"] = {
StepFunction = [[
stepa = "1234"
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 = [[
/startattack
/cast [nostealth,nocombat] Stealth
]],

-- Macro 1
[[
/run("Executing macro 1! (Slice and Dice)")
/cast Slice and Dice
]],

-- Macro 2
[[
/run("Executing macro 2! (Rupture)")
/cast Rupture
]],

-- Macro 3
[[
/run("Executing macro 3! (Eviscerate)")
/cast Eviscerate
]],

-- Macro 4
[[
/run("Executing macro 4! (Eviscerate))")
/cast Eviscerate
]],

PostMacro = [[
/use [combat]13
/use [combat]14
]],
}