Skip to content

Commit

Permalink
loot tracker: track lunar chest
Browse files Browse the repository at this point in the history
  • Loading branch information
MESLewis committed Mar 20, 2024
1 parent cdfc401 commit 0589c3d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions runelite-api/src/main/interfaces/interfaces.toml
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,9 @@ logout_button=6
id=81
looting_bag_inventory=5

[lunar_chest]
id=868

[minigames]
id=160
teleport_button=30
Expand Down
6 changes: 5 additions & 1 deletion runelite-api/src/main/java/net/runelite/api/InventoryID.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@ public enum InventoryID
/**
* TOA reward chest
*/
TOA_REWARD_CHEST(811);
TOA_REWARD_CHEST(811),
/**
* Reward chest for Moons of Peril
*/
LUNAR_CHEST(847);

private final int id;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -892,6 +892,10 @@ public void onWidgetLoaded(WidgetLoaded widgetLoaded)
container = client.getItemContainer(InventoryID.WILDERNESS_LOOT_CHEST);
chestLooted = true;
break;
case InterfaceID.LUNAR_CHEST:
event = "Lunar Chest";
container = client.getItemContainer(InventoryID.LUNAR_CHEST);
break;
default:
return;
}
Expand Down

0 comments on commit 0589c3d

Please sign in to comment.