Converts a string input into an array of numbers seperated by a comma, if possible.
This can be item IDs, item names or a mixture.
the string input to convert
Optional
Optional, if true, will search for items in the global database not just in inventory
An array of numbers parsed from the string
Returns an empty array if it fails
Converts a string input into an array of numbers seperated by a comma, if possible.
This can be item IDs, item names or a mixture.