diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/loottracker/LootTrackerPlugin.java b/runelite-client/src/main/java/net/runelite/client/plugins/loottracker/LootTrackerPlugin.java index 6f8c1d966d..b622aaaa41 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/loottracker/LootTrackerPlugin.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/loottracker/LootTrackerPlugin.java @@ -227,6 +227,10 @@ public class LootTrackerPlugin extends Plugin private static final String CASKET_EVENT = "Casket"; + // Soul Wars + private static final String SPOILS_OF_WAR_EVENT = "Spoils of war"; + private static final Set SOUL_WARS_REGIONS = ImmutableSet.of(8493, 8749, 9005); + private static final Set VOWELS = ImmutableSet.of('a', 'e', 'i', 'o', 'u'); @Inject @@ -487,8 +491,8 @@ public class LootTrackerPlugin extends Plugin @Subscribe public void onPlayerLootReceived(final PlayerLootReceived playerLootReceived) { - // Ignore Last Man Standing player loots - if (isPlayerWithinMapRegion(LAST_MAN_STANDING_REGIONS)) + // Ignore Last Man Standing and Soul Wars player loots + if (isPlayerWithinMapRegion(LAST_MAN_STANDING_REGIONS) || isPlayerWithinMapRegion(SOUL_WARS_REGIONS)) { return; } @@ -763,6 +767,7 @@ public class LootTrackerPlugin extends Plugin || SEEDPACK_EVENT.equals(eventType) || CASKET_EVENT.equals(eventType) || BIRDNEST_EVENT.equals(eventType) + || SPOILS_OF_WAR_EVENT.equals(eventType) || eventType.endsWith("Bird House") || eventType.startsWith("H.A.M. chest") || lootRecordType == LootRecordType.PICKPOCKET) @@ -808,6 +813,12 @@ public class LootTrackerPlugin extends Plugin setEvent(LootRecordType.EVENT, CASKET_EVENT); takeInventorySnapshot(); } + + if (event.getMenuOption().equals("Open") && event.getId() == ItemID.SPOILS_OF_WAR) + { + setEvent(LootRecordType.EVENT, SPOILS_OF_WAR_EVENT); + takeInventorySnapshot(); + } } @Schedule(