1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Resource [List] Known Varps

Discussion in 'Tutorials & Resources' started by Salvation, Mar 30, 2014.

  1. Logicail

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

    Joined:
    Dec 28, 2014
    Messages:
    76
    Likes Received:
    25
    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.
     
    #22 konchan, Apr 1, 2015
    Last edited: Apr 1, 2015
    neck likes this.
  3. Logicail

    Joined:
    Aug 16, 2014
    Messages:
    3
    Likes Received:
    1
    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 (Text):
    1.     private static void dumpScriptsById(CacheSystem cache) {
    2.         ScriptLoader loader = new ScriptLoader(cache);
    3.         TreeMap<Integer, List<Script>> map = new TreeMap<>(); // Just so don't have to sort keys
    4.  
    5.         int scriptId = 0;
    6.         while (loader.canLoad(scriptId)) {
    7.             try {
    8.                 final Script script = loader.load(scriptId);
    9.                 List<Script> list;
    10.                 if (!map.containsKey(script.configId)) {
    11.                     list = new LinkedList<>();
    12.                     map.put(script.configId, list);
    13.                 } else {
    14.                     list = map.get(script.configId);
    15.                 }
    16.                 list.add(script);
    17.             } catch (Exception ignored) {
    18.             }
    19.             scriptId++;
    20.         }
    21.  
    22.         try (PrintWriter txt = new PrintWriter(new FileWriter(new File("scriptsById.txt")))) {
    23.             for (Integer key : map.keySet()) {
    24.                 txt.println("[id=" + key + "]");
    25.  
    26.                 final List<Script> scripts = map.get(key);
    27.                 for (Script script : scripts) {
    28.  
    29.                     int mask = 0;
    30.                     int upper = script.upperBitIndex - script.lowerBitIndex;
    31.                     for (int i = 0; i <= upper; ++i) {
    32.                         mask += Math.pow(2, i);
    33.                     }
    34.  
    35.                     txt.println("  [" + script.getId() + "] ctx.varpbits.varpbit(" + script.configId + ", " + script.lowerBitIndex + ", 0x" + Integer.toHexString(mask) + ")");
    36.                 }
    37.                 txt.println("");
    38.             }
    39.         } catch (IOException e) {
    40.             e.printStackTrace();
    41.         }
    42.     }
    43.  

    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 (Text):
    1. [id=4906]
    2.   [26017] ctx.varpbits.varpbit(4906, 0, 0x1f)
    3.   [26018] ctx.varpbits.varpbit(4906, 5, 0x1f)
    4.   [26019] ctx.varpbits.varpbit(4906, 10, 0x1f)
    5.   [26020] ctx.varpbits.varpbit(4906, 15, 0x1f)
    6.   [26021] ctx.varpbits.varpbit(4906, 20, 0x1f)
    7.   [26022] ctx.varpbits.varpbit(4906, 25, 0x1f)
     

Share This Page

Loading...