• 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

Question - Macro conditions?

Wealthmanager

banned
BANNED
Are there boolean conditions to check if a macro is running and/or paused (mqp)? trying to find them and maybe put them into an mq2melee flag
 
This is a great thing to check... particularly since I use the /mqpause on and /mqpause off commands to move and reset camps. It would keep something from firing when the toons are moving :) (although, honestly, I don't know if I ever ran into that issue before)
 
have a MQ2HUD line to show the name of the currently running macro. And if it is my usual macro, have another line to tell if it's pause function is engaged.

Rich (BB code):
Macro1=3,110,111,0,250,0,${If[${Macro.Name.NotEqual["NULL"]},${Macro.Name},]}
Macro2=3,10,111,225,250,225,MACRO RUNNING =
 
have a MQ2HUD line to show the name of the currently running macro. And if it is my usual macro, have another line to tell if it's pause function is engaged.

Rich (BB code):
Macro1=3,110,111,0,250,0,${If[${Macro.Name.NotEqual["NULL"]},${Macro.Name},]}
Macro2=3,10,111,225,250,225,MACRO RUNNING =

awesome ty

- - - Updated - - -

While I have this thread, how would I setup an if statement with ${Time}? to say /if ${Time} > 220000 || ${Time} < 100000 I want to set a condition that would work between 10 am and 10 pm, is that possible? I noticed ${Time} reports like 22:00:00 or 10:00:00
 
I believe I had tried to nest IF statements inside an IF statement (in an outer IF) in the true or false section before, and I think I had failed (can't remember entirely). However this thread made me want to try again. I had currently running mac already in my HUD, and I could have used a second line that took the same display space (as is customary) for PAUSED. But I hate incurring unnecessary tests, since I am already in a true/false defined decision branch. It just goes against efficient execution design.

This time around (again, fuzzy on the past details), this works:
Rich (BB code):
Macro1=3,4,600,100,0,255,0,${If[${Macro.Name.NotEqual["NULL"]} && ${Macro.Paused},${Macro.Name} PAUSED,${If[${Macro.Name.NotEqual["NULL"]}, ${Macro.Name},]}]}

This saves a decision path since the embedded IF only fires in the FALSE side of the outer IF. Now I have not only the mac running name, but whether it is paused (while still maintaining the mac name). This keeps me from having multiple HUD lines going to the same place and wasting execution overhead.

Thx for this thread, and making me revisit something I had previously succumbed to inefficiency before...

- - - Updated - - -

NOTE: I use a special HUD settings that not only allows me to have an extra position element, but also absolutely requires it. If your HUD is NOT setup this way, and you know who you are, then modify the positional/size/color etc portion to match your more normal HUD requirements. AGAIN, I have an extra positional element, count the commas in the beginning of the line. Mine will not work for you if you are not set up this way, so you must remove the extra element (easiest way is to copy in one of your line definitions over mine). The decision part will still work.
 
Question - Macro conditions?

Users who are viewing this thread

Back
Top
Cart