MMOMinion
Get myth and soldiery count - Printable Version

+- MMOMinion (https://www.mmominion.com)
+-- Forum: FFXIVMinion (https://www.mmominion.com/forumdisplay.php?fid=87)
+--- Forum: [DOWNLOADS] Addons, Lua Modules, Navigation Meshes.. (https://www.mmominion.com/forumdisplay.php?fid=90)
+---- Forum: I Need Help with LUA coding! (https://www.mmominion.com/forumdisplay.php?fid=104)
+---- Thread: Get myth and soldiery count (/showthread.php?tid=8127)



Get myth and soldiery count - earisu - 06-26-2014

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)


RE: Get myth and soldiery count - 5minqq - 06-26-2014

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/FFXIVMinion/wiki/Player/a08c61599caf546421c06f40e157e39506cda564

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.


RE: Get myth and soldiery count - earisu - 06-26-2014

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 ^^.


RE: Get myth and soldiery count - 5minqq - 06-26-2014

Well, if you find a solution to your problem, please post it here. I am also interested in seeing how it is done.


RE: Get myth and soldiery count - earisu - 06-26-2014

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 :/


RE: Get myth and soldiery count - Digitalrecline - 01-06-2015

Could you please share the code snippet for getting the soldiery count.

Cheers


RE: Get myth and soldiery count - earisu - 01-07-2015

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