• 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

Problem - Unbank macro reliably crashes macroquest and eq

I have a macro that reliably crashes macroquest and eq.
I have a simple macro, half copied from another macro, that unbanks items for my vendor.
Basically, it tries to /autoinventory every item in the first 2 containers in the bank.
If the item doesn't go in my inventory and is still on the cursor, then it tries to put it back in the bank with /autobank.
It worked for a couple months, but now it reliably crashes macroquest and eq.
I stopped using it, but i thought maybe it would help to post it here. Perhaps it will help one of the macroquest developers find a bug.
Also, if there are any flaws or problems with the macro itself, then please let me know.
If anyone wants additional information, like screenshots of the crash or logs or something, please let me know.
Thank you.

Notes:
I ran Launchpad and EQ is up to date.
I ran Redguides launcher and Macroquest is up to date for live.
Copied (with some modifications) most of the code from: GoCo.mac by BobWeaver!

Steps to Reproduce:
  1. Run Macroquest Very Vanilla
  2. Load my vendor profile
  3. Open bank familiar
  4. Open first two containers in bank
  5. First bank container has 8 items, second container is empty
  6. 10 vendor bags are closed, they have 10 empty slots sprinkled around
  7. /mac unbank
  8. KABOOM! EverQuest Crash Detected. MacroQuest caught a crash: Version 3.1.0.1424 (I have a screenshot of just the error message, but was not sure if that is safe to post here.)

Unbank.mac
Code:
Sub Main
    /declare     i                     int     local     0
    /declare     j                     int     local     0
    /declare    intPackSlots        int        local    10

    /echo Unbanking first 2 containers
    /for i 1 to 2
        /if (${Me.Bank[${i}].Container})  {
            /call BankPack ${i}
        } else {
            /if (${Me.Bank[${i}].ID}) /mqlog ${i}) ${Me.Bank[${i}].Stack}x ${Me.Bank[${i}].Name}
        }
    /next i
   
/return

Sub BankPack(int i)
    /declare j int local
    /if (${Me.Bank[${i}].ID}) {
        /for j 1 to ${Me.Bank[${i}].Container}
            /if (${Me.Bank[${i}].Item[${j}].ID}) {
                /echo -- ${Me.Bank[${i}].Item[${j}].Stack}x ${Me.Bank[${i}].Item[${j}].Name}
                /echo [BC] Pack ${i}, Slot ${j} holds ${InvSlot[pack${i}].Item.Item[${j}].Name}
                /nomodkey /shiftkey /itemnotify in bank${i} ${j} leftmouseup
                /delay 5s ${Cursor.ID}
                /delay 1
                /if (${Cursor.ID}) {
                    /echo autoinventory ${Cursor.Name}
                    /autoinventory
                    /delay 5 (!${Cursor.ID})
                }
                /if (${Cursor.ID}) {
                    /echo rebanking ${Cursor.Name}
                    /autobank
                    /delay 5 (!${Cursor.ID})
                }
            }
        /next j
    }
/return
 
Last edited:
So a couple changes seemed to help.

I open the bank packs and all my inventory packs before I run Unbank.mac.
Plus I changed 3 of the delays in Sub BankPack.
/delay 1
is now
/delay 5

and both
/delay 5 (!${Cursor.ID})
are now
/delay 5

This seems to let the macro run happily again.
I think it was too impatient before.
 
Problem - Unbank macro reliably crashes macroquest and eq

Users who are viewing this thread

Back
Top
Cart