|
|
Source code |
1 2 3 4 5 |
--Check for level 1 mobs, if it is, drop target and acquire a new one.
if (LockedOn and (UnitLevel("target") < 2)) then
TargetUnit("")
return
end
|
Quoted
--Class: Warrior/Warden
if mainClass == "WARRIOR" and subClass == "WARDEN" then
local SurpriseAttack = GetActionUsable(14)
--Potions and Buffs
Skill = {
{ name = "Action: "..healthpot, use = (phealth <= .70) },
{ name = "Action: "..manapot, use = (pctEB2 <= .40) },
{ name = "Action: "..HoTslot, use = (phealth < .80) and (not party) },
{ name = "Aggressiveness", use = boss and enemy },
}
--Combat
if enemy then
Skill2 = {
{ name = "Surprise Attack", use = SurpriseAttack },
{ name = "Enraged", use = (EnergyBar1 <= 30) and (boss or elite) },
{ name = "Attack", use = (thealth == 1) },
}
end
Quoted
interface\AddOns\DIYCE\CustomFunctions.lua [string '?']:216:function arguments expected near '/'
[string 'KillSequence('v2')']:1: attempt to call global 'KillSequence' (a nil value)
ended up solving it, so i guess that problem's solved lol
Quoted
-- Class: Warrior/Warden
--{ name = "Action: "..HoTslot, use = (phealth < .80) and (not party) },
Quoted from "Dark701;516284"
So the other question I had was about the targetting. Does it automatically not target pets? also is there a way to make it selectively target only players?
I've got two macros on a bar, with one hooked to tab, i switch when i want to target all but pets or just players. looking to hopefully not have to use that and just use diyce for it.
Quoted from "Dark701;516284"
The other part to this, is my targetting macros as they sit will target things behind me as well as things in front. from what i can tell diyce wont do that, is there any way to make it? this is kind of an important thing vs rogues or runners in sw.
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 |
if not backup_TargetNearestEnemy then
backup_TargetNearestEnemy=TargetNearestEnemy
end
function TargetNearestEnemy(shiftKeyDown)
for i=1,10 do
backup_TargetNearestEnemy(shiftKeyDown)
if not UnitMaster("target") then break end
end
if UnitMaster("target") then TargetUnit("") end
end
|
|
|
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 |
Skill = {
{ name = "Survival Instinct", use = (phealth <= .49) },
{ name = "Action: "..healthpot, use = (phealth <= .70) },
{ name = "Action: "..manapot, use = (pctEB2 <= .40) },
{ name = "Briar Shield", use = (pctEB2 >= .05) and ((not pbuffs['Briar Shield']) or (pbuffs['Briar Shield'].time <= 45)) },
{ name = "Battle Creed", use = (pctEB2 >= .05) and ((not pbuffs['Battle Creed']) or (pbuffs['Battle Creed'].time <= 45)) },
}
--Combat
if enemy then
Skill2 = {
{ name = "Savage Power", use = (pctEB2 >= .05) and boss },
{ name = "Aggressiveness", use = boss },
{ name = "Berserk", use = ((pctEB1 >= .25) and boss and (not pbuffs['Berserk'])) },
{ name = "Frenzy", use = boss },
{ name = "Elven Amulet", use = (pctEB2 >= .05) and boss },
{ name = "Surprise Attack", use = SurpriseAttack },
{ name = "Savage Whirlwind", use = (pctEB2 >= .05) },
{ name = "Open Flank", use = (pctEB1 >= .10) and (tbuffs['Vulnerable']) },
{ name = "Probing Attack", use = (pctEB1 >= .20) },
{ name = "Slash", use = (pctEB1 >= .25) },
{ name = "Power of the Wood Spirit", use = (pctEB2 >= .05) },
{ name = "Enraged", use = (EnergyBar1 <= 30) and (boss or elite) },
{ name = "Attack", use = (thealth == 1) },
}
end
|
Quoted from "Dark701;516443"
So I had the chance to test my script out, and these are the problems i'm running into...
1) if the fight lasts longer than the charge CD then it goes to too close to target messages and wont continue with any other skills... is there any way to avoid this? if not i'll just take it out and use charge manually.
Quoted from "xTeKNiK;516703"
I hate to sound like a total scrub here, but this is my first time on the forums. Def not my first time on the game though. Im rollin Rogue / Scout atm, and I just decided to jump all the way from DIYCE 1.4 to 2.2. I figured i'd give your script a try, and I go to use it, and nothing works on the melee side. It ranged attacks fine, and it'll cast Shadowstab, but thats about it. Energy Thief also isnt working in the Burns macro.
Any ideas? I made sure to go in and change the action bar numbering on every spell, etc. I dont have Unknown Choice, or the Caviar Sandwiches (atm at least), would that effect the addon that drastically? I also tried removing the lines containing the two completely, and to no avail. =/
Halp?![]()
|
|
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 |
-- Class: Warrior/Warden
if mainClass == "WARRIOR" and subClass == "WARDEN" then
--local SurpriseAttack = GetActionUsable(14)
--Potions and Buffs
Skill = {
{ name = "Survival Instinct", use = (phealth <= .49) },
{ name = "Action: "..healthpot, use = (phealth <= .60) },
{ name = "Action: "..manapot, use = (pctEB2 <= .40) },
{ name = "Briar Shield", use = (pctEB2 >= .05) and ((not pbuffs['Briar Shield']) or (pbuffs['Briar Shield'].time <= 45)) },
{ name = "Battle Creed", use = (pctEB2 >= .05) and ((not pbuffs['Battle Creed']) or (pbuffs['Battle Creed'].time <= 45)) },
}
--Combat
if enemy then
Skill2 = {
{ name = "Surprise Attack", use = (thealth == 1) }, --SurpriseAttack and (not melee) },
{ name = "Savage Whirlwind", use = (pctEB2 >= .05) },
{ name = "Tactical Attack", use = ((tbuffs[500081]) and (EnergyBar1 >= 16)) },
{ name = "Attack Weakener", use = ((pctEB2 >= .05) and tbuffs['Vulnerable'] and (not pbuffs['Aggressiveness'])) },
{ name = "Open Flank", use = ((tbuffs['Vulnerable']) and (EnergyBar1 >=11)) },
{ name = "Probing Attack", use = ((EnergyBar1 >= 21) and (tbuffs[500081])) },
{ name = "Slash", use = (EnergyBar1 >= 26), timer = "SSBleed", ignoretimer = (pbuffs['Aggressiveness']) },
{ name = "Power of the Wood Spirit", use = (pctEB2 >= .05) },
{ name = "Attack", use = (thealth == 1) },
}
end
|
Quoted from "Dark701;517394"
So I tried the "not melee" thing and now surprise attack wont go off with or without it... here's the code again.
note the only way I can get surprise attack to cast is by commenting out the "local SurpriseAttack = GetActuionUsable(14)" and the "use = SurpriseAttack and (not melee) }," lines.
![]()
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-- Class: Warrior/Warden if mainClass == "WARRIOR" and subClass == "WARDEN" then --local SurpriseAttack = GetActionUsable(14) --Potions and Buffs Skill = { { name = "Survival Instinct", use = (phealth <= .49) }, { name = "Action: "..healthpot, use = (phealth <= .60) }, { name = "Action: "..manapot, use = (pctEB2 <= .40) }, { name = "Briar Shield", use = (pctEB2 >= .05) and ((not pbuffs['Briar Shield']) or (pbuffs['Briar Shield'].time <= 45)) }, { name = "Battle Creed", use = (pctEB2 >= .05) and ((not pbuffs['Battle Creed']) or (pbuffs['Battle Creed'].time <= 45)) }, } --Combat if enemy then Skill2 = { { name = "Surprise Attack", use = (thealth == 1) }, --SurpriseAttack and (not melee) }, { name = "Savage Whirlwind", use = (pctEB2 >= .05) }, { name = "Tactical Attack", use = ((tbuffs[500081]) and (EnergyBar1 >= 16)) }, { name = "Attack Weakener", use = ((pctEB2 >= .05) and tbuffs['Vulnerable'] and (not pbuffs['Aggressiveness'])) }, { name = "Open Flank", use = ((tbuffs['Vulnerable']) and (EnergyBar1 >=11)) }, { name = "Probing Attack", use = ((EnergyBar1 >= 21) and (tbuffs[500081])) }, { name = "Slash", use = (EnergyBar1 >= 26), timer = "SSBleed", ignoretimer = (pbuffs['Aggressiveness']) }, { name = "Power of the Wood Spirit", use = (pctEB2 >= .05) }, { name = "Attack", use = (thealth == 1) }, } end
also error button says nothing but an error from cgnspam that i've had forever.
I tried doing it by the name of the skill ''Brash Ferocity Strike", but it doesn't work ;/
Quoted from "Dark701;517595"
I used the
![]()
Source code
1 SurpriseAttack and (not melee) },
line that someone posted on the last page
|
|
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 |
-- Player and target status. local combat = GetPlayerCombatState()
local enemy = UnitCanAttack("player","target")
local EnergyBar1 = UnitMana("player")
local EnergyBar2 = UnitSkill("player")
local pctEB1 = PctM("player")
local pctEB2 = PctS("player")
local tbuffs = BuffList("target")
local pbuffs = BuffList("player")
local tDead = UnitIsDeadOrGhost("target")
local tank = UnitIsUnit("player", "targettarget")
local melee = GetActionUsable(4) -- # is your melee range spell slot number
-- local behind = GetActionUsable(3) -- # is your blind spot spell slot number
local a1,a2,a3,a4,a5,ASon = GetActionInfo(6) -- # is your Autoshot slot number
local phealth = PctH("player")
local thealth = PctH("target")
local LockedOn = UnitExists("target")
local boss = UnitSex("target") > 2
local elite = UnitSex("target") == 2
local party = GetNumPartyMembers() >= 2
local PetExists = UnitExists("playerpet")
local petname = UnitName("playerpet")
local pethealth = PctH("playerpet")
local petbuffs = BuffList("playerpet")
local petAttackActive = false
|
|
|
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 |
--Class: Rogue/Priest
elseif mainClass == "THIEF" and subClass == "AUGUR" then
--CreateDIYCETimer("SSBleed", 6.5) --Change the value between 6 -> 7.5 depending on your lag.
--CreateDIYCETimer("LBBleed", 8.5) --Change the value between 7 -> 8.5 depending on your lag.
--goat2: 0 = Buffs, 1 = Melee, 2 = CDs, 3 = Burn CDs
--left to figure out: rest of r/p elites, ss/lb bleed timers?
if (goat2 == "0") then
Skill = {
{ name = "Poison", use = ((not pbuffs['Poisonous']) or (pbuffs['Poisonous'].time <= 45))},
{ name = "Magic Barrier", use = (pctEB2 >= .05) and ((not pbuffs['Magic Barrier']) or (pbuffs['Magic Barrier'].time <= 45)) },
{ name = "Quickness Aura", use = (pctEB2 >= .05) and ((not pbuffs['Quickness Aura']) or (pbuffs['Quickness Aura'].time <= 45)) },
--{ name = "Action: 62 (Yawaka's Blessing)", use = ((not pbuffs['Yawaka's Blessing'])) }, -- don't have (yet)
}
elseif (goat2 == "2") then
Skill = {
--{ name = "Action: 64 (Unknown Choice)", use = ((EnergyBar1 > 20)) }, -- don't have (yet)
--{ name = "Action: 34 (Extinction Potion)", use = ((boss) and (not pbuffs['Extinction Potion'])) }, -- don't use (yet)
--{ name = "Action: 30 (Strong Stimulant)", use = ((boss) and (not pbuffs['Fervent Attack'])) }, -- don't use (yet)
{ name = "Evasion", use = (boss) },
}
elseif (goat2 == "3") then
Skill = {
{ name = "Informer", use = ((not pbuffs['Informer'])) },
--{ name = "Action: 64 (Unknown Choice)", use = ((EnergyBar1 > 20)) }, -- don't have (yet)
--{ name = "Action: 34 (Extinction Potion)", use = ((boss) and (not pbuffs['Extinction Potion'])) }, -- don't use (yet)
--{ name = "Action: 30 (Strong Stimulant)", use = ((boss) and (not pbuffs['Fervent Attack'])) }, -- don't use (yet)
{ name = "Evasion", use = (boss) },
{ name = "Assassins Rage", use = (boss) },
{ name = "Fervent Attack", use = ((boss) and (not pbuffs['Strong Stimulant'])) },
}
end
if ((enemy) and (goat2 == "1")) then
Skill2 = {
--{ name = "Regenerate", use = (phealth <= .80) and (pctEB2 >= .05) and (not pbuffs['Regenerate']) },
--{ name = "Action: "..healthpot, use = (phealth <= .70) },
--{ name = "Action: "..manapot, use = (pctEB2 <= .40) },
{ name = "Holy Aura", use = (phealth <= .60) },
{ name = "Premeditation", use = (not combat) and boss and (EnergyBar1 >= 50) },
{ name = "Wound Attack", use = ((EnergyBar1 >= 35) and ((tbuffs[500654]) and (tbuffs[500704]))) },
{ name = "Sneak Attack", use = ((EnergyBar1 >= 25) and (behind)) }, --and boss
{ name = "Blind Spot", use = ((EnergyBar1 >= 25) and (behind)) }, --and boss
{ name = "Low Blow", use = ((EnergyBar1 >= 25) and (tbuffs[500654])) }, --timer = "LBBleed" },
{ name = "Shadowstab", use = (EnergyBar1 >= 20), }, --timer = "SSBleed" },
{ name = "Attack", use = (thealth == 1) },
}
end
|
Quoted
My main issue is that it doesn't seem to pay any attention to the "behind" flag. as in it will stop at the sneak attack and just give not behind target errors instead of continuing with the rotation if you aren't actually behind the target.
I guess I was under the assumption the "behind" flag did what it seems it would... is there a way to make it work or does it require a seperate macro for behind skills like the old diyce did?