• 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

What's wrong with my code?

${MeleeOn}? You might want to try ${Melee.Combat}, and take the quotes off backstab on the abilityready. Let me know if that works for you.
 
3 minutes, you beat my post by three minutes! Clearly the time to lookup the mq2melee tlo's has cost me dearly!
 
Rich (BB code):
/if (${Melee.Combat} && ${Me.CombatAbilityReady[Deadeye Discipline]}) /call Cast "Deadeye Discipline"
you don't need the alt on there... spell routines auto detects if its a combat ability or a spell...
 
Can't you get away with doing /casting instead of /call cast? /casting is a mq2cast command, I find it much more reliable than spellroutines.inc

Also if this is a holyshit in mq2melee I don't think you can call subroutines in a macro from a plugin without weird stuff happening.
 
/if (${Melee.Combat} && ${Me.AbilityReady[Backstab]} && ${Target.Distance}<16.5) /doability "Backstab"
/if (${Melee.Combat} && ${Me.AltAbilityReady[Deadeye Discipline]}) /disc "Deadeye Discipline"
/if (${Melee.Combat} && ${Me.AltAbilityReady[Kinesthetics Discipline]}) /disc "Kinesthetics Discipline"
/if (${Melee.Combat} && ${Me.AltAbilityReady[Counterattack Discipline]}) /disc "Counterattack Discipline"

Does not /disc at all
 
disc = ${Me.CombatAbilityReady[]} /disc
AA = ${Me.AltAbiltiyReady[]} /alt activate or /call Cast
Spell = ${Me.SpellReady[]} /call Cast

/call Cast has to have an #include Spell_routines.inc in your mac

you are trying to use aa for disc doesn't work
 
You're seeing our correction but not processing why yours dont work.

