|
|
Source code |
1 |
i=i+1; Skill[i] = { ['name'] = "Thunder", ['use'] = ((not friendly) and (rage >= 10)) and not CD("Splitting Chop")) }
|
Quoted from "Peryl;580382"
Add your thunder line right before the splitting chop line and add a check to see if Splitting Chop is on cooldown. Something like:
![]()
Source code
1i=i+1; Skill[i] = { ['name'] = "Thunder", ['use'] = ((not friendly) and (rage >= 10)) and not CD("Splitting Chop")) }
Note that the CD function returns true is the skill is not on cooldown, hence the not. Change the other conditions and the actual skill name as appropriate.
|
|
Source code |
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 |
function KnightScout(arg1,arg2)
local Skill = {}
local i = 0
local friendly = (not UnitCanAttack("player","target"))
local shield = (GetEquipSlotInfo(17) ~= nil)
local combat = GetPlayerCombatState()
local health = PctH("player")
local mana = PctM("player")
local pbuffs = BuffList("player")
local tbuffs = BuffList("target")
i=i+1; Skill[i] = { ['name'] = "Holy Shield", ['use'] = (health <= .20) }
i=i+1; Skill[i] = { ['name'] = "Hall of Dead Heroes", ['use'] = ((health <= .25) and (arg2 == "tank")) }
i=i+1; Skill[i] = { ['name'] = "Resolution", ['use'] = (health <= .30) }
i=i+1; Skill[i] = { ['name'] = "Shield of Valor", ['use'] = ((not friendly) and (health <= .35) and shield) }
i=i+1; Skill[i] = { ['name'] = "Shield of Discipline", ['use'] = ((not friendly) and (health <= .45) and shield) }
i=i+1; Skill[i] = { ['name'] = "Holy Seal", ['use'] = (not string.find(pbuffs,"Holy Seal")) }
i=i+1; Skill[i] = { ['name'] = "Enhanced Armor", ['use'] = (not string.find(pbuffs,"Enhanced Armor")) }
i=i+1; Skill[i] = { ['name'] = "Vampire Arrows", ['use'] = (not friendly) }
i=i+1; Skill[i] = { ['name'] = "Whirlwind Shield", ['use'] = (shield and (not friendly) and (arg2 == "tank")) }
i=i+1; Skill[i] = { ['name'] = "Threaten", ['use'] = (string.find(tbuffs,"Holy Seals 3") and (not string.find(pbuffs,"Threaten")) and (arg2 == "tank")) }
i=i+1; Skill[i] = { ['name'] = "Mana Return", ['use'] = (string.find(tbuffs,"Holy Seals 3") and (mana <= .95)) }
i=i+1; Skill[i] = { ['name'] = "Holy Strike", ['use'] = (not friendly) }
MyCombat(Skill,arg1)
end
|
Quoted from "dreamweaver537;599409"
Hello, I am trying to make a warden item set skill "animal spirit eclipse" work in diyce but when i use the macro it says
skill not availiable: animal spirit eclipse....since this is an iss i was wondering if it worked differently...any help would be appreciated tyvm
|
|
Source code |
1 |
i=i+1; Skill[i] = { ['name'] = "Action: #", ['use'] = (not friendly) and (mana >=225) }
|
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 |
function NaturesBuff()
local cnt = 1
local buff, icon, power = UnitBuffInfo("player",cnt)
while buff ~= nil do
if buff == "Nature's Power" then
return power
end
cnt = cnt + 1
buff, icon, power = UnitBuffInfo("player",cnt)
end
return 0
end
|
|
|
Source code |
1 2 |
local npower = NaturesBuff() -- in your local list (npower <= 2) -- in your skill use parameters |
i have been a diyce user for some time now and love it and i am a bit old school i guess i like 1.0 better than 2.0 but that is just me but i have been having some trouble with 1.0 and have tried everything i can think of but i can not get Blind Spot or Sneak attack to work this is what i am wanting i want it to cast lets say Blind Spot if i am behind the target no matter the target as long as it a attactable target and if i am not behind the target at the time of attack it would cast something else and no stay on Blind Spot waiting for me to get behind the target i am out of ideas on this thank you for your time