• 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

/if format

Do you mean directly in the .ini? You are limited to /if (no else). You can use /return to try to get some 'fake' if-then-else's in there and do multiple things with /multiline.

[Script-MeleeTarget]
Commands=1
c1=/if ({Target.ID}!={ACMATarget}) /multiline ; /delay 60s {ACMATarget} ; /target id {ACMATarget}; /delay 5

If you want something really 'involved', you can add it into the source and call it dynamically. If you have something that you think would be a nice-to-have, or need some pointers on getting it going, let me know.
 
My thought was that I could have one buff or debuff that checked for active discs, if there was no active disc then it would go to a script with an if/else chain that had my dps or mitigation discs in the order I would like them cast. It would cut down on the number of AB or AD ini entries and allow me to easily prioritize discing based off of disc refresh.
 
That would be similar to my thoughts behind making https://www.redguides.com/community/threads/39686-Defense-INC?highlight=defense.inc

Making it so if, for what ever reason, I needed my tank to go defensive, I wanted one central script to just handle that. Then I can set up calls for it as needed.

It deosn't do any offensive though.

That may help, or be a place to start.

I also ame up with a very long line to duplicate the effect, just to see if I could do it. It is fairly long though, and can't say I have ever relied on it for long fights. Just wanted to see if I could make it work =)

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.CombatAbilityReady[${Spell[Unholy Guardian Discipline].RankName}]},/disc ${Spell[Unholy Guardian Discipline].RankName},${If[${Me.CombatAbilityReady[${Spell[Doomscale Mantle].RankName}]},/disc ${Spell[${Spell[Doomscale Mantle].RankName}].ID},${If[${Me.CombatAbilityReady[${Spell[Vizat's Carapace].RankName}]},/disc ${Spell[${Spell[Vizat's Carapace].RankName}].ID},${If[${Me.CombatAbilityReady[${Spell[Reflexive Rancor].RankName}]},/disc ${Spell[${Spell[Reflexive Rancor].RankName}].ID},${If[${Me.AltAbilityReady[Armor of Experience]},/casting "Armor of Experience" ALT,${If[${Me.AltAbilityReady[Fundament: Third Spire of the Reaver]},/casting "Fundament: Third Spire of the Reaver" ALT,${If[${Cast.Ready[${Me.Inventory[chest]}]},/casting "${Me.Inventory[chest]}" Item,]}]}]}]}]}]}]}
 
Yeah, I have used it in that capacity as well and I guess the nested ifs might work within the ini for modbot. I'll have to test it later. But it would be nice for beasts and zerkers (and probably others) to try and keep a dmg mod disc running without ending up with a hugh inflated ini file.
 
You can probably do that with the TRUE portions + /return as a multiline on each command line

Something like

c1=/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))) /return
c2=/if ({Me.CombatAbilityReady[${Spell[Unholy Guardian Discipline].RankName}]}) /multiline ; /disc {Spell[Unholy Guardian Discipline].RankName} ; /return
c3=/if ({Me.CombatAbilityReady[{Spell[Doomscale Mantle].RankName}]} /multiline ; /disc {Spell[{Spell[Doomscale Mantle].RankName}].ID} ; /return
.
.
.
Just as a quick example. Not checked for syntax ;)

I suppose that long /if would also work as well.
 
Well, one can certainly work on making a collecting of "offense" related include file. Then toss it up and lets folks weigh in on what works best ( never know, someone may have a better method!) which is one of the reasons I put Defense.inc up, heh.

Many folks have posted a macro ini + MQ2melee ini, but that tends to just work if you use that macro.

I was working on tinkering with quest running macros, and if I was using a tank to pull with I wanted it to behave the same as when using my normal macro (defensively) not to mention, I help friends build up their toons and got REALLY tired of "damn forgot to update soandso's INI" or "damn he upgraded to rank 2.." so Defense.inc met multiple needs/wants for me. Not to mention, we have MQ2Melee for general offensive, it made no sense to me not to have something for general Defensive as well =)

One file to rule them all! =P

Sorry babbling. Working out issues with MQ install and this helps distract me enough I don't pound the PC
 
/if format

Users who are viewing this thread

Back
Top
Cart