@ -27,8 +27,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -27,8 +27,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
]]
_addon.name='findAll'
_addon.author='Zohno (ported by farmboy0)'
_addon.version='1.20170501'
_addon.author='Zohno (ported and extended by farmboy0)'
_addon.version='2.0'
require'ffxi.enums'
require'tableex'
@ -79,6 +79,7 @@ function error(method, message)
@@ -79,6 +79,7 @@ function error(method, message)
print('ERR('..method..'): '..message)
end
functionencase_key(key)
iftype(key)=='number'then
return'['..tostring(key)..']'
@ -258,7 +259,9 @@ function print_help()
@@ -258,7 +259,9 @@ function print_help()
{' [:<character1> [:...]]','- the names of the characters to use for the search.'},
{' [!<character1> [!...]]','- the names of the characters to exclude from the search.'},
{' [<query>]','- the word you are looking for.'},
{' [-d|--duplicates]','- list only items which are found in more than one container.'},
{' [-e<filename>|--export=<filename>]','- exports the results to a csv file in the data folder.'},
{' [-s|--stackables]','- list only items which can stack.'},
}
localexamples={
{'/findall thaumas','- Search for "thaumas" on all your characters.'},
@ -312,6 +315,8 @@ function determine_query_elements(searchparams)
@@ -312,6 +315,8 @@ function determine_query_elements(searchparams)
localchar_exclude={}
localsearch_terms={}
localexport=nil
localduplicates=false
localstackables=false
for_,query_elementinpairs(searchparams)do
-- character specifiers must start with a '!' or a ':'
@ -336,12 +341,16 @@ function determine_query_elements(searchparams)
@@ -336,12 +341,16 @@ function determine_query_elements(searchparams)
error('determine_query_elements','The filename cannot contain any of the following characters: \\ / : * ? " < > |')