• 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
Giveit - Lua to trade an item or coin to PC/NPC

Release Giveit - Lua to trade an item or coin to PC/NPC 09/01/2024

No permission to download
Joined
Nov 5, 2018
RedCents
2,501¢
eqplayer16 submitted a new resource:

Giveit - Lua to trade an item or coin to PC/NPC - Lua to trade an item or coin to PC/NPC

Giveit is a lua script to trade items and coin with slash commands

Instructions: Place GiveIt folder into lua folder, then run with /lua run giveit

Available Commands
/giveit item [pc/npc] [name] [itemName]
-Use quotes around the itemName if there are spaces
/giveit coin [pc/npc] [name] [plat/gold] [amount/all]
-using 'all' for the amount will trade the entire amount of that coin type
ToDo: Implement trading multiple items at once


I've only tested...

Read more about this resource...
 
Last edited:
I think this was submitted wrong. You might want to do it as a Lua resource so we can download it with the patcher.
 
Is there any chance we can get the ability to add an amount of items to give? Like if I wanted to give 3 stacks of 20 per stack of food. /giveit item pc toonname "Food" 60
 
I'm not sure where I selected an option that flagged it as software. Not seeing a way to swap it over to Lua though. Is that something a forum admin might have to do?

Edit: I think I got it...had to update the discussion title. Hm still seems to be in Apps & Software instead of Lua resource
 
Is there any chance we can get the ability to add an amount of items to give? Like if I wanted to give 3 stacks of 20 per stack of food. /giveit item pc toonname "Food" 60

Might be two facets to this request. I've added something like this to specify quantity of a stack for items (similar to how it would work for coints)

giveit item [pc/npc] [name] [itemName] [quantity (optional, default=1 or all of a stack)]


However I think what you're saying is more like, you have 3 separate item slots that are 20x loaf of bread, and you want to trade those 3 separate item stacks? I will be working on that with trading multiple items, I think that will require a separate function to account for searching bags for multiple item slots instead of just a single slot

Edit: Going to spend some time thinking about how to implement trading multiple item slots so that update might take a couple days
 
Is there any chance we can get the ability to add an amount of items to give? Like if I wanted to give 3 stacks of 20 per stack of food. /giveit item pc toonname "Food" 60
The item list command should do this now but would require /giveit itemlist pc toonname "Food" 20 "Food" 20 "Food" 20


This is still not showing up as a Lua resource to be installed via the Launcher.
Redbot changed the category so this should be installable via launcher now using the watch feature
 
this works great. i use this buttonmaster button on Laz to get all my alt currencies from alts.
Lua:
-- lua
local command = "/multiline ; "
local timeDelay = 1
local ItemName = "Diamond Coin"

for i=1,5 do

command = command .. '/timed '..timeDelay..', /dex '..mq.TLO.Group.Member(i).DisplayName()..' /giveit item pc '..mq.TLO.Me.DisplayName()..' "'..ItemName..'"'
if i ~= 5 then command = command ..'; ' end
timeDelay = timeDelay +20

end
mq.cmd(command)
 
Just tried trading with currencies, seems to be working. But not for items.

1709845592133.png
 
works fine when trading Luclinite Attack Source:
1709914581560.png

Tried to trade: Extra Planar Potential Shard and getting this:
1709914649179.png
 
Hmm, I wanted to try this out for progression on 6 toons but I can't get it to start.

I downloaded the file and extracted it to Lua. Then in game, I did /Lua run giveit but receive an error code.

Any idea(s) what I might be doing wrong?

1712061107552.png

1712061131891.png
 
Hmm, I wanted to try this out for progression on 6 toons but I can't get it to start.

I downloaded the file and extracted it to lua. Then in game, I did /lua run giveit but receive an error code.

Any idea(s) what I might be doing wrong?
You can try installing it through the RedGuides launcher. To do so, click 'Watch' in the upper right corner of the resource. Then open RedGuides launcher and go to Lua section and refresh, it should be listed there to be installed/downloaded.

Then see if you get the same error.
 
This has been working great for me on the live servers. One thing I see as a good option would be to add an option to give to a target /giveit target item 20.
 
This has been a ask forever, I am using a tool @burdsjm designed with a few edits.. its not perfect, but mostly works.
I can build it in and PR it if @eqplayer16 doesnt want to do it. but if he does then all the better.

Is there a github link for this?
 
I haven't been getting updates for this thread sorry. I have a couple of updates to post.

I don't think I will do any currency window stuff though
 
I can build it in and PR it if @eqplayer16 doesnt want to do it. but if he does then all the better.

Is there a github link for this?

I've never looked at interacting with the currency menu and don't have much usecase for it on my current emu adventures, if you already have an idea of what to do, PR is most welcome
 
BM Button I use with this to cycle through items / alt coins and hand them to me. takes roughly 30 - 35 seconds to cycle through 1 item in the list.
will post this in the BM Repo as well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M4OTAuODA2LAogIFsiQ29vbGRvd24iXSA9IDE0MCwKIH0sCn0=[/CODE]


[CODE lang="Lua" title="Lua code"]-- Lua
local timeDelay = 1
local ItemName = {
'Diamond Coin',
'Celestial Crest',
'Gold Coin',
'Magical Fairy Dust',
}

-- load giveit
local check = "/noparse /Lua parse return not mq.TLO.Lua.Script('giveit').Status.Equal('RUNNING')() and mq.cmd('/Lua run giveit')"
mq.cmd('/dgae ' ..check)
for n = 1, #ItemName do
for i=1,mq.TLO.Me.GroupSize() -1 do
local command = "/multiline ; "
-- item comment / uncomment as needed. AltCoin should work for both though.
--command = command .. '/timed '..timeDelay..', /dex '..mq.TLO.Group.Member(i).DisplayName()..' /giveit item pc '..mq.TLO.Me.DisplayName()..' "'..ItemName[n]..'"'

-- altCoin
command = command .. '/timed '..timeDelay..', /dex '..mq.TLO.Group.Member(i).DisplayName()..' /giveit altcoin pc '..mq.TLO.Me.DisplayName()..' "'..ItemName[n]..'" all'
timeDelay = timeDelay + 50
mq.cmd(command)
end
end
timeDelay = timeDelay + 10
mq.cmdf("/timed %s, /dgae /Lua stop giveit", timeDelay)[/CODE]

edited to fix my aliases
 
Last edited:
Release Giveit - Lua to trade an item or coin to PC/NPC

Users who are viewing this thread

Back
Top
Cart