Enumerate and give/edit commands for non-player entity inventories

    Tunk

    Who's idea was this?
    Joined
    Sep 8, 2013
    Messages
    363
    Reaction score
    153
    • Purchased!
    • Community Content - Bronze 1
    • Legacy Citizen 4
    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.
     

    NeonSturm

    StormMaker
    Joined
    Dec 31, 2013
    Messages
    5,110
    Reaction score
    617
    • Wired for Logic
    • Thinking Positive
    • Legacy Citizen 5
    And perhaps some day we can use those commands over display blocks and bake our own with regex.
     

    Tunk

    Who's idea was this?
    Joined
    Sep 8, 2013
    Messages
    363
    Reaction score
    153
    • Purchased!
    • Community Content - Bronze 1
    • Legacy Citizen 4
    Why would a player want to use admin/console commands in a display module?

    Those can be baked into whatever server side stuff a admin wants, but no way in hell would I trust them in display modules.
     

    NeonSturm

    StormMaker
    Joined
    Dec 31, 2013
    Messages
    5,110
    Reaction score
    617
    • Wired for Logic
    • Thinking Positive
    • Legacy Citizen 5
    If the station is protected, …
    … I thought about how clueless someone-not-experienced can be when being required to set up a script for that.
    I guess we both have a point, we just didn't get each other's point.​