• 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 - Multiple items on cursor

st1cky

Member
Joined
Nov 29, 2017
RedCents
260¢
Complete Lua newb here. I'm using if not mq.TLO.Cursor.ID() then mq.cmd() however I'm running into an issue when there are multiple items on the cursor. It seems if the item is destroyed, for a split second, mq.TLO.Cursor.ID() == nil and the mq.cmd() is ran before the next item is updated. I've tried adding mq.delay() but that doesn't seem to make a difference. Is there a function to determine if there are multiple items? Or is there a better way to do this? I'm hoping someone can point me in the right direction as my searching has led me to a dead end.
 
Have you tried omitting the .ID()?

Something like:
Lua:
while mq.TLO.Cursor() do
  mq.cmd('/autoinv')
  mq.delay(250)
end
 
Have you tried omitting the .ID()?

Something like:
Lua:
while mq.TLO.Cursor() do
  mq.cmd('/autoinv')
  mq.delay(250)
end

I did try without .ID() and it didn't make a difference. I ended up checking mq.TLO.Cursor.ID() twice before mq.cmd() which I don't really like but it works.
 
Question - Multiple items on cursor

Users who are viewing this thread

Back
Top
Cart