Would be useful if there were commands for working with non-player inventories on ships, stations, asteroids and planets.
Opens up some extra stuff server side, and also means a lot less hackish work arounds.
For example:
/inventory_enum_uid/name <uid>/<name>
would output all inventories for the designated entity, with their associated inventory IDs.
/inventory_list_uid <uid> <inventory_id>
Would list the current contents of the designated entities inventory by that inventory ID.
/inventory_give_uid <uid> <inventory_id> <item ID> <amount>
/inventory_give_slot_uid <uid> <inventory_id_uid> <slot> <item ID> <amount>
"give" a item into the elected inventory.
/inventory_set_slot_uid <uid> <inventory_id> <slot ID> <amount>
Sets amount in slot, if zero removes item, if item null then nothing.
Alternatively storing inventories in the database would be nice so we could sql things up.
Opens up some extra stuff server side, and also means a lot less hackish work arounds.
For example:
/inventory_enum_uid/name <uid>/<name>
would output all inventories for the designated entity, with their associated inventory IDs.
/inventory_list_uid <uid> <inventory_id>
Would list the current contents of the designated entities inventory by that inventory ID.
/inventory_give_uid <uid> <inventory_id> <item ID> <amount>
/inventory_give_slot_uid <uid> <inventory_id_uid> <slot> <item ID> <amount>
"give" a item into the elected inventory.
/inventory_set_slot_uid <uid> <inventory_id> <slot ID> <amount>
Sets amount in slot, if zero removes item, if item null then nothing.
Alternatively storing inventories in the database would be nice so we could sql things up.