-
Notifications
You must be signed in to change notification settings - Fork 447
Open
Description
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
Labels
No labels