uint GetItemQuantities(ushort id) { //silt pouch 6391 //bead pouch 6392 //Trapper2000 id = 18724 //Blank soulplate id = 18722 //Soultrapper id = 18721 //Soul Plate id = 2477 uint temp = GetSelectedItemId(instance); InventoryTools inventoryTools = new InventoryTools(instance); int count = inventoryTools.GetContainerCount(0); uint total = 0; for (int i = 1; i <= count; i++) { InventoryItem inventoryItem = new InventoryItem(); inventoryItem = inventoryTools.GetContainerItem(0, i); if (inventoryItem.Id == id) { total += inventoryItem.Count; } } return(total); }
uint getItemQuantities(ushort id) { //silt pouch 6391 //bead pouch 6392 uint temp = GetSelectedItemId(instance); InventoryTools inventoryTools = new InventoryTools(instance); int count = inventoryTools.GetContainerCount(0); uint total = 0; for (int i = 1; i <= count; i++) { InventoryItem inventoryItem = new InventoryItem(); inventoryItem = inventoryTools.GetContainerItem(0, i); if (inventoryItem.Id == id) { total += inventoryItem.Count; } } return(total); }