PDA

View Full Version : Inventory.lic



TheEschaton
07-04-2007, 12:18 PM
So, just dled lich a day or so ago, fooling around with it abit.

Looked at inventory.lic, and I think I want to adapt it to be able to read inventories off locker/shop manifests. Someone wanna run me through how I'd edit the script for that?

Edit: Oh, and open all containers first via a INV CONT, so on, so forth sort of thing, because INV FULL doesn't catch things inside containers if they're closed.

-TheE-

TheEschaton
07-04-2007, 04:07 PM
Well, it seems I just need to know how to parse individual lines - and how to match/store input from the game via RUBY.

Oh, and some of the shop manifest and locker manifest stuff is highlighted, must have a tag...how do you parse the tags out?

-TheE-

TheEschaton
07-07-2007, 10:17 AM
bump?

Shaelun
07-13-2007, 03:13 AM
I think you're asking for a little bit more information than you think you are. It's not quite as simple as "running you through how to do it." I don't remember writing the script, but it sure doesn't look like one that I intended to be easily-understood.

Basically, the script is using a hash to store arrays (that's what the built-in "Settings" thing is -- a persistent hash for that script), each character's name being the hash key and each corresponding array being filled with the items your character has in his/her possession. That probably doesn't help you, but since nobody else has responded at all, there it is...