Thread Rating:
  • 3 Vote(s) - 3.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GUI - Label Width and displaying Label + Figure. item.count function
#4
Inventory:Get(xxxx) only returns a single item (inventory slot). Inventory("itemid=xxxx") returns a table with however many stacks it found.
You'll need to add them up yourself.

Does that help?

Code:
local inv= Inventory("itemid="..fishID)
    if (inv) then
        for k,item in pairs(inv) do
            d("------------"..item.name..": "..item.count)
        end
    end


how did you get the GUI field to size correctly?

-Andrew
Reply
 


Messages In This Thread
RE: GUI - Some Progress made. - by Digitalrecline - 01-14-2015, 10:58 AM
RE: GUI - Label Width and displaying Label + Figure. item.count function - by drewlt - 01-16-2015, 09:01 PM
Cheers - by Digitalrecline - 01-20-2015, 12:10 AM

Forum Jump:


Users browsing this thread:

We help you win the game.

FFXIV Bot and More.

 

Products