Quoted
{ name = "Punishment", use = ((EnergyBar1 >= 25) and (tbuffs[501502]) and ((not tbuffs[506878]) or (tbuffs[506878].time <= 30))) },
Quoted from "Skylotus;569899"
ok, sry to be a pain but this code I can't seem to make it work right.
So what I want the code to do is, use punishment when it meets its requirements and then it has to wait 30 sec to be able to use punishment again, but it keep trying to use it when the skill has to wait 30sec after use to be use again. I have no idea what I am doing wrong need some expert eyes on the matter.
Here is the Punishment skill = http://www.runesdatabase.com/skill/495713/punishment
Again Thank You in advance for your help =)
Quoted from "Skylotus;569899"
ok, sry to be a pain but this code I can't seem to make it work right.
So what I want the code to do is, use punishment when it meets its requirements and then it has to wait 30 sec to be able to use punishment again, but it keep trying to use it when the skill has to wait 30sec after use to be use again. I have no idea what I am doing wrong need some expert eyes on the matter.
Here is the Punishment skill = http://www.runesdatabase.com/skill/495713/punishment
Again Thank You in advance for your help =)
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
--Class: Warden/Druid
elseif mainClass == "WARDEN" and subClass == "DRUID" then
--Potions and Buffs
Skill = {
{ name = "Recover", use = (phealth <= .65) and (pctEB2 >= .05) and (not pbuffs['Recover']) },
{ name = "Action: "..healthpot, use = (phealth <= .70) },
{ name = "Action: "..manapot, use = (pctEB2 <= .40) },
}
--Combat
if enemy then
Skill2 = {
{ name = "Cross Chop", use = true },
{ name = "Blade of Protection", use = true },
{ name = "Charged Chop", use = true },
{ name = "Thorny Vines", use = true },
{ name = "Frantic Briar", use = true },
}
end
|
Quoted from "Gilderoi;570052"
So with my limited sense of what means what, and the help of bilalab, I have put together :
![]()
Source code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20--Class: Warden/Druid elseif mainClass == "WARDEN" and subClass == "DRUID" then --Potions and Buffs Skill = { { name = "Recover", use = (phealth <= .65) and (pctEB2 >= .05) and (not pbuffs['Recover']) }, { name = "Action: "..healthpot, use = (phealth <= .70) }, { name = "Action: "..manapot, use = (pctEB2 <= .40) }, } --Combat if enemy then Skill2 = { { name = "Cross Chop", use = true }, { name = "Blade of Protection", use = true }, { name = "Charged Chop", use = true }, { name = "Thorny Vines", use = true }, { name = "Frantic Briar", use = true }, } end
But for some reason I do not understand, it will not cast recover or use any heal or mana pots and I am forced to manually throw them in. I keep getting lost going through these threads trying to make sense of how to edit things to my needs. I want to work my buffs in, try to get a pet skill to fire, and other things.... So far this piece of badness is working but I know it can do much more if I could only make sense of values, timers, and modes.... I would really like to understand target=boss so I can throw in something to use Thorn Sigil for when I loose aggro from a burst by DPS. I would think there would be something to put an argument in there that if target of target is not self, then Thorn Sigil.
Also I am going to have to study more on the buffs and even cleanses. I believe that would work, wouldn't it? Work a cleans as if it were a buff, that if say was in state of poison, then Antidote, if curse, then Remove Curse? Guess it would have to rely on a new table of poison debuffs and curse debuffs. So much to think about and so little understanding of code... Makes this real hard.
|
|
Source code |
1 |
{ name = "Thorny Sigil", use = ((true) and (boss) and (behind)) },
|
|
|
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 27 28 29 30 31 32 33 34 35 36 |
--Class: Warden/Druid
elseif mainClass == "WARDEN" and subClass == "DRUID" then
--Potions and Buffs
Skill = {
{ name = "Recover", use = (phealth <= .60) and (pctEB1 >= .05) },
{ name = "Action: 12", use = (phealth <= .70) and (not pbuffs['Mysterious Herb']) },
{ name = "Action: 32", use = (pctEB1 <= .70) and (not pbuffs['Mysterious Magic Stone']) },
{ name = "Action: 34", use = (pctEB1 <= .50) },
{ name = "Savage Blessing", use = (pctEB1 >= .05) and (not pbuffs['Savage Blessing']) },
{ name = "Briar Shield", use = (pctEB1 >= .05) and (not pbuffs['Briar Shield']) },
{ name = "Earth Spirit Essence", use = (pctEB1 >= .05) and (not pbuffs['Earth Spirit Essence']) },
{ name = "Heart of the Oak", use = (pctEB1 >= .10) },
{ name = "Protection of Nature", use = (pctEB1 >= .05) and (not pbuffs['Protection of Nature']) },
{ name = "Action: 16", use = (not pbuffs['Spicy Meatsauce Burrito']) },
}
--Combat
if enemy then
Skill2 = {
{ name = "Cross Chop", use = (pctEB1 >= .05) },
{ name = "Thorn Sigil", use = (pctEB1 >= .05) and boss or elite and behind and party },
{ name = "Blade of Protection", use = (pctEB1 >= .05) },
{ name = "Charged Chop", use = (pctEB1 >= .05) },
{ name = "Elven Guidance", use = (pctEB1 <= .60) and (pctEB1 >= .05) },
{ name = "Savage Power", use = (pctEB1 >= .10) and boss or elite and (not pbuffs['Energy Absorb']) and (not pbuffs['Power of the Oak']) and (not pbuffs['Connection']) },
{ name = "Energy Absorb", use = (pctEB1 >= .10) and boss or elite and (not pbuffs['Savage Power']) and (not pbuffs['Power of the Oak']) and (not pbuffs['Connection']) },
{ name = "Power of the Oak", use = (pctEB1 >= .10) and boss or elite and (not pbuffs['Savage Power']) and (not pbuffs['Energy Absorb']) and (not pbuffs['Connection']) },
{ name = "Elven Prayer", use = (pctEB1 >= .10) and boss or elite and (not pbuffs['Savage Power']) and (not pbuffs['Energy Absorb']) and (not pbuffs['Power of the Oak']) },
{ name = "Elven Amulet", use = (pctEB1 >= .10) and boss or elite and (not pbuffs['Mother Earth's Protection']) },
{ name = "Mother Earth's Protection", use = (pctEB1 >= .10) and boss or elite and (not pbuffs['Elven Amulet']) },
{ name = "Explosion of Power", use = (pctEB1 >= .10) and boss or elite },
{ name = "Thorny Vines", use = (pctEB1 >= .05) },
{ name = "Frantic Briar", use = (pctEB1 >= .05) },
}
end
|
|
|
Source code |
1 |
{ name = "Pet Skill: 6 (Magic Control)", use= true },
|
|
|
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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
function KnightPriest(arg1,arg2)
local Skill = {}
local i = 0
local tgt = "player"
local rage = UnitSkill("player")
local friendly = (not UnitCanAttack("player","target"))
local shield = true
local health = PctH("player")
local tgtcast = UnitCastingTime("target")
local tDead = UnitIsDeadOrGhost()
local thealth = PctH("target")
if GetEquipSlotInfo(17) == nil then
shield = false
end
local pbuffs = BuffList("player")
local tbuffs = BuffList("target")
-- Buffs
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'] = "Magic Barrier", ['use'] = (not string.find(pbuffs,"Magic Barrier")) }
-- i=i+1; Skill[i] = { ['name'] = "Blessed Spring Water", ['use'] = (not combat and not string.find(pbuffs,"Blessed Spring Water")) }
-- Heals
i=i+1; Skill[i] = { ['name'] = "Action: 22", ['use'] = (PctM("player") <= .25) }
i=i+1; Skill[i] = { ['name'] = "Holy Shield", ['use'] = (health <= .45) }
i=i+1; Skill[i] = { ['name'] = "Holy Aura", ['use'] = (health <= .40) }
i=i+1; Skill[i] = { ['name'] = "Resolution", ['use'] = (health <= .30) }
i=i+1; Skill[i] = { ['name'] = "Action: 21", ['use'] = (PctH("player") <= .50) }
i=i+1; Skill[i] = { ['name'] = "Urgent Heal", ['use'] = (health <= .80) }
i=i+1; Skill[i] = { ['name'] = "Regenerate", ['use'] = ((health <= .90) and (not string.find(pbuffs,"Regenerate"))) }
-- Shield Attacks
i=i+1; Skill[i] = { ['name'] = "Shield of Valor", ['use'] = ((not friendly) and (health <= .50) and shield) }
-- i=i+1; Skill[i] = { ['name'] = "Shield of Discipline", ['use'] = ((not friendly) and (tgtcast ~= nil) and shield) }
i=i+1; Skill[i] = { ['name'] = "Shield of Atonement", ['use'] = ((not friendly) and (tgtcast ~= nil) and shield) }
-- Attacks
i=i+1; Skill[i] = { ['name'] = "Charge", ['use'] = ((not friendly) and (not string.find(tbuffs,"Charge"))) }
i=i+1; Skill[i] = { ['name'] = "Mana Return", ['use'] = (PctM("player") <= .70) } --(string.find(tbuffs,"Holy Seal 3")) }
i=i+1; Skill[i] = { ['name'] = "Holy Light's Fury", ['use'] = (not string.find(tbuffs,"Holy Light's Fury")) }
i=i+1; Skill[i] = { ['name'] = "Holy Smite", ['use'] = (PctH("target") > 0) }
i=i+1; Skill[i] = { ['name'] = "Punishment", ['use'] = (string.find(tbuffs,"Light Seal III")) }
i=i+1; Skill[i] = { ['name'] = "Shield of Atonement", ['use'] = (not friendly and shield and (not string.find(pbuffs,"Restrained"))) }
i=i+1; Skill[i] = { ['name'] = "Disarmament", ['use'] = (not string.find(tbuffs,"Disarmament III")) }
i=i+1; Skill[i] = { ['name'] = "Holy Strike", ['use'] = (not friendly) }
i=i+1; Skill[i] = { ['name'] = "Threaten", ['use'] = (string.find(tbuffs,"Holy Seals 3") and (not string.find(pbuffs,"Threaten"))) }
i=i+1; Skill[i] = { ['name'] = "Whirlwind Shield", ['use'] = ((not friendly) and shield) }
--Loot or interact with NPC
i=i+1; Skill[i] = { ['name'] = "Attack", ['use'] = (tDead or (not combat and not enemy)) }
MyCombat(Skill,arg1)
end
|
Quoted from "thebadtouch09;571776"
Wondering: How does diyce work with skills that have no GCD like throw and charged chop...because sometimes it feels like there is way too big of a wait between when charged chop goes off and the next skill goes off. Sometimes it doesnt even cast the next skill, it just keeps spaming charged chop. Should i have two seperate diyces and macro them together, one for the skills w/o gcd, and one for the ones with them?
|
|
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 27 28 29 30 31 32 33 34 35 36 37 38 |
--Class: Warden/Rogue
elseif mainClass == "WARDEN" and subClass == "THIEF" then
--Potions and Buffs
Skill = {
{ name = "Action: 13", use = (phealth <= .70) and (not pbuffs['Spirit Herb']) },
{ name = "Action: 14", use = (phealth <= .65) },
{ name = "Action: 15", use = (phealth <= .60) },
{ name = "Action: 33", use = (pctEB1 <= .70) and (not pbuffs['Elemental Spirit Stone']) },
{ name = "Action: 35", use = (pctEB1 <= .50) },
{ name = "Briar Shield", use = (pctEB1 >= .05) and (not pbuffs['Briar Shield']) },
--{ name = "Tranquil Wave", use = (pctEB1 >= .05) and (not pbuffs['Tranquil Wave']) },
{ name = "Heart of the Oak", use = (pctEB1 >= .10) },
{ name = "Protection of Nature", use = (pctEB1 >= .05) and (not pbuffs['Protection of Nature']) },
{ name = "Action: 16", use = (not pbuffs['Caviar Sandwich']) },
}
--Combat
if enemy and (mode == "DPS") then
Skill2 = {
{ name = "Elven Guidance", use = (pctEB1 <= .60) and (pctEB1 >= .05) },
{ name = "Energy Absorb", use = (pctEB1 >= .10) and boss or elite and (not pbuffs['Savage Power']) and (not pbuffs['Power of the Oak']) },
{ name = "Savage Power", use = (pctEB1 >= .10) and boss or elite and (not pbuffs['Power of the Oak']) and (not pbuffs['Energy Absorb']) },
{ name = "Power of the Oak", use = (pctEB1 >= .10) and boss or elite and (not pbuffs['Savage Power']) and (not pbuffs['Energy Absorb']) },
{ name = "Elven Amulet", use = (pctEB1 >= .10) and boss or elite },
{ name = "Explosion of Power", use = (pctEB1 >= .10) and boss or elite },
{ name = "Cross Chop", use = (pctEB1 >= .05) },
{ name = "Power of the Wood Spirit", use = (pctEB1 >= .05) and (thealth <= .30) },
{ name = "Charged Chop", use = (pctEB1 >= .05) },
{ name = "Together", use = (EnergyBar2 >= 50) and boss or elite },
{ name = "Pet Skill: 6 (Magic Interference)", use = true },
{ name = "Gravel Attack", use = (EnergyBar2 >= 30) },
{ name = "Thorny Vines", use = (pctEB1 >= .05) },
{ name = "Achilles' Heel Strike", use = (EnergyBar2 >= 30) },
{ name = "Throw", use = true },
{ name = "Frantic Briar", use = (pctEB1 >= .05) },
}
end
|
Quoted from "Gilderoi;573166"
Is anyone else having issues with DIYCE and Sneak Attack? I followed the example given by the warrior/mage that was already in the lau. If Sneak Attack is the first attack used, everything is fine. If something is already attacking me, it wont let me attack back because it constantly wants to use Sneak Attack. This also happens if a health pot or mana pot is used during the fight. It just wants to go directly to Sneak Attack and nothing else.
Also has anyone found a way to add Feint to the combat list? The skill only works after a dodge so I would have thought it would not read as true until a dodge was executed but instead it would just sit there trying to cast Feint so I would get nothing but "Must dodge first before using this ability"
|
|
Source code |
1 |
{ name = "Sneak Attack", use = ((EnergyBar1 >= 30) and (not combat) and (behind)) },
|
Quoted from "Ravesden;573376"
For Sneak Attack, try:
![]()
Source code
1{ name = "Sneak Attack", use = ((EnergyBar1 >= 30) and (not combat) and (behind)) },
Idk bout warrior's Feint tho. Thought there was an addon around for that, not sure, but it was old. Like ch2/3 old.
|
|
Source code |
1 2 3 4 5 6 7 8 9 |
-- Class: Warrior/Mage
if mainClass == "WARRIOR" and subClass == "MAGE" then
local SurpriseAttack = GetActionUsable(14)
--Combat
if enemy then
Skill2 = {
{ name = "Surprise Attack", use = SurpriseAttack },
|