Thread Rating:
  • 4 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get myth and soldiery count
#1
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)
Reply
#2
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.
Reply
#3
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 ^^.
Reply
#4
Well, if you find a solution to your problem, please post it here. I am also interested in seeing how it is done.
Reply
#5
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 :/
Reply
#6
Could you please share the code snippet for getting the soldiery count.

Cheers
Reply
#7
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
Reply
 


Forum Jump:


Users browsing this thread: 13 Guest(s)

We help you win the game.

FFXIV Bot and More.

 

Products