• 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 - while loop that waits for all members of group to be nearby?

Could someone please provide the info to fill this in?
Code:
while <current number of group members nearby> ~= <total number of group members> do
   mq.delay(1000)
end
 
Could someone please provide the info to fill this in?
Code:
while <current number of group members nearby> ~= <total number of group members> do
   mq.delay(1000)
end
Here is some useful information about what you might look for. https://docs.macroquest.org/macroquest/data-types-and-top-level-objects/top-level-objects
As for your question Something like this
Code:
while mq.TLO.Zone.ID() == 202 and mq.TLO.Me.Fellowship.Campfire() == false and not mq.TLO.Me.Hovering() and mq.TLO.SpawnCount('radius 50 fellowship')() < 2 do
mq.delay(1000)
end

or

Code:
while mq.TLO.Zone.ID() == 202 and mq.TLO.SpawnCount('radius 50 fellowship')() < 3 then

mq.delay(1000)

end

if mq.TLO.SpawnCount('radius 50 fellowship')() > 2 then

        mq.cmd('/windowstate FellowshipWnd open')

        mq.delay(1000)

        mq.cmd('/nomodkey /notify FellowshipWnd FP_Subwindows tabselect 2')

        mq.delay(1000)

        mq.cmd('/nomodkey /notify FellowshipWnd FP_RefreshList leftmouseup')

        mq.delay(1000)

        mq.cmd('/nomodkey /notify FellowshipWnd FP_CampsiteKitList listselect 1')

        mq.delay(1000)

        mq.cmd('/nomodkey /notify FellowshipWnd FP_CreateCampsite leftmouseup')

        mq.delay(1000)

        mq.cmd('/windowstate FellowshipWnd close')

        mq.delay(1000)

        print('\agDropped a Campfire')

        mq.delay(5000)

end
 
Last edited:
Here is some useful information about what you might look for. https://docs.macroquest.org/macroquest/data-types-and-top-level-objects/top-level-objects
As for your question Something like this
Code:
while mq.TLO.Zone.ID() == 202 and mq.TLO.Me.Fellowship.Campfire() == false and not mq.TLO.Me.Hovering() and mq.TLO.SpawnCount('radius 50 fellowship')() < 2 do
mq.delay(1000)
end

or

Code:
while mq.TLO.Zone.ID() == 202 and mq.TLO.SpawnCount('radius 50 fellowship')() < 2 then

mq.delay(1000)

end

if mq.TLO.SpawnCount('radius 50 fellowship')() > 2 then

        mq.cmd('/windowstate FellowshipWnd open')

        mq.delay(1000)

        mq.cmd('/nomodkey /notify FellowshipWnd FP_Subwindows tabselect 2')

        mq.delay(1000)

        mq.cmd('/nomodkey /notify FellowshipWnd FP_RefreshList leftmouseup')

        mq.delay(1000)

        mq.cmd('/nomodkey /notify FellowshipWnd FP_CampsiteKitList listselect 1')

        mq.delay(1000)

        mq.cmd('/nomodkey /notify FellowshipWnd FP_CreateCampsite leftmouseup')

        mq.delay(1000)

        mq.cmd('/windowstate FellowshipWnd close')

        mq.delay(1000)

        print('\agDropped a Campfire')

        mq.delay(5000)

end
Thanks! My first look for the TLO list didn't find that :(

And, heck I wasn't even thinking about the fellowship fire, haha.

Here's a fun snippet. Goes after the Bluffing Betty hail and /autoinv...
One for the road...
Code:
-- One for the road...
if mq.TLO.FindItem("Memento Grog")() then
   mq.cmd('/useitem Memento Grog')
   mq.delay(500)
end
--
 
Thanks for the help. Here's what I have,
Code:
-- Wait for group to be nearby.
while mq.TLO.SpawnCount('radius 50 group')() < mq.TLO.Group.GroupSize() do
   mq.delay(1000)
end
 
Last edited:
Question - while loop that waits for all members of group to be nearby?

Users who are viewing this thread

Back
Top
Cart