Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Resource [List] Known Varps

Joined
Aug 16, 2014
Messages
3
4339 Bank Preset Names (index 0-3)
4340 Bank Preset Names (index 4-?)

Code Example
....

Piqued my interest, so thought I'd try to fill in the blanks for you.

4339 is 0-3
4340 is 4-7
4341 is 8-9

Code:
PRESET_MELEE("Melee", 1),
PRESET_MELEE_DUAL_WIELD("Melee - Dual Wield", 2),
PRESET_MELEE_2H("Melee - 2h", 3),
PRESET_MELEE_1H_SHIELD("Melee - 1h + Shield", 4),
PRESET_RANGED("Ranged", 5),
PRESET_RANGED_DUAL_WIELD("Ranged - Dual Wield", 6),
PRESET_RANGED_2H("Ranged - 2h", 7),
PRESET_RANGED_1H_SHIELD("Ranged - 1h + Shield", 8),
PRESET_MAGIC("Magic", 9),
PRESET_MAGIC_DUAL_WIELD("Magic - Dual Wield", 10),
PRESET_MAGIC_2H("Magic - 2h", 11),
PRESET_MAGIC_1H_SHIELD("Magic - 1h + Shield", 12),
PRESET_ARAXXOR("Araxxor", 13),
PRESET_BARROWS("Barrows", 14),
PRESET_BARROWS_ROTS("Barrows - RotS", 15),
PRESET_CORPOREAL_BEAST("Corporeal Beast", 16),
PRESET_DAGANNOTH_KINGS("Dagannoth Kings", 17),
PRESET_GODWARS_GRAARDOR("Godwars - Graardor", 18),
PRESET_GODWARS_KREEARRA("Godwars - Kree'arra", 19),
PRESET_GODWARS_NEX("Godwars - Nex", 20),
PRESET_GODWARS_ZILYANA("Godwars - Zilyana", 21),
PRESET_GODWARS_KRIL("Godwars - K'ril", 22),
PRESET_KALPHITE_KING("Kalphite King", 23),
PRESET_KALPHITE_QUEEN("Kalphite Queen", 24),
PRESET_KING_BLACK_DRAGON("King Black Dragon", 25),
PRESET_QUEEN_BLACK_DRAGON("Queen Black Dragon", 26),
PRESET_TORMENTED_DEMONS("Tormented Demons", 27),
PRESET_VORAGO("Vorago", 28),
PRESET_AGILITY("Agility", 29),
PRESET_CONSTRUCTION("Construction", 30),
PRESET_COOKING("Cooking", 31),
PRESET_CRAFTING("Crafting", 32),
PRESET_DIVINATION("Divination", 33),
PRESET_DUNGEONEERING("Dungeoneering", 34),
PRESET_FARMING("Farming", 35),
PRESET_FIREMAKING("Firemaking", 36),
PRESET_FISHING("Fishing", 37),
PRESET_FLETCHING("Fletching", 38),
PRESET_HERBLORE("Herblore", 39),
PRESET_HUNTER("Hunter", 40),
PRESET_MINING("Mining", 41),
PRESET_PRAYER("Prayer", 42),
PRESET_RUNECRAFTING("Runecrafting", 43),
PRESET_SLAYER("Slayer", 44),
PRESET_SLAYER_MELEE("Slayer - Melee", 45),
PRESET_SLAYER_RANGED("Slayer - Ranged", 46),
PRESET_SLAYER_MAGIC("Slayer - Magic", 47),
PRESET_SMITHING("Smithing", 48),
PRESET_SUMMONING("Summoning", 49),
PRESET_THIEVING("Thieving", 50),
PRESET_WOODCUTTING("Woodcutting", 51),
PRESET_INVENTION("Invention", 52),
PRESET_SAILING("Sailing", 53),
PRESET_MINIGAME_1("Minigame 1", 54),
PRESET_MINIGAME_2("Minigame 2", 55),
PRESET_MINIGAME_3("Minigame 3", 56),
PRESET_MINIGAME_4("Minigame 4", 57),
PRESET_MINIGAME_5("Minigame 5", 58),
PRESET_MINIGAME_6("Minigame 6", 59),
PRESET_MINIGAME_7("Minigame 7", 60),
PRESET_MINIGAME_8("Minigame 8", 61),
PRESET_MINIGAME_9("Minigame 9", 62),
PRESET_MINIGAME_10("Minigame 10", 63),
PRESET_DISTRACTIONS_DIVERSIONS_1("D&D 1", 64),
PRESET_DISTRACTIONS_DIVERSIONS_2("D&D 2", 65),
PRESET_DISTRACTIONS_DIVERSIONS_3("D&D 3", 66),
PRESET_DISTRACTIONS_DIVERSIONS_4("D&D 4", 67),
PRESET_DISTRACTIONS_DIVERSIONS_5("D&D 5", 68),
PRESET_DISTRACTIONS_DIVERSIONS_6("D&D 6", 69),
PRESET_DISTRACTIONS_DIVERSIONS_7("D&D 7", 70),
PRESET_DISTRACTIONS_DIVERSIONS_8("D&D 8", 71),
PRESET_DISTRACTIONS_DIVERSIONS_9("D&D 9", 72),
PRESET_DISTRACTIONS_DIVERSIONS_10("D&D 10", 73),
PRESET_WILDERNESS_1("Wilderness 1", 74),
PRESET_WILDERNESS_2("Wilderness 2", 75),
PRESET_WILDERNESS_3("Wilderness 3", 76),
PRESET_CLAN_1("Clan 1", 77),
PRESET_CLAN_2("Clan 2", 78),
PRESET_CLAN_3("Clan 3", 79),
PRESET_ARMADYL("Armadyl", 80),
PRESET_BANDOS("Bandos", 81),
PRESET_GUTHIX("Guthix", 82),
PRESET_SARADOMIN("Saradomin", 83),
PRESET_SEREN("Seren", 84),
PRESET_SLISKE("Sliske", 85),
PRESET_ZAMORAK("Zamorak", 86),
PRESET_ZAROS("Zaros", 87),
PRESET_EASTER("Easter", 88),
PRESET_HALLOWEEN("Halloween", 89),
PRESET_THANKSGIVING("Thanksgiving", 90),
PRESET_CHRISTMAS("Christmas", 91),
PRESET_PARTY("Party", 92),
PRESET_COSMETIC_1("Cosmetic 1", 93),
PRESET_COSMETIC_2("Cosmetic 2", 94),
PRESET_COSMETIC_3("Cosmetic 3", 95),
PRESET_BANK_STANDING("Bank Standing", 96),
PRESET_MACHINIMA("Machinima", 97),
PRESET_QUESTING("Questing", 98),
PRESET_RIOT("Riot", 99),
PRESET_ROLEPLAYING("Roleplaying", 100),
PRESET_1("1", 101),
PRESET_2("2", 102),
PRESET_3("3", 103),
PRESET_4("4", 104),
PRESET_5("5", 105),
PRESET_6("6", 106),
PRESET_7("7", 107),
PRESET_8("8", 108),
PRESET_9("9", 109),
PRESET_10("10", 110);
 
