As title states, just looking for a method to delete an InventoryItem. Am trying to make a quick plugin to remove the junk from my inventory whilst botting. So, just doing something like this... Code: foreach (var item in GameManager.Inventory.Bags.Items) { if ((ItemType)item.Info.Type.Id == ItemType.TechnologistFormula) { //item.Delete(); } } But Delete or similar methods don't exist. (There's a Dispose, but I assume that's just memory related) Is there something I'm missing, or?
Code: private void DeleteItem(InventoryItem Item) { ConfirmActionButton btn = new ConfirmActionButton( @"local InventoryBag = Apollo.GetAddon('Inventory') if InventoryBag ~= nil then local btn = InventoryBag.wndDeleteConfirm:FindChild('DeleteBtn') if btn ~= nil then btn:SetActionData(GameLib.CodeEnumConfirmButtonType.DeleteItem, " + Item.InventoryId + @") return btn end end "); if (btn.IsValid) btn.Click(); } It's not wrapped, so you gotta do it yourself, shouldddd still work since I used it last!