examine plugin: add looting bag item examine support
This commit is contained in:
@@ -55,7 +55,7 @@ import net.runelite.client.util.StackFormatter;
|
||||
import net.runelite.http.api.examine.ExamineClient;
|
||||
|
||||
/**
|
||||
* Submits exammine info to the api
|
||||
* Submits examine info to the api
|
||||
*
|
||||
* @author Adam
|
||||
*/
|
||||
@@ -268,6 +268,16 @@ public class ExaminePlugin extends Plugin
|
||||
itemId = widgetItem.getItemId();
|
||||
}
|
||||
}
|
||||
else if (WidgetInfo.LOOTING_BAG_CONTAINER.getGroupId() == widgetGroup)
|
||||
{
|
||||
Widget[] children = widget.getDynamicChildren();
|
||||
if (pendingExamine.getActionParam() < children.length)
|
||||
{
|
||||
Widget widgetItem = children[pendingExamine.getActionParam()];
|
||||
quantity = widgetItem.getItemQuantity();
|
||||
itemId = widgetItem.getItemId();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (itemId == -1)
|
||||
|
||||
Reference in New Issue
Block a user