Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.

ooh yeah forgot about those.What do you have for aliases Grimmier?
Samesies.when trying to run this lua, I get a bunch off error-code:
View attachment 60633
was installed from the redguides launcher, also installed "knightlinc" the same way.
Any ideas how to solve this?
do you have a folder called lib inside of your Lua folder?when trying to run this lua, I get a bunch off error-code:
View attachment 60633
was installed from the redguides launcher, also installed "knightlinc" the same way.
Any ideas how to solve this?
Bug Fixes
- Itemlist ignoring the first item in list, altcoin tab on emu
(29c3393) ~grimmier378/giveit itemlist will now recognize the first item in the list.
altcoin tab isn't always tab 4 on emu so lets cycle through and find it.
Commits
PR # [3](https://github.com/towbes/giveit/pull/3): itemlist ignoring the first item in...
For anyone with this problem who the knightly solution did not work for, I had already downloaded lootnscoot standalone which had a "Lib" file in it. I copied that Lib file, pasted it into the main Lua folder (not even in the giveit file) and this fixed the issue immediately. You can look at your other luas, what you need is a Lua with the file "Write" in it to copy/paste. Good luck all, hope this helps some other not technically savvy person lol!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?
View attachment 59936
View attachment 59937
-- lua
local myClass = mq.TLO.Me.Class.ShortName() -- Get Class for Class Specific Requests
local timeDelay = 10 -- delay between commands, default 1 second + a hard coded 5 second buffer
local qty = 'all' -- quantity to trade or all
-- Items table to hold the items type and qty information
local Items = {
-- items for anyone that clicks button formatting
-- ['Item Name'] = {type = [coin|altcoin|item], qty = 'all'} qty = all or a quantity
-- if you want to trade coin then use 'plat' or 'gold' as the itemName. and coin for the type.
-- ['plat'] = {type = 'coin', qty = 'all'}
}
-- Class Specific Requests.
if myClass == 'SHD' or myClass == 'NEC' then
Items['plat'] = {type = 'coin', qty = 'all'}
Items['Bone Chips'] = {type = 'item', qty = 'all'}
Items['Diamond Coin'] = {type = 'item', qty = 'all'}
Items['Celestial Crest'] = {type = 'item', qty = 'all'}
Items['Gold Coin'] = {type = 'item', qty = 'all'}
Items['Lucky Coin'] = {type = 'item', qty = 'all'}
--Items['Journeyman\'s Walking Stick'] = {type = 'item', qty = 'all'}
Items['Silken Whip of Ensnaring'] = {type = 'item', qty = 'all'}
Items['Magical Fairy Dust'] = {type = 'item', qty = 'all'}
end
if myClass == 'WAR' then
Items['Diamond Coin'] = {type = 'item', qty = 'all'}
Items['Celestial Crest'] = {type = 'item', qty = 'all'}
Items['Gold Coin'] = {type = 'item', qty = 'all'}
Items['Lucky Coin'] = {type = 'item', qty = 'all'}
Items['Magical Fairy Dust'] = {type = 'item', qty = 'all'}
end
if myClass == 'PAL' then
Items['Diamond Coin'] = {type = 'item', qty = 'all'}
Items['Celestial Crest'] = {type = 'item', qty = 'all'}
Items['Gold Coin'] = {type = 'item', qty = 'all'}
Items['Lucky Coin'] = {type = 'item', qty = 'all'}
Items['Magical Fairy Dust'] = {type = 'item', qty = 'all'}
end
if myClass == 'CLR' or myClass == 'ENC' then
Items['Peridot'] = {type = 'item', qty = 'all'}
Items['Pearlescent Fragment'] = {type='item', qty = 'all'}
end
if myClass == 'MAG' then
Items['Malachite'] = {type = 'item', qty = 'all'}
end
if myClass == 'ROG' then
Items['Consigned Bite of the Shissar IX'] = {type = 'item', qty = 'all'}
Items['Consigned Bite of the Shissar X'] = {type = 'item', qty = 'all'}
Items['Consigned Bite of the Shissar V'] = {type = 'item', qty = 'all'}
Items['Consigned Bite of the Shissar VI'] = {type = 'item', qty = 'all'}
Items['Consigned Bite of the Shissar VII'] = {type = 'item', qty = 'all'}
Items['Consigned Bite of the Shissar VIII'] = {type = 'item', qty = 'all'}
Items['Consigned Bite of the Shissar IV'] = {type = 'item', qty = 'all'}
Items['Crystalline Serum'] = {type = 'item', qty = 'all'}
end
-- 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)
local itemFlag = false
-- Cycle through party members and have them trade the items to you.
for i=1,mq.TLO.Me.GroupSize() -1 do
for name, data in pairs(Items) do
if data.type ~= 'item' then
local command = "/multiline ; "
command = string.format('%s/timed %s, /dex %s /giveit %s pc %s "%s" %s',
command, timeDelay, mq.TLO.Group.Member(i).DisplayName(),
data.type, mq.TLO.Me.DisplayName(), name, data.qty)
timeDelay = timeDelay + 50
mq.cmd(command)
else
itemFlag = true
end
end
if itemFlag then
local command = string.format("/multiline ; /timed %d, /dex %s /giveit itemlist pc %s {", timeDelay, mq.TLO.Group.Member(i).DisplayName(), mq.TLO.Me.DisplayName())
for name, data in pairs(Items) do
if data.type == 'item' then
command = string.format('%s"%s" %s ', command, name, data.qty)
end
end
command = command .. "}"
mq.cmd(command)
timeDelay = timeDelay + 50
print(command)
end
end
timeDelay = timeDelay + 10
-- End the script and close inventory windows
mq.cmdf("/multiline ; /timed %d, /dgae /lua stop giveit; /timed %d, /dge all /keypress INVENTORY", timeDelay, (timeDelay + 5))
Button Master Share Code Fail!my fun giveit button with different item sets per class that presses it.
Lua:-- lua local myClass = mq.TLO.Me.Class.ShortName() -- Get Class for Class Specific Requests local timeDelay = 10 -- delay between commands, default 1 second + a hard coded 5 second buffer local qty = 'all' -- quantity to trade or all -- Items table to hold the items type and qty information local Items = { -- items for anyone that clicks button formatting -- ['Item Name'] = {type = [coin|altcoin|item], qty = 'all'} qty = all or a quantity -- if you want to trade coin then use 'plat' or 'gold' as the itemName. and coin for the type. -- ['plat'] = {type = 'coin', qty = 'all'} } -- Class Specific Requests. if myClass == 'SHD' or myClass == 'NEC' then Items['plat'] = {type = 'coin', qty = 'all'} Items['Bone Chips'] = {type = 'item', qty = 'all'} Items['Diamond Coin'] = {type = 'item', qty = 'all'} Items['Celestial Crest'] = {type = 'item', qty = 'all'} Items['Gold Coin'] = {type = 'item', qty = 'all'} Items['Lucky Coin'] = {type = 'item', qty = 'all'} --Items['Journeyman\'s Walking Stick'] = {type = 'item', qty = 'all'} Items['Silken Whip of Ensnaring'] = {type = 'item', qty = 'all'} Items['Magical Fairy Dust'] = {type = 'item', qty = 'all'} end if myClass == 'WAR' then Items['Diamond Coin'] = {type = 'item', qty = 'all'} Items['Celestial Crest'] = {type = 'item', qty = 'all'} Items['Gold Coin'] = {type = 'item', qty = 'all'} Items['Lucky Coin'] = {type = 'item', qty = 'all'} Items['Magical Fairy Dust'] = {type = 'item', qty = 'all'} end if myClass == 'PAL' then Items['Diamond Coin'] = {type = 'item', qty = 'all'} Items['Celestial Crest'] = {type = 'item', qty = 'all'} Items['Gold Coin'] = {type = 'item', qty = 'all'} Items['Lucky Coin'] = {type = 'item', qty = 'all'} Items['Magical Fairy Dust'] = {type = 'item', qty = 'all'} end if myClass == 'CLR' or myClass == 'ENC' then Items['Peridot'] = {type = 'item', qty = 'all'} Items['Pearlescent Fragment'] = {type='item', qty = 'all'} end if myClass == 'MAG' then Items['Malachite'] = {type = 'item', qty = 'all'} end if myClass == 'ROG' then Items['Consigned Bite of the Shissar IX'] = {type = 'item', qty = 'all'} Items['Consigned Bite of the Shissar X'] = {type = 'item', qty = 'all'} Items['Consigned Bite of the Shissar V'] = {type = 'item', qty = 'all'} Items['Consigned Bite of the Shissar VI'] = {type = 'item', qty = 'all'} Items['Consigned Bite of the Shissar VII'] = {type = 'item', qty = 'all'} Items['Consigned Bite of the Shissar VIII'] = {type = 'item', qty = 'all'} Items['Consigned Bite of the Shissar IV'] = {type = 'item', qty = 'all'} Items['Crystalline Serum'] = {type = 'item', qty = 'all'} end -- 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) local itemFlag = false -- Cycle through party members and have them trade the items to you. for i=1,mq.TLO.Me.GroupSize() -1 do for name, data in pairs(Items) do if data.type ~= 'item' then local command = "/multiline ; " command = string.format('%s/timed %s, /dex %s /giveit %s pc %s "%s" %s', command, timeDelay, mq.TLO.Group.Member(i).DisplayName(), data.type, mq.TLO.Me.DisplayName(), name, data.qty) timeDelay = timeDelay + 50 mq.cmd(command) else itemFlag = true end end if itemFlag then local command = string.format("/multiline ; /timed %d, /dex %s /giveit itemlist pc %s {", timeDelay, mq.TLO.Group.Member(i).DisplayName(), mq.TLO.Me.DisplayName()) for name, data in pairs(Items) do if data.type == 'item' then command = string.format('%s"%s" %s ', command, name, data.qty) end end command = command .. "}" mq.cmd(command) timeDelay = timeDelay + 50 print(command) end end timeDelay = timeDelay + 10 -- End the script and close inventory windows mq.cmdf("/multiline ; /timed %d, /dgae /lua stop giveit; /timed %d, /dge all /keypress INVENTORY", timeDelay, (timeDelay + 5))
Yeah it killed my button master too.Button Master Share Code Fail!
The button works for me it just isn't a sharecode the way he shared it hereYeah it killed my button master too.

