Hi,
I'm new to LUA and to this API and i'm struggling a little ^^.
Is there a way to get how much myth and soldiery a player has ? (for soldiery I'll need total and current week)
Not all the API is documented, that's why I asked here because I already checked.
I think I found what I was looking for, but I can't be sure until I'm home because I obviously don't play FF14 at work ^^.
Well, if you find a solution to your problem, please post it here. I am also interested in seeing how it is done.
I was right :). You can it with the inventory type 2000, slot 5 is myth and slot 6 is soldiery (at least for me) but I can't find a way to get the weekly count :/
Could you please share the code snippet for getting the soldiery count.
Cheers
You can iterate througt the currency inventory and get it :
local inv= Inventory("type=FFXIV.INVENTORYTYPE.INV_CURRENCY ")
if ( inv ) then
local i,item= next(inv)
while (i~=nil and item~=nil) do
d("itemid: ".. tostring(item.id).. " ItemName: "..item.name.." ItemCount: "..item.count.." ItemSlot: "...item.slot)
local i,item= next(inv,i)
end
end
But it might also works with this :
-- 26 is the soldiery itemId, 28 is for the poetics
local soldiery= Inventory:Get(26)
if(item ~= nil) then
d("soldiery count: "..item.count)
end