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

Joined
May 15, 2017
RedCents
287¢
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