Files
runelite/runelite-api/src/main/java/net/runelite/api/VarPlayer.java
Adam c5a52754e0 Fix Zalcano damage overlay to only show during Zalcano
This varp is for the hp hud, and applies to more content than just
Zalcano, so verify that the hp hud is for Zalcano
2021-01-05 15:26:08 -05:00

197 lines
5.4 KiB
Java

/*
* Copyright (c) 2018, Adam <Adam@sigterm.info>
* 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;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* Server controlled "content-developer" integers.
*
* VarPlayers are stored per RuneScape player save, and synchronized
* from the server to the client. The client can change them preemptively
* if it thinks they will change the next tick as a lag-hiding measure.
* The client CANNOT directly make the server change a varbit.
*/
@AllArgsConstructor
@Getter
public enum VarPlayer
{
ATTACK_STYLE(43),
QUEST_POINTS(101),
IS_POISONED(102),
/**
* Seems to start at 50(10 splash) and goes down by 1 every 30 seconds
*/
DISEASE_VALUE(456),
BANK_TAB(115),
MEMBERSHIP_DAYS(1780),
SPECIAL_ATTACK_PERCENT(300),
SPECIAL_ATTACK_ENABLED(301),
/**
* The ID of the party. This Var is only set in the raid bank area and the raid lobby
*
* This gets set to -1 when the raid starts. This is first set when the first player of the friends chat forms a party
* on the recruiting board and it changes again when the first person actually enters the raid.
*
* -1 : Not in a party or in the middle of an ongoing raid
* Anything else : This means that your friends chat has a raid party being formed and has not started yet
*/
IN_RAID_PARTY(1427),
NMZ_REWARD_POINTS(1060),
/**
* -1 : Poison immune
* Normal poison damage is ceil( this / 5.0f )
* If this is greater than or equal to 1000000, the player is envenomed.
* Venom damage is (this - 999997) * 2
*/
POISON(102),
/**
* 0 : not started
* greater than 0 : in progress
* greater than 99 : completed
*/
THRONE_OF_MISCELLANIA(359),
/**
* Item currently active in the creation of a buy or sell offer
*/
CURRENT_GE_ITEM(1151),
/**
* Experience tracker goal start.
*/
ATTACK_GOAL_START(1229),
STRENGTH_GOAL_START(1230),
RANGED_GOAL_START(1231),
MAGIC_GOAL_START(1232),
DEFENCE_GOAL_START(1233),
HITPOINTS_GOAL_START(1234),
PRAYER_GOAL_START(1235),
AGILITY_GOAL_START(1236),
HERBLORE_GOAL_START(1237),
THIEVING_GOAL_START(1238),
CRAFTING_GOAL_START(1239),
RUNECRAFT_GOAL_START(1240),
MINING_GOAL_START(1241),
SMITHING_GOAL_START(1242),
FISHING_GOAL_START(1243),
COOKING_GOAL_START(1244),
FIREMAKING_GOAL_START(1245),
WOODCUTTING_GOAL_START(1246),
FLETCHING_GOAL_START(1247),
SLAYER_GOAL_START(1248),
FARMING_GOAL_START(1249),
CONSTRUCTION_GOAL_START(1250),
HUNTER_GOAL_START(1251),
/**
* Experience tracker goal end.
*/
ATTACK_GOAL_END(1253),
STRENGTH_GOAL_END(1254),
RANGED_GOAL_END(1255),
MAGIC_GOAL_END(1256),
DEFENCE_GOAL_END(1257),
HITPOINTS_GOAL_END(1258),
PRAYER_GOAL_END(1259),
AGILITY_GOAL_END(1260),
HERBLORE_GOAL_END(1261),
THIEVING_GOAL_END(1262),
CRAFTING_GOAL_END(1263),
RUNECRAFT_GOAL_END(1264),
MINING_GOAL_END(1265),
SMITHING_GOAL_END(1266),
FISHING_GOAL_END(1267),
COOKING_GOAL_END(1268),
FIREMAKING_GOAL_END(1269),
WOODCUTTING_GOAL_END(1270),
FLETCHING_GOAL_END(1271),
SLAYER_GOAL_END(1272),
FARMING_GOAL_END(1273),
CONSTRUCTION_GOAL_END(1274),
HUNTER_GOAL_END(1275),
/**
* Bird house states
*/
BIRD_HOUSE_MEADOW_NORTH(1626),
BIRD_HOUSE_MEADOW_SOUTH(1627),
BIRD_HOUSE_VALLEY_NORTH(1628),
BIRD_HOUSE_VALLEY_SOUTH(1629),
/**
* Slayer unlock bitfields
*/
SLAYER_UNLOCK_1(1076),
SLAYER_UNLOCK_2(1344),
/**
* Music track unlock bitfields
*/
MUSIC_TRACKS_UNLOCKED_1(20),
MUSIC_TRACKS_UNLOCKED_2(21),
MUSIC_TRACKS_UNLOCKED_3(22),
MUSIC_TRACKS_UNLOCKED_4(23),
MUSIC_TRACKS_UNLOCKED_5(24),
MUSIC_TRACKS_UNLOCKED_6(25),
MUSIC_TRACKS_UNLOCKED_7(298),
MUSIC_TRACKS_UNLOCKED_8(311),
MUSIC_TRACKS_UNLOCKED_9(346),
MUSIC_TRACKS_UNLOCKED_10(414),
MUSIC_TRACKS_UNLOCKED_11(464),
MUSIC_TRACKS_UNLOCKED_12(598),
MUSIC_TRACKS_UNLOCKED_13(662),
MUSIC_TRACKS_UNLOCKED_14(721),
MUSIC_TRACKS_UNLOCKED_15(906),
MUSIC_TRACKS_UNLOCKED_16(1009),
MUSIC_TRACKS_UNLOCKED_17(1338),
MUSIC_TRACKS_UNLOCKED_18(1681),
MUSIC_TRACKS_UNLOCKED_19(2065),
MUSIC_VOLUME(168),
SOUND_EFFECT_VOLUME(169),
AREA_EFFECT_VOLUME(872),
/**
* 0 = 2 buttons, 1 = 1 button
*/
MOUSE_BUTTONS(170),
/**
* {@link NpcID} for the HP HUD
*/
HP_HUD_NPC_ID(1683);
private final int id;
}