|
|
Source code |
1 2 3 4 5 6 |
local LKBR = GetActionUsable(20) -- # is Lion King Battle Roar spell slot number
if enemy then
Skill2 = {
{ name = "Action: 20", use = (pctEB1 >= .07) and LKBR and party and boss },
}
|
Quoted from "SkyFyre;595290"
Ok, either there are a lot of new people using this, or you guys have simply forgotten a lot of the things I taught you along the way...
To call a skill the way you are looking for, put the skill in an action bar slot, and set a local variable to check if it is ready for use. The way you are wanting to do this, it becomes a range check for that specific skill only. I did this with my k/m for the set skill 'Lion King Battle Roar' a long time ago. It looks something like this...
![]()
Source code
1 2 3 4 5 6local LKBR = GetActionUsable(20) -- # is Lion King Battle Roar spell slot number if enemy then Skill2 = { { name = "Action: 20", use = (pctEB1 >= .07) and LKBR and party and boss }, }
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 |
if enemy then
Skill2 = {
{ name = "Wound Attack", use = ((EnergyBar1 >= 35) and ((tbuffs[500654]) and (tbuffs[500704]))) },
{ name = "Blind Spot", use = (((EnergyBar1 >= 35) and (boss) and (behind)) and (pbuffs['Energy Thief'] or pbuffs['Premeditation'])) },
{ name = "Low Blow", use = (((EnergyBar1 >= 45) and (tbuffs[500654])) or (pbuffs['Energy Thief'])) },
{ name = "Shadowstab", use = (EnergyBar1 >= 45) },
{ name = "Throat Attack", use = ((EnergyBar2 >= 50) and (boss or elite) and (silenceThis)) },
{ name = "Vampire Arrows", use = (EnergyBar2 >= 20) },
{ name = "Wrist Attack", use = ((EnergyBar2 >= 50) and (boss)) },
{ name = "Shot", use = ((EnergyBar1 < 20 )) },
}
end
|
Quoted from "Hukster75;595332"
Sorry couldnt reply so quickly but finally understand what you are talking about, and got it to work. Thank you very much.
But now I ran into another issue with my Rogue/Scout side. It was working earlier but now wound attack will not trigger. I dont know if the latest patch change the bleed ID on shadowstab or low blow. Here is my code
![]()
Source code
1 2 3 4 5 6 7 8 9 10 11 12if enemy then Skill2 = { { name = "Wound Attack", use = ((EnergyBar1 >= 35) and ((tbuffs[500654]) and (tbuffs[500704]))) }, { name = "Blind Spot", use = (((EnergyBar1 >= 35) and (boss) and (behind)) and (pbuffs['Energy Thief'] or pbuffs['Premeditation'])) }, { name = "Low Blow", use = (((EnergyBar1 >= 45) and (tbuffs[500654])) or (pbuffs['Energy Thief'])) }, { name = "Shadowstab", use = (EnergyBar1 >= 45) }, { name = "Throat Attack", use = ((EnergyBar2 >= 50) and (boss or elite) and (silenceThis)) }, { name = "Vampire Arrows", use = (EnergyBar2 >= 20) }, { name = "Wrist Attack", use = ((EnergyBar2 >= 50) and (boss)) }, { name = "Shot", use = ((EnergyBar1 < 20 )) }, } end
P.S. Yes i am new, just started using DIYCE 1 week ago and have been reading and reading all these post. I cant wait till the GUI version comes out. And thank you for the replies.
|
|
Source code |
1 2 3 4 5 6 7 8 |
{ name = "Silence", use = (silenceThis) },
{ name = "Wound Attack", use = ((EnergyBar1 >= 35) and ((tbuffs[620313]) and (tbuffs[620314]))) },
{ name = "Low Blow", use = (((EnergyBar1 >= 30) and (tbuffs[620313]))) or (pvp) },
{ name = "Shadowstab", use = (EnergyBar1 >= 20) },
{ name = "Day of Rain", use = (boss or elite) },
{ name = "Throw", use = (true) },
{ name = "Combo Throw", use = (true) },
{ name = "Attack", use = (thealth > 0) },
|
|
|
Source code |
1 2 3 4 5 6 7 |
--{ name = "Wound Attack", use = (EnergyBar1 >= 35) and (tbuffs[620313]) and (tbuffs[620314]) },
--{ name = "Day of Rain", use = (boss or elite) and (tbuffs[620313]) },
--{ name = "Shadowstab", use = (EnergyBar1 >= 20) and (not tbuffs[620313]) },
--{ name = "Throw", use = (true) },
--{ name = "Low Blow", use = (EnergyBar1 >= 30) and (tbuffs[620313]) or (pvp) },
--{ name = "Combo Throw", use = (true) },
--{ name = "Attack", use = (thealth > 0) },
|
|
|
Source code |
1 2 |
{ name = "Function: CancelBuff", use = (pbuffs['Mana Shield']), params = {"Mana Shield"} },
{ name = "Mana Shield", use = (pctEB1 <= .25) },
|
|
|
Source code |
1 |
local buff = string.gsub(buff, "(Function:)( *)(.*)", "%3") |
|
|
Source code |
1 |
{ name = "Function: CancelBuff", use = (pbuffs[501797]), params = {501797} },
|
|
|
Source code |
1 |
{ name = "Function: CancelBuff", use = (pbuffs[501797]), params = {"Mana Shield"} },
|
Quoted from "Skylotus;596239"
Hey if I wanted to use the skill hide only when not in combat it would look like this right? cause it doesn't seem to work... Help pls =)
{ name = "Hide", use = (true) and (not combat) },
|
|
Source code |
1 |
{ name = "Hide", use = not combat },
|