MMOMinion

Full Version: Get myth and soldiery count
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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)
All the API that is available can be found here:
https://github.com/MINIONBOTS/FFXIVMinion/wiki

As far as I know, there is no way to check your tomestone currency using the current API.

The closest thing that you used to be able to do was check your gil currency:
https://github.com/MINIONBOTS/FFXIVMinio...9506cda564

But that feature was removed from the API on 7th May 2014.

Your only choice (probably) is to wait for the core devs to implement the API you are after.
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