All pastes #1951816 Raw Edit

Nimble's DIYCE

public lua v1 · immutable
#1951816 ·published 2010-09-30 13:20 UTC
rendered paste body
function ScoutRogue(arg1)   local Skill = {}   local i = 0   local focus = UnitMana("player")   local energy = UnitSkill("player")   local friendly = (not UnitCanAttack("player","target"))   local a1,a2,a3,a4,a5,ASon = GetActionInfo(21)   local shotcooldown, shotremaining = GetSkillCooldown(2,2);   local pbuffs = BuffList("player")   local tbuffs = BuffList("target")   i=i+1; Skill[i] = { name = "Sapping Arrow",  use = (not friendly) and not string.find(tbuffs, "Sapping Arrow") and (focus >= 30) }   i=i+1; Skill[i] = { ["name"] = "Autoshot",          ["use"] = ((not friendly) and (not ASon)) }   i=i+1; Skill[i] = { name = "Combo Shot",     use = (not friendly) }   i=i+1; Skill[i] = { name = "Piercing Arrow", use = (not friendly) }   i=i+1; Skill[i] = { name = "Weak Spot",      use = ((not friendly) and (focus >= 30)) }   i=i+1; Skill[i] = { name = "Shot",           use = (not friendly) }   i=i+1; Skill[i] = { name = "Wind Arrows",    use = ((not friendly) and (focus >= 15)) }   MyCombat(Skill,arg1)endfunction ScoutRoguez(arg1)   local Skill = {}   local i = 0   local focus = UnitMana("player")   local friendly = (not UnitCanAttack("player","target"))   local a1,a2,a3,a4,a5,ASon = GetActionInfo(21)   i=i+1; Skill[i] = { ["name"] = "Autoshot",          ["use"] = ((not friendly) and (not ASon)) }   i=i+1; Skill[i] = { name = "Combo Shot",     use = (not friendly) }   i=i+1; Skill[i] = { name = "Shot",           use = (not friendly) }   i=i+1; Skill[i] = { name = "Wind Arrows",    use = ((not friendly) and (focus >= 15)) }   MyCombat(Skill,arg1)end