Submitted by Cheeky:
cmdText = "imbibe"
buffArr = {
"cunning", "endurance", "grace", "shield", "blur"
}
-----------------
-- do not edit --
-----------------
function cycleBuffs()
if buffNum < table.maxn(buffArr) then
tempTimer(6, [[send(cmdText .. " '" .. buffArr[buffNum] .. "'");cycleBuffs()]])
buffNum = buffNum + 1
else
buffNum = 1
isBuffing = false
echo "--- BUFFING FINISHING ---"
end
end
if isBuffing == null then
isBuffing = false
end
if isBuffing == false then
echo "--- STARTING BUFFS ---"
buffNum = 1
isBuffing = true
send(cmdText .. " '" .. buffArr[buffNum] .. "'")
cycleBuffs()
else
echo "You are already buffing."
end
-
This topic was modified 4 years, 8 months ago by mosheh.