Not working

is this pluging going to be updated?

This is what I found fixed the AllItems error.

Try changing these two lines in the Skinshop.cs file in plugins folder:

< Line 1049 >
Change:

foreach (var inventoryItem in player.inventory.AllItems())​


To:
foreach (var inventoryItem in player.inventory.containerMain.itemList)​

______________
AND
<Line 1232 >
Change:
foreach (var i in player.inventory.AllItems())​


To:
foreach (var i in player.inventory.containerMain.itemList)​

If you have another error, there is another fix for that bit (from the previous update, and that fix is in another thread).

thx man it works now.




No worries!

Any idea how to correct this error like the one above??

Error while compiling SkinShop: 'ItemCraftTask' does not contain a definition for 'owner' and no accessible extension method 'owner' accepting a first argument of type 'ItemCraftTask' could be found (are you missing a using directive or an assembly reference?) | Line: 532, Pos: 38

I'm no dev or modder or anything like that, nor do I really even understand C/C# or programming in general.

I don't really know why yours doesn't compile? Mine seems to. If your SkinShop.cs isn't corrupted (like you could have added/removed something pertinent without realizing? Idk)

If not, might it be possible to try changing this:

[quote]
void OnItemCraftFinished(ItemCraftTask task, Item item, ItemCrafter itemCrafter)
{
  var player = itemCrafter.owner;
  if (player != null)
    SetSkin(player, item);
}
[/quote]

To this?

[quote]void OnItemCraftFinished(ItemCraftTask task, Item item, ItemCrafter itemCrafter)
{
  if (!itemCrafter.owner)
    return;
  var player = itemCrafter.owner;
  if (player != null)
    SetSkin(player, item);
}
[/quote]

Let me know if it works, because I changed it and it compiles still, but I can't be sure if it's fixed your issue or not. If not I'll leave it to the experts lol.

Edited to change if (!itemCrafter) to if (!itemCrafter.owner)