1. Hi there, is it possible to pick up any item from the player's inventory? (Via hooks, comands etc.)
    Thanks in advance
     
  2. Just use InventoryViewer plugin...
     
  3. Code:
    PlayerInventory inv = player.inventory;
    Item item = player.inventory.FindItemID("wood");
    int item_id = item.info.itemid;
    inv.Take(inv.FindItemIDs(item_id),item_id,1000);
    C#
     
  4. Thanks a lot!
     
  5. press "like" =)
     
  6. Hi, maybe you know how to find number of such items in player`s inventory?
     
  7. This should work: Rust
     
  8. i mean not item ID, but the quantity
     
  9. Example of Quantity:
    Code:
    int refined = crafter.inventory.GetAmount(374890416);
    if(refined >= 1)
    [DOUBLEPOST=1460673297][/DOUBLEPOST]of course "crafter" would be player, target, looter, etc.
     
  10. that's what I was looking for. Where do you find those methods, decompile the library?
     
  11. I use dotPeek decompiler on the Assembly.CSharp in your managed folder. But that method I got from @k1lly0u.