1. Hello good sirs,

    i was wondering if you see any possibility for server admins/moderators to spawn workshop customized items?
    Maybe someone here has already found a way and could give me a push in the right direction.

    As i see it currently there is no way to do so?
    -For example the kits plugin does spawn the standard items instead of a customized workshop item (german t-shirt becomes a standard t-shirt if spawned with kits)
    -Furthermore the admin item spawn menu in F1 does no longer offer the possibility to spawn anything else then the standard look
    - the server commands (pseudo) "/giveItem X" seem to be removed since the last devblog

    Are there any known hooks for item spawn in Oxide and/or Rust Exp itself where additional parameters could get squeezed in to spawn workshop items?

    (Currently its not important if the item is spawned as loot in the world, own inventory or 3. person inventory. Just if there is a way in general to do so.)

    Thanks for your time reading. :)

    Kind regards
     
  2. Wulf

    Wulf Community Admin

    Not that I know of. The player actually has to own those, which is checked via the Steam API.
     
  3. I'm not sure about that Wulf..... Technically when you use ItemManager.CreateByName() you are creating a base item and then you can set the skinID to whatever (I use this in two of my plugins with success, one is for saving/loading my inventory as admin, the other is LimeBench). Once the item exists, Rust does not know to whom it belongs so it cannot check if the player (there is none) has the skin or not. Just like any player can kill another player wearing one of these items and take it as his own, there is no reason the server could not create these items.

    That said, I don't know if it's possible to get the skin id's for items easily. I assume they aren't sequential and probably a random number so getting what you want might prove to be a little troublesome.

    I'll do some testing and report back :)
     
  4. Rust client might download purchased skins on start from the steam store. So if you set skinID to the one not existing on the client - it will use default skin. Please try and let us know :)
     
  5. Wulf

    Wulf Community Admin

    Mmmm, didn't think about it that way. Good luck!
     
  6. I tried spawning a bunch sequentially from 0 to 20 and all I got was failure. The skin ids are prob somewhat random in nature. If anyone has any idea how to get the skin ids im all ears. I could empirically note down the ones i have on my account but thats all i can think of.
     
  7. Well you can maybe start by trying to get the skin values of the skins you got in your inventory, maybe make a simple plugin out of it which people can call, then send in those values. Then we could build up like a database
     
  8. I suppose =) Not sure it's good sportsmanship though... I do see value in it for arena type plugins. I'll see what I can dig from existing items, maybe there's a pattern who knows.
     
  9. Code:
    Found 5 skins for Beenie Hat:
    => black : 14180
    => blue : 10018
    => green : 10017
    => red : 10016
    => rasta beenie : 10040Found 7 skins for Baseball Cap:
    => blue : 10029
    => forestcamo : 10027
    => green : 10030
    => grey : 10026
    => red : 10028
    => friendly cap : 10055
    => rescue cap : 10045Found 4 skins for Hoodie:
    => black : 14179
    => blue : 14178
    => green : 14072
    => bloody hoodie : 10052Found 8 skins for Jacket:
    => blue : 10011
    => desertcamo : 10012
    => green : 10009
    => hunter : 10015
    => multicam : 10013
    => red : 10010
    => snowcamo : 10008
    => urbancamo : 10014Found 6 skins for Improvised Balaclava:
    => camo.desert : 10069
    => camo.forest : 10068
    => checkered.red : 10070
    => stripe.yellow : 10071
    => murica balaclava : 10057
    => rorschach skull : 10054Found 9 skins for Bandana Mask:
    => black : 10061
    => blue : 10060
    => camo.desert : 10066
    => camo.forest : 10063
    => camo.snow : 10062
    => checkered.black : 10067
    => green : 10059
    => skull.black : 10064
    => skull.red : 10065Found 6 skins for Pants:
    => forestcamo : 10019
    => jeans : 10001
    => snowcamo : 10021
    => urbancamo : 10020
    => blue track pants v.2 : 10049
    => punk rock pants : 10048Found 4 skins for Boots:
    => black : 10023
    => tan : 10022
    => punk boots : 10034
    => scavenged sneakers : 10044Found 17 skins for T-Shirt:
    => black : 10003
    => blue : 14177
    => flag.germany : 10024
    => flag.russia : 10025
    => forestcamo : 14181
    => gmod : 10002
    => red : 101
    => urbancamo : 584379
    => baseball tshirt : 10033
    => black skull&bones tshirt : 10041
    => facepunch tshirt : 10056
    => hacker valley veteran : 10035
    => japanese murderer tshirt : 10038
    => missing textures full : 10046
    => smile t-shirt : 10053
    => target practice tshirt : 10039
    => vyshyvanka : 10043Found 10 skins for Longsleeve T-Shirt:
    => black : 10004
    => grey : 10005
    => orange : 10006
    => yellow : 10007
    => aztec long t-shirt : 10047
    => frankensteins sweater : 10050
    => green checkered shirt : 10032
    => nightmare sweater : 10051
    => sign painter's long tshirt : 10036
    => varsity jacket : 10042
     
    Last edited by a moderator: Sep 2, 2015
  10. Anyway this can be done in console? inventory.give beanie:10040
     
  11. Wulf

    Wulf Community Admin

    Not without a plugin.
     
  12. so... something like this?
    Code:
    namespace Oxide.Plugins
    {
        [Info("Grimbo Sawg Addon", "GrimboNutter", 1.0)]
        [Description("This example illustrates how to create a chat command.")]
        class Swag : RustPlugin
        {
            [ChatCommand("swag")]
            private void SwagCommand(BasePlayer player, string command, string[] args)
            {
                task =  inventory.give hat.beenie 1;
                task.skinID = 10040;
            }
        }
    }
     
  13. not really.
    You should take a look at other plugin which do stuff with items / for example the give plugin.
     
  14. I have seen a battlefield server figure out how to spawn items with any Workshop skin, but I think that the dev only speaks Russian... they have kits set up that let you pick a preset of uniforms for teaming with friends. I'll get in touch and ask if they can share how they did it because it would be very useful for some servers like Rust Factions. It's at the point where I'm willing to pay for it, lol.
     
  15. well. Its known to us already. You can check the Random Skin plugin for that too. The Item Skin ID's are listed in the docs
     
  16. Yeah, but it'd be nice if there could be a simple plugin that just added the skin as an option to choose from the select skin GUI instead of just randomly making one.
     
  17. I just meant that we basicly know how to choose a skin.
     
  18. The client grabs the available skins from steam, not from the server so you can't do that unless you change your client.
     
  19. You could make a gui to do it though. Again, tbe server can spawn any skin, it doesn't care what the client has or does not have. Can't reuse the craft menu selector but you can def do a gui or command line shop.
     
  20. How can I get IDs from new workshop items?