Warl0ck45
Well-known member
- Joined
- Jan 31, 2014
- RedCents
- 8,554¢
Can't seem to find the thread discussing ${If[,,]} statements... so this may be a might confusing.
Basically this is putting all the PAL/SK defensive disc's into one holyshit. First I will space it out so it it makes a little better sense:
!${Me.ActiveDisc.ID} = if there is no active disc
${Target.Distance}<75 = Target is closer then 75 (change to what ever you like)
${Me.PctEndurance}>5 = endurance percentage is over 5% (no sense spamming trying to do a disc you don't have end for)
if all of these are true, then we move on to the special section...
(${Target.Named} || ${Me.XTarget}>2 || ${Target.Level}>=${Math.Calc[${Me.Level}+3]} || ${Me.PctHPs}<75)
4 part check, will return true if:
target is named
toon has over 2 mobs on XTarget list
target is 3 levels or higher then toon
toon's HPs drop below 75 (change to what ever you like)
if any of those 4 things are true, we activate a defensive measure. In this case the order is:
Group Armor of the Inquisitor - AA (so will fire if up)
Blessed Guardian Discipline - Disc 1
Kar'Zok Mantle - Disc 2 (fires if disc 1 is not available)
Armor of Mercy - Disc 3 (fires if disc 2 is not available)
Reflexive Righteousness - Disc 4 (you guessed it...)
Fundament: First Spire of Holiness - AA
This way the plugin is not checking 6 lines with basically the same conditions over and over, but rather checking the conditions once, and then firing the first thing that it can.
Thus the line looks like this for paladins.
Figured since I was updating mine, I might save someone else a little work
Basically this is putting all the PAL/SK defensive disc's into one holyshit. First I will space it out so it it makes a little better sense:
Rich (BB code):
holyshit1=/if (!${Me.ActiveDisc.ID} && ${Target.Distance}<75 && ${Me.PctEndurance}>5 && ${Target.Assist} && (${Target.Named} || ${Me.XTarget}>2 || ${Target.Level}>=${Math.Calc[${Me.Level}+3]} || ${Me.PctHPs}<75))
${If[${Me.AltAbilityReady[Group Armor of the Inquisitor]},/casting "Group Armor of the Inquisitor" ALT,
${If[${Me.CombatAbilityReady[${Spell[Blessed Guardian Discipline].RankName}]},/disc ${Spell[${Spell[Blessed Guardian Discipline].RankName}].ID},
${If[${Me.CombatAbilityReady[${Spell[Kar'Zok Mantle].RankName}]},/disc ${Spell[${Spell[Kar'Zok Mantle].RankName}].ID},
${If[${Me.CombatAbilityReady[${Spell[Armor of Mercy].RankName}]},/disc ${Spell[${Spell[Armor of Mercy].RankName}].ID},
${If[${Me.CombatAbilityReady[${Spell[Reflexive Righteousness].RankName}]},/disc ${Spell[${Spell[Reflexive Righteousness].RankName}].ID},
${If[${Me.AltAbilityReady[Fundament: First Spire of Holiness]},/casting "Fundament: First Spire of Holiness" ALT,
]}]}]}]}]}]}
!${Me.ActiveDisc.ID} = if there is no active disc
${Target.Distance}<75 = Target is closer then 75 (change to what ever you like)
${Me.PctEndurance}>5 = endurance percentage is over 5% (no sense spamming trying to do a disc you don't have end for)
if all of these are true, then we move on to the special section...
(${Target.Named} || ${Me.XTarget}>2 || ${Target.Level}>=${Math.Calc[${Me.Level}+3]} || ${Me.PctHPs}<75)
4 part check, will return true if:
target is named
toon has over 2 mobs on XTarget list
target is 3 levels or higher then toon
toon's HPs drop below 75 (change to what ever you like)
if any of those 4 things are true, we activate a defensive measure. In this case the order is:
Group Armor of the Inquisitor - AA (so will fire if up)
Blessed Guardian Discipline - Disc 1
Kar'Zok Mantle - Disc 2 (fires if disc 1 is not available)
Armor of Mercy - Disc 3 (fires if disc 2 is not available)
Reflexive Righteousness - Disc 4 (you guessed it...)
Fundament: First Spire of Holiness - AA
This way the plugin is not checking 6 lines with basically the same conditions over and over, but rather checking the conditions once, and then firing the first thing that it can.
Thus the line looks like this for paladins.
Rich (BB code):
holyshit1=/if (!${Me.ActiveDisc.ID} && ${Target.Distance}<75 && ${Me.PctEndurance}>5 && (${Target.Named} || ${Me.XTarget}>2 || ${Target.Level}>=${Math.Calc[${Me.Level}+3]} || ${Me.PctHPs}<75)) ${If[${Me.AltAbilityReady[Group Armor of the Inquisitor]},/casting "Group Armor of the Inquisitor" ALT,${If[${Me.CombatAbilityReady[${Spell[Blessed Guardian Discipline].RankName}]},/disc ${Spell[${Spell[Blessed Guardian Discipline].RankName}].ID},${If[${Me.CombatAbilityReady[${Spell[Kar'Zok Mantle].RankName}]},/disc ${Spell[${Spell[Kar'Zok Mantle].RankName}].ID},${If[${Me.CombatAbilityReady[${Spell[Armor of Mercy].RankName}]},/disc ${Spell[${Spell[Armor of Mercy].RankName}].ID},${If[${Me.CombatAbilityReady[${Spell[Reflexive Righteousness].RankName}]},/disc ${Spell[${Spell[Reflexive Righteousness].RankName}].ID},${If[${Me.AltAbilityReady[Fundament: First Spire of Holiness]},/casting "Fundament: First Spire of Holiness" ALT,]}]}]}]}]}]}
Figured since I was updating mine, I might save someone else a little work

