I made a userfunction of that code and added in an inventory:update() and it works fine.Cindy wrote:This is the code im using (downloaded from one of the threads here) :
Code: Select all
function GuildDonateItems(itemlist)
inventory:update()
for slot = 61, 240 do
item = inventory.BagSlot[slot]
for k, nameid in pairs(itemlist) do
if item.Name == nameid or item.Id == nameid then
cprintf(cli.yellow, "Name %s at %d\n", tostring(nameid), item.BagId)
GuildDonateBagID(item.BagId)
end
end
end
end
Code: Select all
Command> GuildDonateItems({"Guild Rune"})
Name Guild Rune at 71
Name Guild Rune at 66
Name Guild Rune at 70
Name Guild Rune at 77
Name Guild Rune at 78
Name Guild Rune at 79
Name Guild Rune at 80
Name Guild Rune at 81
Name Guild Rune at 82
Name Guild Rune at 83
Name Guild Rune at 84
Name Guild Rune at 85
Name Guild Rune at 87
Name Guild Rune at 88
Name Guild Rune at 89
Name Guild Rune at 90