• Hail, we're RedGuides. We want you to play six (yes, 6!) EverQuest characters at once. We have scripts and a friendly community to help, please join our playstyle and say hello! 👋
  • We've added LLM sections to our Terms & Rules and Resource Rules, for everyone's sanity & in-game safety.
    Read more
    a. Do not replace your voice with an LLM. This goes for your posts and your scripts. Drafting and editing with a tool is fine, but don't take you out of what you share.
    b. Do not replace your EQ character's voice with an LLM. We don't want scripts that speak over /ooc, /shout or other public channels. This has been an unwritten rule that's kept casino scripts off the site for decades, but we're now compelled to make it clear: keep automated communication private.

    Why Does RG Review Scripts?
    Nearly every LLM-written Lua script we see is making your character do impossible things, and rarely in a way that's beneficial to you. We've seen heavy server hammering, /target over impossible distances when /nav spawn would passively accomplish the same thing, a spawn search that fires 20+ times per second, and other pointless actions that are likely annoying GMs.

    You are welcome to use LLMs as a tool to structure, draft, and edit your work, but please read critically before hitting /lua run

RoS Defensive- Holyshit (1 Viewer)

Warl0ck45

Well-known member
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:

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
 
Rich (BB code):
downshit1=/if (${Me.PctEndurance}<25 && !${Me.Song[Breather].ID} && ${Me.CombatAbilityReady[${Spell[Breather].RankName}]} && ${Me.CurrentEndurance}>100 && !${Select[${Zone.ID},345,344,202,203,279,151,33506]} && !${Melee.DiscID}) /disc ${Spell[Breather].RankName}
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,]}]}]}]}]}]}
holyshit10=/if ((${Me.TargetOfTarget.ID}!=${Me.ID} || ${Me.SecondaryPctAggro}>80) && ${Group.MainTank.ID}==${Me.ID} && ${Me.CombatAbilityReady[${Spell[Unyielding Affirmation].RankName}]}) /disc ${Spell[Unyielding Affirmation].RankName}
holyshit11=/if (${Me.AltAbilityReady[Marr's Gift]} && ${Me.PctMana}<80) /alt activate 1282
holyshit12=/if (!${Target.Slowed.ID} && ${Me.Inventory[mainhand].ID}!=133167  && (!${SpawnCount[pc slower group]}  || ${SpawnCount[pc group slower]} && ${Spawn[pc group slower].Type.Equal[Corpse]}) && ${Target.Body.Name.NotEqual[Undead]}) /Bandolier Activate Slow
holyshit13=/if (${Target.Slowed.ID} && ${Me.Inventory[mainhand].ID}!=148825) /Bandolier Activate 1Hand
holyshit14=/if (${Cast.Ready[Necromantic Dragon Bone]} && ${Target.PctHPs}<96 && ${Me.PctAggro}>50)   /casting "Necromantic Dragon Bone" item
holyshit15=/if (${Target.Body.Name.Equal[Undead]} && ${Me.AltAbilityReady[Vanquish the Fallen]}) /alt activate 2029
holyshit16=/if (${Me.PctHPs}<60 && ${Me.AltAbilityReady[Hand of Piety]}) /alt act 180
holyshit17=/if (${Me.PctHPs}<40 && ${Me.AltAbilityReady[Lay on Hands]}) /multiline; /target ID ${Me.ID}; /alt act 6001
holyshit18=/if ((${Me.TargetOfTarget.ID}!=${Me.ID} || ${Me.PctAggro}<100) && ${Group.MainTank.ID}==${Me.ID} && ${Melee.AggroMode} && ${Me.AbilityReady[Taunt]}) /doability taunt
holyshit19=/if (${Me.SpellReady[${Spell[Splash of Atonement].RankName}]} && ${Me.PctMana}>10 && ${Target.CanSplashLand} && (${Me.Diseased.ID} || ${Me.Poisoned.ID} || ${Me.Cursed.ID})) /casting "${Spell[Splash of Atonement].RankName}" Gem6
holyshit2=/if (${Me.SpellReady[${Spell[Force of the Timorous Deep].RankName}]} && ${Me.PctMana}>10) /casting "${Spell[Force of the Timorous Deep].RankName}" Gem2
holyshit20=/if (${Me.SpellReady[${Spell[Lesson of Expiation].RankName}]} && ${Me.PctMana}>10) /casting "${Spell[${Spell[Lesson of Expiation].RankName}].ID}"
holyshit21=/if (${Me.SpellReady[${Spell[Crush of E'Ci].RankName}]} && ${Me.PctMana}>10) /casting "${Spell[${Spell[Crush of the Timorous Deep].RankName}].ID}"
holyshit3=/if (${Me.SpellReady[${Spell[Devout Audacity].RankName}]} && ${Me.PctMana}>10) /casting "${Spell[Devout Audacity].RankName}"
holyshit4=/if ((${Me.TargetOfTarget.ID}!=${Me.ID} || ${Me.SecondaryPctAggro}>80) && ${Group.MainTank.ID}==${Me.ID} && ${Me.AltAbilityReady[Projection of Piety]}) /alt act 3216
holyshit5=/if (${Me.SpellReady[${Spell[Force of Mercy].RankName}]} && ${Me.PctMana}>10) /casting "${Spell[${Spell[Force of Mercy].RankName}].ID}"
holyshit6=/if (${Me.AltAbilityReady[Banestrike]} && ${Target.Distance}<=50) /alt activate 15073
holyshit7=/if (${Cast.Ready[Blood Drinker's Coating]} && !${Me.Song[Vampiric Aura].ID})   /casting "Blood Drinker's Coating" item
holyshit8=/if (${Me.SpellReady[${Spell[Harmonious Blessing].RankName}]} && ${Me.PctMana}>10) /casting "${Spell[${Spell[Harmonious Blessing].RankName}].ID}"
holyshit9=/if (${Me.AltAbilityReady[489]}) /alt activate 489

Some folks was asking so, here is the rest of what my pally uses (till I get the others leveled anyways, heh)

If you ware looking to use these, may want to remove the item casts if you don't have the items.

I also have a slow stick on my pally I use when there is not a slower in the group. May want to take that out as well =)
 
RoS Defensive- Holyshit

Users who are viewing this thread

Back
Top
Cart