${Me.AltAbilityReady[Counterattack Discipline]

${Me.AltAbilityReady refers to an AA when counterattack is not an AA.
${Me.CombatAbilityReady refers to combat disc like Counterattack
${Me.SpellReady refers to spells for classes that have spells.

Take what I've said and look at your code and see where you messed up.

As far as why you're casting them disc in that situation.

Counterattack is a ripo disc like reckless right ? Wouldn't you only cast this when close to death or when you pulled too many mobs ? Wouldn't you want something like.

/if (${Melee.Combat} && !${Melee.DiscID} && ${Me.PctHPs}<10 && ${Me.CombatAbilityReady[Counterattack Discipline]}) /disc "Counterattack Discipline"

This would only use the disc if you're attacking and your health is under 10%. Using it otherwise is a waste especially if you don't have aggro on something.
 
apparently its /doability.

Of course, when one problem is solved three more arise. I am getting spammed "You are already using a discipline!". What about an event?

Rich (BB code):
#Event  AlreadyUsingDisc    "You are already using a discipline!"

Sub Event_AlreadyUsingDisc
do nothing
else


	        /if (${Melee.Combat} && ${Cursor.ID} ) /autoinv	
		/if (${Melee.Combat} && ${Me.CombatAbilityReady[Deadeye Discipline]}) /doability "Deadeye Discipline"
		/if (${Me.CombatAbilityReady[Kinesthetics Discipline]} && ${Melee.Combat}) /doability "Kinesthetics Discipline"
		/if (${Melee.Combat} && ${Me.CombatAbilityReady[Counterattack Discipline]}) /doability "Counterattack Discipline"
        	/if (${Melee.Combat} && ${Me.AbilityReady[Backstab]} && ${Target.Distance}<16.5) /doability "Backstab"

	

                    /return
                }
 
Add !${Melee.DiscID} to them and its not doability while that will work /disc s the way to go. doability is for backstab

Try

/if (${Melee.Combat} && !${Melee.DiscID} && ${Me.CombatAbilityReady[Deadeye Discipline]}) /disc Deadeye Discipline
 
Here is a great example of it all using my af_ber macros burn routine. This shows plenty of variables you can use to determine when to and when not to use a disc. It doesn't say the disc names because them are defined in the macros ini but you get the idea.

Rich (BB code):
/if (${UseOPFrenzy} && ${Me.CombatAbilityReady[${OPFrenzy}]} && ${Me.PctEndurance}>=5 && ${Target.PctHPs}<98 && ${Me.Combat}) /disc ${OPFrenzy}
/if (${UseVAX} && ${Me.CombatAbilityReady[${VAX}]} && ${Me.PctEndurance}>=5 && ${Target.PctHPs}<96 && ${Me.Combat}) /disc ${VAX}
/if (${UseVolley} && ${Me.CombatAbilityReady[${Volley}]} && ${Me.PctEndurance}>=5 && ${Target.PctHPs}<94 && ${Me.Combat}) /doability "${Volley}"
/if (${UseAOR} && ${Me.CombatAbilityReady[${AOR}]} && ${Me.PctEndurance}>=5 && ${Target.PctHPs}<94 && ${Me.Combat}) /doability "${AOR}"
/if (${UseSS} && ${Me.AltAbilityReady[Savage Spirit]} && ${Me.Combat} && ${NameList.Find[${Target.CleanName}]} && ${Target.PctHPs}<${WhenToBurn}) {
 /alt act 3710
/delay 3s
 /alt act 499
/delay 3s
 /alt act 465
}
/if (${UseBer} && !${Melee.DiscID} && !${Me.AltAbilityReady[Savage Spirit]} && ${Me.CombatAbilityReady[${Ber}]} && ${Me.Combat} && ${NameList.Find[${Target.CleanName}]} && ${Target.PctHPs}<${WhenToBurn}) /disc ${Ber}
/if (${UseCleaving} && !${Melee.DiscID} && !${Me.CombatAbilityReady[${Ber}]} && !${Me.AltAbilityReady[Savage Spirit]} && ${Me.CombatAbilityReady[${Cleaving}]} && ${Target.PctHPs}<${WhenToBurn} && ${NameList.Find[${Target.CleanName}]}) /disc ${Cleaving}
/if (${UseWarcry} && ${Me.CombatAbilityReady[${Warcry}]} && ${Me.Combat} && ${Target.PctHPs}<${WhenToBurn} && ${NameList.Find[${Target.CleanName}]}) /disc ${Warcry}
/if (${UseVehRage} && ${SpawnCount[npc radius 35 zradius 100]}>1 && ${Me.AltAbilityReady[Vehement Rage]} && ${Me.Combat} && ${Target.PctHPs}>40 && ${Target.PctHPs}<${WhenToBurn}) /alt act 800
/if (${UseJugg} && ${SpawnCount[npc radius 35 zradius 100]}>1 && ${Me.AltAbilityReady[Juggernaut Surge]} && ${Me.Combat} && ${Target.PctHPs}>40 && ${Target.PctHPs}<${WhenToBurn}) /alt act 961
/if (${UseThirdspire} && ${SpawnCount[npc radius 35 zradius 100]}>1 && ${Me.AltAbilityReady[Fundament: Third Spire of Savagery]} && ${Target.PctHPs}>40 && ${Me.Combat} && ${Target.PctHPs}<${WhenToBurn}) /alt act 1502
/if (${UseEpic2} && ${Cast.Ready[VengeFul Taelosian Blood Axe]} && ${Target.PctHPs}>40 && !${Me.Buff[Blinding Fury].ID} && ${Target.PctHPs}<90 && !${Me.Moving} && ${Me.Combat}) /casting "VengeFul Taelosian Blood Axe"
/if (${UseEpic2} && ${Cast.Ready[Raging Taelosian Alloy Axe]} && ${Target.PctHPs}>40 && !${Me.Buff[Blinding Fury].ID} && ${Target.PctHPs}<90 && !${Me.Moving} && ${Me.Combat}) /casting "Raging Taelosian Alloy Axe"
/if (${UseBlinding} && ${Me.AltAbilityReady[Blinding Fury]} && !${Me.Song[Strike of Savagery].ID} && ${Target.PctHPs}<98 && ${Target.PctHPs}>40 && ${Me.Combat}) /alt act 610 
/if (${UseBer} && !${Melee.DiscID} && ${Me.CombatAbilityReady[${Ber}]} && ${Me.Combat} && ${SpawnCount[npc radius 20 zradius 20]}>2 && ${Target.PctHPs}<${WhenToBurn}) /disc ${Ber}
/if (${UseCleaving} && !${Melee.DiscID} && !${Me.CombatAbilityReady[${Ber}]} && !${Me.AltAbilityReady[Savage Spirit]} && ${SpawnCount[npc radius 35 zradius 100]}>2 && ${Me.Combat} && ${Me.CombatAbilityReady[${Cleaving}]}) /disc ${Cleaving}
/if (${UseVengeful} && !${Melee.DiscID} && ${Target.PctHPs}>40 && ${Target.PctHPs}<80 && !${Me.Buff[Blinding Fury].ID} && ${Me.Combat} && ${Me.CombatAbilityReady[${Vengeful}]}) /disc ${Vengeful}
/if (${UseVengeful} && !${Melee.DiscID} && ${NameList.Find[${Target.CleanName}]} && !${Me.CombatAbilityReady[${Cleaving}]} && !${Me.AltAbilityReady[Savage Spirit]} && !${Me.CombatAbilityReady[${Ber}]} && !${Me.Buff[Blinding Fury].ID} && ${Me.Combat} && ${Me.CombatAbilityReady[${Vengeful}]}) /disc ${Vengeful}
/if (${UseSS} && ${Me.AltAbilityReady[Reckless Abandon]} && ${Me.AltAbilityReady[Cascading Rage]} && ${Me.AltAbilityReady[Savage Spirit]} && !${Melee.DiscID} && ${Me.Combat} && ${SpawnCount[npc radius 35 zradius 100]}>3 && ${Target.PctHPs}<${WhenToBurn}) {
 /alt act 3710
/delay 3s
 /alt act 499
/delay 3s
 /alt act 465
}
/if (${UseSS} && ${Me.AltAbilityReady[Savage Spirit]} && !${Melee.DiscID} && ${Me.Combat} && ${SpawnCount[npc radius 35 zradius 100]}>3 && ${Target.PctHPs}<${WhenToBurn}) {
 /alt act 3710
/delay 3s
 /alt act 499
/delay 3s
 /alt act 465
}
 
What's wrong with my code?

Users who are viewing this thread

Back
Top
Cart