• 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

Macro code help - How to determine if you're in a group or not

Cpt_Cam

Member
Does anybody have an example of code that checks to see if you're in a group?

I want to augment some afk code for my powerlevelees to not only gate if my spinner dies, but also to recognize when they've been abandoned so they can go ahead and camp and not stand there.

Soemthing like

if ${Me.Notinagroup} /call campsub
 
Last edited:
Hmm...you might as well just do ${Group}>=2, instead of >1. You'll never get to a group size of 1, because before you would, you'd trigger the line above it.
 
/if (${Group}>1) {
/echo A strong childhood is a good thing
/delay 5s

This whole part is redundant. No reason to do a check on a condition you already know is true.

EDIT:
Just looked at the Wiki link. Shouldn't first condition be:

/if (${GroupSize}<2) /call issues
OR
/if (${Members}==0) /call issues
 
Well, regardless of what approach is right...it's working and accomplished my goal. Could it be more efficient? Yes. Am I going to go rewrite it? Probably not. It's serving the purpose right now.

But, this thread, to me at least, is why I don't mind paying $5 to our little community here. We help each other and assist in the education. Z could have tossed out the code but he guided me. Alternatively, he could have taken the "RTFM" approach and wrote me off but he did the cool thing. And all the replies behind it are examples too. I like this community. I've got 2 red cents from things I've done in the past. I've given out red cents, advice, tips etc. I love it.
 
Macro code help - How to determine if you're in a group or not

Users who are viewing this thread

Back
Top
Cart