• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

Question - while loop that waits for all members of group to be nearby?

Joined
Dec 13, 2021
RedCents
1,569¢
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...
[CODE title="One for the road..."]-- One for the road...
if mq.TLO.FindItem("Memento Grog")() then
mq.cmd('/useitem Memento Grog')
mq.delay(500)
end
--
[/CODE]
 
3 toons in a fellowship grouped success on dropping a campfire in pok when needed. Only tested on two groups of 3 in different fellowships.
 

Attachments

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