Skip to content

Itemizer: Trump Card Cases #2458

Open
Open

Description

@State-Null

I tried to add some code mimicking some of the existing code but it breaks the function
Can you please add functionality for trump cards and trump card cases?

elseif settings.AutoCorsairShots and text:startswith('/ja ') then
    local match = text:match('/ja ["\']?([^"\']+)["\']?')
    if match and S{"Fire Shot", "Ice Shot", "Wind Shot", "Earth Shot", "Thunder Shot", "Water Shot", "Light Shot", "Dark Shot"}:contains(match) then
        for _, item in ipairs(items.inventory) do
            if item.id == 2964 and item.count > 0 then
                return -- Trump Card found; proceed as normal
            end
        end
        windower.chat.input('/item "Trump Card Case" <me>')
        windower.add_to_chat(207, "[Itemizer] No Trump Cards. Using Trump Card Case.")
        coroutine.sleep(2)
        return reschedule(text)
    end
end

Activity

  1. RubenatorX commented on Jul 26, 2025

    @RubenatorX
    Collaborator

    Breaks what function how?
    Edit: Sorry, I misread -- reacting the following
    Also, you have to put the item name in double quote or it'll think you want to pull a "Trump Card" out of your Mog "Case"

    Also, we will have to talk internally about whether this is botting (because you're not using the item requested, you're using an item in response to doing an action), or if it even makes sense in this addon.

  2. State-Null commented on Jul 26, 2025

    @State-Null
    Author

    Itemizer already opens bags for ninja tools?
    it 100% fetches the item from other bags which alone would be a huge corsair improvement

  3. lili-ffxi commented on Jul 27, 2025

    @lili-ffxi
    Contributor

    Itemizer already opens bags for ninja tools? it 100% fetches the item from other bags which alone would be a huge corsair improvement

    Itemizer most definitely does not open bags for ninja tools. That behavior most likely comes from your gearswap suite, and I can confirm it will not be added to Itemizer in any case.

    Adding auto-pulling elemental cards does make sense however, and I thought it already did pull them. I'll look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions