loottracker: add standard Casket
This commit is contained in:
@@ -198,6 +198,8 @@ public class LootTrackerPlugin extends Plugin
|
|||||||
"H.A.M. Member", "Woman"
|
"H.A.M. Member", "Woman"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
private static final String CASKET_EVENT = "Casket";
|
||||||
|
|
||||||
private static final Set<Character> VOWELS = ImmutableSet.of('a', 'e', 'i', 'o', 'u');
|
private static final Set<Character> VOWELS = ImmutableSet.of('a', 'e', 'i', 'o', 'u');
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
@@ -685,6 +687,7 @@ public class LootTrackerPlugin extends Plugin
|
|||||||
|| HERBIBOAR_EVENT.equals(eventType)
|
|| HERBIBOAR_EVENT.equals(eventType)
|
||||||
|| HESPORI_EVENT.equals(eventType)
|
|| HESPORI_EVENT.equals(eventType)
|
||||||
|| SEEDPACK_EVENT.equals(eventType)
|
|| SEEDPACK_EVENT.equals(eventType)
|
||||||
|
|| CASKET_EVENT.equals(eventType)
|
||||||
|| lootRecordType == LootRecordType.PICKPOCKET)
|
|| lootRecordType == LootRecordType.PICKPOCKET)
|
||||||
{
|
{
|
||||||
WorldPoint playerLocation = client.getLocalPlayer().getWorldLocation();
|
WorldPoint playerLocation = client.getLocalPlayer().getWorldLocation();
|
||||||
@@ -719,6 +722,13 @@ public class LootTrackerPlugin extends Plugin
|
|||||||
lootRecordType = LootRecordType.EVENT;
|
lootRecordType = LootRecordType.EVENT;
|
||||||
takeInventorySnapshot();
|
takeInventorySnapshot();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (event.getMenuOption().equals("Open") && event.getId() == ItemID.CASKET)
|
||||||
|
{
|
||||||
|
eventType = CASKET_EVENT;
|
||||||
|
lootRecordType = LootRecordType.EVENT;
|
||||||
|
takeInventorySnapshot();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Schedule(
|
@Schedule(
|
||||||
|
|||||||
Reference in New Issue
Block a user