Joined
Dec 28, 2014
Messages
76
Currently collecting some high level potion varps/suspected varps. Will be updating them as I grab them.

THIS IS A WORK IN PROGRESS, SOME THINGS NEED VERIFICATION AND DOUBLE CHECKS.


Juju Mining
4906 Timer. (goes crazy when you also consume a Juju farming potion, might be related to all
4877 jumps up to 2304 When both Mining potions are activated. Will need to pay more attention to changes regarding this potion.

Perfect Juju Mining
4908 Timer. 240-0
4877 Perfect Juju Mining potion activation it would appear. Sets to 2048 upon potion activation, boosts up to 526344 when both mining potions active...

Juju Farming Potion
4876 activates upon potion usage. Unsure as to what it does but it lasts after the potion expires.
4906 jumps to 25165824 upon activation.

Prayer Renewal
902 @dog provided

Super Antifire
1299. Timer. Only way to detect if it's active. Might also run on the same timer as regular antifires.


3692 Not sure what this does but it activates when doing just about anything it seems.
 
Last edited:
Joined
Aug 16, 2014
Messages
3
You should really checkout https://github.com/Strikeskids/CacheReader (not by me)

I threw some code together months/years ago to dump all the varp definitions grouped by the indices so it is easier to find something that could be useful.

Code:
    private static void dumpScriptsById(CacheSystem cache) {
        ScriptLoader loader = new ScriptLoader(cache);
        TreeMap<Integer, List<Script>> map = new TreeMap<>(); // Just so don't have to sort keys

        int scriptId = 0;
        while (loader.canLoad(scriptId)) {
            try {
                final Script script = loader.load(scriptId);
                List<Script> list;
                if (!map.containsKey(script.configId)) {
                    list = new LinkedList<>();
                    map.put(script.configId, list);
                } else {
                    list = map.get(script.configId);
                }
                list.add(script);
            } catch (Exception ignored) {
            }
            scriptId++;
        }

        try (PrintWriter txt = new PrintWriter(new FileWriter(new File("scriptsById.txt")))) {
            for (Integer key : map.keySet()) {
                txt.println("[id=" + key + "]");

                final List<Script> scripts = map.get(key);
                for (Script script : scripts) {

                    int mask = 0;
                    int upper = script.upperBitIndex - script.lowerBitIndex;
                    for (int i = 0; i <= upper; ++i) {
                        mask += Math.pow(2, i);
                    }

                    txt.println("  [" + script.getId() + "] ctx.varpbits.varpbit(" + script.configId + ", " + script.lowerBitIndex + ", 0x" + Integer.toHexString(mask) + ")");
                }
                txt.println("");
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

So if you suspect 4906 changes for something search for id=4906 and see if you can find anything useful from the shift and mask combinations. Another useful technique is you can use the file id to find varps that were added around the same time. So for 4906 all these definitions 26017-26022 are probably to do with the same game content. Also keep in mind some varps are no longer used and their bits have been reused for a different definition and definition isn't always used sometimes the whole 32bit value is used so it won't have a definition.

Code:
[id=4906]
  [26017] ctx.varpbits.varpbit(4906, 0, 0x1f)
  [26018] ctx.varpbits.varpbit(4906, 5, 0x1f)
  [26019] ctx.varpbits.varpbit(4906, 10, 0x1f)
  [26020] ctx.varpbits.varpbit(4906, 15, 0x1f)
  [26021] ctx.varpbits.varpbit(4906, 20, 0x1f)
  [26022] ctx.varpbits.varpbit(4906, 25, 0x1f)
 
Top