If I paste it in a custom Lua button it spams an error messageThe button works for me it just isn't a sharecode the way he shared it here![]()
cmV0dXJuIHsKIFsiQnV0dG9uIl0gPSB7CiAgWyJDbWQiXSA9ICItLSBsdWEgXApsb2NhbCBteUNsYXNzID0gbXEuVExPLk1lLkNsYXNzLlNob3J0TmFtZSgpICAgLS0gR2V0IENsYXNzIGZvciBDbGFzcyBTcGVjaWZpYyBSZXF1ZXN0c1wKbG9jYWwgdGltZURlbGF5ID0gMTAgICAgICAgICAgICAgICAgICAgICAgICAgIC0tIGRlbGF5IGJldHdlZW4gY29tbWFuZHMsIGRlZmF1bHQgMSBzZWNvbmQgKyBhIGhhcmQgY29kZWQgNSBzZWNvbmQgYnVmZmVyXApsb2NhbCBxdHkgPSAnYWxsJyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLS0gcXVhbnRpdHkgdG8gdHJhZGUgb3IgYWxsXApcCi0tIEl0ZW1zIHRhYmxlIHRvIGhvbGQgdGhlIGl0ZW1zIHR5cGUgYW5kIHF0eSBpbmZvcm1hdGlvblwKbG9jYWwgSXRlbXMgPSB7XApcOVw5LS1bJ3BsYXQnXSA9IHt0eXBlID0gJ2NvaW4nLCBxdHkgPSAnYWxsJ31cCiAgICAtLSBbJ0l0ZW0gTmFtZSddID0ge3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yBJTlZFTlRPUllcIiwgdGltZURlbGF5LCAodGltZURlbGF5ICsgNSkpIiwKICBbIkNhY2hlZExhYmVsIl0gPSAiR0lNTUlFIiwKICBbIlNob3dMYWJlbCJdID0gdHJ1ZSwKICBbIlRpbWVyIl0gPSAiIiwKICBbIlRvZ2dsZUNoZWNrIl0gPSAiIiwKICBbIkV2YWx1YXRlTGFiZWwiXSA9IGZhbHNlLAogIFsiVXBkYXRlUmF0ZSJdID0gMCwKICBbIlRpbWVyVHlwZSJdID0gIlNlY29uZHMgVGltZXIiLAogIFsiTGFiZWwiXSA9ICJHSU1NSUUiLAogIFsiSWNvbkx1YSJdID0gIiIsCiAgWyJoaWdoZXN0UmVuZGVyVGltZSJdID0gMiwKICBbIkljb24iXSA9IDM5MDEsCiAgWyJJY29uVHlwZSJdID0gIkl0ZW0iLAogIFsiQ29vbGRvd24iXSA9IDEyMCwKICBbIkNhY2hlZENvdW50RG93biJdID0gMCwKICBbIkNhY2hlZENvb2xEb3duVGltZXIiXSA9IDAsCiAgWyJDYWNoZWRUb2dnbGVMb2NrZWQiXSA9IGZhbHNlLAogIFsiQ2FjaGVkTGFzdFJhbiJdID0gOTQ1Mi4wNCwKICBbImxhYmVsTWlkWCJdID0gMCwKICBbImxhYmVsTWlkWSJdID0gMTEsCiB9LAogWyJUeXBlIl0gPSAiQnV0dG9uIiwKfQ==
local function ClickTrade()
mq.delay(WaitTime)
mq.TLO.Window("TradeWnd").Child("TRDW_Trade_Button").LeftMouseUp()
mq.TLO.Window("GiveWnd").Child("GVW_Give_Button").LeftMouseUp()
mq.delay(WaitTime)
end
