1/n
This commit is contained in:
@@ -1,239 +0,0 @@
|
||||
package com.openosrs.api;
|
||||
|
||||
//This is where Animation IDs should go that aren't found in RuneLite
|
||||
public class AnimationID extends net.runelite.api.AnimationID
|
||||
{
|
||||
|
||||
// NPC animations
|
||||
public static final int TZTOK_JAD_MAGIC_ATTACK = 2656;
|
||||
public static final int TZTOK_JAD_RANGE_ATTACK = 2652;
|
||||
public static final int HELLHOUND_DEFENCE = 6566;
|
||||
|
||||
public static final int FISHING_TRAILBLAZER_HARPOON_2 = 8785;
|
||||
|
||||
public static final int CRYSTALLINE_RAT_DEATH = 8334;
|
||||
public static final int CRYSTALLINE_BAT_DEATH = 4917;
|
||||
public static final int CRYSTALLINE_WOLF_DEATH = 8335;
|
||||
public static final int CRYSTALLINE_SPIDER_DEATH = 8338;
|
||||
public static final int CRYSTALLINE_UNICORN_DEATH = 6377;
|
||||
public static final int CRYSTALLINE_DRAGON_DEATH = 92;
|
||||
public static final int CRYSTALLINE_BEAR_DEATH = 4929;
|
||||
public static final int CRYSTALLINE_DARK_BEAST_DEATH = 2733;
|
||||
public static final int CORRUPTED_SCORPION_DEATH = 6256;
|
||||
|
||||
public static final int TABLET_TELEPORT = 4069;
|
||||
|
||||
public static final int THIEVING_STALL = 832;
|
||||
public static final int PICKPOCKET_SUCCESS = 881;
|
||||
public static final int PULL_LEVER = 2140;
|
||||
public static final int STANDARD_PURPLE_TELEPORT = 714;
|
||||
public static final int ECTOPHIAL_TELEPORT = 878;
|
||||
public static final int FAIRY_RING_TELEPORT = 3265;
|
||||
public static final int SCROLL_TELEPORT = 3864;
|
||||
public static final int XERICS_TALISMAN_TELEPORT = 3865;
|
||||
public static final int WILDERNESS_OBELISK_TELEPORT = 3945;
|
||||
public static final int SEED_POD_TELEPORT = 4544;
|
||||
|
||||
//block animations for players and perhaps npcs as well?
|
||||
public static final int BLOCK_DEFENDER = 4177;
|
||||
public static final int BLOCK_NO_SHIELD = 420;
|
||||
public static final int BLOCK_SHIELD = 1156;
|
||||
public static final int BLOCK_SWORD = 388;
|
||||
public static final int BLOCK_UNARMED = 424; // Same Animation as failed pickpocked
|
||||
|
||||
public static final int NIGHTMARE_DEATH = 8612;
|
||||
public static final int LOW_LEVEL_MAGIC_ATTACK = 1162;
|
||||
public static final int HIGH_LEVEL_MAGIC_ATTACK = 1167;
|
||||
public static final int BLOWPIPE_ATTACK = 5061;
|
||||
|
||||
// NPC animations
|
||||
public static final int BLACKJACK_KO = 838;
|
||||
|
||||
// Fight Caves
|
||||
public static final int TZTOK_JAD_MELEE_ATTACK = 2655;
|
||||
public static final int TOK_XIL_RANGE_ATTACK = 2633;
|
||||
public static final int TOK_XIL_MELEE_ATTACK = 2628;
|
||||
public static final int KET_ZEK_MELEE_ATTACK = 2644;
|
||||
public static final int KET_ZEK_MAGE_ATTACK = 2647;
|
||||
public static final int MEJ_KOT_MELEE_ATTACK = 2637;
|
||||
public static final int MEJ_KOT_HEAL_ATTACK = 2639;
|
||||
|
||||
// Vorkath
|
||||
public static final int VORKATH_WAKE_UP = 7950;
|
||||
public static final int VORKATH_DEATH = 7949;
|
||||
public static final int VORKATH_SLASH_ATTACK = 7951;
|
||||
public static final int VORKATH_ATTACK = 7952;
|
||||
public static final int VORKATH_FIRE_BOMB_OR_SPAWN_ATTACK = 7960;
|
||||
public static final int VORKATH_ACID_ATTACK = 7957;
|
||||
|
||||
// Tekton
|
||||
public static final int TEKTON_ANVIL = 7475;
|
||||
public static final int TEKTON_AUTO1 = 7482;
|
||||
public static final int TEKTON_AUTO2 = 7483;
|
||||
public static final int TEKTON_AUTO3 = 7484;
|
||||
public static final int TEKTON_FAST_AUTO1 = 7478;
|
||||
public static final int TEKTON_FAST_AUTO2 = 7488;
|
||||
public static final int TEKTON_ENRAGE_AUTO1 = 7492;
|
||||
public static final int TEKTON_ENRAGE_AUTO2 = 7493;
|
||||
public static final int TEKTON_ENRAGE_AUTO3 = 7494;
|
||||
|
||||
// Hydra
|
||||
public static final int HYDRA_WALKING = 8232;
|
||||
public static final int HYDRA_IDLE = 8233;
|
||||
public static final int HYDRA_POISON_1 = 8234;
|
||||
public static final int HYDRA_RANGED_1 = 8235;
|
||||
public static final int HYDRA_MAGIC_1 = 8236;
|
||||
public static final int HYDRA_1_1 = 8237;
|
||||
public static final int HYDRA_1_2 = 8238;
|
||||
public static final int HYDRA_LIGHTNING = 8241;
|
||||
public static final int HYDRA_RANGED_2 = 8242;
|
||||
public static final int HYDRA_MAGIC_2 = 8243;
|
||||
public static final int HYDRA_2_1 = 8244;
|
||||
public static final int HYDRA_2_2 = 8245;
|
||||
public static final int HYDRA_FIRE = 8248;
|
||||
public static final int HYDRA_RANGED_3 = 8249;
|
||||
public static final int HYDRA_MAGIC_3 = 8250;
|
||||
public static final int HYDRA_3_1 = 8251;
|
||||
public static final int HYDRA_3_2 = 8252;
|
||||
public static final int HYDRA_MAGIC_4 = 8254;
|
||||
public static final int HYDRA_POISON_4 = 8254;
|
||||
public static final int HYDRA_RANGED_4 = 8255;
|
||||
public static final int HYDRA_RANGED_OR_POISON_ATTACK = 8256;
|
||||
public static final int HYDRA_4_1 = 8257;
|
||||
public static final int HYDRA_4_2 = 8258;
|
||||
|
||||
// Inferno animations
|
||||
public static final int JAL_NIB = 7574;
|
||||
public static final int JAL_MEJRAH = 7578;
|
||||
public static final int JAL_MEJRAH_STAND = 7577;
|
||||
public static final int JAL_AK_RANGE_ATTACK = 7581;
|
||||
public static final int JAL_AK_MELEE_ATTACK = 7582;
|
||||
public static final int JAL_AK_MAGIC_ATTACK = 7583;
|
||||
public static final int JAL_IMKOT = 7597;
|
||||
public static final int JAL_XIL_MELEE_ATTACK = 7604;
|
||||
public static final int JAL_XIL_RANGE_ATTACK = 7605;
|
||||
public static final int JAL_ZEK_MAGE_ATTACK = 7610;
|
||||
public static final int JAL_ZEK_MELEE_ATTACK = 7612;
|
||||
public static final int JALTOK_JAD_MELEE_ATTACK = 7590;
|
||||
public static final int JALTOK_JAD_MAGE_ATTACK = 7592;
|
||||
public static final int JALTOK_JAD_RANGE_ATTACK = 7593;
|
||||
public static final int TZKAL_ZUK = 7566;
|
||||
public static final int JAL_MEJJAK = 2858;
|
||||
|
||||
// General Graardor
|
||||
public static final int MINION_AUTO1 = 6154;
|
||||
public static final int MINION_AUTO2 = 6156;
|
||||
public static final int MINION_AUTO3 = 7071;
|
||||
public static final int MINION_AUTO4 = 7073;
|
||||
public static final int GENERAL_AUTO1 = 7018;
|
||||
public static final int GENERAL_AUTO2 = 7020;
|
||||
public static final int GENERAL_AUTO3 = 7021;
|
||||
|
||||
// Kr'il Tsutsaroth
|
||||
public static final int ZAMMY_GENERIC_AUTO = 64;
|
||||
public static final int KRIL_AUTO = 6948;
|
||||
public static final int KRIL_SPEC = 6950;
|
||||
public static final int ZAKL_AUTO = 7077;
|
||||
public static final int BALFRUG_AUTO = 4630;
|
||||
|
||||
// Commander Zilyana
|
||||
public static final int ZILYANA_MELEE_AUTO = 6964;
|
||||
public static final int ZILYANA_AUTO = 6967;
|
||||
public static final int ZILYANA_SPEC = 6970;
|
||||
public static final int STARLIGHT_AUTO = 6376;
|
||||
public static final int BREE_AUTO = 7026;
|
||||
public static final int GROWLER_AUTO = 7037;
|
||||
|
||||
// Kree'arra
|
||||
public static final int KREE_RANGED = 6978;
|
||||
public static final int SKREE_AUTO = 6955;
|
||||
public static final int GEERIN_AUTO = 6956;
|
||||
public static final int GEERIN_FLINCH = 6958;
|
||||
public static final int KILISA_AUTO = 6957;
|
||||
|
||||
// Vetion
|
||||
public static final int VETION_EARTHQUAKE = 5507;
|
||||
|
||||
// Zulrah
|
||||
public static final int ZULRAH_DEATH = 5804;
|
||||
public static final int ZULRAH_PHASE = 5072;
|
||||
|
||||
//Dagannoth Kings
|
||||
public static final int DAG_REX = 2853;
|
||||
public static final int DAG_PRIME = 2854;
|
||||
public static final int DAG_SUPREME = 2855;
|
||||
|
||||
// Lizardman shaman
|
||||
public static final int LIZARDMAN_SHAMAN_SPAWN = 7157;
|
||||
public static final int LIZARDMAN_SHAMAN_SPAWN_EXPLOSION = 7159;
|
||||
|
||||
// Cerberus
|
||||
public static final int CERBERUS_MAGIC_ATTACK = 4489;
|
||||
public static final int CERBERUS_RANGED_ATTACK = 4490;
|
||||
public static final int CERBERUS_MELEE_ATTACK = 4491;
|
||||
public static final int CERBERUS_LAVA_ATTACK = 4493;
|
||||
public static final int CERBERUS_SUMMON_GHOSTS = 4494;
|
||||
|
||||
// Gauntlet Hunleff
|
||||
public static final int HUNLEFF_TRAMPLE = 8420;
|
||||
public static final int HUNLEFF_ATTACK = 8419;
|
||||
public static final int HUNLEFF_TORNADO = 8418;
|
||||
public static final int HUNLLEF_SWITCH_TO_MAGIC = 8754;
|
||||
public static final int HUNLLEF_SWITCH_TO_RANGED = 8755;
|
||||
|
||||
//Zalcano
|
||||
public static final int ZALCANO_KNOCKED_DOWN = 8437;
|
||||
public static final int ZALCANO_WAKEUP = 8439;
|
||||
public static final int ZALCANO_ROCK_GLOWING = 8448;
|
||||
|
||||
// Theatre of Blood - Sugadinti Maiden
|
||||
public static final int SUGADINTI_MAIDEN_BLOOD_SPLAT_ATTACK = 8091;
|
||||
public static final int SUGADINTI_MAIDEN_MAGIC_ATTACK = 8092;
|
||||
public static final int SUGADINTI_MAIDEN_DEATH = 8094;
|
||||
|
||||
// Theatre of Blood - Pestilent Bloat
|
||||
public static final int BLOAT_SLEEP = 8082;
|
||||
|
||||
// Theatre of Blood - Sotetseg
|
||||
public static final int SOTETSEG_MELEE_ATTACK = 8138;
|
||||
public static final int SOTETSEG_REGULAR_PROJECTILE_ATTACK = 8139;
|
||||
|
||||
// Theatre of Blood - Verzik Vitur
|
||||
public static final int VERZIK_PHASE_1_MAGIC_ATTACK = 8109;
|
||||
public static final int VERZIK_PHASE_1_MAGIC_ATTACK_CHANNEL = 8110;
|
||||
public static final int VERZIK_CHANGE_TO_PHASE_2 = 8111;
|
||||
public static final int VERZIK_PHASE_2_MAGIC_ATTACK = 8114;
|
||||
public static final int VERZIK_PHASE_2_BELLY_FLOP_ATTACK_1 = 8116;
|
||||
public static final int VERZIK_PHASE_2_HEALING_CHANNEL = 8117;
|
||||
public static final int VERZIK_PHASE_2_BELLY_FLOP_ATTACK_2 = 8118;
|
||||
public static final int VERZIK_CHANGE_TO_PHASE_3 = 8119;
|
||||
public static final int VERZIK_PHASE_3_MELEE_ATTACK = 8123;
|
||||
public static final int VERZIK_PHASE_3_MAGIC_ATTACK = 8124;
|
||||
public static final int VERZIK_PHASE_3_RANGED_ATTACK = 8125;
|
||||
public static final int VERZIK_PHASE_3_GREEN_POOL_ATTACK = 8126;
|
||||
public static final int VERZIK_PHASE_3_WEB_ATTACK = 8127;
|
||||
public static final int VERZIK_DEATH_1 = 8128;
|
||||
public static final int VERZIK_DEATH_2 = 8129;
|
||||
|
||||
// The Nightmare of Ashihama
|
||||
public static final int NIGHTMARE_SPAWN_SLEEPWALKERS = 8572;
|
||||
public static final int NIGHTMARE_FLOATY = 8592;
|
||||
public static final int NIGHTMARE_WALKING = 8592;
|
||||
public static final int NIGHTMARE_IDLE = 8593;
|
||||
public static final int NIGHTMARE_MELEE_ATTACK = 8594;
|
||||
public static final int NIGHTMARE_MAGIC_ATTACK = 8595;
|
||||
public static final int NIGHTMARE_RANGED_ATTACK = 8596;
|
||||
public static final int NIGHTMARE_SURGE_ATTACK = 8597;
|
||||
public static final int NIGHTMARE_GHOST_AOE_ATTACK = 8598;
|
||||
public static final int NIGHTMARE_CURSE_PRAYERS_ATTACK = 8599;
|
||||
public static final int NIGHTMARE_SPAWN_INFECTIOUS_SPORES = 8600;
|
||||
public static final int NIGHTMARE_SPAWN_ROOM_SECTION_FLOWERS = 8601;
|
||||
public static final int NIGHTMARE_CHANNEL_DEVASTATING_ATTACK = 8604;
|
||||
public static final int NIGHTMARE_SWITCH_TO_DEVIL_PHASE = 8605;
|
||||
public static final int NIGHTMARE_PARASITE_ATTACK = 8606;
|
||||
public static final int NIGHTMARE_JUMP_DOWN = 8607;
|
||||
public static final int NIGHTMARE_SINK_DOWN = 8608;
|
||||
public static final int NIGHTMARE_JUMP_UP = 8609;
|
||||
public static final int NIGHTMARE_JUMP_UP_2 = 8610;
|
||||
public static final int NIGHTMARE_WAKE_UP = 8611;
|
||||
}
|
||||
@@ -1,312 +0,0 @@
|
||||
package com.openosrs.api.widgets;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
@AllArgsConstructor
|
||||
@Getter
|
||||
public enum Varbits
|
||||
{
|
||||
/*
|
||||
* Kharedst's Memoirs Teleport Item
|
||||
*/
|
||||
KHAREDSTS_MEMOIRS_CHARGES(6035),
|
||||
|
||||
/**
|
||||
* Grand Exchange
|
||||
*/
|
||||
GRAND_EXCHANGE_PRICE_PER_ITEM(4398),
|
||||
|
||||
|
||||
/**
|
||||
* Locked Prayers
|
||||
* 0-7 = Locked
|
||||
* 8 = Unlocked
|
||||
*/
|
||||
CHIVPIETY_UNLOCKED(3909),
|
||||
|
||||
/**
|
||||
* Locked Prayers
|
||||
* 0 = Locked
|
||||
* 1 = Unlocked
|
||||
*/
|
||||
|
||||
RIGOUR_UNLOCKED(5451),
|
||||
AUGURY_UNLOCKED(5452),
|
||||
PRESERVE_UNLOCKED(5453),
|
||||
|
||||
/**
|
||||
* Theatre of Blood 1=In Party, 2=Inside/Spectator, 3=Dead Spectating
|
||||
*/
|
||||
THEATRE_OF_BLOOD(6440),
|
||||
BLOAT_DOOR(6447),
|
||||
|
||||
/**
|
||||
* Theatre of Blood orb varbits each number stands for the player's health on a scale of 1-27 (I think), 0 hides the orb
|
||||
*/
|
||||
THEATRE_OF_BLOOD_ORB_1(6442),
|
||||
THEATRE_OF_BLOOD_ORB_2(6443),
|
||||
THEATRE_OF_BLOOD_ORB_3(6444),
|
||||
THEATRE_OF_BLOOD_ORB_4(6445),
|
||||
THEATRE_OF_BLOOD_ORB_5(6446),
|
||||
|
||||
/**
|
||||
* Nightmare Zone
|
||||
*/
|
||||
NMZ_ABSORPTION(3956),
|
||||
NMZ_POINTS(3949),
|
||||
NMZ_OVERLOAD(3955),
|
||||
|
||||
/**
|
||||
* Pyramid plunder
|
||||
*/
|
||||
PYRAMID_PLUNDER_SARCO_OPEN(2362),
|
||||
PYRAMID_PLUNDER_CHEST_OPEN(2363),
|
||||
PYRAMID_PLUNDER_ROOM_LOCATION(2365),
|
||||
PYRAMID_PLUNDER_TIMER(2375),
|
||||
PYRAMID_PLUNDER_THIEVING_LEVEL(2376),
|
||||
PYRAMID_PLUNDER_ROOM(2377),
|
||||
|
||||
/**
|
||||
* In the Wilderness
|
||||
*/
|
||||
IN_THE_WILDERNESS(5963),
|
||||
|
||||
/**
|
||||
* Kingdom Management
|
||||
*/
|
||||
KINGDOM_FAVOR(72),
|
||||
KINGDOM_COFFER(74),
|
||||
KINGDOM_WORKERS_WOOD(81),
|
||||
KINGDOM_WORKERS_HERBS(82),
|
||||
KINGDOM_WORKERS_FISHING(83),
|
||||
KINGDOM_WORKERS_MINING(84),
|
||||
KINGDOM_WORKERS_FISH_COOKED_BUTTON(135), // 0 - Raw, 1 - Cooked
|
||||
KINGDOM_WORKERS_HARDWOOD(2131),
|
||||
KINGDOM_WORKERS_FARM(2132),
|
||||
KINGDOM_WORKERS_HARDWOOD_BUTTON(2133), // 0 - Mahogany, 1 - Teak, 2 - Both
|
||||
KINGDOM_WORKERS_HERBS_BUTTON(2134), // 0 - Herbs, 1 - Flax
|
||||
|
||||
/**
|
||||
* Varbit used for Slayer reward points
|
||||
*/
|
||||
SLAYER_REWARD_POINTS(4068),
|
||||
|
||||
/**
|
||||
* 0 = standard
|
||||
* 1 = ancients
|
||||
* 2 = lunars
|
||||
* 3 = arrceus
|
||||
**/
|
||||
SPELLBOOK(4070),
|
||||
|
||||
/**
|
||||
* Bank settings/flags
|
||||
**/
|
||||
BANK_NOTE_FLAG(3958),
|
||||
|
||||
|
||||
/**
|
||||
* Spells being auto-casted
|
||||
*/
|
||||
AUTO_CAST_SPELL(276),
|
||||
|
||||
/**
|
||||
* Temple Trekking
|
||||
*/
|
||||
TREK_POINTS(1955),
|
||||
TREK_STARTED(1956),
|
||||
TREK_EVENT(1958),
|
||||
TREK_STATUS(6719),
|
||||
BLOAT_ENTERED_ROOM(6447),
|
||||
|
||||
/**
|
||||
* f2p Quest varbits, these don't hold the completion value.
|
||||
*/
|
||||
QUEST_DEMON_SLAYER(2561),
|
||||
QUEST_GOBLIN_DIPLOMACY(2378),
|
||||
QUEST_MISTHALIN_MYSTERY(3468),
|
||||
QUEST_THE_CORSAIR_CURSE(6071),
|
||||
QUEST_X_MARKS_THE_SPOT(8063),
|
||||
QUEST_ERNEST_LEVER_A(1788),
|
||||
QUEST_ERNEST_LEVER_B(1789),
|
||||
QUEST_ERNEST_LEVER_C(1790),
|
||||
QUEST_ERNEST_LEVER_D(1791),
|
||||
QUEST_ERNEST_LEVER_E(1792),
|
||||
QUEST_ERNEST_LEVER_F(1793),
|
||||
|
||||
/**
|
||||
* member Quest varbits, these don't hold the completion value.
|
||||
*/
|
||||
QUEST_ANIMAL_MAGNETISM(3185),
|
||||
QUEST_BETWEEN_A_ROCK(299),
|
||||
QUEST_CONTACT(3274),
|
||||
QUEST_ZOGRE_FLESH_EATERS(487),
|
||||
QUEST_DARKNESS_OF_HALLOWVALE(2573),
|
||||
QUEST_DEATH_TO_THE_DORGESHUUN(2258),
|
||||
QUEST_DESERT_TREASURE(358),
|
||||
QUEST_DEVIOUS_MINDS(1465),
|
||||
QUEST_EAGLES_PEAK(2780),
|
||||
QUEST_ELEMENTAL_WORKSHOP_II(2639),
|
||||
QUEST_ENAKHRAS_LAMENT(1560),
|
||||
QUEST_ENLIGHTENED_JOURNEY(2866),
|
||||
QUEST_THE_EYES_OF_GLOUPHRIE(2497),
|
||||
QUEST_FAIRYTALE_I_GROWING_PAINS(1803),
|
||||
QUEST_FAIRYTALE_II_CURE_A_QUEEN(2326),
|
||||
QUEST_THE_FEUD(334), // 14 = able to pickpocket
|
||||
QUEST_FORGETTABLE_TALE(822),
|
||||
QUEST_GARDEN_OF_TRANQUILLITY(961),
|
||||
QUEST_GHOSTS_AHOY(217),
|
||||
QUEST_THE_GIANT_DWARF(571),
|
||||
QUEST_THE_GOLEM(346),
|
||||
QUEST_HORROR_FROM_THE_DEEP(34),
|
||||
QUEST_ICTHLARINS_LITTLE_HELPER(418),
|
||||
QUEST_IN_AID_OF_THE_MYREQUE(1990),
|
||||
QUEST_THE_LOST_TRIBE(532),
|
||||
QUEST_LUNAR_DIPLOMACY(2448),
|
||||
QUEST_MAKING_HISTORY(1383),
|
||||
QUEST_MOUNTAIN_DAUGHTER(260),
|
||||
QUEST_MOURNINGS_END_PART_II(1103),
|
||||
QUEST_MY_ARMS_BIG_ADVENTURE(2790),
|
||||
QUEST_RATCATCHERS(1404),
|
||||
QUEST_RECIPE_FOR_DISASTER(1850),
|
||||
QUEST_RECRUITMENT_DRIVE(657),
|
||||
QUEST_ROYAL_TROUBLE(2140),
|
||||
QUEST_THE_SLUG_MENACE(2610),
|
||||
QUEST_SHADOW_OF_THE_STORM(1372),
|
||||
QUEST_A_SOULS_BANE(2011),
|
||||
QUEST_SPIRITS_OF_THE_ELID(1444),
|
||||
QUEST_SWAN_SONG(2098),
|
||||
QUEST_A_TAIL_OF_TWO_CATS(1028),
|
||||
QUEST_TEARS_OF_GUTHIX(451),
|
||||
QUEST_WANTED(1051),
|
||||
QUEST_COLD_WAR(3293),
|
||||
QUEST_THE_FREMENNIK_ISLES(3311),
|
||||
QUEST_TOWER_OF_LIFE(3337),
|
||||
QUEST_WHAT_LIES_BELOW(3523),
|
||||
QUEST_OLAFS_QUEST(3534),
|
||||
QUEST_ANOTHER_SLICE_OF_HAM(3550),
|
||||
QUEST_DREAM_MENTOR(3618),
|
||||
QUEST_GRIM_TALES(2783),
|
||||
QUEST_KINGS_RANSOM(3888),
|
||||
QUEST_MONKEY_MADNESS_II(5027),
|
||||
QUEST_CLIENT_OF_KOUREND(5619),
|
||||
QUEST_BONE_VOYAGE(5795),
|
||||
QUEST_THE_QUEEN_OF_THIEVES(6037),
|
||||
QUEST_THE_DEPTHS_OF_DESPAIR(6027),
|
||||
QUEST_DRAGON_SLAYER_II(6104),
|
||||
QUEST_TALE_OF_THE_RIGHTEOUS(6358),
|
||||
QUEST_A_TASTE_OF_HOPE(6396),
|
||||
QUEST_MAKING_FRIENDS_WITH_MY_ARM(6528),
|
||||
QUEST_THE_ASCENT_OF_ARCEUUS(7856),
|
||||
QUEST_THE_FORSAKEN_TOWER(7796),
|
||||
//TODO
|
||||
QUEST_SONG_OF_THE_ELVES(7796),
|
||||
|
||||
/**
|
||||
* mini-quest varbits, these don't hold the completion value.
|
||||
*/
|
||||
QUEST_ARCHITECTURAL_ALLIANCE(4982),
|
||||
QUEST_BEAR_YOUR_SOUL(5078),
|
||||
QUEST_CURSE_OF_THE_EMPTY_LORD(821),
|
||||
QUEST_ENCHANTED_KEY(1391),
|
||||
QUEST_THE_GENERALS_SHADOW(3330),
|
||||
QUEST_SKIPPY_AND_THE_MOGRES(1344),
|
||||
QUEST_LAIR_OF_TARN_RAZORLOR(3290),
|
||||
QUEST_FAMILY_PEST(5347),
|
||||
QUEST_THE_MAGE_ARENA_II(6067),
|
||||
//TODO
|
||||
QUEST_IN_SEARCH_OF_KNOWLEDGE(6067),
|
||||
|
||||
/**
|
||||
* Spellbook filtering (1 = unfiltered, 0 = filtered)
|
||||
*/
|
||||
FILTER_SPELLBOOK(6718),
|
||||
|
||||
/**
|
||||
* POH Building mode (1 = yes, 0 = no)
|
||||
*/
|
||||
BUILDING_MODE(2176),
|
||||
|
||||
/**
|
||||
* 1 if in game, 0 if not
|
||||
*/
|
||||
LMS_IN_GAME(5314),
|
||||
|
||||
/**
|
||||
* Amount of pvp kills in current game
|
||||
*/
|
||||
LMS_KILLS(5315),
|
||||
|
||||
/**
|
||||
* The x coordinate of the final safespace (world coord)
|
||||
*/
|
||||
LMS_SAFE_X(5316),
|
||||
|
||||
LMS_POISON_PROGRESS(5317),
|
||||
|
||||
/**
|
||||
* The y coordinate of the final safespace (world coord)
|
||||
*/
|
||||
LMS_SAFE_Y(5320),
|
||||
|
||||
/**
|
||||
* 1 is true, 0 is false.
|
||||
*/
|
||||
GAUNTLET_FINAL_ROOM_ENTERED(9177),
|
||||
|
||||
/**
|
||||
* 1 is true, 0 is false.
|
||||
*/
|
||||
GAUNTLET_ENTERED(9178),
|
||||
|
||||
WITHDRAW_X_AMOUNT(3960),
|
||||
|
||||
IN_PVP_AREA(8121),
|
||||
|
||||
/**
|
||||
* Value of hotkey varbits can be 0-13
|
||||
* 0 corresponds to no hotkey set
|
||||
* 1-12 correspond to F1-F12 respectively
|
||||
* 13 corresponds to escape
|
||||
*/
|
||||
COMBAT_TAB_HOTKEY(4675),
|
||||
STATS_TAB_HOTKEY(4676),
|
||||
QUESTS_TAB_HOTKEY(4677),
|
||||
INVENTORY_TAB_HOTKEY(4678),
|
||||
EQUIPMENT_TAB_HOTKEY(4679),
|
||||
PRAYER_TAB_HOTKEY(4680),
|
||||
SPELLBOOK_TAB_HOTKEY(4682),
|
||||
FRIENDS_TAB_HOTKEY(4684),
|
||||
ACCOUNT_MANAGEMENT_TAB_HOTKEY(6517),
|
||||
LOGOUT_TAB_HOTKEY(4689),
|
||||
OPTIONS_TAB_HOTKEY(4686),
|
||||
EMOTES_TAB_HOTKEY(4687),
|
||||
CLAN_TAB_HOTKEY(4683),
|
||||
MUSIC_TAB_HOTKEY(4688),
|
||||
|
||||
/**
|
||||
* Chat Notifications settings
|
||||
* <br>
|
||||
* LOOT_DROP_NOTIFICATIONS: 1 is true, 0 is false
|
||||
* LOOT_DROP_NOTIFICATIONS_VALUE: gp value
|
||||
* UNTRADEABLE_LOOT_NOTIFICATIONS: 1 is true, 0 is false
|
||||
* BOSS_KILL_COUNT_UPDATES: 1 is filtered, 0 is unfiltered
|
||||
* DROP_ITEM_WARNINGS: 1 is true, 0 is false
|
||||
* DROP_ITEM_WARNINGS_VALUE: gp value
|
||||
*/
|
||||
LOOT_DROP_NOTIFICATIONS(5399),
|
||||
LOOT_DROP_NOTIFICATIONS_VALUE(5400),
|
||||
UNTRADEABLE_LOOT_NOTIFICATIONS(5402),
|
||||
BOSS_KILL_COUNT_UPDATES(4930),
|
||||
DROP_ITEM_WARNINGS(5411),
|
||||
DROP_ITEM_WARNINGS_VALUE(5412),
|
||||
|
||||
PARASITE(10151),
|
||||
;
|
||||
|
||||
/**
|
||||
* The raw varbit ID.
|
||||
*/
|
||||
private final int id;
|
||||
}
|
||||
@@ -1,673 +0,0 @@
|
||||
package com.openosrs.api.widgets;
|
||||
|
||||
public class WidgetID extends net.runelite.api.widgets.WidgetID
|
||||
{
|
||||
public static final int BANK_PIN_GROUP_ID = 213;
|
||||
public static final int PLAYER_TRADE_CONFIRM_GROUP_ID = 334;
|
||||
public static final int PEST_CONTROL_EXCHANGE_WINDOW_GROUP_ID = 243;
|
||||
public static final int DIALOG_MINIGAME_GROUP_ID = 229;
|
||||
public static final int BA_HORN_OF_GLORY = 484;
|
||||
public static final int MOTHERLODE_MINE_FULL_INVENTORY_GROUP_ID = 229;
|
||||
public static final int DIALOG_PLAYER_GROUP_ID = 217;
|
||||
public static final int DIALOG_NOTIFICATION_GROUP_ID = 229;
|
||||
public static final int FOSSIL_ISLAND_MUSHROOM_TELE_GROUP_ID = 608;
|
||||
public static final int PERFORMERS_FOR_THE_THEATRE_GROUPS_GROUP_ID = 364;
|
||||
public static final int PERFORMERS_FOR_THE_THEATRE_PLAYERS_GROUP_ID = 50;
|
||||
public static final int DIALOG_SPRITE2_ID = 11;
|
||||
public static final int EQUIPMENT_PAGE_GROUP_ID = 84;
|
||||
public static final int QUESTTAB_GROUP_ID = 629;
|
||||
public static final int MUSICTAB_GROUP_ID = 239;
|
||||
public static final int JEWELLERY_BOX_GROUP_ID = 590;
|
||||
public static final int OPTIONS_GROUP_ID = 261;
|
||||
public static final int MULTISKILL_MENU_GROUP_ID = 270;
|
||||
public static final int THEATRE_OF_BLOOD_PARTY_GROUP_ID = 28;
|
||||
public static final int GWD_KC_GROUP_ID = 406;
|
||||
public static final int GAUNTLET_MAP_GROUP_ID = 638;
|
||||
|
||||
public static final int SETTINGS_SIDE_GROUP_ID = 116;
|
||||
public static final int SETTINGS_GROUP_ID = 134;
|
||||
|
||||
static class SettingsSide
|
||||
{
|
||||
static final int CAMERA_ZOOM_SLIDER_TRACK = 59;
|
||||
static final int MUSIC_SLIDER = 13;
|
||||
static final int SOUND_EFFECT_SLIDER = 17;
|
||||
static final int AREA_SOUND_SLIDER = 21;
|
||||
}
|
||||
|
||||
static class Settings
|
||||
{
|
||||
static final int INIT = 1;
|
||||
}
|
||||
|
||||
static class DialogPlayer
|
||||
{
|
||||
static final int HEAD_MODEL = 1;
|
||||
static final int NAME = 2;
|
||||
static final int CONTINUE = 3;
|
||||
static final int TEXT = 4;
|
||||
}
|
||||
|
||||
static class DialogNotification
|
||||
{
|
||||
static final int TEXT = 0;
|
||||
static final int CONTINUE = 1;
|
||||
}
|
||||
|
||||
static class DialogOption
|
||||
{
|
||||
static final int TEXT = 0;
|
||||
static final int OPTION1 = 1;
|
||||
static final int OPTION2 = 2;
|
||||
static final int OPTION3 = 3;
|
||||
static final int OPTION4 = 4;
|
||||
static final int OPTION5 = 5;
|
||||
}
|
||||
|
||||
static class PestControlBoat
|
||||
{
|
||||
static final int INFO = 3;
|
||||
|
||||
static final int NEXT_DEPARTURE = 4;
|
||||
static final int PLAYERS_READY = 5;
|
||||
static final int POINTS = 6;
|
||||
}
|
||||
|
||||
static class PestControlExchangeWindow
|
||||
{
|
||||
static final int ITEM_LIST = 2;
|
||||
static final int BOTTOM = 5;
|
||||
static final int POINTS = 8;
|
||||
static final int CONFIRM_BUTTON = 6;
|
||||
}
|
||||
|
||||
static class MinigameDialog
|
||||
{
|
||||
static final int TEXT = 1;
|
||||
static final int CONTINUE = 2;
|
||||
}
|
||||
|
||||
static class PestControl
|
||||
{
|
||||
static final int INFO = 3;
|
||||
|
||||
static final int TIME = 6;
|
||||
|
||||
static final int ACTIVITY_BAR = 12;
|
||||
static final int ACTIVITY_PROGRESS = 14;
|
||||
|
||||
static final int PURPLE_SHIELD = 15;
|
||||
static final int BLUE_SHIELD = 16;
|
||||
static final int YELLOW_SHIELD = 17;
|
||||
static final int RED_SHIELD = 18;
|
||||
|
||||
static final int PURPLE_ICON = 19;
|
||||
static final int BLUE_ICON = 20;
|
||||
static final int YELLOW_ICON = 21;
|
||||
static final int RED_ICON = 22;
|
||||
|
||||
static final int PURPLE_HEALTH = 23;
|
||||
static final int BLUE_HEALTH = 24;
|
||||
static final int YELLOW_HEALTH = 25;
|
||||
static final int RED_HEALTH = 26;
|
||||
}
|
||||
|
||||
static class Bank
|
||||
{
|
||||
static final int BANK_CONTAINER = 1;
|
||||
static final int INVENTORY_ITEM_CONTAINER = 3;
|
||||
static final int BANK_TITLE_BAR = 3;
|
||||
static final int TUTORIAL_BUTTON = 4;
|
||||
static final int ITEM_COUNT_TOP = 5;
|
||||
static final int ITEM_COUNT_BAR = 6;
|
||||
static final int ITEM_COUNT_BOTTOM = 7;
|
||||
static final int CONTENT_CONTAINER = 9;
|
||||
static final int TAB_CONTAINER = 10;
|
||||
static final int ITEM_CONTAINER = 12;
|
||||
static final int SCROLLBAR = 13;
|
||||
static final int UNNOTED_BUTTON = 21;
|
||||
static final int NOTED_BUTTON = 23;
|
||||
static final int SEARCH_BUTTON_BACKGROUND = 39;
|
||||
static final int DEPOSIT_INVENTORY = 41;
|
||||
static final int DEPOSIT_EQUIPMENT = 43;
|
||||
static final int INCINERATOR = 45;
|
||||
static final int INCINERATOR_CONFIRM = 46;
|
||||
static final int EQUIPMENT_CONTENT_CONTAINER = 68;
|
||||
static final int SETTINGS_BUTTON = 111;
|
||||
static final int EQUIPMENT_BUTTON = 112;
|
||||
}
|
||||
|
||||
static class GrandExchange
|
||||
{
|
||||
static final int WINDOW_CONTAINER = 0;
|
||||
static final int WINDOW_BORDERS = 2;
|
||||
static final int HISTORY_BUTTON = 3;
|
||||
static final int BACK_BUTTON = 4;
|
||||
static final int OFFER1 = 7;
|
||||
static final int OFFER2 = 8;
|
||||
static final int OFFER3 = 9;
|
||||
static final int OFFER4 = 10;
|
||||
static final int OFFER5 = 11;
|
||||
static final int OFFER6 = 12;
|
||||
static final int OFFER7 = 13;
|
||||
static final int OFFER8 = 14;
|
||||
static final int OFFER_CONTAINER = 24;
|
||||
static final int OFFER_DESCRIPTION = 25;
|
||||
static final int OFFER_PRICE = 26;
|
||||
static final int OFFER_CONFIRM_BUTTON = 27;
|
||||
}
|
||||
|
||||
static class Shop
|
||||
{
|
||||
static final int ITEMS_CONTAINER = 2;
|
||||
static final int INVENTORY_ITEM_CONTAINER = 0;
|
||||
}
|
||||
|
||||
static class Smithing
|
||||
{
|
||||
static final int INVENTORY_ITEM_CONTAINER = 0;
|
||||
|
||||
static final int QTY_1 = 3;
|
||||
static final int QTY_5 = 4;
|
||||
static final int QTY_10 = 5;
|
||||
static final int QTY_X = 6;
|
||||
static final int QTY_ALL = 7;
|
||||
|
||||
static final int DAGGER = 9;
|
||||
static final int SWORD = 10;
|
||||
static final int SCIMITAR = 11;
|
||||
static final int LONG_SWORD = 12;
|
||||
static final int TWO_H_SWORD = 13;
|
||||
static final int AXE = 14;
|
||||
static final int MACE = 15;
|
||||
static final int WARHAMMER = 16;
|
||||
static final int BATTLE_AXE = 17;
|
||||
static final int CLAWS = 18;
|
||||
static final int CHAIN_BODY = 19;
|
||||
static final int PLATE_LEGS = 20;
|
||||
static final int PLATE_SKIRT = 21;
|
||||
static final int PLATE_BODY = 22;
|
||||
static final int NAILS = 23;
|
||||
static final int MED_HELM = 24;
|
||||
static final int FULL_HELM = 25;
|
||||
static final int SQ_SHIELD = 26;
|
||||
static final int KITE_SHIELD = 27;
|
||||
static final int EXCLUSIVE1 = 28;
|
||||
static final int DART_TIPS = 29;
|
||||
static final int ARROW_HEADS = 30;
|
||||
static final int KNIVES = 31;
|
||||
static final int EXCLUSIVE2 = 32;
|
||||
static final int JAVELIN_HEADS = 33;
|
||||
static final int BOLTS = 34;
|
||||
static final int LIMBS = 35;
|
||||
}
|
||||
|
||||
static class Equipment
|
||||
{
|
||||
static final int HELMET = 14;
|
||||
static final int CAPE = 15;
|
||||
static final int AMULET = 16;
|
||||
static final int WEAPON = 17;
|
||||
static final int BODY = 18;
|
||||
static final int SHIELD = 19;
|
||||
static final int LEGS = 20;
|
||||
static final int GLOVES = 21;
|
||||
static final int BOOTS = 22;
|
||||
static final int RING = 23;
|
||||
static final int AMMO = 24;
|
||||
static final int INVENTORY_ITEM_CONTAINER = 0;
|
||||
}
|
||||
|
||||
static class Minimap
|
||||
{
|
||||
static final int XP_ORB = 1;
|
||||
static final int HEALTH_ORB = 2;
|
||||
static final int PRAYER_ORB = 12;
|
||||
static final int QUICK_PRAYER_ORB = 14; // Has the "Quick-prayers" name
|
||||
static final int PRAYER_ORB_TEXT = 15;
|
||||
static final int RUN_ORB = 20;
|
||||
static final int TOGGLE_RUN_ORB = 22; // Has the "Toggle run" name
|
||||
static final int RUN_ORB_TEXT = 23;
|
||||
static final int SPEC_ORB = 28;
|
||||
static final int SPEC_CLICKBOX = 30;
|
||||
static final int WORLDMAP_ORB = 41;
|
||||
static final int WIKI_BANNER = 43;
|
||||
}
|
||||
|
||||
static class Combat
|
||||
{
|
||||
static final int WEAPON_NAME = 1;
|
||||
static final int LEVEL = 3;
|
||||
static final int STYLE_ONE = 4;
|
||||
static final int STYLE_TWO = 8;
|
||||
static final int STYLE_THREE = 12;
|
||||
static final int STYLE_FOUR = 16;
|
||||
static final int SPELLS = 20;
|
||||
static final int DEFENSIVE_SPELL_BOX = 21;
|
||||
static final int DEFENSIVE_SPELL_ICON = 23;
|
||||
static final int DEFENSIVE_SPELL_SHIELD = 24;
|
||||
static final int DEFENSIVE_SPELL_TEXT = 25;
|
||||
static final int SPELL_BOX = 26;
|
||||
static final int SPELL_ICON = 28;
|
||||
static final int SPELL_TEXT = 29;
|
||||
static final int AUTO_RETALIATE = 30;
|
||||
static final int SPECIAL_ATTACK_BAR = 34;
|
||||
static final int SPECIAL_ATTACK_CLICKBOX = 36;
|
||||
static final int TOOLTIP = 41;
|
||||
}
|
||||
|
||||
static class BarbarianAssault
|
||||
{
|
||||
static class ATK
|
||||
{
|
||||
static final int LISTEN_TOP = 7;
|
||||
static final int LISTEN_BOTTOM = 8;
|
||||
static final int TO_CALL_WIDGET = 9;
|
||||
static final int TO_CALL = 10;
|
||||
static final int ROLE_SPRITE = 11;
|
||||
static final int ROLE = 12;
|
||||
}
|
||||
static class HLR
|
||||
{
|
||||
static final int TEAMMATE1 = 18;
|
||||
static final int TEAMMATE2 = 22;
|
||||
static final int TEAMMATE3 = 26;
|
||||
static final int TEAMMATE4 = 30;
|
||||
}
|
||||
static class HORN_GLORY
|
||||
{
|
||||
static final int ATTACKER = 5;
|
||||
static final int DEFENDER = 6;
|
||||
static final int COLLECTOR = 7;
|
||||
static final int HEALER = 8;
|
||||
}
|
||||
static class REWARD_VALUES
|
||||
{
|
||||
static final int RUNNERS_PASSED = 14;
|
||||
static final int HITPOINTS_REPLENISHED = 19;
|
||||
static final int WRONG_POISON_PACKS_USED = 20;
|
||||
static final int EGGS_COLLECTED = 21;
|
||||
static final int FAILED_ATTACKER_ATTACKS = 22;
|
||||
static final int RUNNERS_PASSED_POINTS = 24;
|
||||
static final int RANGERS_KILLED = 25;
|
||||
static final int FIGHTERS_KILLED = 26;
|
||||
static final int HEALERS_KILLED = 27;
|
||||
static final int RUNNERS_KILLED = 28;
|
||||
static final int HITPOINTS_REPLENISHED_POINTS = 29;
|
||||
static final int WRONG_POISON_PACKS_USED_POINTS = 30;
|
||||
static final int EGGS_COLLECTED_POINTS = 31;
|
||||
static final int FAILED_ATTACKER_ATTACKS_POINTS = 32;
|
||||
static final int BASE_POINTS = 33;
|
||||
static final int HONOUR_POINTS_REWARD = 49;
|
||||
}
|
||||
static final int CORRECT_STYLE = 3;
|
||||
static final int GAME_WIDGET = 3;
|
||||
static final int CURRENT_WAVE_WIDGET = 4;
|
||||
static final int CURRENT_WAVE = 5;
|
||||
static final int LISTEN_WIDGET = 6;
|
||||
static final int LISTEN = 7;
|
||||
static final int TO_CALL_WIDGET = 8;
|
||||
static final int TO_CALL = 9;
|
||||
static final int ROLE_SPRITE = 10;
|
||||
static final int ROLE = 11;
|
||||
static final int REWARD_TEXT = 57;
|
||||
}
|
||||
|
||||
static class LevelUp
|
||||
{
|
||||
static final int SKILL = 1;
|
||||
static final int LEVEL = 2;
|
||||
static final int CONTINUE = 3;
|
||||
}
|
||||
|
||||
static class TheatreOfBlood
|
||||
{
|
||||
static final int RAIDING_PARTY = 9;
|
||||
static final int ORB_BOX = 10;
|
||||
static final int BOSS_HEALTH_BAR = 35;
|
||||
}
|
||||
|
||||
static class TheatreOfBloodParty
|
||||
{
|
||||
static final int CONTAINER = 10;
|
||||
}
|
||||
|
||||
static class LightBox
|
||||
{
|
||||
static final int LIGHT_BOX = 1;
|
||||
static final int LIGHT_BOX_WINDOW = 2;
|
||||
static final int LIGHT_BULB_CONTAINER = 3;
|
||||
static final int LIGHT_BOX_BUTTON_CONTAINER = 6;
|
||||
static final int BUTTON_A = 8;
|
||||
static final int BUTTON_B = 9;
|
||||
static final int BUTTON_C = 10;
|
||||
static final int BUTTON_D = 11;
|
||||
static final int BUTTON_E = 12;
|
||||
static final int BUTTON_F = 13;
|
||||
static final int BUTTON_G = 14;
|
||||
static final int BUTTON_H = 15;
|
||||
}
|
||||
|
||||
static class EquipmentWidgetIdentifiers
|
||||
{
|
||||
static final int EQUIP_YOUR_CHARACTER = 3;
|
||||
static final int STAB_ATTACK_BONUS = 24;
|
||||
static final int SLASH_ATTACK_BONUS = 25;
|
||||
static final int CRUSH_ATTACK_BONUS = 26;
|
||||
static final int MAGIC_ATTACK_BONUS = 27;
|
||||
static final int RANGED_ATTACK_BONUS = 28;
|
||||
static final int STAB_DEFENCE_BONUS = 30;
|
||||
static final int SLASH_DEFENCE_BONUS = 31;
|
||||
static final int CRUSH_DEFENCE_BONUS = 32;
|
||||
static final int MAGIC_DEFENCE_BONUS = 33;
|
||||
static final int RANGED_DEFENCE_BONUS = 34;
|
||||
static final int MELEE_STRENGTH = 36;
|
||||
static final int RANGED_STRENGTH = 37;
|
||||
static final int MAGIC_DAMAGE = 38;
|
||||
static final int PRAYER_BONUS = 39;
|
||||
static final int UNDEAD_DAMAGE_BONUS = 41;
|
||||
static final int SLAYER_DAMAGE_BONUS = 42;
|
||||
static final int WEIGHT = 49;
|
||||
}
|
||||
|
||||
static class WorldSwitcher
|
||||
{
|
||||
static final int CONTAINER = 1;
|
||||
static final int WORLD_LIST = 16;
|
||||
static final int LOGOUT_BUTTON = 23;
|
||||
}
|
||||
|
||||
static class FossilMushroomTeleport
|
||||
{
|
||||
static final int ROOT = 2;
|
||||
static final int HOUSE_ON_HILL = 4;
|
||||
static final int VERDANT_VALLEY = 8;
|
||||
static final int SWAMP = 12;
|
||||
static final int MUSHROOM_MEADOW = 16;
|
||||
}
|
||||
|
||||
static class SpellBook
|
||||
{
|
||||
static final int FILTERED_SPELLS_BOUNDS = 3;
|
||||
static final int TOOLTIP = 189;
|
||||
|
||||
// NORMAL SPELLS
|
||||
static final int LUMBRIDGE_HOME_TELEPORT = 5;
|
||||
static final int WIND_STRIKE = 6;
|
||||
static final int CONFUSE = 7;
|
||||
static final int ENCHANT_CROSSBOW_BOLT = 8;
|
||||
static final int WATER_STRIKE = 9;
|
||||
static final int LVL_1_ENCHANT = 10;
|
||||
static final int EARTH_STRIKE = 11;
|
||||
static final int WEAKEN = 12;
|
||||
static final int FIRE_STRIKE = 13;
|
||||
static final int BONES_TO_BANANAS = 14;
|
||||
static final int WIND_BOLT = 15;
|
||||
static final int CURSE = 16;
|
||||
static final int BIND = 17;
|
||||
static final int LOW_LEVEL_ALCHEMY = 18;
|
||||
static final int WATER_BOLT = 19;
|
||||
static final int VARROCK_TELEPORT = 20;
|
||||
static final int LVL_2_ENCHANT = 21;
|
||||
static final int EARTH_BOLT = 22;
|
||||
static final int LUMBRIDGE_TELEPORT = 23;
|
||||
static final int TELEKINETIC_GRAB = 24;
|
||||
static final int FIRE_BOLT = 25;
|
||||
static final int FALADOR_TELEPORT = 26;
|
||||
static final int CRUMBLE_UNDEAD = 27;
|
||||
static final int TELEPORT_TO_HOUSE = 28;
|
||||
static final int WIND_BLAST = 29;
|
||||
static final int SUPERHEAT_ITEM = 30;
|
||||
static final int CAMELOT_TELEPORT = 31;
|
||||
static final int WATER_BLAST = 32;
|
||||
static final int LVL_3_ENCHANT = 33;
|
||||
static final int IBAN_BLAST = 34;
|
||||
static final int SNARE = 35;
|
||||
static final int MAGIC_DART = 36;
|
||||
static final int ARDOUGNE_TELEPORT = 37;
|
||||
static final int EARTH_BLAST = 38;
|
||||
static final int HIGH_LEVEL_ALCHEMY = 39;
|
||||
static final int CHARGE_WATER_ORB = 40;
|
||||
static final int LVL_4_ENCHANT = 41;
|
||||
static final int WATCHTOWER_TELEPORT = 42;
|
||||
static final int FIRE_BLAST = 43;
|
||||
static final int CHARGE_EARTH_ORB = 44;
|
||||
static final int BONES_TO_PEACHES = 45;
|
||||
static final int SARADOMIN_STRIKE = 46;
|
||||
static final int CLAWS_OF_GUTHIX = 47;
|
||||
static final int FLAMES_OF_ZAMORAK = 48;
|
||||
static final int TROLLHEIM_TELEPORT = 49;
|
||||
static final int WIND_WAVE = 50;
|
||||
static final int CHARGE_FIRE_ORB = 51;
|
||||
static final int TELEPORT_TO_APE_ATOLL = 52;
|
||||
static final int WATER_WAVE = 53;
|
||||
static final int CHARGE_AIR_ORB = 54;
|
||||
static final int VULNERABILITY = 55;
|
||||
static final int LVL_5_ENCHANT = 56;
|
||||
static final int TELEPORT_TO_KOUREND = 57;
|
||||
static final int EARTH_WAVE = 58;
|
||||
static final int ENFEEBLE = 59;
|
||||
static final int TELEOTHER_LUMBRIDGE = 60;
|
||||
static final int FIRE_WAVE = 61;
|
||||
static final int ENTANGLE = 62;
|
||||
static final int STUN = 63;
|
||||
static final int CHARGE = 64;
|
||||
static final int WIND_SURGE = 65;
|
||||
static final int TELEOTHER_FALADOR = 66;
|
||||
static final int WATER_SURGE = 67;
|
||||
static final int TELE_BLOCK = 68;
|
||||
static final int BOUNTY_TARGET_TELEPORT = 69;
|
||||
static final int LVL_6_ENCHANT = 70;
|
||||
static final int TELEOTHER_CAMELOT = 71;
|
||||
static final int EARTH_SURGE = 72;
|
||||
static final int LVL_7_ENCHANT = 73;
|
||||
static final int FIRE_SURGE = 74;
|
||||
|
||||
// ANCIENT SPELLS
|
||||
static final int ICE_RUSH = 75;
|
||||
static final int ICE_BLITZ = 76;
|
||||
static final int ICE_BURST = 77;
|
||||
static final int ICE_BARRAGE = 78;
|
||||
static final int BLOOD_RUSH = 79;
|
||||
static final int BLOOD_BLITZ = 80;
|
||||
static final int BLOOD_BURST = 81;
|
||||
static final int BLOOD_BARRAGE = 82;
|
||||
static final int SMOKE_RUSH = 83;
|
||||
static final int SMOKE_BLITZ = 84;
|
||||
static final int SMOKE_BURST = 85;
|
||||
static final int SMOKE_BARRAGE = 86;
|
||||
static final int SHADOW_RUSH = 87;
|
||||
static final int SHADOW_BLITZ = 88;
|
||||
static final int SHADOW_BURST = 89;
|
||||
static final int SHADOW_BARRAGE = 90;
|
||||
static final int PADDEWWA_TELEPORT = 91;
|
||||
static final int SENNTISTEN_TELEPORT = 92;
|
||||
static final int KHARYRLL_TELEPORT = 93;
|
||||
static final int LASSAR_TELEPORT = 94;
|
||||
static final int DAREEYAK_TELEPORT = 95;
|
||||
static final int CARRALLANGER_TELEPORT = 96;
|
||||
static final int ANNAKARL_TELEPORT = 97;
|
||||
static final int GHORROCK_TELEPORT = 98;
|
||||
static final int EDGEVILLE_HOME_TELEPORT = 99;
|
||||
|
||||
// LUNAR SPELLS
|
||||
static final int LUNAR_HOME_TELEPORT = 100;
|
||||
static final int BAKE_PIE = 101;
|
||||
static final int CURE_PLANT = 102;
|
||||
static final int MONSTER_EXAMINE = 103;
|
||||
static final int NPC_CONTACT = 104;
|
||||
static final int CURE_OTHER = 105;
|
||||
static final int HUMIDIFY = 106;
|
||||
static final int MOONCLAN_TELEPORT = 107;
|
||||
static final int TELE_GROUP_MOONCLAN = 108;
|
||||
static final int CURE_ME = 109;
|
||||
static final int HUNTER_KIT = 110;
|
||||
static final int WATERBIRTH_TELEPORT = 111;
|
||||
static final int TELE_GROUP_WATERBIRTH = 112;
|
||||
static final int CURE_GROUP = 113;
|
||||
static final int STAT_SPY = 114;
|
||||
static final int BARBARIAN_TELEPORT = 115;
|
||||
static final int TELE_GROUP_BARBARIAN = 116;
|
||||
static final int SUPERGLASS_MAKE = 117;
|
||||
static final int TAN_LEATHER = 118;
|
||||
static final int KHAZARD_TELEPORT = 119;
|
||||
static final int TELE_GROUP_KHAZARD = 120;
|
||||
static final int DREAM = 121;
|
||||
static final int STRING_JEWELLERY = 122;
|
||||
static final int STAT_RESTORE_POT_SHARE = 123;
|
||||
static final int MAGIC_IMBUE = 124;
|
||||
static final int FERTILE_SOIL = 125;
|
||||
static final int BOOST_POTION_SHARE = 126;
|
||||
static final int FISHING_GUILD_TELEPORT = 127;
|
||||
static final int TELE_GROUP_FISHING_GUILD = 128;
|
||||
static final int PLANK_MAKE = 129;
|
||||
static final int CATHERBY_TELEPORT = 130;
|
||||
static final int TELE_GROUP_CATHERBY = 131;
|
||||
static final int RECHARGE_DRAGONSTONE = 132;
|
||||
static final int ICE_PLATEAU_TELEPORT = 133;
|
||||
static final int TELE_GROUP_ICE_PLATEAU = 134;
|
||||
static final int ENERGY_TRANSFER = 135;
|
||||
static final int HEAL_OTHER = 136;
|
||||
static final int VENGEANCE_OTHER = 137;
|
||||
static final int VENGEANCE = 138;
|
||||
static final int HEAL_GROUP = 139;
|
||||
static final int SPELLBOOK_SWAP = 140;
|
||||
static final int GEOMANCY = 141;
|
||||
static final int SPIN_FLAX = 142;
|
||||
static final int OURANIA_TELEPORT = 143;
|
||||
|
||||
// ARCEUUS SPELLS
|
||||
static final int ARCEUUS_HOME_TELEPORT = 144;
|
||||
static final int BATTLEFRONT_TELEPORT = 179;
|
||||
// HEADS
|
||||
static final int REANIMATE_GOBLIN = 145;
|
||||
static final int REANIMATE_MONKEY = 147;
|
||||
static final int REANIMATE_IMP = 148;
|
||||
static final int REANIMATE_MINOTAUR = 149;
|
||||
static final int REANIMATE_SCORPION = 151;
|
||||
static final int REANIMATE_BEAR = 152;
|
||||
static final int REANIMATE_UNICORN = 153;
|
||||
static final int REANIMATE_DOG = 154;
|
||||
static final int REANIMATE_CHAOS_DRUID = 156;
|
||||
static final int REANIMATE_GIANT = 158;
|
||||
static final int REANIMATE_OGRE = 160;
|
||||
static final int REANIMATE_ELF = 161;
|
||||
static final int REANIMATE_TROLL = 162;
|
||||
static final int REANIMATE_HORROR = 164;
|
||||
static final int REANIMATE_KALPHITE = 165;
|
||||
static final int REANIMATE_DAGANNOTH = 167;
|
||||
static final int REANIMATE_BLOODVELD = 168;
|
||||
static final int REANIMATE_TZHAAR = 170;
|
||||
static final int REANIMATE_DEMON = 172;
|
||||
static final int REANIMATE_AVIANSIE = 173;
|
||||
static final int REANIMATE_ABYSSAL = 176;
|
||||
static final int REANIMATE_DRAGON = 178;
|
||||
|
||||
}
|
||||
|
||||
static class Pvp
|
||||
{
|
||||
static final int FOG_OVERLAY = 1;
|
||||
static final int PVP_WIDGET_CONTAINER = 54; // OUTDATED?
|
||||
static final int SKULL = 56; // OUTDATED?
|
||||
static final int ATTACK_RANGE = 59; // OUTDATED?
|
||||
static final int BOUNTY_HUNTER_INFO = 6;
|
||||
static final int KILLDEATH_RATIO = 28;
|
||||
static final int SKULL_CONTAINER = 48;
|
||||
static final int SAFE_ZONE = 50;
|
||||
static final int WILDERNESS_LEVEL = 53; // this can also be the Deadman Mode "Protection" text
|
||||
}
|
||||
|
||||
static class DialogSprite2
|
||||
{
|
||||
static final int SPRITE1 = 1;
|
||||
static final int TEXT = 2;
|
||||
static final int SPRITE2 = 3;
|
||||
static final int CONTINUE = 4;
|
||||
}
|
||||
|
||||
static class QuestTab
|
||||
{
|
||||
static final int QUEST_TAB = 3;
|
||||
}
|
||||
|
||||
public static class TradeScreen
|
||||
{
|
||||
public static final int FIRST_TRADING_WITH = 31;
|
||||
public static final int SECOND_ACCEPT_FUNC = 13;
|
||||
public static final int SECOND_DECLINE_FUNC = 14;
|
||||
public static final int SECOND_MY_OFFER = 23;
|
||||
public static final int SECOND_THEIR_OFFER = 24;
|
||||
public static final int SECOND_ACCEPT_TEXT = 25;
|
||||
public static final int SECOND_DECLINE_TEXT = 26;
|
||||
public static final int SECOND_MY_ITEMS = 28;
|
||||
public static final int SECOND_THEIR_ITEMS = 29;
|
||||
public static final int SECOND_TRADING_WITH = 30;
|
||||
}
|
||||
|
||||
public static class DuelConfig
|
||||
{
|
||||
public static final int CONFIG_GROUP_IP = 482;
|
||||
public static final int TITLE = 35;
|
||||
public static final int OPPONENT_ATT = 9;
|
||||
public static final int OPPONENT_STR = 13;
|
||||
public static final int OPPONENT_DEF = 17;
|
||||
public static final int OPPONENT_HP = 21;
|
||||
}
|
||||
|
||||
public static class DuelResult
|
||||
{
|
||||
public static final int RESULT_GROUP_ID = 372;
|
||||
public static final int TITLE = 16;
|
||||
public static final int TOTAL_STAKED = 32;
|
||||
public static final int TOTAL_TAX = 39;
|
||||
public static final int WINNINGS = 40;
|
||||
}
|
||||
|
||||
// Also used for many other interfaces!
|
||||
static class BankPin
|
||||
{
|
||||
static final int CONTAINER = 0;
|
||||
static final int TOP_LEFT_TEXT = 2;
|
||||
static final int FIRST_ENTERED = 3;
|
||||
static final int SECOND_ENTERED = 4;
|
||||
static final int THIRD_ENTERED = 5;
|
||||
static final int FOURTH_ENTERED = 6;
|
||||
static final int INSTRUCTION_TEXT = 10;
|
||||
static final int EXIT_BUTTON = 13;
|
||||
static final int FORGOT_BUTTON = 15;
|
||||
static final int BUTTON_1 = 16;
|
||||
static final int BUTTON_2 = 18;
|
||||
static final int BUTTON_3 = 20;
|
||||
static final int BUTTON_4 = 22;
|
||||
static final int BUTTON_5 = 24;
|
||||
static final int BUTTON_6 = 26;
|
||||
static final int BUTTON_7 = 28;
|
||||
static final int BUTTON_8 = 30;
|
||||
static final int BUTTON_9 = 32;
|
||||
static final int BUTTON_10 = 34;
|
||||
}
|
||||
|
||||
static class JewelBox
|
||||
{
|
||||
static final int DUEL_RING = 2;
|
||||
static final int GAME_NECK = 3;
|
||||
static final int COMB_BRAC = 4;
|
||||
static final int SKIL_NECK = 5;
|
||||
static final int RING_OFGP = 6;
|
||||
static final int AMUL_GLOR = 7; // yes
|
||||
}
|
||||
|
||||
static class Options
|
||||
{
|
||||
static final int CAMERA_ZOOM_SLIDER_HANDLE = 15;
|
||||
static final int MUSIC_SLIDER = 37;
|
||||
static final int SOUND_EFFECT_SLIDER = 43;
|
||||
static final int AREA_SOUND_SLIDER = 49;
|
||||
}
|
||||
|
||||
static class GauntletMap
|
||||
{
|
||||
static final int CONTAINER = 4;
|
||||
}
|
||||
}
|
||||
@@ -1,488 +0,0 @@
|
||||
package com.openosrs.api.widgets;
|
||||
|
||||
|
||||
public enum WidgetInfo
|
||||
{
|
||||
WORLD_MAP_BUTTON_BORDER(WidgetID.MINIMAP_GROUP_ID, WidgetID.Minimap.WORLDMAP_ORB),
|
||||
|
||||
EQUIPMENT_HELMET(WidgetID.EQUIPMENT_GROUP_ID, WidgetID.Equipment.HELMET),
|
||||
EQUIPMENT_CAPE(WidgetID.EQUIPMENT_GROUP_ID, WidgetID.Equipment.CAPE),
|
||||
EQUIPMENT_AMULET(WidgetID.EQUIPMENT_GROUP_ID, WidgetID.Equipment.AMULET),
|
||||
EQUIPMENT_WEAPON(WidgetID.EQUIPMENT_GROUP_ID, WidgetID.Equipment.WEAPON),
|
||||
EQUIPMENT_BODY(WidgetID.EQUIPMENT_GROUP_ID, WidgetID.Equipment.BODY),
|
||||
EQUIPMENT_SHIELD(WidgetID.EQUIPMENT_GROUP_ID, WidgetID.Equipment.SHIELD),
|
||||
EQUIPMENT_LEGS(WidgetID.EQUIPMENT_GROUP_ID, WidgetID.Equipment.LEGS),
|
||||
EQUIPMENT_GLOVES(WidgetID.EQUIPMENT_GROUP_ID, WidgetID.Equipment.GLOVES),
|
||||
EQUIPMENT_BOOTS(WidgetID.EQUIPMENT_GROUP_ID, WidgetID.Equipment.BOOTS),
|
||||
EQUIPMENT_RING(WidgetID.EQUIPMENT_GROUP_ID, WidgetID.Equipment.RING),
|
||||
EQUIPMENT_AMMO(WidgetID.EQUIPMENT_GROUP_ID, WidgetID.Equipment.AMMO),
|
||||
|
||||
MINIGAME_DIALOG(WidgetID.DIALOG_MINIGAME_GROUP_ID, 0),
|
||||
MINIGAME_DIALOG_TEXT(WidgetID.DIALOG_MINIGAME_GROUP_ID, WidgetID.MinigameDialog.TEXT),
|
||||
MINIGAME_DIALOG_CONTINUE(WidgetID.DIALOG_MINIGAME_GROUP_ID, WidgetID.MinigameDialog.CONTINUE),
|
||||
PEST_CONTROL_EXCHANGE_WINDOW(WidgetID.PEST_CONTROL_EXCHANGE_WINDOW_GROUP_ID, 0),
|
||||
PEST_CONTROL_EXCHANGE_WINDOW_POINTS(WidgetID.PEST_CONTROL_EXCHANGE_WINDOW_GROUP_ID, WidgetID.PestControlExchangeWindow.POINTS),
|
||||
|
||||
PEST_CONTROL_BOAT_INFO_POINTS(WidgetID.PEST_CONTROL_BOAT_GROUP_ID, WidgetID.PestControlBoat.POINTS),
|
||||
PEST_CONTROL_INFO_TIME(WidgetID.PEST_CONTROL_GROUP_ID, WidgetID.PestControl.TIME),
|
||||
|
||||
BANK_UNNOTED_BUTTON(WidgetID.BANK_GROUP_ID, WidgetID.Bank.UNNOTED_BUTTON),
|
||||
BANK_NOTED_BUTTON(WidgetID.BANK_GROUP_ID, WidgetID.Bank.NOTED_BUTTON),
|
||||
|
||||
GRAND_EXCHANGE_HISTORY_BUTTON(WidgetID.GRAND_EXCHANGE_GROUP_ID, WidgetID.GrandExchange.HISTORY_BUTTON),
|
||||
GRAND_EXCHANGE_BACK_BUTTON(WidgetID.GRAND_EXCHANGE_GROUP_ID, WidgetID.GrandExchange.BACK_BUTTON),
|
||||
GRAND_EXCHANGE_OFFER1(WidgetID.GRAND_EXCHANGE_GROUP_ID, WidgetID.GrandExchange.OFFER1),
|
||||
GRAND_EXCHANGE_OFFER2(WidgetID.GRAND_EXCHANGE_GROUP_ID, WidgetID.GrandExchange.OFFER2),
|
||||
GRAND_EXCHANGE_OFFER3(WidgetID.GRAND_EXCHANGE_GROUP_ID, WidgetID.GrandExchange.OFFER3),
|
||||
GRAND_EXCHANGE_OFFER4(WidgetID.GRAND_EXCHANGE_GROUP_ID, WidgetID.GrandExchange.OFFER4),
|
||||
GRAND_EXCHANGE_OFFER5(WidgetID.GRAND_EXCHANGE_GROUP_ID, WidgetID.GrandExchange.OFFER5),
|
||||
GRAND_EXCHANGE_OFFER6(WidgetID.GRAND_EXCHANGE_GROUP_ID, WidgetID.GrandExchange.OFFER6),
|
||||
GRAND_EXCHANGE_OFFER7(WidgetID.GRAND_EXCHANGE_GROUP_ID, WidgetID.GrandExchange.OFFER7),
|
||||
GRAND_EXCHANGE_OFFER8(WidgetID.GRAND_EXCHANGE_GROUP_ID, WidgetID.GrandExchange.OFFER8),
|
||||
|
||||
GRAND_EXCHANGE_OFFER_CONFIRM_BUTTON(WidgetID.GRAND_EXCHANGE_GROUP_ID, WidgetID.GrandExchange.OFFER_CONFIRM_BUTTON),
|
||||
|
||||
SMITHING_ANVIL_DAGGER(WidgetID.SMITHING_GROUP_ID, WidgetID.Smithing.DAGGER),
|
||||
SMITHING_ANVIL_SWORD(WidgetID.SMITHING_GROUP_ID, WidgetID.Smithing.SWORD),
|
||||
SMITHING_ANVIL_SCIMITAR(WidgetID.SMITHING_GROUP_ID, WidgetID.Smithing.SCIMITAR),
|
||||
SMITHING_ANVIL_LONG_SWORD(WidgetID.SMITHING_GROUP_ID, WidgetID.Smithing.LONG_SWORD),
|
||||
SMITHING_ANVIL_TWO_H_SWORD(WidgetID.SMITHING_GROUP_ID, WidgetID.Smithing.TWO_H_SWORD),
|
||||
SMITHING_ANVIL_AXE(WidgetID.SMITHING_GROUP_ID, WidgetID.Smithing.AXE),
|
||||
SMITHING_ANVIL_MACE(WidgetID.SMITHING_GROUP_ID, WidgetID.Smithing.MACE),
|
||||
SMITHING_ANVIL_WARHAMMER(WidgetID.SMITHING_GROUP_ID, WidgetID.Smithing.WARHAMMER),
|
||||
SMITHING_ANVIL_BATTLE_AXE(WidgetID.SMITHING_GROUP_ID, WidgetID.Smithing.BATTLE_AXE),
|
||||
SMITHING_ANVIL_CLAWS(WidgetID.SMITHING_GROUP_ID, WidgetID.Smithing.CLAWS),
|
||||
SMITHING_ANVIL_CHAIN_BODY(WidgetID.SMITHING_GROUP_ID, WidgetID.Smithing.CHAIN_BODY),
|
||||
SMITHING_ANVIL_PLATE_LEGS(WidgetID.SMITHING_GROUP_ID, WidgetID.Smithing.PLATE_LEGS),
|
||||
SMITHING_ANVIL_PLATE_SKIRT(WidgetID.SMITHING_GROUP_ID, WidgetID.Smithing.PLATE_SKIRT),
|
||||
SMITHING_ANVIL_PLATE_BODY(WidgetID.SMITHING_GROUP_ID, WidgetID.Smithing.PLATE_BODY),
|
||||
SMITHING_ANVIL_NAILS(WidgetID.SMITHING_GROUP_ID, WidgetID.Smithing.NAILS),
|
||||
SMITHING_ANVIL_MED_HELM(WidgetID.SMITHING_GROUP_ID, WidgetID.Smithing.MED_HELM),
|
||||
SMITHING_ANVIL_FULL_HELM(WidgetID.SMITHING_GROUP_ID, WidgetID.Smithing.FULL_HELM),
|
||||
SMITHING_ANVIL_SQ_SHIELD(WidgetID.SMITHING_GROUP_ID, WidgetID.Smithing.SQ_SHIELD),
|
||||
SMITHING_ANVIL_KITE_SHIELD(WidgetID.SMITHING_GROUP_ID, WidgetID.Smithing.KITE_SHIELD),
|
||||
SMITHING_ANVIL_DART_TIPS(WidgetID.SMITHING_GROUP_ID, WidgetID.Smithing.DART_TIPS),
|
||||
SMITHING_ANVIL_ARROW_HEADS(WidgetID.SMITHING_GROUP_ID, WidgetID.Smithing.ARROW_HEADS),
|
||||
SMITHING_ANVIL_KNIVES(WidgetID.SMITHING_GROUP_ID, WidgetID.Smithing.KNIVES),
|
||||
SMITHING_ANVIL_JAVELIN_HEADS(WidgetID.SMITHING_GROUP_ID, WidgetID.Smithing.JAVELIN_HEADS),
|
||||
SMITHING_ANVIL_BOLTS(WidgetID.SMITHING_GROUP_ID, WidgetID.Smithing.BOLTS),
|
||||
SMITHING_ANVIL_LIMBS(WidgetID.SMITHING_GROUP_ID, WidgetID.Smithing.LIMBS),
|
||||
SMITHING_ANVIL_EXCLUSIVE1(WidgetID.SMITHING_GROUP_ID, WidgetID.Smithing.EXCLUSIVE1),
|
||||
SMITHING_ANVIL_EXCLUSIVE2(WidgetID.SMITHING_GROUP_ID, WidgetID.Smithing.EXCLUSIVE2),
|
||||
|
||||
MINIMAP_SPEC_CLICKBOX(WidgetID.MINIMAP_GROUP_ID, WidgetID.Minimap.SPEC_CLICKBOX),
|
||||
|
||||
MINIMAP_WORLD_ORB(WidgetID.MINIMAP_GROUP_ID, WidgetID.Minimap.WORLDMAP_ORB),
|
||||
|
||||
RESIZABLE_VIEWPORT_BOTTOM_LINE_MAGIC_TAB(WidgetID.RESIZABLE_VIEWPORT_BOTTOM_LINE_GROUP_ID, WidgetID.ResizableViewportBottomLine.SPELL_TAB),
|
||||
|
||||
COMBAT_WEAPON(WidgetID.COMBAT_GROUP_ID, WidgetID.Combat.WEAPON_NAME),
|
||||
|
||||
COMBAT_SPECIAL_ATTACK(WidgetID.COMBAT_GROUP_ID, WidgetID.Combat.SPECIAL_ATTACK_BAR),
|
||||
COMBAT_SPECIAL_ATTACK_CLICKBOX(WidgetID.COMBAT_GROUP_ID, WidgetID.Combat.SPECIAL_ATTACK_CLICKBOX),
|
||||
COMBAT_TOOLTIP(WidgetID.COMBAT_GROUP_ID, WidgetID.Combat.TOOLTIP),
|
||||
|
||||
MULTI_SKILL_MENU(WidgetID.MULTISKILL_MENU_GROUP_ID, 0),
|
||||
|
||||
DIALOG2_SPRITE(WidgetID.DIALOG_SPRITE2_ID, 0),
|
||||
DIALOG2_SPRITE_SPRITE1(WidgetID.DIALOG_SPRITE2_ID, WidgetID.DialogSprite2.SPRITE1),
|
||||
DIALOG2_SPRITE_SPRITE2(WidgetID.DIALOG_SPRITE2_ID, WidgetID.DialogSprite2.SPRITE2),
|
||||
DIALOG2_SPRITE_TEXT(WidgetID.DIALOG_SPRITE2_ID, WidgetID.DialogSprite2.TEXT),
|
||||
DIALOG2_SPRITE_CONTINUE(WidgetID.DIALOG_SPRITE2_ID, WidgetID.DialogSprite2.CONTINUE),
|
||||
|
||||
DIALOG_PLAYER_NAME(WidgetID.DIALOG_PLAYER_GROUP_ID, WidgetID.DialogPlayer.NAME),
|
||||
DIALOG_PLAYER_TEXT(WidgetID.DIALOG_PLAYER_GROUP_ID, WidgetID.DialogPlayer.TEXT),
|
||||
DIALOG_PLAYER_HEAD_MODEL(WidgetID.DIALOG_PLAYER_GROUP_ID, WidgetID.DialogPlayer.HEAD_MODEL),
|
||||
DIALOG_PLAYER_CONTINUE(WidgetID.DIALOG_PLAYER_GROUP_ID, WidgetID.DialogPlayer.CONTINUE),
|
||||
|
||||
DIALOG_NOTIFICATION_TEXT(WidgetID.DIALOG_NOTIFICATION_GROUP_ID, WidgetID.DialogNotification.TEXT),
|
||||
DIALOG_NOTIFICATION_CONTINUE(WidgetID.DIALOG_NOTIFICATION_GROUP_ID, WidgetID.DialogNotification.CONTINUE),
|
||||
|
||||
DIALOG_OPTION_TEXT(WidgetID.DIALOG_OPTION_GROUP_ID, WidgetID.DialogOption.TEXT),
|
||||
DIALOG_OPTION_OPTION1(WidgetID.DIALOG_OPTION_GROUP_ID, WidgetID.DialogOption.OPTION1),
|
||||
DIALOG_OPTION_OPTION2(WidgetID.DIALOG_OPTION_GROUP_ID, WidgetID.DialogOption.OPTION2),
|
||||
DIALOG_OPTION_OPTION3(WidgetID.DIALOG_OPTION_GROUP_ID, WidgetID.DialogOption.OPTION3),
|
||||
DIALOG_OPTION_OPTION4(WidgetID.DIALOG_OPTION_GROUP_ID, WidgetID.DialogOption.OPTION4),
|
||||
DIALOG_OPTION_OPTION5(WidgetID.DIALOG_OPTION_GROUP_ID, WidgetID.DialogOption.OPTION5),
|
||||
|
||||
BA_RUNNERS_PASSED(WidgetID.BA_REWARD_GROUP_ID, WidgetID.BarbarianAssault.REWARD_VALUES.RUNNERS_PASSED),
|
||||
BA_HITPOINTS_REPLENISHED(WidgetID.BA_REWARD_GROUP_ID, WidgetID.BarbarianAssault.REWARD_VALUES.HITPOINTS_REPLENISHED),
|
||||
BA_WRONG_POISON_PACKS(WidgetID.BA_REWARD_GROUP_ID, WidgetID.BarbarianAssault.REWARD_VALUES.WRONG_POISON_PACKS_USED),
|
||||
BA_EGGS_COLLECTED(WidgetID.BA_REWARD_GROUP_ID, WidgetID.BarbarianAssault.REWARD_VALUES.EGGS_COLLECTED),
|
||||
BA_FAILED_ATTACKER_ATTACKS(WidgetID.BA_REWARD_GROUP_ID, WidgetID.BarbarianAssault.REWARD_VALUES.FAILED_ATTACKER_ATTACKS),
|
||||
BA_RUNNERS_PASSED_POINTS(WidgetID.BA_REWARD_GROUP_ID, WidgetID.BarbarianAssault.REWARD_VALUES.RUNNERS_PASSED_POINTS),
|
||||
BA_RANGERS_KILLED(WidgetID.BA_REWARD_GROUP_ID, WidgetID.BarbarianAssault.REWARD_VALUES.RANGERS_KILLED),
|
||||
BA_FIGHTERS_KILLED(WidgetID.BA_REWARD_GROUP_ID, WidgetID.BarbarianAssault.REWARD_VALUES.FIGHTERS_KILLED),
|
||||
BA_HEALERS_KILLED(WidgetID.BA_REWARD_GROUP_ID, WidgetID.BarbarianAssault.REWARD_VALUES.HEALERS_KILLED),
|
||||
BA_RUNNERS_KILLED(WidgetID.BA_REWARD_GROUP_ID, WidgetID.BarbarianAssault.REWARD_VALUES.RUNNERS_KILLED),
|
||||
BA_HITPOINTS_REPLENISHED_POINTS(WidgetID.BA_REWARD_GROUP_ID, WidgetID.BarbarianAssault.REWARD_VALUES.HITPOINTS_REPLENISHED_POINTS),
|
||||
BA_WRONG_POISON_PACKS_POINTS(WidgetID.BA_REWARD_GROUP_ID, WidgetID.BarbarianAssault.REWARD_VALUES.WRONG_POISON_PACKS_USED_POINTS),
|
||||
BA_EGGS_COLLECTED_POINTS(WidgetID.BA_REWARD_GROUP_ID, WidgetID.BarbarianAssault.REWARD_VALUES.EGGS_COLLECTED_POINTS),
|
||||
BA_FAILED_ATTACKER_ATTACKS_POINTS(WidgetID.BA_REWARD_GROUP_ID, WidgetID.BarbarianAssault.REWARD_VALUES.FAILED_ATTACKER_ATTACKS_POINTS),
|
||||
BA_HONOUR_POINTS_REWARD(WidgetID.BA_REWARD_GROUP_ID, WidgetID.BarbarianAssault.REWARD_VALUES.HONOUR_POINTS_REWARD),
|
||||
BA_BASE_POINTS(WidgetID.BA_REWARD_GROUP_ID, WidgetID.BarbarianAssault.REWARD_VALUES.BASE_POINTS),
|
||||
|
||||
LEVEL_UP_CONTINUE(WidgetID.LEVEL_UP_GROUP_ID, WidgetID.LevelUp.CONTINUE),
|
||||
|
||||
THEATRE_OF_BLOOD_PARTY(WidgetID.THEATRE_OF_BLOOD_PARTY_GROUP_ID, WidgetID.TheatreOfBloodParty.CONTAINER),
|
||||
|
||||
LIGHT_BOX_BUTTON_CONTAINER(WidgetID.LIGHT_BOX_GROUP_ID, WidgetID.LightBox.LIGHT_BOX_BUTTON_CONTAINER),
|
||||
|
||||
THEATRE_OF_BLOOD_HEALTH_ORBS(WidgetID.THEATRE_OF_BLOOD_GROUP_ID, WidgetID.TheatreOfBlood.ORB_BOX),
|
||||
THEATRE_OF_BLOOD_BOSS_HEALTH(WidgetID.THEATRE_OF_BLOOD_GROUP_ID, WidgetID.TheatreOfBlood.BOSS_HEALTH_BAR),
|
||||
THEATRE_OF_BLOOD_RAIDING_PARTY(WidgetID.THEATRE_OF_BLOOD_GROUP_ID, WidgetID.TheatreOfBlood.RAIDING_PARTY),
|
||||
|
||||
WORLD_SWITCHER_CONTAINER(WidgetID.WORLD_SWITCHER_GROUP_ID, WidgetID.WorldSwitcher.CONTAINER),
|
||||
|
||||
WORLD_SWITCHER_LOGOUT_BUTTON(WidgetID.WORLD_SWITCHER_GROUP_ID, WidgetID.WorldSwitcher.LOGOUT_BUTTON),
|
||||
|
||||
FOSSIL_MUSHROOM_TELEPORT(WidgetID.FOSSIL_ISLAND_MUSHROOM_TELE_GROUP_ID, WidgetID.FossilMushroomTeleport.ROOT),
|
||||
FOSSIL_MUSHROOM_HOUSE(WidgetID.FOSSIL_ISLAND_MUSHROOM_TELE_GROUP_ID, WidgetID.FossilMushroomTeleport.HOUSE_ON_HILL),
|
||||
FOSSIL_MUSHROOM_VALLEY(WidgetID.FOSSIL_ISLAND_MUSHROOM_TELE_GROUP_ID, WidgetID.FossilMushroomTeleport.VERDANT_VALLEY),
|
||||
FOSSIL_MUSHROOM_SWAMP(WidgetID.FOSSIL_ISLAND_MUSHROOM_TELE_GROUP_ID, WidgetID.FossilMushroomTeleport.SWAMP),
|
||||
FOSSIL_MUSHROOM_MEADOW(WidgetID.FOSSIL_ISLAND_MUSHROOM_TELE_GROUP_ID, WidgetID.FossilMushroomTeleport.MUSHROOM_MEADOW),
|
||||
|
||||
PVP_SKULL(WidgetID.PVP_GROUP_ID, WidgetID.Pvp.SKULL),
|
||||
PVP_ATTACK_RANGE(WidgetID.PVP_GROUP_ID, WidgetID.Pvp.ATTACK_RANGE),
|
||||
|
||||
SPELLBOOK(WidgetID.SPELLBOOK_GROUP_ID, 0),
|
||||
SPELLBOOK_FILTERED_BOUNDS(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.FILTERED_SPELLS_BOUNDS),
|
||||
|
||||
/* STANDARD SPELL BOOK WIDGETS*/
|
||||
SPELL_LUMBRIDGE_HOME_TELEPORT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.LUMBRIDGE_HOME_TELEPORT),
|
||||
SPELL_WIND_STRIKE(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.WIND_STRIKE),
|
||||
SPELL_CONFUSE(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.CONFUSE),
|
||||
SPELL_ENCHANT_CROSSBOW_BOLT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.ENCHANT_CROSSBOW_BOLT),
|
||||
SPELL_WATER_STRIKE(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.WATER_STRIKE),
|
||||
SPELL_LVL_1_ENCHANT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.LVL_1_ENCHANT),
|
||||
SPELL_EARTH_STRIKE(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.EARTH_STRIKE),
|
||||
SPELL_WEAKEN(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.WEAKEN),
|
||||
SPELL_FIRE_STRIKE(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.FIRE_STRIKE),
|
||||
SPELL_BONES_TO_BANANAS(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.BONES_TO_BANANAS),
|
||||
SPELL_WIND_BOLT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.WIND_BOLT),
|
||||
SPELL_CURSE(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.CURSE),
|
||||
SPELL_BIND(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.BIND),
|
||||
SPELL_LOW_LEVEL_ALCHEMY(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.LOW_LEVEL_ALCHEMY),
|
||||
SPELL_WATER_BOLT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.WATER_BOLT),
|
||||
SPELL_VARROCK_TELEPORT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.VARROCK_TELEPORT),
|
||||
SPELL_LVL_2_ENCHANT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.LVL_2_ENCHANT),
|
||||
SPELL_EARTH_BOLT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.EARTH_BOLT),
|
||||
SPELL_LUMBRIDGE_TELEPORT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.LUMBRIDGE_TELEPORT),
|
||||
SPELL_TELEKINETIC_GRAB(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.TELEKINETIC_GRAB),
|
||||
SPELL_FIRE_BOLT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.FIRE_BOLT),
|
||||
SPELL_FALADOR_TELEPORT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.FALADOR_TELEPORT),
|
||||
SPELL_CRUMBLE_UNDEAD(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.CRUMBLE_UNDEAD),
|
||||
SPELL_TELEPORT_TO_HOUSE(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.TELEPORT_TO_HOUSE),
|
||||
SPELL_WIND_BLAST(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.WIND_BLAST),
|
||||
SPELL_SUPERHEAT_ITEM(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.SUPERHEAT_ITEM),
|
||||
SPELL_CAMELOT_TELEPORT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.CAMELOT_TELEPORT),
|
||||
SPELL_WATER_BLAST(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.WATER_BLAST),
|
||||
SPELL_LVL_3_ENCHANT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.LVL_3_ENCHANT),
|
||||
SPELL_IBAN_BLAST(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.IBAN_BLAST),
|
||||
SPELL_SNARE(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.SNARE),
|
||||
SPELL_MAGIC_DART(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.MAGIC_DART),
|
||||
SPELL_ARDOUGNE_TELEPORT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.ARDOUGNE_TELEPORT),
|
||||
SPELL_EARTH_BLAST(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.EARTH_BLAST),
|
||||
SPELL_HIGH_LEVEL_ALCHEMY(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.HIGH_LEVEL_ALCHEMY),
|
||||
SPELL_CHARGE_WATER_ORB(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.CHARGE_WATER_ORB),
|
||||
SPELL_LVL_4_ENCHANT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.LVL_4_ENCHANT),
|
||||
SPELL_WATCHTOWER_TELEPORT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.WATCHTOWER_TELEPORT),
|
||||
SPELL_FIRE_BLAST(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.FIRE_BLAST),
|
||||
SPELL_CHARGE_EARTH_ORB(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.CHARGE_EARTH_ORB),
|
||||
SPELL_BONES_TO_PEACHES(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.BONES_TO_PEACHES),
|
||||
SPELL_SARADOMIN_STRIKE(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.SARADOMIN_STRIKE),
|
||||
SPELL_CLAWS_OF_GUTHIX(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.CLAWS_OF_GUTHIX),
|
||||
SPELL_FLAMES_OF_ZAMORAK(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.FLAMES_OF_ZAMORAK),
|
||||
SPELL_TROLLHEIM_TELEPORT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.TROLLHEIM_TELEPORT),
|
||||
SPELL_WIND_WAVE(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.WIND_WAVE),
|
||||
SPELL_CHARGE_FIRE_ORB(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.CHARGE_FIRE_ORB),
|
||||
SPELL_TELEPORT_TO_APE_ATOLL(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.TELEPORT_TO_APE_ATOLL),
|
||||
SPELL_WATER_WAVE(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.WATER_WAVE),
|
||||
SPELL_CHARGE_AIR_ORB(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.CHARGE_AIR_ORB),
|
||||
SPELL_VULNERABILITY(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.VULNERABILITY),
|
||||
SPELL_LVL_5_ENCHANT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.LVL_5_ENCHANT),
|
||||
SPELL_TELEPORT_TO_KOUREND(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.TELEPORT_TO_KOUREND),
|
||||
SPELL_EARTH_WAVE(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.EARTH_WAVE),
|
||||
SPELL_ENFEEBLE(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.ENFEEBLE),
|
||||
SPELL_FIRE_WAVE(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.FIRE_WAVE),
|
||||
SPELL_ENTANGLE(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.ENTANGLE),
|
||||
SPELL_TELEOTHER_LUMBRIDGE(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.TELEOTHER_LUMBRIDGE),
|
||||
SPELL_STUN(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.STUN),
|
||||
SPELL_CHARGE(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.CHARGE),
|
||||
SPELL_WIND_SURGE(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.WIND_SURGE),
|
||||
SPELL_TELEOTHER_FALADOR(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.TELEOTHER_FALADOR),
|
||||
SPELL_WATER_SURGE(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.WATER_SURGE),
|
||||
SPELL_TELE_BLOCK(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.TELE_BLOCK),
|
||||
SPELL_LVL_6_ENCHANT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.LVL_6_ENCHANT),
|
||||
SPELL_TELEOTHER_CAMELOT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.TELEOTHER_CAMELOT),
|
||||
SPELL_EARTH_SURGE(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.EARTH_SURGE),
|
||||
SPELL_LVL_7_ENCHANT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.LVL_7_ENCHANT),
|
||||
SPELL_FIRE_SURGE(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.FIRE_SURGE),
|
||||
SPELL_BOUNTY_TARGET_TELEPORT2(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.BOUNTY_TARGET_TELEPORT),
|
||||
/* END OF STANDARD SPELL BOOK WIDGETS*/
|
||||
|
||||
/* ANCIENT SPELL BOOK WIDGETS*/
|
||||
SPELL_ICE_RUSH(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.ICE_RUSH),
|
||||
SPELL_ICE_BLITZ(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.ICE_BLITZ),
|
||||
SPELL_ICE_BURST(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.ICE_BURST),
|
||||
SPELL_ICE_BARRAGE(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.ICE_BARRAGE),
|
||||
SPELL_BLOOD_RUSH(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.BLOOD_RUSH),
|
||||
SPELL_BLOOD_BLITZ(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.BLOOD_BLITZ),
|
||||
SPELL_BLOOD_BURST(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.BLOOD_BURST),
|
||||
SPELL_BLOOD_BARRAGE(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.BLOOD_BARRAGE),
|
||||
SPELL_SMOKE_RUSH(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.SMOKE_RUSH),
|
||||
SPELL_SMOKE_BLITZ(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.SMOKE_BLITZ),
|
||||
SPELL_SMOKE_BURST(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.SMOKE_BURST),
|
||||
SPELL_SMOKE_BARRAGE(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.SMOKE_BARRAGE),
|
||||
SPELL_SHADOW_RUSH(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.SHADOW_RUSH),
|
||||
SPELL_SHADOW_BLITZ(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.SHADOW_BLITZ),
|
||||
SPELL_SHADOW_BURST(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.SHADOW_BURST),
|
||||
SPELL_SHADOW_BARRAGE(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.SHADOW_BARRAGE),
|
||||
SPELL_PADDEWWA_TELEPORT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.PADDEWWA_TELEPORT),
|
||||
SPELL_SENNTISTEN_TELEPORT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.SENNTISTEN_TELEPORT),
|
||||
SPELL_KHARYRLL_TELEPORT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.KHARYRLL_TELEPORT),
|
||||
SPELL_LASSAR_TELEPORT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.LASSAR_TELEPORT),
|
||||
SPELL_DAREEYAK_TELEPORT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.DAREEYAK_TELEPORT),
|
||||
SPELL_CARRALLANGER_TELEPORT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.CARRALLANGER_TELEPORT),
|
||||
SPELL_ANNAKARL_TELEPORT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.ANNAKARL_TELEPORT),
|
||||
SPELL_GHORROCK_TELEPORT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.GHORROCK_TELEPORT),
|
||||
SPELL_EDGEVILLE_HOME_TELEPORT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.EDGEVILLE_HOME_TELEPORT),
|
||||
SPELL_BOUNTY_TARGET_TELEPORT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.BOUNTY_TARGET_TELEPORT),
|
||||
/* END OF ANCIENT SPELL BOOK WIDGETS*/
|
||||
|
||||
/* LUNAR SPELL BOOK WIDGETS*/
|
||||
SPELL_LUNAR_HOME_TELEPORT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.LUNAR_HOME_TELEPORT),
|
||||
SPELL_VENGEANCE_OTHER(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.VENGEANCE_OTHER),
|
||||
SPELL_VENGEANCE(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.VENGEANCE),
|
||||
SPELL_BOUNTY_TARGET_TELEPORT3(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.BOUNTY_TARGET_TELEPORT),
|
||||
SPELL_BAKE_PIE(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.BAKE_PIE),
|
||||
SPELL_CURE_PLANT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.CURE_PLANT),
|
||||
SPELL_MONSTER_EXAMINE(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.MONSTER_EXAMINE),
|
||||
SPELL_NPC_CONTACT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.NPC_CONTACT),
|
||||
SPELL_CURE_OTHER(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.CURE_OTHER),
|
||||
SPELL_HUMIDIFY(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.HUMIDIFY),
|
||||
SPELL_MOONCLAN_TELEPORT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.MOONCLAN_TELEPORT),
|
||||
SPELL_TELE_GROUP_MOONCLAN(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.TELE_GROUP_MOONCLAN),
|
||||
SPELL_CURE_ME(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.CURE_ME),
|
||||
SPELL_HUNTER_KIT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.HUNTER_KIT),
|
||||
SPELL_WATERBIRTH_TELEPORT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.WATERBIRTH_TELEPORT),
|
||||
SPELL_TELE_GROUP_WATERBIRTH(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.TELE_GROUP_WATERBIRTH),
|
||||
SPELL_CURE_GROUP(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.CURE_GROUP),
|
||||
SPELL_STAT_SPY(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.STAT_SPY),
|
||||
SPELL_BARBARIAN_TELEPORT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.BARBARIAN_TELEPORT),
|
||||
SPELL_TELE_GROUP_BARBARIAN(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.TELE_GROUP_BARBARIAN),
|
||||
SPELL_SUPERGLASS_MAKE(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.SUPERGLASS_MAKE),
|
||||
SPELL_TAN_LEATHER(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.TAN_LEATHER),
|
||||
SPELL_KHAZARD_TELEPORT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.KHAZARD_TELEPORT),
|
||||
SPELL_TELE_GROUP_KHAZARD(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.TELE_GROUP_KHAZARD),
|
||||
SPELL_DREAM(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.DREAM),
|
||||
SPELL_STRING_JEWELLERY(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.STRING_JEWELLERY),
|
||||
SPELL_STAT_RESTORE_POT_SHARE(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.STAT_RESTORE_POT_SHARE),
|
||||
SPELL_MAGIC_IMBUE(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.MAGIC_IMBUE),
|
||||
SPELL_FERTILE_SOIL(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.FERTILE_SOIL),
|
||||
SPELL_BOOST_POTION_SHARE(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.BOOST_POTION_SHARE),
|
||||
SPELL_FISHING_GUILD_TELEPORT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.FISHING_GUILD_TELEPORT),
|
||||
SPELL_TELE_GROUP_FISHING_GUILD(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.TELE_GROUP_FISHING_GUILD),
|
||||
SPELL_PLANK_MAKE(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.PLANK_MAKE),
|
||||
SPELL_CATHERBY_TELEPORT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.CATHERBY_TELEPORT),
|
||||
SPELL_TELE_GROUP_CATHERBY(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.TELE_GROUP_CATHERBY),
|
||||
SPELL_RECHARGE_DRAGONSTONE(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.RECHARGE_DRAGONSTONE),
|
||||
SPELL_ICE_PLATEAU_TELEPORT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.ICE_PLATEAU_TELEPORT),
|
||||
SPELL_TELE_GROUP_ICE_PLATEAU(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.TELE_GROUP_ICE_PLATEAU),
|
||||
SPELL_ENERGY_TRANSFER(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.ENERGY_TRANSFER),
|
||||
SPELL_HEAL_OTHER(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.HEAL_OTHER),
|
||||
SPELL_HEAL_GROUP(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.HEAL_GROUP),
|
||||
SPELL_SPELLBOOK_SWAP(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.SPELLBOOK_SWAP),
|
||||
SPELL_GEOMANCY(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.GEOMANCY),
|
||||
SPELL_SPIN_FLAX(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.SPIN_FLAX),
|
||||
SPELL_OURANIA_TELEPORT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.OURANIA_TELEPORT),
|
||||
/* END OF LUNAR SPELL BOOK WIDGETS*/
|
||||
SPELL_TOOLTIP(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.TOOLTIP),
|
||||
/* ARCEUUS SPELL BOOK WIDGETS*/
|
||||
SPELL_KOUREND_HOME_TELEPORT(WidgetID.SPELLBOOK_GROUP_ID, net.runelite.api.widgets.WidgetID.StandardSpellBook.KOUREND_HOME_TELEPORT),
|
||||
SPELL_ARCEUUS_HOME_TELEPORT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.ARCEUUS_HOME_TELEPORT),
|
||||
SPELL_BATTLEFRONT_TELEPORT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.BATTLEFRONT_TELEPORT),
|
||||
SPELL_REANIMATE_GOBLIN(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.REANIMATE_GOBLIN),
|
||||
SPELL_REANIMATE_MONKEY(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.REANIMATE_MONKEY),
|
||||
SPELL_REANIMATE_IMP(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.REANIMATE_IMP),
|
||||
SPELL_REANIMATE_MINOTAUR(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.REANIMATE_MINOTAUR),
|
||||
SPELL_REANIMATE_SCORPION(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.REANIMATE_SCORPION),
|
||||
SPELL_REANIMATE_BEAR(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.REANIMATE_BEAR),
|
||||
SPELL_REANIMATE_UNICORN(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.REANIMATE_UNICORN),
|
||||
SPELL_REANIMATE_DOG(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.REANIMATE_DOG),
|
||||
SPELL_REANIMATE_CHAOS_DRUID(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.REANIMATE_CHAOS_DRUID),
|
||||
SPELL_REANIMATE_GIANT(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.REANIMATE_GIANT),
|
||||
SPELL_REANIMATE_OGRE(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.REANIMATE_OGRE),
|
||||
SPELL_REANIMATE_ELF(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.REANIMATE_ELF),
|
||||
SPELL_REANIMATE_TROLL(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.REANIMATE_TROLL),
|
||||
SPELL_REANIMATE_HORROR(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.REANIMATE_HORROR),
|
||||
SPELL_REANIMATE_KALPHITE(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.REANIMATE_KALPHITE),
|
||||
SPELL_REANIMATE_DAGANNOTH(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.REANIMATE_DAGANNOTH),
|
||||
SPELL_REANIMATE_BLOODVELD(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.REANIMATE_BLOODVELD),
|
||||
SPELL_REANIMATE_TZHAAR(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.REANIMATE_TZHAAR),
|
||||
SPELL_REANIMATE_DEMON(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.REANIMATE_DEMON),
|
||||
SPELL_REANIMATE_AVIANSIE(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.REANIMATE_AVIANSIE),
|
||||
SPELL_REANIMATE_ABYSSAL(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.REANIMATE_ABYSSAL),
|
||||
SPELL_REANIMATE_DRAGON(WidgetID.SPELLBOOK_GROUP_ID, WidgetID.SpellBook.REANIMATE_DRAGON),
|
||||
/* END OF ARCEUUS SPELL BOOK WIDGETS*/
|
||||
|
||||
MULTICOMBAT_FIXED(WidgetID.FIXED_VIEWPORT_GROUP_ID, WidgetID.FixedViewport.MULTICOMBAT_INDICATOR),
|
||||
MULTICOMBAT_RESIZEABLE(WidgetID.RESIZABLE_VIEWPORT_BOTTOM_LINE_GROUP_ID, WidgetID.ResizableViewport.MULTICOMBAT_INDICATOR),
|
||||
|
||||
FULLSCREEN_MAP_ROOT(WidgetID.FULLSCREEN_CONTAINER_TLI, WidgetID.FullScreenMap.ROOT),
|
||||
|
||||
MUSICTAB_INTERFACE(WidgetID.MUSICTAB_GROUP_ID, 1),
|
||||
MUSICTAB_SONG_BOX(WidgetID.MUSICTAB_GROUP_ID, 2),
|
||||
MUSICTAB_ALL_SONGS(WidgetID.MUSICTAB_GROUP_ID, 3),
|
||||
MUSICTAB_SCROLLBAR(WidgetID.MUSICTAB_GROUP_ID, 4),
|
||||
MUSICTAB_PLAYING(WidgetID.MUSICTAB_GROUP_ID, 5),
|
||||
MUSICTAB_CURRENT_SONG_NAME(WidgetID.MUSICTAB_GROUP_ID, 6),
|
||||
MUSICTAB_AUTO_BUTTON_LISTENER(WidgetID.MUSICTAB_GROUP_ID, 7),
|
||||
MUSICTAB_AUTO_BUTTON(WidgetID.MUSICTAB_GROUP_ID, 8),
|
||||
MUSICTAB_MANUAL_BUTTON_LISTENER(WidgetID.MUSICTAB_GROUP_ID, 9),
|
||||
MUSICTAB_MANUAL_BUTTON(WidgetID.MUSICTAB_GROUP_ID, 10),
|
||||
MUSICTAB_LOOP_BUTTON_LISTENER(WidgetID.MUSICTAB_GROUP_ID, 11),
|
||||
MUSICTAB_LOOP_BUTTON(WidgetID.MUSICTAB_GROUP_ID, 12),
|
||||
MUSICTAB_UNLOCKED_SONGS(WidgetID.MUSICTAB_GROUP_ID, 13),
|
||||
|
||||
QUESTTAB_QUEST_TAB(WidgetID.QUESTTAB_GROUP_ID, WidgetID.QuestTab.QUEST_TAB),
|
||||
|
||||
EQUIPMENT_MELEE_STRENGTH(WidgetID.EQUIPMENT_PAGE_GROUP_ID, WidgetID.EquipmentWidgetIdentifiers.MELEE_STRENGTH),
|
||||
EQUIPMENT_RANGED_STRENGTH(WidgetID.EQUIPMENT_PAGE_GROUP_ID, WidgetID.EquipmentWidgetIdentifiers.RANGED_STRENGTH),
|
||||
EQUIPMENT_MAGIC_DAMAGE(WidgetID.EQUIPMENT_PAGE_GROUP_ID, WidgetID.EquipmentWidgetIdentifiers.MAGIC_DAMAGE),
|
||||
EQUIP_YOUR_CHARACTER(WidgetID.EQUIPMENT_PAGE_GROUP_ID, WidgetID.EquipmentWidgetIdentifiers.EQUIP_YOUR_CHARACTER),
|
||||
|
||||
BANK_PIN_TOP_LEFT_TEXT(WidgetID.BANK_PIN_GROUP_ID, WidgetID.BankPin.TOP_LEFT_TEXT),
|
||||
BANK_PIN_EXIT_BUTTON(WidgetID.BANK_PIN_GROUP_ID, WidgetID.BankPin.EXIT_BUTTON),
|
||||
BANK_PIN_FORGOT_BUTTON(WidgetID.BANK_PIN_GROUP_ID, WidgetID.BankPin.FORGOT_BUTTON),
|
||||
BANK_PIN_FIRST_ENTERED(WidgetID.BANK_PIN_GROUP_ID, WidgetID.BankPin.FIRST_ENTERED),
|
||||
BANK_PIN_SECOND_ENTERED(WidgetID.BANK_PIN_GROUP_ID, WidgetID.BankPin.SECOND_ENTERED),
|
||||
BANK_PIN_THIRD_ENTERED(WidgetID.BANK_PIN_GROUP_ID, WidgetID.BankPin.THIRD_ENTERED),
|
||||
BANK_PIN_FOURTH_ENTERED(WidgetID.BANK_PIN_GROUP_ID, WidgetID.BankPin.FOURTH_ENTERED),
|
||||
BANK_PIN_INSTRUCTION_TEXT(WidgetID.BANK_PIN_GROUP_ID, WidgetID.BankPin.INSTRUCTION_TEXT),
|
||||
BANK_PIN_1(WidgetID.BANK_PIN_GROUP_ID, WidgetID.BankPin.BUTTON_1),
|
||||
BANK_PIN_2(WidgetID.BANK_PIN_GROUP_ID, WidgetID.BankPin.BUTTON_2),
|
||||
BANK_PIN_3(WidgetID.BANK_PIN_GROUP_ID, WidgetID.BankPin.BUTTON_3),
|
||||
BANK_PIN_4(WidgetID.BANK_PIN_GROUP_ID, WidgetID.BankPin.BUTTON_4),
|
||||
BANK_PIN_5(WidgetID.BANK_PIN_GROUP_ID, WidgetID.BankPin.BUTTON_5),
|
||||
BANK_PIN_6(WidgetID.BANK_PIN_GROUP_ID, WidgetID.BankPin.BUTTON_6),
|
||||
BANK_PIN_7(WidgetID.BANK_PIN_GROUP_ID, WidgetID.BankPin.BUTTON_7),
|
||||
BANK_PIN_8(WidgetID.BANK_PIN_GROUP_ID, WidgetID.BankPin.BUTTON_8),
|
||||
BANK_PIN_9(WidgetID.BANK_PIN_GROUP_ID, WidgetID.BankPin.BUTTON_9),
|
||||
BANK_PIN_10(WidgetID.BANK_PIN_GROUP_ID, WidgetID.BankPin.BUTTON_10),
|
||||
|
||||
XP_DROP_1(WidgetID.EXPERIENCE_DROP_GROUP_ID, WidgetID.ExperienceDrop.DROP_1),
|
||||
XP_DROP_2(WidgetID.EXPERIENCE_DROP_GROUP_ID, WidgetID.ExperienceDrop.DROP_2),
|
||||
XP_DROP_3(WidgetID.EXPERIENCE_DROP_GROUP_ID, WidgetID.ExperienceDrop.DROP_3),
|
||||
XP_DROP_4(WidgetID.EXPERIENCE_DROP_GROUP_ID, WidgetID.ExperienceDrop.DROP_4),
|
||||
XP_DROP_5(WidgetID.EXPERIENCE_DROP_GROUP_ID, WidgetID.ExperienceDrop.DROP_5),
|
||||
XP_DROP_6(WidgetID.EXPERIENCE_DROP_GROUP_ID, WidgetID.ExperienceDrop.DROP_6),
|
||||
XP_DROP_7(WidgetID.EXPERIENCE_DROP_GROUP_ID, WidgetID.ExperienceDrop.DROP_7),
|
||||
|
||||
JEWELLERY_BOX_DUEL_RING(WidgetID.JEWELLERY_BOX_GROUP_ID, WidgetID.JewelBox.DUEL_RING),
|
||||
JEWELLERY_BOX_GAME_NECK(WidgetID.JEWELLERY_BOX_GROUP_ID, WidgetID.JewelBox.GAME_NECK),
|
||||
JEWELLERY_BOX_COMB_BRAC(WidgetID.JEWELLERY_BOX_GROUP_ID, WidgetID.JewelBox.COMB_BRAC),
|
||||
JEWELLERY_BOX_SKIL_NECK(WidgetID.JEWELLERY_BOX_GROUP_ID, WidgetID.JewelBox.SKIL_NECK),
|
||||
JEWELLERY_BOX_RING_OFGP(WidgetID.JEWELLERY_BOX_GROUP_ID, WidgetID.JewelBox.RING_OFGP),
|
||||
JEWELLERY_BOX_AMUL_GLOR(WidgetID.JEWELLERY_BOX_GROUP_ID, WidgetID.JewelBox.AMUL_GLOR),
|
||||
OPTIONS_CAMERA_ZOOM_SLIDER_HANDLE(WidgetID.OPTIONS_GROUP_ID, WidgetID.Options.CAMERA_ZOOM_SLIDER_HANDLE),
|
||||
OPTIONS_MUSIC_SLIDER(WidgetID.OPTIONS_GROUP_ID, WidgetID.Options.MUSIC_SLIDER),
|
||||
OPTIONS_SOUND_EFFECT_SLIDER(WidgetID.OPTIONS_GROUP_ID, WidgetID.Options.SOUND_EFFECT_SLIDER),
|
||||
OPTIONS_AREA_SOUND_SLIDER(WidgetID.OPTIONS_GROUP_ID, WidgetID.Options.AREA_SOUND_SLIDER),
|
||||
|
||||
TRADING_WITH(WidgetID.PLAYER_TRADE_SCREEN_GROUP_ID, WidgetID.TradeScreen.FIRST_TRADING_WITH),
|
||||
SECOND_TRADING_WITH(WidgetID.PLAYER_TRADE_CONFIRM_GROUP_ID, WidgetID.TradeScreen.SECOND_TRADING_WITH),
|
||||
SECOND_TRADING_WITH_ACCEPT_BUTTON(WidgetID.PLAYER_TRADE_CONFIRM_GROUP_ID, WidgetID.TradeScreen.SECOND_ACCEPT_FUNC),
|
||||
SECOND_TRADING_WITH_ACCEPT_TEXT(WidgetID.PLAYER_TRADE_CONFIRM_GROUP_ID, WidgetID.TradeScreen.SECOND_ACCEPT_TEXT),
|
||||
SECOND_TRADING_WITH_DECLINE_BUTTON(WidgetID.PLAYER_TRADE_CONFIRM_GROUP_ID, WidgetID.TradeScreen.SECOND_DECLINE_FUNC),
|
||||
SECOND_TRADING_WITH_DECLINE_TEXT(WidgetID.PLAYER_TRADE_CONFIRM_GROUP_ID, WidgetID.TradeScreen.SECOND_DECLINE_TEXT),
|
||||
SECOND_TRADING_WITH_MY_OFFER(WidgetID.PLAYER_TRADE_CONFIRM_GROUP_ID, WidgetID.TradeScreen.SECOND_MY_OFFER),
|
||||
SECOND_TRADING_WITH_THEIR_OFFER(WidgetID.PLAYER_TRADE_CONFIRM_GROUP_ID, WidgetID.TradeScreen.SECOND_THEIR_OFFER),
|
||||
SECOND_TRADING_WITH_MY_ITEMS(WidgetID.PLAYER_TRADE_CONFIRM_GROUP_ID, WidgetID.TradeScreen.SECOND_MY_ITEMS),
|
||||
SECOND_TRADING_WITH_THEIR_ITEMS(WidgetID.PLAYER_TRADE_CONFIRM_GROUP_ID, WidgetID.TradeScreen.SECOND_THEIR_ITEMS),
|
||||
|
||||
GAUNTLET_MAP(WidgetID.GAUNTLET_MAP_GROUP_ID, WidgetID.GauntletMap.CONTAINER),
|
||||
|
||||
SETTINGS_INIT(WidgetID.SETTINGS_GROUP_ID, WidgetID.Settings.INIT),
|
||||
|
||||
SHOP_ITEMS_CONTAINER(WidgetID.SHOP_GROUP_ID, WidgetID.Shop.ITEMS_CONTAINER),
|
||||
;
|
||||
|
||||
private final int groupId;
|
||||
private final int childId;
|
||||
|
||||
WidgetInfo(int groupId, int childId)
|
||||
{
|
||||
this.groupId = groupId;
|
||||
this.childId = childId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the ID of the group-child pairing.
|
||||
*
|
||||
* @return the ID
|
||||
*/
|
||||
public int getId()
|
||||
{
|
||||
return groupId << 16 | childId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the group ID of the pair.
|
||||
*
|
||||
* @return the group ID
|
||||
*/
|
||||
public int getGroupId()
|
||||
{
|
||||
return groupId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the ID of the child in the group.
|
||||
*
|
||||
* @return the child ID
|
||||
*/
|
||||
public int getChildId()
|
||||
{
|
||||
return childId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the packed widget ID.
|
||||
*
|
||||
* @return the packed ID
|
||||
*/
|
||||
public int getPackedId()
|
||||
{
|
||||
return groupId << 16 | childId;
|
||||
}
|
||||
|
||||
public static int PACK(int groupId, int childId)
|
||||
{
|
||||
return groupId << 16 | childId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Utility method that converts an ID returned by {@link #getId()} back
|
||||
* to its group ID.
|
||||
*
|
||||
* @param id passed group-child ID
|
||||
* @return the group ID
|
||||
*/
|
||||
public static int TO_GROUP(int id)
|
||||
{
|
||||
return id >>> 16;
|
||||
}
|
||||
|
||||
/**
|
||||
* Utility method that converts an ID returned by {@link #getId()} back
|
||||
* to its child ID.
|
||||
*
|
||||
* @param id passed group-child ID
|
||||
* @return the child ID
|
||||
*/
|
||||
public static int TO_CHILD(int id)
|
||||
{
|
||||
return id & 0xFFFF;
|
||||
}
|
||||
}
|
||||
@@ -513,15 +513,6 @@ public interface Client extends GameShell
|
||||
@Nullable
|
||||
Widget getWidget(WidgetInfo widget);
|
||||
|
||||
/**
|
||||
* Gets a widget from our extended WidgetInfo
|
||||
*
|
||||
* @param widget the widget info
|
||||
* @return the widget
|
||||
*/
|
||||
@Nullable
|
||||
Widget getWidget(com.openosrs.api.widgets.WidgetInfo widget);
|
||||
|
||||
/**
|
||||
* Gets a widget by its raw group ID and child ID.
|
||||
* <p>
|
||||
@@ -828,7 +819,7 @@ public interface Client extends GameShell
|
||||
* @param varps passed varps
|
||||
* @param varpId the VarpPlayer id
|
||||
* @return the value
|
||||
* @see VarPlayer#id
|
||||
* @see VarPlayer#getId()
|
||||
*/
|
||||
int getVarpValue(int[] varps, int varpId);
|
||||
|
||||
|
||||
@@ -101,6 +101,10 @@ public enum Varbits
|
||||
PRAYER_RIGOUR(5464),
|
||||
PRAYER_AUGURY(5465),
|
||||
|
||||
RIGOUR_UNLOCKED(5451),
|
||||
AUGURY_UNLOCKED(5452),
|
||||
PRESERVE_UNLOCKED(5453),
|
||||
|
||||
/**
|
||||
* Diary Entries
|
||||
*/
|
||||
@@ -182,6 +186,10 @@ public enum Varbits
|
||||
* Defensive casting mode
|
||||
*/
|
||||
DEFENSIVE_CASTING_MODE(2668),
|
||||
/**
|
||||
* Spells being auto-casted
|
||||
*/
|
||||
AUTO_CAST_SPELL(276),
|
||||
|
||||
/**
|
||||
* Options
|
||||
@@ -397,6 +405,8 @@ public enum Varbits
|
||||
*/
|
||||
QUEST_THE_HAND_IN_THE_SAND(1527),
|
||||
|
||||
CAMELOT_TRAINING_ROOM_STATUS(3909),
|
||||
|
||||
/**
|
||||
* Daily Tasks (Collection availability)
|
||||
*/
|
||||
@@ -546,6 +556,7 @@ public enum Varbits
|
||||
* 1 = sell
|
||||
*/
|
||||
GE_OFFER_CREATION_TYPE(4397),
|
||||
GE_OFFER_PRICE_PER_ITEM(4398),
|
||||
|
||||
/**
|
||||
* The active tab within the quest interface
|
||||
|
||||
@@ -31,7 +31,7 @@ import net.runelite.api.Actor;
|
||||
* An event fired when an actor dies.
|
||||
*/
|
||||
@Value
|
||||
public class ActorDeath implements Event
|
||||
public class ActorDeath
|
||||
{
|
||||
Actor actor;
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ import lombok.Data;
|
||||
* @see net.runelite.api.AnimationID
|
||||
*/
|
||||
@Data
|
||||
public class AnimationChanged implements Event
|
||||
public class AnimationChanged
|
||||
{
|
||||
/**
|
||||
* The actor that has entered a new animation.
|
||||
|
||||
@@ -29,7 +29,7 @@ import lombok.Data;
|
||||
import net.runelite.api.Actor;
|
||||
|
||||
@Data
|
||||
public class AreaSoundEffectPlayed implements Event
|
||||
public class AreaSoundEffectPlayed
|
||||
{
|
||||
@Nullable
|
||||
private final Actor source;
|
||||
|
||||
@@ -27,7 +27,7 @@ package net.runelite.api.events;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class BeforeMenuRender implements Event
|
||||
public class BeforeMenuRender
|
||||
{
|
||||
private boolean consumed;
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ package net.runelite.api.events;
|
||||
/**
|
||||
* Posted at the start of every frame
|
||||
*/
|
||||
public class BeforeRender implements Event
|
||||
public class BeforeRender
|
||||
{
|
||||
public static final BeforeRender INSTANCE = new BeforeRender();
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ import lombok.Value;
|
||||
* an event posted when a cannonball is fired
|
||||
*/
|
||||
@Value
|
||||
public class CannonChanged implements Event
|
||||
public class CannonChanged
|
||||
{
|
||||
/**
|
||||
* The projectile id.
|
||||
|
||||
@@ -33,7 +33,7 @@ import net.runelite.api.coords.WorldPoint;
|
||||
* an event posted when a cannonball is fired
|
||||
*/
|
||||
@Value
|
||||
public class CannonPlaced implements Event
|
||||
public class CannonPlaced
|
||||
{
|
||||
/**
|
||||
* Cannon placed or picked up.
|
||||
|
||||
@@ -27,7 +27,7 @@ package net.runelite.api.events;
|
||||
/**
|
||||
* An event posted when the canvas size might have changed.
|
||||
*/
|
||||
public class CanvasSizeChanged implements Event
|
||||
public class CanvasSizeChanged
|
||||
{
|
||||
public static final CanvasSizeChanged INSTANCE = new CanvasSizeChanged();
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ import lombok.NoArgsConstructor;
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class ChatMessage implements Event
|
||||
public class ChatMessage
|
||||
{
|
||||
/**
|
||||
* The underlying MessageNode for the message.
|
||||
|
||||
@@ -27,7 +27,7 @@ package net.runelite.api.events;
|
||||
/**
|
||||
* Posted every client tick
|
||||
*/
|
||||
public class ClientTick implements Event
|
||||
public class ClientTick
|
||||
{
|
||||
public static final ClientTick INSTANCE = new ClientTick();
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ import lombok.Value;
|
||||
* will set command to "" and arguments to ["hello", "world!"].
|
||||
*/
|
||||
@Value
|
||||
public class CommandExecuted implements Event
|
||||
public class CommandExecuted
|
||||
{
|
||||
/**
|
||||
* The name of the command entered.
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
package net.runelite.api.events;
|
||||
|
||||
import lombok.Data;
|
||||
import net.runelite.api.events.Event;
|
||||
|
||||
@Data
|
||||
public class ConfigButtonClicked implements Event
|
||||
public class ConfigButtonClicked
|
||||
{
|
||||
private String group, key;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ import lombok.Data;
|
||||
* has been modified.
|
||||
*/
|
||||
@Data
|
||||
public class DecorativeObjectChanged implements Event
|
||||
public class DecorativeObjectChanged
|
||||
{
|
||||
/**
|
||||
* The affected tile.
|
||||
|
||||
@@ -33,7 +33,7 @@ import lombok.Data;
|
||||
* is removed.
|
||||
*/
|
||||
@Data
|
||||
public class DecorativeObjectDespawned implements Event
|
||||
public class DecorativeObjectDespawned
|
||||
{
|
||||
/**
|
||||
* The affected tile.
|
||||
|
||||
@@ -32,7 +32,7 @@ import lombok.Data;
|
||||
* An event where a {@link DecorativeObject} is attached to a {@link Tile}.
|
||||
*/
|
||||
@Data
|
||||
public class DecorativeObjectSpawned implements Event
|
||||
public class DecorativeObjectSpawned
|
||||
{
|
||||
/**
|
||||
* The affected tile.
|
||||
|
||||
@@ -4,7 +4,7 @@ import lombok.Value;
|
||||
import net.runelite.api.DialogOption;
|
||||
|
||||
@Value
|
||||
public class DialogProcessed implements Event
|
||||
public class DialogProcessed
|
||||
{
|
||||
DialogOption dialogOption;
|
||||
}
|
||||
@@ -31,7 +31,7 @@ import lombok.Data;
|
||||
* the cursor.
|
||||
*/
|
||||
@Data
|
||||
public class DraggingWidgetChanged implements Event
|
||||
public class DraggingWidgetChanged
|
||||
{
|
||||
/**
|
||||
* Whether a widget is currently being dragged.
|
||||
|
||||
@@ -3,7 +3,7 @@ package net.runelite.api.events;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class DynamicObjectAnimationChanged implements Event
|
||||
public class DynamicObjectAnimationChanged
|
||||
{
|
||||
/**
|
||||
* The object that has entered a new animation.
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
package net.runelite.api.events;
|
||||
|
||||
public interface Event {}
|
||||
@@ -28,7 +28,7 @@ import lombok.Value;
|
||||
import net.runelite.api.Skill;
|
||||
|
||||
@Value
|
||||
public class FakeXpDrop implements Event
|
||||
public class FakeXpDrop
|
||||
{
|
||||
Skill skill;
|
||||
int xp;
|
||||
|
||||
@@ -37,7 +37,7 @@ import lombok.Data;
|
||||
* </ul>
|
||||
*/
|
||||
@Data
|
||||
public class FocusChanged implements Event
|
||||
public class FocusChanged
|
||||
{
|
||||
/**
|
||||
* The new focus state.
|
||||
|
||||
@@ -6,7 +6,7 @@ import lombok.Value;
|
||||
* An event where a request to add a friend is sent to the server.
|
||||
*/
|
||||
@Value
|
||||
public class FriendAdded implements Event
|
||||
public class FriendAdded
|
||||
{
|
||||
/**
|
||||
* The name of the added friend.
|
||||
|
||||
@@ -30,7 +30,7 @@ import lombok.Value;
|
||||
* An event where the client has joined or left a friends chat.
|
||||
*/
|
||||
@Value
|
||||
public class FriendsChatChanged implements Event
|
||||
public class FriendsChatChanged
|
||||
{
|
||||
/**
|
||||
* Whether or not the client is now in a friends chat.
|
||||
|
||||
@@ -28,7 +28,7 @@ import lombok.Value;
|
||||
import net.runelite.api.FriendsChatMember;
|
||||
|
||||
@Value
|
||||
public class FriendsChatMemberJoined implements Event
|
||||
public class FriendsChatMemberJoined
|
||||
{
|
||||
/**
|
||||
* The member that joined
|
||||
|
||||
@@ -28,7 +28,7 @@ import lombok.Value;
|
||||
import net.runelite.api.FriendsChatMember;
|
||||
|
||||
@Value
|
||||
public class FriendsChatMemberLeft implements Event
|
||||
public class FriendsChatMemberLeft
|
||||
{
|
||||
/**
|
||||
* The member that left
|
||||
|
||||
@@ -32,7 +32,7 @@ import net.runelite.api.Tile;
|
||||
* An event where a {@link GameObject} on a {@link Tile} has been replaced.
|
||||
*/
|
||||
@Data
|
||||
public class GameObjectChanged implements Event
|
||||
public class GameObjectChanged
|
||||
{
|
||||
/**
|
||||
* The affected tile.
|
||||
|
||||
@@ -32,7 +32,7 @@ import lombok.Data;
|
||||
* An event where a {@link GameObject} on a {@link Tile} is removed.
|
||||
*/
|
||||
@Data
|
||||
public class GameObjectDespawned implements Event
|
||||
public class GameObjectDespawned
|
||||
{
|
||||
/**
|
||||
* The affected tile.
|
||||
|
||||
@@ -32,7 +32,7 @@ import net.runelite.api.Tile;
|
||||
* An event where a {@link GameObject} is added to a {@link Tile}.
|
||||
*/
|
||||
@Data
|
||||
public class GameObjectSpawned implements Event
|
||||
public class GameObjectSpawned
|
||||
{
|
||||
/**
|
||||
* The affected tile.
|
||||
|
||||
@@ -31,7 +31,7 @@ import lombok.Data;
|
||||
* An event where the clients game state has changed.
|
||||
*/
|
||||
@Data
|
||||
public class GameStateChanged implements Event
|
||||
public class GameStateChanged
|
||||
{
|
||||
/**
|
||||
* The new game state.
|
||||
|
||||
@@ -41,7 +41,7 @@ package net.runelite.api.events;
|
||||
* Note that occurrences that take place purely on the client, such as right
|
||||
* click menus, are independent of the game tick.
|
||||
*/
|
||||
public class GameTick implements Event
|
||||
public class GameTick
|
||||
{
|
||||
public static final GameTick INSTANCE = new GameTick();
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ import lombok.Data;
|
||||
* can change into.
|
||||
*/
|
||||
@Data
|
||||
public class GrandExchangeOfferChanged implements Event
|
||||
public class GrandExchangeOfferChanged
|
||||
{
|
||||
/**
|
||||
* The offer that has been modified.
|
||||
|
||||
@@ -31,7 +31,7 @@ import lombok.Data;
|
||||
* An event where the Grand Exchange has been searched.
|
||||
*/
|
||||
@Data
|
||||
public class GrandExchangeSearched implements Event
|
||||
public class GrandExchangeSearched
|
||||
{
|
||||
/**
|
||||
* Whether or not the event has been consumed by a subscriber.
|
||||
|
||||
@@ -19,7 +19,7 @@ import net.runelite.api.Actor;
|
||||
* @see net.runelite.api.GraphicID
|
||||
*/
|
||||
@Data
|
||||
public class GraphicChanged implements Event
|
||||
public class GraphicChanged
|
||||
{
|
||||
/**
|
||||
* The actor that has had their graphic changed.
|
||||
|
||||
@@ -31,7 +31,7 @@ import lombok.Value;
|
||||
* An event where a new {@link GraphicsObject} has been created.
|
||||
*/
|
||||
@Value
|
||||
public class GraphicsObjectCreated implements Event
|
||||
public class GraphicsObjectCreated
|
||||
{
|
||||
/**
|
||||
* The newly created graphics object.
|
||||
|
||||
@@ -32,7 +32,7 @@ import lombok.Data;
|
||||
* An event where the {@link GroundObject} on a {@link Tile} has been changed.
|
||||
*/
|
||||
@Data
|
||||
public class GroundObjectChanged implements Event
|
||||
public class GroundObjectChanged
|
||||
{
|
||||
/**
|
||||
* The affected tile.
|
||||
|
||||
@@ -32,7 +32,7 @@ import lombok.Data;
|
||||
* An event where a {@link GroundObject} on a {@link Tile} has been removed.
|
||||
*/
|
||||
@Data
|
||||
public class GroundObjectDespawned implements Event
|
||||
public class GroundObjectDespawned
|
||||
{
|
||||
/**
|
||||
* The affected tile.
|
||||
|
||||
@@ -32,7 +32,7 @@ import lombok.Data;
|
||||
* An event where a {@link GroundObject} is added to a {@link Tile}.
|
||||
*/
|
||||
@Data
|
||||
public class GroundObjectSpawned implements Event
|
||||
public class GroundObjectSpawned
|
||||
{
|
||||
/**
|
||||
* The affected tile.
|
||||
|
||||
@@ -36,7 +36,7 @@ import lombok.Data;
|
||||
* visible hitsplats.
|
||||
*/
|
||||
@Data
|
||||
public class HitsplatApplied implements Event
|
||||
public class HitsplatApplied
|
||||
{
|
||||
/**
|
||||
* The actor the hitsplat was applied to.
|
||||
|
||||
@@ -28,7 +28,7 @@ import net.runelite.api.Actor;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class InteractChanged implements Event
|
||||
public class InteractChanged
|
||||
{
|
||||
private Actor actor;
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ import lombok.Value;
|
||||
* An event called when the actor an actor is interacting with changes
|
||||
*/
|
||||
@Value
|
||||
public class InteractingChanged implements Event
|
||||
public class InteractingChanged
|
||||
{
|
||||
Actor source;
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ import lombok.Value;
|
||||
* </ul>
|
||||
*/
|
||||
@Value
|
||||
public class ItemContainerChanged implements Event
|
||||
public class ItemContainerChanged
|
||||
{
|
||||
/**
|
||||
* The modified container's ID.
|
||||
|
||||
@@ -34,7 +34,7 @@ import lombok.Value;
|
||||
* all item piles are implicitly despawned, and despawn events will not be sent.
|
||||
*/
|
||||
@Value
|
||||
public class ItemDespawned implements Event
|
||||
public class ItemDespawned
|
||||
{
|
||||
Tile tile;
|
||||
TileItem item;
|
||||
|
||||
@@ -33,7 +33,7 @@ import lombok.Value;
|
||||
* Called when the quantity of an item pile changes.
|
||||
*/
|
||||
@Value
|
||||
public class ItemQuantityChanged implements Event
|
||||
public class ItemQuantityChanged
|
||||
{
|
||||
TileItem item;
|
||||
Tile tile;
|
||||
|
||||
@@ -34,7 +34,7 @@ import lombok.Value;
|
||||
* all item piles are implicitly reset and a new spawn event will be sent.
|
||||
*/
|
||||
@Value
|
||||
public class ItemSpawned implements Event
|
||||
public class ItemSpawned
|
||||
{
|
||||
Tile tile;
|
||||
TileItem item;
|
||||
|
||||
@@ -4,7 +4,7 @@ package net.runelite.api.events;
|
||||
* Gets sent before menu handling code is ran, once per client tick.
|
||||
* Can be consumed, skipping this method this tick.
|
||||
*/
|
||||
public class Menu implements Event
|
||||
public class Menu
|
||||
{
|
||||
public static final Menu MENU = new Menu();
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ import net.runelite.api.MenuEntry;
|
||||
/**
|
||||
* An event when a new entry is added to a right-click menu.
|
||||
*/
|
||||
public class MenuEntryAdded extends MenuEntry implements Event
|
||||
public class MenuEntryAdded extends MenuEntry
|
||||
{
|
||||
public MenuEntryAdded(String option, String target, int identifier, int opcode, int param0, int param1, boolean forceLeftClick)
|
||||
{
|
||||
|
||||
@@ -34,7 +34,7 @@ import lombok.Data;
|
||||
* An event where a menu has been opened.
|
||||
*/
|
||||
@Data
|
||||
public class MenuOpened implements Event, Iterable<MenuEntry>
|
||||
public class MenuOpened implements Iterable<MenuEntry>
|
||||
{
|
||||
/**
|
||||
* This should be set to true if anything about the menu
|
||||
|
||||
@@ -41,7 +41,7 @@ import net.runelite.api.MenuEntry;
|
||||
* it seems that this event still triggers with the "Cancel" action.
|
||||
*/
|
||||
@Getter
|
||||
public class MenuOptionClicked extends MenuEntry implements Event
|
||||
public class MenuOptionClicked extends MenuEntry
|
||||
{
|
||||
public MenuOptionClicked(String option, String target, int identifier, int opcode, int param0, int param1, boolean forceLeftClick)
|
||||
{
|
||||
|
||||
@@ -31,7 +31,7 @@ import lombok.Data;
|
||||
* opened on left click.
|
||||
*/
|
||||
@Data
|
||||
public class MenuShouldLeftClick implements Event
|
||||
public class MenuShouldLeftClick
|
||||
{
|
||||
/**
|
||||
* If set to true, the menu will open on left click.
|
||||
|
||||
@@ -31,7 +31,7 @@ import lombok.Value;
|
||||
* An event where a {@link Nameable} has had their name changed.
|
||||
*/
|
||||
@Value
|
||||
public class NameableNameChanged implements Event
|
||||
public class NameableNameChanged
|
||||
{
|
||||
/**
|
||||
* The nameable that changed names.
|
||||
|
||||
@@ -31,7 +31,7 @@ import net.runelite.api.NPCComposition;
|
||||
* An event where an action of an {@link NPCComposition} has changed.
|
||||
*/
|
||||
@Data
|
||||
public class NpcActionChanged implements Event
|
||||
public class NpcActionChanged
|
||||
{
|
||||
/**
|
||||
* The NPC composition that has been changed.
|
||||
|
||||
@@ -32,7 +32,7 @@ import net.runelite.api.NPCComposition;
|
||||
* Fires after the composition of an {@link NPC} changes.
|
||||
*/
|
||||
@Value
|
||||
public class NpcChanged implements Event
|
||||
public class NpcChanged
|
||||
{
|
||||
/**
|
||||
* The NPC of which the composition changed.
|
||||
|
||||
@@ -32,7 +32,7 @@ import lombok.Value;
|
||||
* An event where an {@link NPC} has despawned.
|
||||
*/
|
||||
@Value
|
||||
public class NpcDespawned implements Event
|
||||
public class NpcDespawned
|
||||
{
|
||||
/**
|
||||
* The despawned NPC.
|
||||
|
||||
@@ -32,7 +32,7 @@ import lombok.Value;
|
||||
* An event where an {@link NPC} has spawned.
|
||||
*/
|
||||
@Value
|
||||
public class NpcSpawned implements Event
|
||||
public class NpcSpawned
|
||||
{
|
||||
/**
|
||||
* The spawned NPC.
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright (c) 2021, ThatGamerBlue <thatgamerblue@gmail.com>
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice, this
|
||||
* list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
||||
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package net.runelite.api.events;
|
||||
|
||||
import lombok.Data;
|
||||
import net.runelite.api.HeadIcon;
|
||||
import net.runelite.api.Player;
|
||||
|
||||
@Data
|
||||
public class OverheadPrayerChanged
|
||||
{
|
||||
private final Player player;
|
||||
|
||||
private final HeadIcon oldHeadIcon;
|
||||
|
||||
private final HeadIcon newHeadIcon;
|
||||
}
|
||||
@@ -4,7 +4,7 @@ import net.runelite.api.Actor;
|
||||
import lombok.Value;
|
||||
|
||||
@Value
|
||||
public class OverheadTextChanged implements Event
|
||||
public class OverheadTextChanged
|
||||
{
|
||||
Actor actor;
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ import lombok.Value;
|
||||
* Note: This event does not get called for the local player.
|
||||
*/
|
||||
@Value
|
||||
public class PlayerDespawned implements Event
|
||||
public class PlayerDespawned
|
||||
{
|
||||
/**
|
||||
* The despawned player.
|
||||
|
||||
@@ -31,7 +31,7 @@ import lombok.Data;
|
||||
* been clicked (ie. HiScore Lookup).
|
||||
*/
|
||||
@Data
|
||||
public class PlayerMenuOptionClicked implements Event
|
||||
public class PlayerMenuOptionClicked
|
||||
{
|
||||
/**
|
||||
* The menu option clicked.
|
||||
|
||||
@@ -27,7 +27,7 @@ package net.runelite.api.events;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class PlayerMenuOptionsChanged implements Event
|
||||
public class PlayerMenuOptionsChanged
|
||||
{
|
||||
/**
|
||||
* Index in playerOptions which changed.
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright (c) 2021, ThatGamerBlue <thatgamerblue@gmail.com>
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice, this
|
||||
* list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
||||
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
package net.runelite.api.events;
|
||||
|
||||
import lombok.Data;
|
||||
import net.runelite.api.Player;
|
||||
import net.runelite.api.SkullIcon;
|
||||
|
||||
@Data
|
||||
public class PlayerSkullChanged
|
||||
{
|
||||
private final Player player;
|
||||
|
||||
private final SkullIcon oldSkullIcon;
|
||||
|
||||
private final SkullIcon newSkullIcon;
|
||||
}
|
||||
@@ -32,7 +32,7 @@ import lombok.Value;
|
||||
* An event where a {@link Player} has spawned.
|
||||
*/
|
||||
@Value
|
||||
public class PlayerSpawned implements Event
|
||||
public class PlayerSpawned
|
||||
{
|
||||
/**
|
||||
* The spawned player.
|
||||
|
||||
@@ -28,7 +28,7 @@ import net.runelite.api.HealthBar;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class PostHealthBar implements Event
|
||||
public class PostHealthBar
|
||||
{
|
||||
private HealthBar healthBar;
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ import net.runelite.api.ItemComposition;
|
||||
* its data is initialized.
|
||||
*/
|
||||
@Data
|
||||
public class PostItemComposition implements Event
|
||||
public class PostItemComposition
|
||||
{
|
||||
/**
|
||||
* The newly created item.
|
||||
|
||||
@@ -35,7 +35,7 @@ import lombok.Data;
|
||||
* once (ie. AoE from Lizardman Shaman).
|
||||
*/
|
||||
@Data
|
||||
public class ProjectileMoved implements Event
|
||||
public class ProjectileMoved
|
||||
{
|
||||
/**
|
||||
* The projectile being moved.
|
||||
|
||||
@@ -32,7 +32,7 @@ import lombok.Data;
|
||||
* An event called whenever a {@link Projectile} has spawned.
|
||||
*/
|
||||
@Data
|
||||
public class ProjectileSpawned implements Event
|
||||
public class ProjectileSpawned
|
||||
{
|
||||
/**
|
||||
* The spawned projectile.
|
||||
|
||||
@@ -32,7 +32,7 @@ import lombok.Data;
|
||||
* An event where the game has changed from fixed to resizable mode or vice versa.
|
||||
*/
|
||||
@Data
|
||||
public class ResizeableChanged implements Event
|
||||
public class ResizeableChanged
|
||||
{
|
||||
/**
|
||||
* Whether the game is in resizable mode.
|
||||
|
||||
@@ -31,7 +31,7 @@ import lombok.Data;
|
||||
* A callback from a runelite_callback opcode in a cs2
|
||||
*/
|
||||
@Data
|
||||
public class ScriptCallbackEvent implements Event
|
||||
public class ScriptCallbackEvent
|
||||
{
|
||||
/**
|
||||
* The script that is currently being executed
|
||||
|
||||
@@ -30,7 +30,7 @@ import lombok.Value;
|
||||
* An event that is fired after the designated script is ran
|
||||
*/
|
||||
@Value
|
||||
public class ScriptPostFired implements Event
|
||||
public class ScriptPostFired
|
||||
{
|
||||
/**
|
||||
* The script id of the invoked script
|
||||
|
||||
@@ -31,7 +31,7 @@ import net.runelite.api.ScriptEvent;
|
||||
* An event that is fired before the designated script is ran
|
||||
*/
|
||||
@Value
|
||||
public class ScriptPreFired implements Event
|
||||
public class ScriptPreFired
|
||||
{
|
||||
/**
|
||||
* The script id of the invoked script
|
||||
|
||||
@@ -29,7 +29,7 @@ import lombok.Data;
|
||||
import net.runelite.api.Actor;
|
||||
|
||||
@Data
|
||||
public class SoundEffectPlayed implements Event
|
||||
public class SoundEffectPlayed
|
||||
{
|
||||
@Nullable
|
||||
private final Actor source;
|
||||
|
||||
@@ -31,7 +31,7 @@ import net.runelite.api.Skill;
|
||||
* An event where the experience, level, or boosted level of a {@link Skill} has been modified.
|
||||
*/
|
||||
@Value
|
||||
public class StatChanged implements Event
|
||||
public class StatChanged
|
||||
{
|
||||
Skill skill;
|
||||
int xp;
|
||||
|
||||
@@ -30,7 +30,7 @@ package net.runelite.api.events;
|
||||
* This event triggers for every character change to the username
|
||||
* in the login screen.
|
||||
*/
|
||||
public class UsernameChanged implements Event
|
||||
public class UsernameChanged
|
||||
{
|
||||
public static final UsernameChanged INSTANCE = new UsernameChanged();
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ import lombok.Value;
|
||||
* @see net.runelite.api.VarClientInt
|
||||
*/
|
||||
@Value
|
||||
public class VarClientIntChanged implements Event
|
||||
public class VarClientIntChanged
|
||||
{
|
||||
int index;
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ import lombok.Value;
|
||||
* @see net.runelite.api.VarClientStr
|
||||
*/
|
||||
@Value
|
||||
public class VarClientStrChanged implements Event
|
||||
public class VarClientStrChanged
|
||||
{
|
||||
int index;
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ import lombok.Data;
|
||||
* if the VarPlayer has special engine behavior assigned to it.
|
||||
*/
|
||||
@Data
|
||||
public class VarbitChanged implements Event
|
||||
public class VarbitChanged
|
||||
{
|
||||
/**
|
||||
* Index in the varp array that was changed.
|
||||
|
||||
@@ -28,7 +28,7 @@ package net.runelite.api.events;
|
||||
import lombok.Value;
|
||||
|
||||
@Value
|
||||
public class VolumeChanged implements Event
|
||||
public class VolumeChanged
|
||||
{
|
||||
public enum Type
|
||||
{
|
||||
|
||||
@@ -32,7 +32,7 @@ import lombok.Data;
|
||||
* An event where the {@link WallObject} of a {@link Tile} has been changed.
|
||||
*/
|
||||
@Data
|
||||
public class WallObjectChanged implements Event
|
||||
public class WallObjectChanged
|
||||
{
|
||||
/**
|
||||
* The affected tile.
|
||||
|
||||
@@ -32,7 +32,7 @@ import lombok.Data;
|
||||
* An event where a {@link WallObject} on a {@link Tile} has been removed.
|
||||
*/
|
||||
@Data
|
||||
public class WallObjectDespawned implements Event
|
||||
public class WallObjectDespawned
|
||||
{
|
||||
/**
|
||||
* The affected tile.
|
||||
|
||||
@@ -32,7 +32,7 @@ import lombok.Data;
|
||||
* An event where a {@link WallObject} is added to a {@link Tile}.
|
||||
*/
|
||||
@Data
|
||||
public class WallObjectSpawned implements Event
|
||||
public class WallObjectSpawned
|
||||
{
|
||||
/**
|
||||
* The affected tile.
|
||||
|
||||
@@ -30,7 +30,7 @@ import lombok.Data;
|
||||
* An event where a {@link net.runelite.api.widgets.Widget} has been loaded.
|
||||
*/
|
||||
@Data
|
||||
public class WidgetLoaded implements Event
|
||||
public class WidgetLoaded
|
||||
{
|
||||
/**
|
||||
* The group ID of the loaded widget.
|
||||
|
||||
@@ -31,7 +31,7 @@ import lombok.Data;
|
||||
* A MenuManager widget menu was clicked. This event is NOT fired for non-MenuManager menu options
|
||||
*/
|
||||
@Data
|
||||
public class WidgetMenuOptionClicked implements Event
|
||||
public class WidgetMenuOptionClicked
|
||||
{
|
||||
/**
|
||||
* The clicked menu option.
|
||||
|
||||
@@ -28,7 +28,7 @@ package net.runelite.api.events;
|
||||
* An event where the position of a {@link net.runelite.api.widgets.Widget}
|
||||
* relative to its parent has changed.
|
||||
*/
|
||||
public class WidgetPositioned implements Event
|
||||
public class WidgetPositioned
|
||||
{
|
||||
public static final WidgetPositioned INSTANCE = new WidgetPositioned();
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ import lombok.Data;
|
||||
* An event where a draggable widget has been pressed.
|
||||
*/
|
||||
@Data
|
||||
public class WidgetPressed implements Event
|
||||
public class WidgetPressed
|
||||
{
|
||||
public static final WidgetPressed INSTANCE = new WidgetPressed();
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ import lombok.Value;
|
||||
* Event when the world list is loaded for the world switcher
|
||||
*/
|
||||
@Value
|
||||
public class WorldListLoad implements Event
|
||||
public class WorldListLoad
|
||||
{
|
||||
World[] worlds;
|
||||
}
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
package net.runelite.api.events.player.headicon;
|
||||
|
||||
import lombok.Data;
|
||||
import net.runelite.api.HeadIcon;
|
||||
import net.runelite.api.Player;
|
||||
import net.runelite.api.events.Event;
|
||||
|
||||
@Data
|
||||
public class OverheadPrayerChanged implements Event
|
||||
{
|
||||
private final Player player;
|
||||
|
||||
private final HeadIcon oldHeadIcon;
|
||||
|
||||
private final HeadIcon newHeadIcon;
|
||||
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
package net.runelite.api.events.player.headicon;
|
||||
|
||||
import lombok.Data;
|
||||
import net.runelite.api.Player;
|
||||
import net.runelite.api.SkullIcon;
|
||||
import net.runelite.api.events.Event;
|
||||
|
||||
@Data
|
||||
public class PlayerSkullChanged implements Event
|
||||
{
|
||||
private final Player player;
|
||||
|
||||
private final SkullIcon oldSkullIcon;
|
||||
|
||||
private final SkullIcon newSkullIcon;
|
||||
|
||||
}
|
||||
@@ -26,7 +26,6 @@ package net.runelite.api.kit;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import com.openosrs.api.widgets.WidgetInfo;
|
||||
|
||||
/**
|
||||
* Represents an equipment slot in a players composition.
|
||||
@@ -40,20 +39,20 @@ import com.openosrs.api.widgets.WidgetInfo;
|
||||
@AllArgsConstructor
|
||||
public enum KitType
|
||||
{
|
||||
HEAD("Head", 0, WidgetInfo.EQUIPMENT_HELMET),
|
||||
CAPE("Cape", 1, WidgetInfo.EQUIPMENT_CAPE),
|
||||
AMULET("Amulet", 2, WidgetInfo.EQUIPMENT_AMULET),
|
||||
WEAPON("Weapon", 3, WidgetInfo.EQUIPMENT_WEAPON),
|
||||
TORSO("Torso", 4, WidgetInfo.EQUIPMENT_BODY),
|
||||
SHIELD("Shield", 5, WidgetInfo.EQUIPMENT_SHIELD),
|
||||
ARMS("Arms", 6, null),
|
||||
LEGS("Legs", 7, WidgetInfo.EQUIPMENT_LEGS),
|
||||
HAIR("Hair", 8, null),
|
||||
HANDS("Hands", 9, WidgetInfo.EQUIPMENT_GLOVES),
|
||||
BOOTS("Boots", 10, WidgetInfo.EQUIPMENT_BOOTS),
|
||||
JAW("Jaw", 11, null),
|
||||
RING("Ring", 12, WidgetInfo.EQUIPMENT_RING),
|
||||
AMMUNITION("Ammo", 13, WidgetInfo.EQUIPMENT_AMMO);
|
||||
HEAD("Head", 0),
|
||||
CAPE("Cape", 1),
|
||||
AMULET("Amulet", 2),
|
||||
WEAPON("Weapon", 3),
|
||||
TORSO("Torso", 4),
|
||||
SHIELD("Shield", 5),
|
||||
ARMS("Arms", 6),
|
||||
LEGS("Legs", 7),
|
||||
HAIR("Hair", 8),
|
||||
HANDS("Hands", 9),
|
||||
BOOTS("Boots", 10),
|
||||
JAW("Jaw", 11),
|
||||
RING("Ring", 12),
|
||||
AMMUNITION("Ammo", 13);
|
||||
|
||||
private final String name;
|
||||
|
||||
@@ -61,6 +60,4 @@ public enum KitType
|
||||
* Gets the raw equipment index for use in {PlayerAppearance#getEquipmentIds()}.
|
||||
*/
|
||||
private final int index;
|
||||
|
||||
private final WidgetInfo widgetInfo;
|
||||
}
|
||||
@@ -32,7 +32,7 @@ import java.util.stream.Collectors;
|
||||
import net.runelite.api.Client;
|
||||
import net.runelite.api.QueryResults;
|
||||
import net.runelite.api.widgets.Widget;
|
||||
import com.openosrs.api.widgets.WidgetInfo;
|
||||
import net.runelite.api.widgets.WidgetInfo;
|
||||
import net.runelite.api.widgets.WidgetItem;
|
||||
|
||||
public class ShopItemQuery extends WidgetItemQuery
|
||||
@@ -50,7 +50,7 @@ public class ShopItemQuery extends WidgetItemQuery
|
||||
private Collection<WidgetItem> getShopItems(Client client)
|
||||
{
|
||||
Collection<WidgetItem> widgetItems = new ArrayList<>();
|
||||
Widget shop = client.getWidget(WidgetInfo.SHOP_ITEMS_CONTAINER);
|
||||
Widget shop = client.getWidget(300, 2);
|
||||
if (shop != null && !shop.isHidden())
|
||||
{
|
||||
Widget[] children = shop.getDynamicChildren();
|
||||
|
||||
@@ -1,27 +1,33 @@
|
||||
package com.openosrs.client;
|
||||
|
||||
import com.openosrs.client.game.NPCStats;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.Properties;
|
||||
import java.util.UUID;
|
||||
|
||||
public class OpenOSRS
|
||||
{
|
||||
public static final File OPENOSRS_DIR = new File(System.getProperty("user.home"), ".openosrs");
|
||||
public static final File EXTERNALPLUGIN_DIR = new File(OPENOSRS_DIR, "plugins");
|
||||
public static final String SYSTEM_VERSION = "0.0.1";
|
||||
public static final String SYSTEM_VERSION;
|
||||
|
||||
public static String uuid = UUID.randomUUID().toString();
|
||||
|
||||
public static void init()
|
||||
static
|
||||
{
|
||||
Properties properties = new Properties();
|
||||
try
|
||||
{
|
||||
NPCStats.loadStats();
|
||||
properties.load(OpenOSRS.class.getResourceAsStream("/openosrs.properties"));
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (IOException e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
}
|
||||
SYSTEM_VERSION = properties.getProperty("oprs.version", "0.0.0");
|
||||
}
|
||||
|
||||
public static void preload()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ import net.runelite.client.config.ConfigItem;
|
||||
import net.runelite.client.config.Keybind;
|
||||
import net.runelite.client.config.Range;
|
||||
import net.runelite.client.config.Units;
|
||||
import com.openosrs.client.plugins.ExternalPluginManager;
|
||||
import net.runelite.client.plugins.OPRSExternalPluginManager;
|
||||
|
||||
@ConfigGroup("openosrs")
|
||||
public interface OpenOSRSConfig extends Config
|
||||
@@ -136,7 +136,7 @@ public interface OpenOSRSConfig extends Config
|
||||
)
|
||||
default String getExternalRepositories()
|
||||
{
|
||||
return ExternalPluginManager.DEFAULT_PLUGIN_REPOS;
|
||||
return OPRSExternalPluginManager.DEFAULT_PLUGIN_REPOS;
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
|
||||
@@ -25,11 +25,10 @@
|
||||
package com.openosrs.client.events;
|
||||
|
||||
import lombok.Data;
|
||||
import net.runelite.api.events.Event;
|
||||
import net.runelite.client.plugins.Plugin;
|
||||
|
||||
@Data
|
||||
public class ExternalPluginChanged implements Event
|
||||
public class ExternalPluginChanged
|
||||
{
|
||||
private final String pluginId;
|
||||
private final Plugin plugin;
|
||||
|
||||
@@ -25,8 +25,7 @@
|
||||
package com.openosrs.client.events;
|
||||
|
||||
import lombok.Data;
|
||||
import net.runelite.api.events.Event;
|
||||
|
||||
@Data
|
||||
public class ExternalPluginsLoaded implements Event
|
||||
public class ExternalPluginsLoaded
|
||||
{}
|
||||
|
||||
@@ -25,10 +25,9 @@
|
||||
package com.openosrs.client.events;
|
||||
|
||||
import lombok.Data;
|
||||
import net.runelite.api.events.Event;
|
||||
|
||||
@Data
|
||||
public class ExternalRepositoryChanged implements Event
|
||||
public class ExternalRepositoryChanged
|
||||
{
|
||||
private final String owner;
|
||||
private final boolean added;
|
||||
|
||||
@@ -1,229 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2019, TheStonedTurtle <https://github.com/TheStonedTurtle>
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice, this
|
||||
* list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
||||
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
package com.openosrs.client.game;
|
||||
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
import com.google.gson.TypeAdapter;
|
||||
import com.google.gson.stream.JsonReader;
|
||||
import com.google.gson.stream.JsonWriter;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStreamReader;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
|
||||
import lombok.Builder;
|
||||
import lombok.Value;
|
||||
|
||||
@Value
|
||||
@Builder(builderClassName = "Builder")
|
||||
public class NPCStats
|
||||
{
|
||||
public static ImmutableMap<Integer, NPCStats> statsMap;
|
||||
|
||||
String name;
|
||||
|
||||
int hitpoints;
|
||||
int combatLevel;
|
||||
int slayerLevel;
|
||||
int attackSpeed;
|
||||
|
||||
int attackLevel;
|
||||
int strengthLevel;
|
||||
int defenceLevel;
|
||||
int rangeLevel;
|
||||
int magicLevel;
|
||||
|
||||
int stab;
|
||||
int slash;
|
||||
int crush;
|
||||
int range;
|
||||
int magic;
|
||||
|
||||
int stabDef;
|
||||
int slashDef;
|
||||
int crushDef;
|
||||
int rangeDef;
|
||||
int magicDef;
|
||||
|
||||
int bonusAttack;
|
||||
int bonusStrength;
|
||||
int bonusRangeStrength;
|
||||
int bonusMagicDamage;
|
||||
|
||||
boolean poisonImmune;
|
||||
boolean venomImmune;
|
||||
|
||||
boolean dragon;
|
||||
boolean demon;
|
||||
boolean undead;
|
||||
|
||||
/**
|
||||
* Based off the formula found here: http://services.runescape.com/m=forum/c=PLuJ4cy6gtA/forums.ws?317,318,712,65587452,209,337584542#209
|
||||
*
|
||||
* @return bonus XP modifier
|
||||
*/
|
||||
public double calculateXpModifier()
|
||||
{
|
||||
final double averageLevel = Math.floor((attackLevel + strengthLevel + defenceLevel + hitpoints) / 4);
|
||||
final double averageDefBonus = Math.floor((stabDef + slashDef + crushDef) / 3);
|
||||
|
||||
return (1 + Math.floor(averageLevel * (averageDefBonus + bonusStrength + bonusAttack) / 5120) / 40);
|
||||
}
|
||||
|
||||
// Because this class is here we can't add the TypeAdapter to gson (easily)
|
||||
// doesn't mean we can't use one to do it a bit quicker
|
||||
public static final TypeAdapter<NPCStats> NPC_STATS_TYPE_ADAPTER = new TypeAdapter<NPCStats>()
|
||||
{
|
||||
@Override
|
||||
public void write(JsonWriter out, NPCStats value)
|
||||
{
|
||||
throw new UnsupportedOperationException("Not supported");
|
||||
}
|
||||
|
||||
@Override
|
||||
public NPCStats read(JsonReader in) throws IOException
|
||||
{
|
||||
in.beginObject();
|
||||
NPCStats.Builder builder = NPCStats.builder();
|
||||
|
||||
// Name is the only one that's guaranteed
|
||||
in.skipValue();
|
||||
builder.name(in.nextString());
|
||||
|
||||
while (in.hasNext())
|
||||
{
|
||||
switch (in.nextName())
|
||||
{
|
||||
case "hitpoints":
|
||||
builder.hitpoints(in.nextInt());
|
||||
break;
|
||||
case "combatLevel":
|
||||
builder.combatLevel(in.nextInt());
|
||||
break;
|
||||
case "slayerLevel":
|
||||
builder.slayerLevel(in.nextInt());
|
||||
break;
|
||||
case "attackSpeed":
|
||||
builder.attackSpeed(in.nextInt());
|
||||
break;
|
||||
case "attackLevel":
|
||||
builder.attackLevel(in.nextInt());
|
||||
break;
|
||||
case "strengthLevel":
|
||||
builder.strengthLevel(in.nextInt());
|
||||
break;
|
||||
case "defenceLevel":
|
||||
builder.defenceLevel(in.nextInt());
|
||||
break;
|
||||
case "rangeLevel":
|
||||
builder.rangeLevel(in.nextInt());
|
||||
break;
|
||||
case "magicLevel":
|
||||
builder.magicLevel(in.nextInt());
|
||||
break;
|
||||
case "stab":
|
||||
builder.stab(in.nextInt());
|
||||
break;
|
||||
case "slash":
|
||||
builder.slash(in.nextInt());
|
||||
break;
|
||||
case "crush":
|
||||
builder.crush(in.nextInt());
|
||||
break;
|
||||
case "range":
|
||||
builder.range(in.nextInt());
|
||||
break;
|
||||
case "magic":
|
||||
builder.magic(in.nextInt());
|
||||
break;
|
||||
case "stabDef":
|
||||
builder.stabDef(in.nextInt());
|
||||
break;
|
||||
case "slashDef":
|
||||
builder.slashDef(in.nextInt());
|
||||
break;
|
||||
case "crushDef":
|
||||
builder.crushDef(in.nextInt());
|
||||
break;
|
||||
case "rangeDef":
|
||||
builder.rangeDef(in.nextInt());
|
||||
break;
|
||||
case "magicDef":
|
||||
builder.magicDef(in.nextInt());
|
||||
break;
|
||||
case "bonusAttack":
|
||||
builder.bonusAttack(in.nextInt());
|
||||
break;
|
||||
case "bonusStrength":
|
||||
builder.bonusStrength(in.nextInt());
|
||||
break;
|
||||
case "bonusRangeStrength":
|
||||
builder.bonusRangeStrength(in.nextInt());
|
||||
break;
|
||||
case "bonusMagicDamage":
|
||||
builder.bonusMagicDamage(in.nextInt());
|
||||
break;
|
||||
case "poisonImmune":
|
||||
builder.poisonImmune(in.nextBoolean());
|
||||
break;
|
||||
case "venomImmune":
|
||||
builder.venomImmune(in.nextBoolean());
|
||||
break;
|
||||
case "dragon":
|
||||
builder.dragon(in.nextBoolean());
|
||||
break;
|
||||
case "demon":
|
||||
builder.demon(in.nextBoolean());
|
||||
break;
|
||||
case "undead":
|
||||
builder.undead(in.nextBoolean());
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
in.endObject();
|
||||
return builder.build();
|
||||
}
|
||||
};
|
||||
|
||||
public static void loadStats() throws IOException
|
||||
{
|
||||
try (JsonReader reader = new JsonReader(new InputStreamReader(NPCStats.class.getResourceAsStream("npc_stats.json"), StandardCharsets.UTF_8)))
|
||||
{
|
||||
ImmutableMap.Builder<Integer, NPCStats> builder = ImmutableMap.builderWithExpectedSize(2821);
|
||||
reader.beginObject();
|
||||
|
||||
while (reader.hasNext())
|
||||
{
|
||||
builder.put(
|
||||
Integer.parseInt(reader.nextName()),
|
||||
NPCStats.NPC_STATS_TYPE_ADAPTER.read(reader)
|
||||
);
|
||||
}
|
||||
|
||||
reader.endObject();
|
||||
statsMap = builder.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user