• 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 - Moving items with Lua

Jlueking

Member
Im trying to write a Lua where it removed my equipped gear so i store it in the shared bank and then swap to a mirror toon and reequip it all again. i am running into an issue with no trade items or non heirloom items. This is my first real Lua attempt so sorry if its a mess.

the work around i was thinking of using was to place all the items in a bag and then control left click them into a bag in the shared bank eliminating the items that cant go in the shared bank.

i cant seem to get Lua to hold control and leftmouseup at the same time. does anyone have a simple command im missing for this?

Lua:
local function unequip
    mq.delay(250)
    local bagSlot = 1
    for i = start, stop do
        mq.cmdf('/itemnotify %s leftmouseup', i)
        mq.delay(100)
        if mq.TLO.Cursor() ~= nil then
            mq.cmdf('/itemnotify in pack3 %s leftmouseup', bagSlot)
            mq.delay(100)
                bagSlot = bagSlot + 1
            end
        end
    end

    mq.cmd('/itemnotify pack1 leftmouseup shift')
    mq.delay(100)

    mq.cmd('/itemnotify sharedbank1 leftmouseup shift')
    mq.delay(300)

    mq.cmd('/itemnotify pack3 leftmouseup')
    mq.delay(500)

    mq.cmd('/multiaction /mousedown ctrl')
    mq.delay(100)
    mq.cmd('/itemnotify sharedbank1 leftmouseup')

    mq.delay(100)
    mq.cmd('/multiaction /mouseup ctrl')

    mq.cmd('/itemnotify in pack3 1 leftmouseup')
    mq.delay(500)

this is what i have so far but it wont fire to click the contents of bag 3 into shared bank 1.

thanks for your help.
 
Last edited by a moderator:
i cant seem to get Lua to hold control and leftmouseup at the same time. does anyone have a simple command im missing for this?

mq.cmd('/nomodkey /ctrl /itemnotify in pack3 1 leftmouse up')

You may also find mq.TLO.Cursor.NoDrop() useful to check if an item is nodrop. (this will also work with things like finditem, and invslot)
 
Im trying to write a lua where it removed my equipped gear so i store it in the shared bank and then swap to a mirror toon and reequip it all again. i am running into an issue with no trade items or non heirloom items. This is my first real lua attempt so sorry if its a mess.

the work around i was thinking of using was to place all the items in a bag and then control left click them into a bag in the shared bank eliminating the items that cant go in the shared bank.

i cant seem to get lua to hold control and leftmouseup at the same time. does anyone have a simple command im missing for this?


local function unequip
mq.delay(250)
local bagSlot = 1
for i = start, stop do
mq.cmdf('/itemnotify %s leftmouseup', i)
mq.delay(100)
if mq.TLO.Cursor() ~= nil then
mq.cmdf('/itemnotify in pack3 %s leftmouseup', bagSlot)
mq.delay(100)
bagSlot = bagSlot + 1
end
end
end

mq.cmd('/itemnotify pack1 leftmouseup shift')
mq.delay(100)

mq.cmd('/itemnotify sharedbank1 leftmouseup shift')
mq.delay(300)

mq.cmd('/itemnotify pack3 leftmouseup')
mq.delay(500)

mq.cmd('/multiaction /mousedown ctrl')
mq.delay(100)
mq.cmd('/itemnotify sharedbank1 leftmouseup')

mq.delay(100)
mq.cmd('/multiaction /mouseup ctrl')

mq.cmd('/itemnotify in pack3 1 leftmouseup')
mq.delay(500)

this is what i have so far but it wont fire to click the contents of bag 3 into shared bank 1.

thanks for your help.
I’m unable to help but I love what you are working on. Been trying to build a Lua to switch out my TS trophies for raiding and vice versus but don’t have the skills to accomplish it. Once you get this one figured out please share it. I could then, hopefully, use it as scaffolding to build the trophy one.
 
Question - Moving items with Lua

Users who are viewing this thread

Back
Top
Cart