zarqon
Well-known member
Didn't check out the data format for OCD's data file, but I think this is basically what you want:
Note that if you run this script again, contents will be appended, not overwritten.
Also note that if you're more ambitious, you could also use this to actually add new content to OCD's actual datafiles.
PHP:
cli_execute("mirror non_ocd_items.txt"); // start logging CLI output
foreach i,num in get_inventory()
if (!(ocddatafile contains i)) // make this check actually do something
print("$item["+i+"]");
cli_execute("mirror"); // stop logging
Note that if you run this script again, contents will be appended, not overwritten.
Also note that if you're more ambitious, you could also use this to actually add new content to OCD's actual datafiles.