Rust Skins items in crates

Discussion in 'Plugin Requests' started by jayman340, Nov 22, 2017.

  1. I'm looking for a plugin that skins items found in crates. Example: Going to a mining outpost, and finding a blue skinned pump shotgun. I know how to put items into crates with plugins, but not how to skin them in there.
     
  2. Alphaloot (available on CC website) allows you to have skinned items appear in crates
     
  3. If u know how to put it, you know how to create Item.
    You use something like:
    Code:
    var x = ItemManager.CreateById(ID, Amount, !SKINID!);
    x.MoveToContainer(.....)
    So you just need to edit SkinID in option of CreateByID, if you want to make it Random you can do something like:
    Code:
    Dictionary<string, List<ulong>> skins = new D......;
    ulong SkinID = skins.ContainsKey(item.info.shortname) ? skins[item.info.shortname][Oxide.Core.Random.Range(0, skins[item.info.shortname].Count())] : 0;
    var x = ItemManager.CreateById(ID, Amount, SkinID);
     
    Last edited by a moderator: Nov 23, 2017