• 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

Ability Ready with /keypress command?

Foxseven

New member
Hey all, I am working on a macro that is a combination of several macros from this site. I am trying to use an AA ability called "Crippling Strike" that I have added to the following area:


|--------------------------------------------------------------------------------
|SUB: Monk Abilities (Epic Click, Mend, Flying Kick, Specials)
|--------------------------------------------------------------------------------
Sub Monkabil
|---------Abilities-------------------------|
/if ((${Me.AbilityReady["Flying Kick"]}) && (${Target.Distance}<18) && (${Me.Endurance}>500)) /doability "Flying Kick"
/if ((${Me.AbilityReady["Mend"]}) && (${Me.PctHPs} < 50)) /doability "Mend"
/if ((${Me.CombatAbilityReady["Clawstriker's Flurry"]}) && (${Target.Distance}<18) && (${Me.Endurance}>300)) /doability "Clawstriker's Flurry"
/if (${Target.PctHPs}<15) /keypress 9


My question is how to add a "When available" status to the command so it doesnt spam me once it triggers. As you would imagine with the way it is now it tries to fire the affect over and over once the mob is under 15%.

Thanks in advance!!
 
I use this.

/if (${Target.ID} && ${SpawnCount[npc radius 50]}==1 && ${Target.PctHPs}<22 && ${Me.AltAbilityReady[Crippling Strike]} && ${Target.Fleeing}) /alt act 468

/alt act 468
is the code to activate Crippling Strike (or was when I used this macro snippet)

It checks that "Yes I have a target" && "There is no other of his friends around (they don't run if friends are near) && It's HP's are below 22%, and the ability is ready, and that the target is running (it's facing a direction that is away from you)"
 
Yeah, I removed something from my example because I thought it was a flag and not a timer...

Create a timer variable and set it to 4 seconds when you activate the ability and add

&& !${Timer_Variable_You_Just_made_up}

to the if statement for pressing the ability and it will stop spamming.

which would look something like this...

Rich (BB code):
Sub Monkabil
|---------Abilities-------------------------|
/if ((${Me.AbilityReady["Flying Kick"]}) && (${Target.Distance}<18) && (${Me.Endurance}>500)) /doability "Flying Kick"
/if ((${Me.AbilityReady["Mend"]}) && (${Me.PctHPs} < 50)) /doability "Mend"
/if ((${Me.CombatAbilityReady["Clawstriker's Flurry"]}) && (${Target.Distance}<18) && (${Me.Endurance}>300)) /doability "Clawstriker's Flurry"

/if (${Target.ID} && ${SpawnCount[npc radius 50]}==1 && ${Target.PctHPs}<22 && ${Me.AltAbilityReady[Crippling Strike]} && ${Target.Fleeing} && !${Timer_Variable_You_Just_made_up}) {
     /varset Timer_Variable_You_Just_made_up 40
     /alt act 468
}

http://macroquest2.com/wiki/index.php/MQ2DataVars
Should give you a good idea about timer variables.
 
Ability Ready with /keypress command?

Users who are viewing this thread

Back
Top
Cart