world map plugin: show quest completion state
Co-authored-by: Rens-br <RensB@users.noreply.github.com>
This commit is contained in:
@@ -51,6 +51,7 @@ public enum Quest
|
||||
SHIELD_OF_ARRAV(316, "Shield of Arrav"),
|
||||
VAMPIRE_SLAYER(317, "Vampire Slayer"),
|
||||
WITCHS_POTION(318, "Witch's Potion"),
|
||||
X_MARKS_THE_SPOT(550, "X Marks the Spot"),
|
||||
|
||||
//Members' Quests
|
||||
ANIMAL_MAGNETISM(331, "Animal Magnetism"),
|
||||
|
||||
@@ -27,151 +27,159 @@ package net.runelite.client.plugins.worldmap;
|
||||
|
||||
import lombok.Getter;
|
||||
import net.runelite.api.coords.WorldPoint;
|
||||
import net.runelite.api.Quest;
|
||||
|
||||
// Some quests are in the same spot, but they are done in order. If multiple
|
||||
// quests start in the same location, an array of quests is expected.
|
||||
enum QuestStartLocation
|
||||
{
|
||||
//Free Quests
|
||||
COOKS_ASSISTANT_RFD("Cook's Assistant", new WorldPoint(3211, 3216, 0)),
|
||||
THE_CORSAIR_CURSE("The Corsair Curse", new WorldPoint(3029, 3273, 0)),
|
||||
DEMON_SLAYER("Demon Slayer", new WorldPoint(3204, 3424, 0)),
|
||||
DORICS_QUEST("Doric's Quest", new WorldPoint(2952, 3450, 0)),
|
||||
DRAGON_SLAYER("Dragon Slayer", new WorldPoint(3190, 3362, 0)),
|
||||
ERNEST_THE_CHICKEN("Ernest the Chicken", new WorldPoint(3109, 3330, 0)),
|
||||
GOBLIN_DIPLOMACY("Goblin Diplomacy", new WorldPoint(2957, 3509, 0)),
|
||||
IMP_CATCHER("Imp Catcher", new WorldPoint(3108, 3160, 0)),
|
||||
THE_KNIGHTS_SWORD("The Knight's Sword", new WorldPoint(2976, 3342, 0)),
|
||||
MISTHALIN_MYSTERY("Misthalin Mystery", new WorldPoint(3234, 3155, 0)),
|
||||
PIRATES_TREASURE("Pirate's Treasure", new WorldPoint(3051, 3252, 0)),
|
||||
PRINCE_ALI_RESCUE("Prince Ali Rescue", new WorldPoint(3301, 3163, 0)),
|
||||
THE_RESTLESS_GHOST("The Restless Ghost", new WorldPoint(3240, 3210, 0)),
|
||||
RUNE_MYSTERIES("Rune Mysteries", new WorldPoint(3210, 3220, 0)),
|
||||
SHEEP_SHEARER("Sheep Shearer", new WorldPoint(3190, 3272, 0)),
|
||||
SHIELD_OF_ARRAV_PHOENIX_GANG("Shield of Arrav (Phoenix Gang)", new WorldPoint(3208, 3495, 0)),
|
||||
SHIELD_OF_ARRAV_BLACK_ARM_GANG("Shield of Arrav (Black Arm Gang)", new WorldPoint(3208, 3392, 0)),
|
||||
VAMPIRE_SLAYER("Vampire Slayer", new WorldPoint(3096, 3266, 0)),
|
||||
WITCHS_POTION("Witch's Potion", new WorldPoint(2967, 3203, 0)),
|
||||
X_MARKS_THE_SPOT("X Marks the Spot", new WorldPoint(3227, 3242, 0)),
|
||||
COOKS_ASSISTANT_RFD(Quest.COOKS_ASSISTANT, new WorldPoint(3211, 3216, 0)),
|
||||
THE_CORSAIR_CURSE(Quest.THE_CORSAIR_CURSE, new WorldPoint(3029, 3273, 0)),
|
||||
DEMON_SLAYER(Quest.DEMON_SLAYER, new WorldPoint(3204, 3424, 0)),
|
||||
DORICS_QUEST(Quest.DORICS_QUEST, new WorldPoint(2952, 3450, 0)),
|
||||
DRAGON_SLAYER(Quest.DRAGON_SLAYER, new WorldPoint(3190, 3362, 0)),
|
||||
ERNEST_THE_CHICKEN(Quest.ERNEST_THE_CHICKEN, new WorldPoint(3109, 3330, 0)),
|
||||
GOBLIN_DIPLOMACY(Quest.GOBLIN_DIPLOMACY, new WorldPoint(2957, 3509, 0)),
|
||||
IMP_CATCHER(Quest.IMP_CATCHER, new WorldPoint(3108, 3160, 0)),
|
||||
THE_KNIGHTS_SWORD(Quest.THE_KNIGHTS_SWORD, new WorldPoint(2976, 3342, 0)),
|
||||
MISTHALIN_MYSTERY(Quest.MISTHALIN_MYSTERY, new WorldPoint(3234, 3155, 0)),
|
||||
PIRATES_TREASURE(Quest.PIRATES_TREASURE, new WorldPoint(3051, 3252, 0)),
|
||||
PRINCE_ALI_RESCUE(Quest.PRINCE_ALI_RESCUE, new WorldPoint(3301, 3163, 0)),
|
||||
THE_RESTLESS_GHOST(Quest.THE_RESTLESS_GHOST, new WorldPoint(3240, 3210, 0)),
|
||||
RUNE_MYSTERIES(Quest.RUNE_MYSTERIES, new WorldPoint(3210, 3220, 0)),
|
||||
SHEEP_SHEARER(Quest.SHEEP_SHEARER, new WorldPoint(3190, 3272, 0)),
|
||||
SHIELD_OF_ARRAV(Quest.SHIELD_OF_ARRAV, new WorldPoint(3208, 3495, 0)),
|
||||
VAMPIRE_SLAYER(Quest.VAMPIRE_SLAYER, new WorldPoint(3096, 3266, 0)),
|
||||
WITCHS_POTION(Quest.WITCHS_POTION, new WorldPoint(2967, 3203, 0)),
|
||||
X_MARKS_THE_SPOT(Quest.X_MARKS_THE_SPOT, new WorldPoint(3227, 3242, 0)),
|
||||
|
||||
//Members' Quests
|
||||
ANIMAL_MAGNETISM("Animal Magnetism", new WorldPoint(3094, 3360, 0)),
|
||||
ANOTHER_SLICE_OF_HAM("Another Slice of H.A.M.", new WorldPoint(2799, 5428, 0)),
|
||||
THE_ASCENT_OF_ARCEUUS("The Ascent of Arceuus", new WorldPoint(1700, 3742, 0)),
|
||||
BETWEEN_A_ROCK("Between a Rock...", new WorldPoint(2823, 10168, 0)),
|
||||
BIG_CHOMPY_BIRD_HUNTING("Big Chompy Bird Hunting", new WorldPoint(2629, 2981, 0)),
|
||||
BIOHAZARD("Biohazard", new WorldPoint(2591, 3335, 0)),
|
||||
BONE_VOYAGE("Bone Voyage", new WorldPoint(3259, 3450, 0)),
|
||||
CABIN_FEVER("Cabin Fever", new WorldPoint(3674, 3496, 0)),
|
||||
CLIENT_OF_KOUREND("Client of Kourend", new WorldPoint(1823, 3690, 0)),
|
||||
CLOCK_TOWER("Clock Tower", new WorldPoint(2568, 3249, 0)),
|
||||
COLD_WAR("Cold War", new WorldPoint(2593, 3265, 0)),
|
||||
CONTACT("Contact!", new WorldPoint(3280, 2770, 0)),
|
||||
CREATURE_OF_FENKENSTRAIN("Creature of Fenkenstrain", new WorldPoint(3487, 3485, 0)),
|
||||
DARKNESS_OF_HALLOWVALE("Darkness of Hallowvale", new WorldPoint(3494, 9628, 0)),
|
||||
DEATH_PLATEAU_TROLL_STRONGHOLD("Death Plateau & Troll Stronghold", new WorldPoint(2895, 3528, 0)),
|
||||
DEATH_TO_THE_DORGESHUUN("Death to the Dorgeshuun", new WorldPoint(3316, 9613, 0)),
|
||||
THE_DEPTHS_OF_DESPAIR("The Depths of Despair", new WorldPoint(1846, 3556, 0)),
|
||||
DESERT_TREASURE("Desert Treasure", new WorldPoint(3177, 3043, 0)),
|
||||
DEVIOUS_MINDS("Devious Minds", new WorldPoint(3405, 3492, 0)),
|
||||
THE_DIG_SITE("The Dig Site", new WorldPoint(3363, 3337, 0)),
|
||||
DRAGON_SLAYER_II("Dragon Slayer II", new WorldPoint(2456, 2868, 0)),
|
||||
DREAM_MENTOR("Dream Mentor", new WorldPoint(2144, 10346, 0)),
|
||||
DRUIDIC_RITUAL("Druidic Ritual", new WorldPoint(2916, 3484, 0)),
|
||||
DWARF_CANNON("Dwarf Cannon", new WorldPoint(2566, 3461, 0)),
|
||||
EADGARS_RUSE("Eadgar's Ruse", new WorldPoint(2896, 3426, 0)),
|
||||
EAGLES_PEAK("Eagles' Peak", new WorldPoint(2605, 3264, 0)),
|
||||
ELEMENTAL_WORKSHOP("Elemental Workshop I & II", new WorldPoint(2714, 3482, 0)),
|
||||
ENAKHRAS_LAMENT("Enakhra's Lament", new WorldPoint(3190, 2926, 0)),
|
||||
ENLIGHTENED_JOURNEY("Enlightened Journey", new WorldPoint(2809, 3356, 0)),
|
||||
THE_EYES_OF_GLOUPHRIE("The Eyes of Glouphrie", new WorldPoint(2400, 3419, 0)),
|
||||
FAIRYTALE("Fairytale I & II", new WorldPoint(3077, 3258, 0)),
|
||||
FAMILY_CREST("Family Crest", new WorldPoint(3278, 3404, 0)),
|
||||
THE_FEUD("The Feud", new WorldPoint(3301, 3211, 0)),
|
||||
FIGHT_ARENA("Fight Arena", new WorldPoint(2565, 3199, 0)),
|
||||
FISHING_CONTEST_1("Fishing Contest", new WorldPoint(2875, 3483, 0)),
|
||||
FISHING_CONTEST_2("Fishing Contest", new WorldPoint(2820, 3487, 0)),
|
||||
FORGETTABLE_TALE("Forgettable Tale...", new WorldPoint(2826, 10215, 0)),
|
||||
THE_FORSAKEN_TOWER("The Forsaken Tower", new WorldPoint(1484, 3747, 0)),
|
||||
THE_FREMENNIK_ISLES("The Fremennik Isles", new WorldPoint(2645, 3711, 0)),
|
||||
THE_FREMENNIK_TRIALS("The Fremennik Trials", new WorldPoint(2657, 3669, 0)),
|
||||
GARDEN_OF_TRANQUILLITY("Garden of Tranquillity", new WorldPoint(3227, 3477, 0)),
|
||||
GERTRUDES_CAT_RATCATCHERS("Gertrude's Cat & Ratcatchers", new WorldPoint(3150, 3411, 0)),
|
||||
GHOSTS_AHOY("Ghosts Ahoy", new WorldPoint(3677, 3510, 0)),
|
||||
THE_GIANT_DWARF("The Giant Dwarf", new WorldPoint(2841, 10129, 0)),
|
||||
THE_GOLEM("The Golem", new WorldPoint(3487, 3089, 0)),
|
||||
THE_GRAND_TREE_MONKEY_MADNESS("The Grand Tree & Monkey Madness I & II", new WorldPoint(2466, 3497, 0)),
|
||||
THE_GREAT_BRAIN_ROBBERY("The Great Brain Robbery", new WorldPoint(3681, 2963, 0)),
|
||||
GRIM_TALES("Grim Tales", new WorldPoint(2890, 3454, 0)),
|
||||
THE_HAND_IN_THE_SAND("The Hand in the Sand", new WorldPoint(2552, 3101, 0)),
|
||||
HAUNTED_MINE("Haunted Mine", new WorldPoint(3443, 3258, 0)),
|
||||
HAZEEL_CULT("Hazeel Cult", new WorldPoint(2565, 3271, 0)),
|
||||
HEROES_QUEST("Heroes' Quest", new WorldPoint(2903, 3511, 0)),
|
||||
HOLY_GRAIL("Holy Grail & Merlin's Crystal", new WorldPoint(2763, 3515, 0)),
|
||||
HORROR_FROM_THE_DEEP("Horror from the Deep", new WorldPoint(2507, 3635, 0)),
|
||||
ICTHLARINS_LITTLE_HELPER("Icthlarin's Little Helper", new WorldPoint(3314, 2849, 0)),
|
||||
IN_SEARCH_OF_THE_MYREQUE("In Search of the Myreque", new WorldPoint(3502, 3477, 0)),
|
||||
JUNGLE_POTION("Jungle Potion", new WorldPoint(2809, 3086, 0)),
|
||||
KINGS_RANSOM("King's Ransom", new WorldPoint(2741, 3554, 0)),
|
||||
LEGENDS_QUEST("Legends' Quest", new WorldPoint(2725, 3367, 0)),
|
||||
LOST_CITY("Lost City", new WorldPoint(3149, 3205, 0)),
|
||||
THE_LOST_TRIBE("The Lost Tribe", new WorldPoint(3211, 3224, 0)),
|
||||
LUNAR_DIPLOMACY("Lunar Diplomacy", new WorldPoint(2619, 3689, 0)),
|
||||
MAKING_FRIENDS_WITH_MY_ARM("Making Friends with My Arm", new WorldPoint(2904, 10092, 0)),
|
||||
MAKING_HISTORY("Making History", new WorldPoint(2435, 3346, 0)),
|
||||
MONKS_FRIEND("Monk's Friend", new WorldPoint(2605, 3209, 0)),
|
||||
MOUNTAIN_DAUGHTER("Mountain Daughter", new WorldPoint(2810, 3672, 0)),
|
||||
MOURNINGS_ENDS_PART_I("Mourning's Ends Part I", new WorldPoint(2289, 3149, 0)),
|
||||
MOURNINGS_ENDS_PART_II("Mourning's Ends Part II", new WorldPoint(2352, 3172, 0)),
|
||||
MURDER_MYSTERY("Murder Mystery", new WorldPoint(2740, 3562, 0)),
|
||||
MY_ARMS_BIG_ADVENTURE("My Arm's Big Adventure", new WorldPoint(2908, 10088, 0)),
|
||||
NATURE_SPIRIT("Nature Spirit", new WorldPoint(3440, 9894, 0)),
|
||||
OBSERVATORY_QUEST("Observatory Quest", new WorldPoint(2438, 3185, 0)),
|
||||
OLAFS_QUEST("Olaf's Quest", new WorldPoint(2723, 3729, 0)),
|
||||
ONE_SMALL_FAVOUR("One Small Favour", new WorldPoint(2834, 2985, 0)),
|
||||
PLAGUE_CITY("Plague City", new WorldPoint(2567, 3334, 0)),
|
||||
PRIEST_IN_PERIL("Priest in Peril", new WorldPoint(3219, 3473, 0)),
|
||||
THE_QUEEN_OF_THIEVES("The Queen of Thieves", new WorldPoint(1795, 3782, 0)),
|
||||
RAG_AND_BONE_MAN("Rag and Bone Man I & II", new WorldPoint(3359, 3504, 0)),
|
||||
RECRUITMENT_DRIVE_BLACK_KNIGHTS_FORTRESS("Recruitment Drive & Black Knights' Fortress", new WorldPoint(2959, 3336, 0)),
|
||||
ROVING_ELVES("Roving Elves", new WorldPoint(2289, 3146, 0)),
|
||||
RUM_DEAL("Rum Deal", new WorldPoint(3679, 3535, 0)),
|
||||
SCORPION_CATCHER("Scorpion Catcher", new WorldPoint(2701, 3399, 0)),
|
||||
SEA_SLUG("Sea Slug", new WorldPoint(2715, 3302, 0)),
|
||||
SHADES_OF_MORTTON("Shades of Mort'ton", new WorldPoint(3463, 3308, 0)),
|
||||
SHADOW_OF_THE_STORM("Shadow of the Storm", new WorldPoint(3270, 3159, 0)),
|
||||
SHEEP_HERDER("Sheep Herder", new WorldPoint(2616, 3299, 0)),
|
||||
SHILO_VILLAGE("Shilo Village", new WorldPoint(2882, 2951, 0)),
|
||||
A_SOULS_BANE("A Soul's Bane", new WorldPoint(3307, 3454, 0)),
|
||||
SPIRITS_OF_THE_ELID("Spirits of the Elid", new WorldPoint(3441, 2911, 0)),
|
||||
SWAN_SONG("Swan Song", new WorldPoint(2345, 3652, 0)),
|
||||
TAI_BWO_WANNAI_TRIO("Tai Bwo Wannai Trio", new WorldPoint(2779, 3087, 0)),
|
||||
A_TAIL_OF_TWO_CATS("A Tail of Two Cats", new WorldPoint(2917, 3557, 0)),
|
||||
TALE_OF_THE_RIGHTEOUS("Tale of the Righteous", new WorldPoint(1511, 3631, 0)),
|
||||
A_TASTE_OF_HOPE("A Taste of Hope", new WorldPoint(3668, 3216, 0)),
|
||||
TEARS_OF_GUTHIX("Tears of Guthix", new WorldPoint(3251, 9517, 0)),
|
||||
TEMPLE_OF_IKOV("Temple of Ikov", new WorldPoint(2574, 3320, 0)),
|
||||
THRONE_OF_MISCELLANIA_ROYAL_TROUBLE("Throne of Miscellania & Royal Trouble", new WorldPoint(2497, 3859, 0)),
|
||||
THE_TOURIST_TRAP("The Tourist Trap", new WorldPoint(3302, 3113, 0)),
|
||||
TOWER_OF_LIFE("Tower of Life", new WorldPoint(2640, 3218, 0)),
|
||||
TREE_GNOME_VILLAGE("Tree Gnome Village", new WorldPoint(2541, 3169, 0)),
|
||||
TRIBAL_TOTEM("Tribal Totem", new WorldPoint(2790, 3182, 0)),
|
||||
TROLL_ROMANCE("Troll Romance", new WorldPoint(2890, 10097, 0)),
|
||||
UNDERGROUND_PASS_REGICIDE("Underground Pass & Regicide", new WorldPoint(2575, 3293, 0)),
|
||||
WANTED_SLUG_MENACE("Wanted! & The Slug Menace", new WorldPoint(2996, 3373, 0)),
|
||||
WATCHTOWER("Watchtower", new WorldPoint(2545, 3112, 0)),
|
||||
WATERFALL_QUEST("Waterfall Quest", new WorldPoint(2521, 3498, 0)),
|
||||
WHAT_LIES_BELOW("What Lies Below", new WorldPoint(3265, 3333, 0)),
|
||||
WITCHS_HOUSE("Witch's House", new WorldPoint(2927, 3456, 0)),
|
||||
ZOGRE_FLESH_EATERS("Zogre Flesh Eaters", new WorldPoint(2442, 3051, 0));
|
||||
|
||||
@Getter
|
||||
private final String tooltip;
|
||||
ANIMAL_MAGNETISM(Quest.ANIMAL_MAGNETISM, new WorldPoint(3094, 3360, 0)),
|
||||
ANOTHER_SLICE_OF_HAM(Quest.ANOTHER_SLICE_OF_HAM, new WorldPoint(2799, 5428, 0)),
|
||||
THE_ASCENT_OF_ARCEUUS(Quest.THE_ASCENT_OF_ARCEUUS, new WorldPoint(1700, 3742, 0)),
|
||||
BETWEEN_A_ROCK(Quest.BETWEEN_A_ROCK, new WorldPoint(2823, 10168, 0)),
|
||||
BIG_CHOMPY_BIRD_HUNTING(Quest.BIG_CHOMPY_BIRD_HUNTING, new WorldPoint(2629, 2981, 0)),
|
||||
BIOHAZARD(Quest.BIOHAZARD, new WorldPoint(2591, 3335, 0)),
|
||||
BONE_VOYAGE(Quest.BONE_VOYAGE, new WorldPoint(3259, 3450, 0)),
|
||||
CABIN_FEVER(Quest.CABIN_FEVER, new WorldPoint(3674, 3496, 0)),
|
||||
CLIENT_OF_KOUREND(Quest.CLIENT_OF_KOUREND, new WorldPoint(1823, 3690, 0)),
|
||||
CLOCK_TOWER(Quest.CLOCK_TOWER, new WorldPoint(2568, 3249, 0)),
|
||||
COLD_WAR(Quest.COLD_WAR, new WorldPoint(2593, 3265, 0)),
|
||||
CONTACT(Quest.CONTACT, new WorldPoint(3280, 2770, 0)),
|
||||
CREATURE_OF_FENKENSTRAIN(Quest.CREATURE_OF_FENKENSTRAIN, new WorldPoint(3487, 3485, 0)),
|
||||
DARKNESS_OF_HALLOWVALE(Quest.DARKNESS_OF_HALLOWVALE, new WorldPoint(3494, 9628, 0)),
|
||||
DEATH_PLATEAU_TROLL_STRONGHOLD(new Quest[]{Quest.DEATH_PLATEAU, Quest.TROLL_STRONGHOLD}, new WorldPoint(2895, 3528, 0)),
|
||||
DEATH_TO_THE_DORGESHUUN(Quest.DEATH_TO_THE_DORGESHUUN, new WorldPoint(3316, 9613, 0)),
|
||||
THE_DEPTHS_OF_DESPAIR(Quest.THE_DEPTHS_OF_DESPAIR, new WorldPoint(1846, 3556, 0)),
|
||||
DESERT_TREASURE(Quest.DESERT_TREASURE, new WorldPoint(3177, 3043, 0)),
|
||||
DEVIOUS_MINDS(Quest.DEVIOUS_MINDS, new WorldPoint(3405, 3492, 0)),
|
||||
THE_DIG_SITE(Quest.THE_DIG_SITE, new WorldPoint(3363, 3337, 0)),
|
||||
DRAGON_SLAYER_II(Quest.DRAGON_SLAYER_II, new WorldPoint(2456, 2868, 0)),
|
||||
DREAM_MENTOR(Quest.DREAM_MENTOR, new WorldPoint(2144, 10346, 0)),
|
||||
DRUIDIC_RITUAL(Quest.DRUIDIC_RITUAL, new WorldPoint(2916, 3484, 0)),
|
||||
DWARF_CANNON(Quest.DWARF_CANNON, new WorldPoint(2566, 3461, 0)),
|
||||
EADGARS_RUSE(Quest.EADGARS_RUSE, new WorldPoint(2896, 3426, 0)),
|
||||
EAGLES_PEAK(Quest.EAGLES_PEAK, new WorldPoint(2605, 3264, 0)),
|
||||
ELEMENTAL_WORKSHOP(new Quest[]{Quest.ELEMENTAL_WORKSHOP_I, Quest.ELEMENTAL_WORKSHOP_II}, new WorldPoint(2714, 3482, 0)),
|
||||
ENAKHRAS_LAMENT(Quest.ENAKHRAS_LAMENT, new WorldPoint(3190, 2926, 0)),
|
||||
ENLIGHTENED_JOURNEY(Quest.ENLIGHTENED_JOURNEY, new WorldPoint(2809, 3356, 0)),
|
||||
THE_EYES_OF_GLOUPHRIE(Quest.THE_EYES_OF_GLOUPHRIE, new WorldPoint(2400, 3419, 0)),
|
||||
FAIRYTALE(new Quest[]{Quest.FAIRYTALE_I__GROWING_PAINS, Quest.FAIRYTALE_II__CURE_A_QUEEN}, new WorldPoint(3077, 3258, 0)),
|
||||
FAMILY_CREST(Quest.FAMILY_CREST, new WorldPoint(3278, 3404, 0)),
|
||||
THE_FEUD(Quest.THE_FEUD, new WorldPoint(3301, 3211, 0)),
|
||||
FIGHT_ARENA(Quest.FIGHT_ARENA, new WorldPoint(2565, 3199, 0)),
|
||||
FISHING_CONTEST_1(Quest.FISHING_CONTEST, new WorldPoint(2875, 3483, 0)),
|
||||
FISHING_CONTEST_2(Quest.FISHING_CONTEST, new WorldPoint(2820, 3487, 0)),
|
||||
FORGETTABLE_TALE(Quest.FORGETTABLE_TALE, new WorldPoint(2826, 10215, 0)),
|
||||
THE_FORSAKEN_TOWER(Quest.THE_FORSAKEN_TOWER, new WorldPoint(1484, 3747, 0)),
|
||||
THE_FREMENNIK_ISLES(Quest.THE_FREMENNIK_ISLES, new WorldPoint(2645, 3711, 0)),
|
||||
THE_FREMENNIK_TRIALS(Quest.THE_FREMENNIK_TRIALS, new WorldPoint(2657, 3669, 0)),
|
||||
GARDEN_OF_TRANQUILLITY(Quest.GARDEN_OF_TRANQUILLITY, new WorldPoint(3227, 3477, 0)),
|
||||
GERTRUDES_CAT_RATCATCHERS(Quest.GERTRUDES_CAT, new WorldPoint(3150, 3411, 0)),
|
||||
GHOSTS_AHOY(Quest.GHOSTS_AHOY, new WorldPoint(3677, 3510, 0)),
|
||||
THE_GIANT_DWARF(Quest.THE_GIANT_DWARF, new WorldPoint(2841, 10129, 0)),
|
||||
THE_GOLEM(Quest.THE_GOLEM, new WorldPoint(3487, 3089, 0)),
|
||||
THE_GRAND_TREE_MONKEY_MADNESS(new Quest[]{Quest.THE_GRAND_TREE, Quest.MONKEY_MADNESS_I, Quest.MONKEY_MADNESS_II}, new WorldPoint(2466, 3497, 0)),
|
||||
THE_GREAT_BRAIN_ROBBERY(Quest.THE_GREAT_BRAIN_ROBBERY, new WorldPoint(3681, 2963, 0)),
|
||||
GRIM_TALES(Quest.GRIM_TALES, new WorldPoint(2890, 3454, 0)),
|
||||
THE_HAND_IN_THE_SAND(Quest.THE_HAND_IN_THE_SAND, new WorldPoint(2552, 3101, 0)),
|
||||
HAUNTED_MINE(Quest.HAUNTED_MINE, new WorldPoint(3443, 3258, 0)),
|
||||
HAZEEL_CULT(Quest.HAZEEL_CULT, new WorldPoint(2565, 3271, 0)),
|
||||
HEROES_QUEST(Quest.HEROES_QUEST, new WorldPoint(2903, 3511, 0)),
|
||||
HOLY_GRAIL(new Quest[]{Quest.MERLINS_CRYSTAL, Quest.HOLY_GRAIL}, new WorldPoint(2763, 3515, 0)),
|
||||
HORROR_FROM_THE_DEEP(Quest.HORROR_FROM_THE_DEEP, new WorldPoint(2507, 3635, 0)),
|
||||
ICTHLARINS_LITTLE_HELPER(Quest.ICTHLARINS_LITTLE_HELPER, new WorldPoint(3314, 2849, 0)),
|
||||
IN_SEARCH_OF_THE_MYREQUE(Quest.IN_SEARCH_OF_THE_MYREQUE, new WorldPoint(3502, 3477, 0)),
|
||||
JUNGLE_POTION(Quest.JUNGLE_POTION, new WorldPoint(2809, 3086, 0)),
|
||||
KINGS_RANSOM(Quest.KINGS_RANSOM, new WorldPoint(2741, 3554, 0)),
|
||||
LEGENDS_QUEST(Quest.LEGENDS_QUEST, new WorldPoint(2725, 3367, 0)),
|
||||
LOST_CITY(Quest.LOST_CITY, new WorldPoint(3149, 3205, 0)),
|
||||
THE_LOST_TRIBE(Quest.THE_LOST_TRIBE, new WorldPoint(3211, 3224, 0)),
|
||||
LUNAR_DIPLOMACY(Quest.LUNAR_DIPLOMACY, new WorldPoint(2619, 3689, 0)),
|
||||
MAKING_FRIENDS_WITH_MY_ARM(Quest.MAKING_FRIENDS_WITH_MY_ARM, new WorldPoint(2904, 10092, 0)),
|
||||
MAKING_HISTORY(Quest.MAKING_HISTORY, new WorldPoint(2435, 3346, 0)),
|
||||
MONKS_FRIEND(Quest.MONKS_FRIEND, new WorldPoint(2605, 3209, 0)),
|
||||
MOUNTAIN_DAUGHTER(Quest.MOUNTAIN_DAUGHTER, new WorldPoint(2810, 3672, 0)),
|
||||
MOURNINGS_ENDS_PART_I(Quest.MOURNINGS_ENDS_PART_I, new WorldPoint(2289, 3149, 0)),
|
||||
MOURNINGS_ENDS_PART_II(Quest.MONKEY_MADNESS_II, new WorldPoint(2352, 3172, 0)),
|
||||
MURDER_MYSTERY(Quest.MURDER_MYSTERY, new WorldPoint(2740, 3562, 0)),
|
||||
MY_ARMS_BIG_ADVENTURE(Quest.MY_ARMS_BIG_ADVENTURE, new WorldPoint(2908, 10088, 0)),
|
||||
NATURE_SPIRIT(Quest.NATURE_SPIRIT, new WorldPoint(3440, 9894, 0)),
|
||||
OBSERVATORY_QUEST(Quest.OBSERVATORY_QUEST, new WorldPoint(2438, 3185, 0)),
|
||||
OLAFS_QUEST(Quest.OLAFS_QUEST, new WorldPoint(2723, 3729, 0)),
|
||||
ONE_SMALL_FAVOUR(Quest.ONE_SMALL_FAVOUR, new WorldPoint(2834, 2985, 0)),
|
||||
PLAGUE_CITY(Quest.PLAGUE_CITY, new WorldPoint(2567, 3334, 0)),
|
||||
PRIEST_IN_PERIL(Quest.PRIEST_IN_PERIL, new WorldPoint(3219, 3473, 0)),
|
||||
THE_QUEEN_OF_THIEVES(Quest.THE_QUEEN_OF_THIEVES, new WorldPoint(1795, 3782, 0)),
|
||||
RAG_AND_BONE_MAN(new Quest[]{Quest.RAG_AND_BONE_MAN, Quest.RAG_AND_BONE_MAN_II}, new WorldPoint(3359, 3504, 0)),
|
||||
RECRUITMENT_DRIVE_BLACK_KNIGHTS_FORTRESS(new Quest[]{Quest.BLACK_KNIGHTS_FORTRESS, Quest.RECRUITMENT_DRIVE}, new WorldPoint(2959, 3336, 0)),
|
||||
ROVING_ELVES(Quest.ROVING_ELVES, new WorldPoint(2289, 3146, 0)),
|
||||
RUM_DEAL(Quest.RUM_DEAL, new WorldPoint(3679, 3535, 0)),
|
||||
SCORPION_CATCHER(Quest.SCORPION_CATCHER, new WorldPoint(2701, 3399, 0)),
|
||||
SEA_SLUG(Quest.SEA_SLUG, new WorldPoint(2715, 3302, 0)),
|
||||
SHADES_OF_MORTTON(Quest.SHADES_OF_MORTTON, new WorldPoint(3463, 3308, 0)),
|
||||
SHADOW_OF_THE_STORM(Quest.SHADES_OF_MORTTON, new WorldPoint(3270, 3159, 0)),
|
||||
SHEEP_HERDER(Quest.SHEEP_HERDER, new WorldPoint(2616, 3299, 0)),
|
||||
SHILO_VILLAGE(Quest.SHILO_VILLAGE, new WorldPoint(2882, 2951, 0)),
|
||||
A_SOULS_BANE(Quest.A_SOULS_BANE, new WorldPoint(3307, 3454, 0)),
|
||||
SPIRITS_OF_THE_ELID(Quest.SPIRITS_OF_THE_ELID, new WorldPoint(3441, 2911, 0)),
|
||||
SWAN_SONG(Quest.SWAN_SONG, new WorldPoint(2345, 3652, 0)),
|
||||
TAI_BWO_WANNAI_TRIO(Quest.TAI_BWO_WANNAI_TRIO, new WorldPoint(2779, 3087, 0)),
|
||||
A_TAIL_OF_TWO_CATS(Quest.A_TAIL_OF_TWO_CATS, new WorldPoint(2917, 3557, 0)),
|
||||
TALE_OF_THE_RIGHTEOUS(Quest.TALE_OF_THE_RIGHTEOUS, new WorldPoint(1511, 3631, 0)),
|
||||
A_TASTE_OF_HOPE(Quest.A_TASTE_OF_HOPE, new WorldPoint(3668, 3216, 0)),
|
||||
TEARS_OF_GUTHIX(Quest.TEARS_OF_GUTHIX, new WorldPoint(3251, 9517, 0)),
|
||||
TEMPLE_OF_IKOV(Quest.TEMPLE_OF_IKOV, new WorldPoint(2574, 3320, 0)),
|
||||
THRONE_OF_MISCELLANIA_ROYAL_TROUBLE(new Quest[]{Quest.THRONE_OF_MISCELLANIA, Quest.ROYAL_TROUBLE}, new WorldPoint(2497, 3859, 0)),
|
||||
THE_TOURIST_TRAP(Quest.THE_TOURIST_TRAP, new WorldPoint(3302, 3113, 0)),
|
||||
TOWER_OF_LIFE(Quest.TOWER_OF_LIFE, new WorldPoint(2640, 3218, 0)),
|
||||
TREE_GNOME_VILLAGE(Quest.TREE_GNOME_VILLAGE, new WorldPoint(2541, 3169, 0)),
|
||||
TRIBAL_TOTEM(Quest.TRIBAL_TOTEM, new WorldPoint(2790, 3182, 0)),
|
||||
TROLL_ROMANCE(Quest.TROLL_ROMANCE, new WorldPoint(2890, 10097, 0)),
|
||||
UNDERGROUND_PASS_REGICIDE(new Quest[]{Quest.REGICIDE, Quest.UNDERGROUND_PASS}, new WorldPoint(2575, 3293, 0)),
|
||||
WANTED_SLUG_MENACE(new Quest[]{Quest.WANTED, Quest.THE_SLUG_MENACE}, new WorldPoint(2996, 3373, 0)),
|
||||
WATCHTOWER(Quest.WATCHTOWER, new WorldPoint(2545, 3112, 0)),
|
||||
WATERFALL_QUEST(Quest.WATERFALL_QUEST, new WorldPoint(2521, 3498, 0)),
|
||||
WHAT_LIES_BELOW(Quest.WHAT_LIES_BELOW, new WorldPoint(3265, 3333, 0)),
|
||||
WITCHS_HOUSE(Quest.WITCHS_HOUSE, new WorldPoint(2927, 3456, 0)),
|
||||
ZOGRE_FLESH_EATERS(Quest.ZOGRE_FLESH_EATERS, new WorldPoint(2442, 3051, 0));
|
||||
|
||||
@Getter
|
||||
private final WorldPoint location;
|
||||
|
||||
QuestStartLocation(String description, WorldPoint location)
|
||||
@Getter
|
||||
private final Quest[] quests;
|
||||
|
||||
QuestStartLocation(Quest[] quests, WorldPoint location)
|
||||
{
|
||||
this.tooltip = "Quest Start - " + description;
|
||||
this.location = location;
|
||||
this.quests = quests;
|
||||
}
|
||||
|
||||
QuestStartLocation(Quest quest, WorldPoint location)
|
||||
{
|
||||
this.location = location;
|
||||
this.quests = new Quest[]{quest};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,15 +25,15 @@
|
||||
*/
|
||||
package net.runelite.client.plugins.worldmap;
|
||||
|
||||
import net.runelite.api.coords.WorldPoint;
|
||||
import net.runelite.client.ui.overlay.worldmap.WorldMapPoint;
|
||||
import java.awt.image.BufferedImage;
|
||||
|
||||
class QuestStartPoint extends WorldMapPoint
|
||||
{
|
||||
QuestStartPoint(QuestStartLocation data, BufferedImage icon)
|
||||
QuestStartPoint(WorldPoint location, BufferedImage icon, String tooltip)
|
||||
{
|
||||
super(data.getLocation(), icon);
|
||||
|
||||
setTooltip(data.getTooltip());
|
||||
super(location, icon);
|
||||
setTooltip(tooltip);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -166,8 +166,8 @@ public interface WorldMapConfig extends Config
|
||||
|
||||
@ConfigItem(
|
||||
keyName = WorldMapPlugin.CONFIG_KEY_QUEST_START_TOOLTIPS,
|
||||
name = "Show quest names",
|
||||
description = "Indicates the names of quests and highlights incomplete ones",
|
||||
name = "Show quest names and status",
|
||||
description = "Indicates the names of quests and shows completion status",
|
||||
position = 13
|
||||
)
|
||||
default boolean questStartTooltips()
|
||||
|
||||
@@ -31,9 +31,15 @@ import java.awt.image.BufferedImage;
|
||||
import java.util.Arrays;
|
||||
import net.runelite.api.Client;
|
||||
import net.runelite.api.Experience;
|
||||
import net.runelite.api.GameState;
|
||||
import net.runelite.api.Skill;
|
||||
import net.runelite.api.Quest;
|
||||
import net.runelite.api.QuestState;
|
||||
import net.runelite.api.events.ConfigChanged;
|
||||
import net.runelite.api.events.ExperienceChanged;
|
||||
import net.runelite.api.events.WidgetLoaded;
|
||||
import net.runelite.api.widgets.WidgetID;
|
||||
import net.runelite.client.callback.ClientThread;
|
||||
import net.runelite.client.config.ConfigManager;
|
||||
import net.runelite.client.eventbus.Subscribe;
|
||||
import net.runelite.client.game.AgilityShortcut;
|
||||
@@ -52,6 +58,9 @@ public class WorldMapPlugin extends Plugin
|
||||
static final BufferedImage BLANK_ICON;
|
||||
private static final BufferedImage FAIRY_TRAVEL_ICON;
|
||||
private static final BufferedImage NOPE_ICON;
|
||||
private static final BufferedImage NOT_STARTED_ICON;
|
||||
private static final BufferedImage STARTED_ICON;
|
||||
private static final BufferedImage FINISHED_ICON;
|
||||
|
||||
static final String CONFIG_KEY = "worldmap";
|
||||
static final String CONFIG_KEY_FAIRY_RING_TOOLTIPS = "fairyRingTooltips";
|
||||
@@ -77,6 +86,9 @@ public class WorldMapPlugin extends Plugin
|
||||
//A size of 17 gives us a buffer when triggering tooltips
|
||||
final int iconBufferSize = 17;
|
||||
|
||||
//Quest icons are a bit bigger.
|
||||
final int questIconBufferSize = 22;
|
||||
|
||||
BLANK_ICON = new BufferedImage(iconBufferSize, iconBufferSize, BufferedImage.TYPE_INT_ARGB);
|
||||
|
||||
FAIRY_TRAVEL_ICON = new BufferedImage(iconBufferSize, iconBufferSize, BufferedImage.TYPE_INT_ARGB);
|
||||
@@ -86,11 +98,26 @@ public class WorldMapPlugin extends Plugin
|
||||
NOPE_ICON = new BufferedImage(iconBufferSize, iconBufferSize, BufferedImage.TYPE_INT_ARGB);
|
||||
final BufferedImage nopeImage = ImageUtil.getResourceStreamFromClass(WorldMapPlugin.class, "nope_icon.png");
|
||||
NOPE_ICON.getGraphics().drawImage(nopeImage, 1, 1, null);
|
||||
|
||||
NOT_STARTED_ICON = new BufferedImage(questIconBufferSize, questIconBufferSize, BufferedImage.TYPE_INT_ARGB);
|
||||
final BufferedImage notStartedIcon = ImageUtil.getResourceStreamFromClass(WorldMapPlugin.class, "quest_not_started_icon.png");
|
||||
NOT_STARTED_ICON.getGraphics().drawImage(notStartedIcon, 4, 4, null);
|
||||
|
||||
STARTED_ICON = new BufferedImage(questIconBufferSize, questIconBufferSize, BufferedImage.TYPE_INT_ARGB);
|
||||
final BufferedImage startedIcon = ImageUtil.getResourceStreamFromClass(WorldMapPlugin.class, "quest_started_icon.png");
|
||||
STARTED_ICON.getGraphics().drawImage(startedIcon, 4, 4, null);
|
||||
|
||||
FINISHED_ICON = new BufferedImage(questIconBufferSize, questIconBufferSize, BufferedImage.TYPE_INT_ARGB);
|
||||
final BufferedImage finishedIcon = ImageUtil.getResourceStreamFromClass(WorldMapPlugin.class, "quest_completed_icon.png");
|
||||
FINISHED_ICON.getGraphics().drawImage(finishedIcon, 4, 4, null);
|
||||
}
|
||||
|
||||
@Inject
|
||||
private Client client;
|
||||
|
||||
@Inject
|
||||
private ClientThread clientThread;
|
||||
|
||||
@Inject
|
||||
private WorldMapConfig config;
|
||||
|
||||
@@ -164,6 +191,17 @@ public class WorldMapPlugin extends Plugin
|
||||
}
|
||||
}
|
||||
|
||||
@Subscribe
|
||||
public void onWidgetLoaded(WidgetLoaded widgetLoaded)
|
||||
{
|
||||
if (widgetLoaded.getGroupId() == WidgetID.WORLD_MAP_GROUP_ID)
|
||||
{
|
||||
// Quest icons are per-account due to showing quest status,
|
||||
// so we recreate them each time the map is loaded
|
||||
updateQuestStartPointIcons();
|
||||
}
|
||||
}
|
||||
|
||||
private void updateAgilityIcons()
|
||||
{
|
||||
worldMapPointManager.removeIf(AgilityShortcutPoint.class::isInstance);
|
||||
@@ -200,6 +238,7 @@ public class WorldMapPlugin extends Plugin
|
||||
{
|
||||
updateAgilityIcons();
|
||||
updateRareTreeIcons();
|
||||
updateQuestStartPointIcons();
|
||||
|
||||
worldMapPointManager.removeIf(FairyRingPoint.class::isInstance);
|
||||
if (config.fairyRingIcon() || config.fairyRingTooltips())
|
||||
@@ -219,14 +258,6 @@ public class WorldMapPlugin extends Plugin
|
||||
.forEach(worldMapPointManager::add);
|
||||
}
|
||||
|
||||
worldMapPointManager.removeIf(QuestStartPoint.class::isInstance);
|
||||
if (config.questStartTooltips())
|
||||
{
|
||||
Arrays.stream(QuestStartLocation.values())
|
||||
.map(value -> new QuestStartPoint(value, BLANK_ICON))
|
||||
.forEach(worldMapPointManager::add);
|
||||
}
|
||||
|
||||
worldMapPointManager.removeIf(TransportationPoint.class::isInstance);
|
||||
if (config.transportationTeleportTooltips())
|
||||
{
|
||||
@@ -271,4 +302,72 @@ public class WorldMapPlugin extends Plugin
|
||||
}).map(TeleportPoint::new)
|
||||
.forEach(worldMapPointManager::add);
|
||||
}
|
||||
|
||||
private void updateQuestStartPointIcons()
|
||||
{
|
||||
worldMapPointManager.removeIf(QuestStartPoint.class::isInstance);
|
||||
|
||||
if (!config.questStartTooltips())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Must setup the quest icons on the client thread, after the player has logged in.
|
||||
clientThread.invokeLater(() ->
|
||||
{
|
||||
if (client.getGameState() != GameState.LOGGED_IN)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Arrays.stream(QuestStartLocation.values())
|
||||
.map(this::createQuestStartPoint)
|
||||
.forEach(worldMapPointManager::add);
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
||||
private QuestStartPoint createQuestStartPoint(QuestStartLocation data)
|
||||
{
|
||||
Quest[] quests = data.getQuests();
|
||||
|
||||
// Get first uncompleted quest. Else, return the last quest.
|
||||
Quest quest = null;
|
||||
for (int i = 0; i < quests.length; i++)
|
||||
{
|
||||
if (quests[i].getState(client) != QuestState.FINISHED)
|
||||
{
|
||||
quest = quests[i];
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (quest == null)
|
||||
{
|
||||
quest = quests[quests.length - 1];
|
||||
}
|
||||
|
||||
BufferedImage icon = BLANK_ICON;
|
||||
String tooltip = "";
|
||||
if (quest != null)
|
||||
{
|
||||
tooltip = quest.getName();
|
||||
switch (quest.getState(client))
|
||||
{
|
||||
case FINISHED:
|
||||
icon = FINISHED_ICON;
|
||||
tooltip += " - Finished";
|
||||
break;
|
||||
case IN_PROGRESS:
|
||||
icon = STARTED_ICON;
|
||||
tooltip += " - Started";
|
||||
break;
|
||||
case NOT_STARTED:
|
||||
icon = NOT_STARTED_ICON;
|
||||
tooltip += " - Not Started";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return new QuestStartPoint(data.getLocation(), icon, tooltip);
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 478 B |
Binary file not shown.
|
After Width: | Height: | Size: 489 B |
Binary file not shown.
|
After Width: | Height: | Size: 430 B |
Reference in New Issue
Block a user