Skip to content

Itemizer: Trump Card Cases #2458

@ineeni

Description

@ineeni

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

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