1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
function MyRogueWdn(arg1, arg2)
local Skill = {}
local i = 0
local energy = UnitMana("player")
local focus = UnitSkill("player")
local friendly = (not UnitCanAttack("player", "target"))
local combat = GetPlayerCombatState()
local tspell,ttime,telapsed = UnitCastingTime("target")
local pbuffs = BuffList("player")
local tbuffs = BuffList("target")
local melee
if(string.find(arg2, "range"))then
melee = GetActionUsable(3)
else
melee = true
end
local tclass = UnitClass("target");
CreateDIYCETimer("SSBleed", 5) --Change the value between 6 -> 7.5 depending on your lag.
CreateDIYCETimer("LBBleed", 5) --Change the value between 7 -> 8.5 depending on your lag.
CreateDIYCETimer("WSG", 30) --Wood Spirit's Grasp
i=i+1; Skill[i] = { name = "Hide", use = (GetZoneID() == 402) and ((not UnitCanAttack("player","target")) or UnitIsDeadOrGhost("target") == true or UnitIsDeadOrGhost("target") == nil) }
i=i+1; Skill[i] = { name = "Premeditation", use = (string.find( arg2, "premed" ) and (not combat) and not pbuffs["Premeditation"]) }
i=i+1; Skill[i] = { name = "Sneak Attack", use = ((not friendly) and (energy >= 70) and string.find(arg2, "behind") and (not combat)) }
i=i+1; Skill[i] = { name = "Power of the Wood Spirit", use = not pbuffs["Wood Spirit's Graps"], timer = "WSG"}
--i=i+1; Skill[i] = { name = "Charged Chop", use = (not friendly) and focus > 500}
i=i+1; Skill[i] = { name = "Wound Attack", use = ((not friendly) and (energy >= 35) and (tbuffs["Sneak Attack Bleed"] or tbuffs["Bleed"] or tbuffs["Blind Spot Bleed"]) and tbuffs["Grievous Wound"]) }
i=i+1; Skill[i] = { name = "Blind Spot", use = (((not tbuffs["Sneak Attack Bleed"]) and (not tbuffs["Bleed"]) and (not tbuffs["Blind Spot Bleed"])) and (not friendly) and (energy >= 70) and string.find(arg2, "behind")) }
i=i+1; Skill[i] = { name = "Low Blow", use = (not tbuffs["Grievous Wound"]) and (energy >= 30) and (tbuffs["Sneak Attack Bleed"] or tbuffs["Bleed"] or tbuffs["Blind Spot Bleed"]) , timer = "LBBleed", ignoretimer = (not tbuffs["Grievous Wound"]) }
i=i+1; Skill[i] = { name = "Shadowstab", use = ( (not tbuffs["Bleed"]) and ((not tbuffs["Sneak Attack Bleed"]) ) and (not string.find(arg2, "behind")) and (not friendly) and (energy >= 70)), timer = "SSBleed" , ignoretimer = not tbuffs["Bleed"] or not tbuffs["Blind Spot Bleed"] or not tbuffs["Sneak Attack Bleed"]}
i=i+1; Skill[i] = { name = "Throw", use = (not friendly) }
i=i+1; Skill[i] = { name = "Weak Point Strike", use = (not friendly) and focus > 500 }
--i=i+1; Skill[i] = { name = "Action: 34(Lion Claw Mark)", use = ((not friendly) and (energy >=20)) and not tbuffs["Claw Mark"]}
--i=i+1; Skill[i] = { name = "Phantom Blade", use = (not friendly) }
i=i+1; Skill[i] = { name = "Combo Throw", use = (not friendly) }
--i=i+1; Skill[i] = { name = "Bloodthirsty Blade", use = (not friendly) }
--i=i+1; Skill[i] = { name = "Attack", use = (not friendly)}
MyCombat(Skill,arg1)
CastSkillByName("Charged Chop")
end
|