Skins

Moved

Total Downloads: 13,481 - First Release: Apr 20, 2017 - Last Update: May 5, 2017

5/5, 51 likes
  1. grant group default skins.allow

    THANK YOU WOLFFFFFF
     
  2. The box appears with a slight delay, which is required to create a box. And then the loot command of this box is sent. If you do not see a box, then your server is heavily loaded and can't create the box during this delay.

    For test it, you can change delay at line 429:
    Code:
    timer.In(0.25f, () =>
                {
                    PlayerLootContainer(player, container.storage);
                });
    But, if you have such problem you should check your server. In first version, is was 0.1 sec, and most of servers spawn box fine during this time. I'd increase this time to be sure that there will not be problems. But if you have a problem with such delay, you have a serious problem with the server!

    (or maybe you have some anti cheat system, which prevent to loot this box :) )
     
    Last edited by a moderator: Jun 21, 2017
  3. Thank you for the reply! Actually, it was something else altogether, something stupid...I had ZoneManager's 'noboxloot" set to true. :)
     
  4. Guys this plugin dont have all the skins how can i add all the skins to the plugin on the config. can some one help me please?
     
  5. how do I add gun skins
     
  6. It appears to be, best I can tell, a tediously long process of copying and pasting skin IDs from lists of workshop skins that can be found with a Google search.
     
  7. Or just go to the steam workshop via web browser and copy the ID from the address bar. That way you know what your getting.

    I have attached mine to help folk along, (there is a lot)
     

    Attached Files:

  8. only workshop rust? no custome item skins?
     
  9. The list I spent hours copy/pasting ID's also includes non-official skins but if you want to share your own list of these "costume item skins" crack on chief.
     
  10. This plugin seems to have a conflict with the FurnaceSorter by Absolut, and it allows players to duplicate their ore inside of furnaces. If you would change the hooks on the plugin, that would be great, if possible. The conflict goes as is: Calling hook CanAcceptItem resulted in a conflict between the following plugins: FurnaceSorter - CannotAccept (CanAcceptResult), Skins (True (Boolean))
     
  11. Anyone have ready config with cool sets?
    Pls. 160 plugins instlalled, and i am solo!
    Help me =DDDDDDDD
     
  12. Code:
    05:04 [Error] Failed to call hook 'CanMoveItem' on plugin 'Skins v1.2.9' (NullReferenceException: Object reference not set to an instance of an object)
    05:04 [Stacktrace]   at Oxide.Plugins.Skins+<CanMoveItem>c__AnonStorey3.<>m__0 (Oxide.Plugins.SkinContainer c) [0x00000] in <filename unknown>:0 
      at System.Collections.Generic.List`1[Oxide.Plugins.Skins+SkinContainer].GetIndex (Int32 startIndex, Int32 count, System.Predicate`1 match) [0x00000] in <filename unknown>:0 
      at System.Collections.Generic.List`1[Oxide.Plugins.Skins+SkinContainer].Exists (System.Predicate`1 match) [0x00000] in <filename unknown>:0 
      at Oxide.Plugins.Skins.CanMoveItem (.Item item, .PlayerInventory playerLoot, UInt32 targetContainer, Int32 targetSlot) [0x00000] in <filename unknown>:0 
      at Oxide.Plugins.Skins.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0 
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0 
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0 
    
     
  13. @MalkoR Not my place to tell you how to code but I have a few complaints on conflicts. I can't change my code on my plugin because the rejection of items from a box is critical to prevent stacking from occuring (long story).

    I noticed you are using CanAcceptItem with a return true and a return false;

    I think you are trying to prevent an item from being added to the SkinBox (no pun intended) prior to it being ready to accept items; if this is the case you want to return a "ItemContainer.CanAcceptResult" instead of true/false. Also if you change the true to null I think we will be good from conflicts.

    Do as you please, as it is your code but figured I'd share my two cents.

    Snippet for you:
    Code:
            object CanAcceptItem(ItemContainer container, Item item)
            {
                if (Containers.Exists(c => c.inventory == container && c.status != ContainerStatus.Ready))
                {
                    return ItemContainer.CanAcceptResult.CannotAccept;
                }
                return null;
            }
    
     
  14. If need be, are we, the consumers of this plugin, be able to change the code to yours without being under any trouble of the original maker of the plugin?
     
  15. Would like to see the ability to add an entire collection via the console commands

    skin.add hoodie "CollectionID"

    This is simply so one can go through and create a collection and expedite the adding of skins process.
     
  16. Okay so, I changed the bit you had changed, and the item gets deleted and no other items appear to take out.
    EDIT: I made a video showing what it does.

    I did put in a skin for the AK first, as it doesn't accept items with no skins.
     
  17. Hi guys

    can some1 please help me on how do i setup the config file

    i added the cs files oxide plugin folder

    i did run server and gor the json file in config folder

    now what must i add in the json folder

    if i run the server and type /skin it says i do not have permission
     
    Last edited by a moderator: Jul 14, 2017
  18. You need to give everyone permission too. "Grant group default skins.allow" will allow everyone to use it.
    And for the .json, you don't NEED to modify it through editing the actual file, but instead can go into your RCON or even your F1 console and do "skin.add shortnameoftheobject skinid" And it will add the skin for the item corresponding with the short name. If you need any more help let me know. Here's an actual example, "skin.add metal.facemask 784316334" For a list of all the skin id's and the shortnames of the items, go here.
     
  19. Dude thanks alot
     
  20. No problem.