Type in 'q' (without quotes) to quit.
Command> if inventory:useItem(207203) then print("it works fine") end
it works fine
Command>
it used the item and I got the luck pot buff, maybe the item you are using has changed Id?
they have done that in previous patches, might be a good idea to check the item Ids.
Remember no matter you do in life to always have a little fun while you are at it
I don't believe there is any simple command that returns item ids. There are addons that can give you ids. I use DailyNotes but I believe the option to show item ids is not usually available. ItemPreview is always a good addon to have. You can search for any items you want, even ones you don't have.
Of course you can also use the bot. Put the item in the first bag slot, start the commandline and type the following
Of course you can also use the bot. Put the item in the first bag slot, start the commandline and type the following
print(inventory.BagSlot[61].Name, inventory.BagSlot[61].Id)
I am thinking things like profile autosell from and to numbers but I thought the inventory class didn't use those, it just checks what bag slots are actually available.
Maybe start up with commandline and do this function
function printinventory()
local bags = {}
inventory:update()
for slot = 61, 240 do
item = inventory.BagSlot[slot]
if item.Available and item.Name ~= "<EMPTY>" then
table.insert(bags, {Name = item.Name, Id = item.Id, Rlevel = item.RequiredLvl, stats = item.Stats})
end;
end;
table.print(bags)
end
Remember no matter you do in life to always have a little fun while you are at it