Awesome work!!! Also, great tutorial. I really appreciate how you broke down the pieces so that I could understand this.
The problem I'm having, however, is that mine doesn't seem to recognize when I'm in combat, and if my buff fails while I'm fighting, it stops to rebuff.
Thoughts??
Here is the meat:
i=i+1; Skill = { ['name'] = "Poison", ['use'] = ((not combat) and (not string.find(pbuffs,"Poison"))) }
i=i+1; Skill[i] = { ['name'] = "Magic Barrier", ['use'] = ((not combat) and (not string.find(pbuffs,"Magic Barrier"))) }
i=i+1; Skill[i] = { ['name'] = "Quickness Aura", ['use'] = ((not combat) and (not string.find(pbuffs,"Quickness Aura"))) }
i=i+1; Skill[i] = { ['name'] = "Holy Aura", ['use'] = (PctH("player") <= .30) }
i=i+1; Skill[i] = { ['name'] = "Regenerate", ['use'] = (PctH("player") <= .85) and (not string.find(pbuffs,"Regenerate")) }
i=i+1; Skill[i] = { ['name'] = "Urgent Heal", ['use'] = (PctH("player") <= .75) }
i=i+1; Skill[i] = { ['name'] = "Sneak Attack", ['use'] = ((not friendly) and (energy >=30) and (arg2=="behind")) }
i=i+1; Skill[i] = { ['name'] = "Wound Attack", ['use'] = ((not friendly) and (energy >=35) and (string.find(tbuffs,"Bleed") and (string.find(tbuffs,"Grievous Wound")))) }
i=i+1; Skill[i] = { ['name'] = "Low Blow", ['use'] = ((not friendly) and (energy >=35) and (string.find(tbuffs,"Bleed"))) }
i=i+1; Skill[i] = { ['name'] = "Blind Spot", ['use'] = ((not friendly) and (energy >=25) and (arg2=="behind")) }
i=i+1; Skill[i] = { ['name'] = "Shadowstab", ['use'] = ((not friendly) and (energy >=35)) }
Also, There is a problem when I'm using that macro to heal, it just keeps casting regenerate and not urgent heal. I'm R/P btw and thanks again!