Class ClientSettings


  • public class ClientSettings
    extends java.lang.Object
    Created by Nezz on 10/25/2015.
    • Constructor Detail

      • ClientSettings

        @Deprecated
        public ClientSettings()
        Deprecated.
    • Method Detail

      • getClientSettings

        @Deprecated
        public static ClientSettings getClientSettings()
        Deprecated.
      • isLoginMusicEnabled

        public static boolean isLoginMusicEnabled()
        Returns whether or not the login music is enabled
        Returns:
        True if enabled, false if it isn't
      • getSavedUsername

        public static java.lang.String getSavedUsername()
      • isHideUsername

        public static boolean isHideUsername()
      • isRememberUsername

        public static boolean isRememberUsername()
      • getResizableValue

        public static int getResizableValue()
        Gets an int value of if resizable mode is enabled 1 is disabled, 2 is enabled
        Returns:
        1 if disabled, 2 if enabled, -1 if reference is null
      • isResizableActive

        public static boolean isResizableActive()
        Returns whether resizable mode is enabled
        Returns:
        True if it's enabled, False if it isn't
      • getClientParameters

        public static java.util.LinkedHashMap<java.lang.Integer,​java.lang.Integer> getClientParameters()
        Returns the client parameters
        Returns:
        client parameters
      • roofsEnabled

        public static boolean roofsEnabled()
        Checks if roofs are enabled
        Returns:
        True if roofs are visible, False if they aren't or ref is null
      • toggleRoofs

        public static boolean toggleRoofs​(boolean on)
        Toggles roof visibility
        Parameters:
        on - whether you want roofs visible or not
        Returns:
        returns whether roofsEnabled() matches on parameter
      • closeSettingsInterface

        public static boolean closeSettingsInterface()
        This will close the "All Settings" interface
      • toggleGameAudio

        public static boolean toggleGameAudio​(boolean on)
        Toggles whether all game audio settings are on or off
        Returns:
        true if it succeeds, false otherwise
      • toggleResizable

        public static boolean toggleResizable​(boolean on)
        Toggles whether resizable mode is enabled or not
        Parameters:
        on - Whether you want resizable active or not
        Returns:
        False if on is true, otherwise returns if isResizableActive() matches param
      • getClientBrightness

        public static int getClientBrightness()
        Gets the in game brightness setting
        Returns:
        client's brightness setting, between 0 (dimmest) and 100 (brightest)
      • setClientBrightness

        public static boolean setClientBrightness​(int brightness)
        Sets the in game brightness setting
        Parameters:
        brightness - Brightness value between 0 (dimmest) and 100 (brightest)
        Returns:
        true if we're able to change the brightness to the provided value, false otherwise
      • setClientLayout

        public static boolean setClientLayout​(ClientLayout layout)
      • getClientLayout

        public static ClientLayout getClientLayout()
        Gets the current client layout
        Returns:
        The current ClientLayout
      • isGameAudioOn

        public static boolean isGameAudioOn()
        Gets the current game audio settings
        Returns:
        true if all sound options are unmuted, false otherwise
      • toggleAcceptAid

        public static boolean toggleAcceptAid​(boolean on)
        Toggles whether accept aid is on or off
        Returns:
        true if it succeeds, false otherwise
      • isAcceptAidEnabled

        public static boolean isAcceptAidEnabled()
        Checks if accept aid is enabled
        Returns:
        true if it is, false otherwise
      • toggleEscInterfaceClosing

        public static boolean toggleEscInterfaceClosing​(boolean on)
        Toggles whether using the escape key to close interfaces is on or off
        Returns:
        true if it succeeds, false otherwise
      • isEscInterfaceClosingEnabled

        public static boolean isEscInterfaceClosingEnabled()
        Checks if escape to close interfaces is enabled
        Returns:
        true if it is, false otherwise
      • isShiftClickDroppingEnabled

        public static boolean isShiftClickDroppingEnabled()
        Checks if shift click dropping is enabled
        Returns:
        true if it is, false otherwise
      • toggleShiftClickDropping

        public static boolean toggleShiftClickDropping​(boolean on)
        Toggles whether shift click dropping is on or off
        Returns:
        true if it succeeds, false otherwise
      • toggleScrollToZoom

        public static boolean toggleScrollToZoom​(boolean on)
        Toggles whether scroll to zoom the camera is on or off
        Returns:
        true if it succeeds, false otherwise
      • isScrollToZoomEnabled

        public static boolean isScrollToZoomEnabled()
        Checks if scroll to zoom is enabled
        Returns:
        true if it is, false otherwise
      • toggleChatEffects

        public static boolean toggleChatEffects​(boolean on)
        Toggles whether chat effects are on or off
        Returns:
        true if it succeeds, false otherwise
      • areChatEffectsEnabled

        public static boolean areChatEffectsEnabled()
        Checks if chat effects are enabled
        Returns:
        true if it is, false otherwise
      • toggleTransparentChatbox

        public static boolean toggleTransparentChatbox​(boolean on)
        Toggles whether transparent chatbox is on or off
        Returns:
        true if it succeeds, false otherwise or if you're not on resizable mode
      • isTransparentChatboxEnabled

        public static boolean isTransparentChatboxEnabled()
        Checks if the transparent chatbox is enabled
        Returns:
        true if it is, false otherwise
      • toggleClickThroughChatbox

        public static boolean toggleClickThroughChatbox​(boolean on)
        Toggles whether click through chatbox is on or off
        Returns:
        true if it succeeds, false otherwise or if you're not on resizable mode or if transparent chatbox is disabled and you're trying to disable this
      • isClickThroughChatboxEnabled

        public static boolean isClickThroughChatboxEnabled()
        Checks if click through chatbox is enabled
        Returns:
        true if it is, false otherwise
      • toggleItemPilesOnDeath

        public static boolean toggleItemPilesOnDeath​(boolean on)
        Toggles whether certain items are piled on death is on or off
        Returns:
        true if it succeeds, false otherwise
      • areItemPilesOnDeathEnabled

        public static boolean areItemPilesOnDeathEnabled()
        Checks if item piles on death are enabled
        Returns:
        true if it is, false otherwise
      • toggleMoveFollowerOptionsLower

        public static boolean toggleMoveFollowerOptionsLower​(boolean on)
        Toggles whether follower options are lower is on or off
        Returns:
        true if it succeeds, false otherwise
      • isMoveFollowerOptionsLowerEnabled

        public static boolean isMoveFollowerOptionsLowerEnabled()
        Checks if the move follower options lower setting is enabled
        Returns:
        true if it is, false otherwise
      • getPlayerAttackOptionsMode

        public static ActionMode getPlayerAttackOptionsMode()
        Returns the current ActionMode for player attack options
        Returns:
        player attack options ActionMode
      • setPlayerAttackOptionsMode

        public static boolean setPlayerAttackOptionsMode​(ActionMode mode)
        Sets the player attack options mode
        Returns:
        true if it succeeds, false otherwise
      • setNPCAttackOptionsMode

        public static boolean setNPCAttackOptionsMode​(ActionMode mode)
        Sets the NPC attack options mode
        Returns:
        true if it succeeds, false otherwise
      • getNPCAttackOptionsMode

        public static ActionMode getNPCAttackOptionsMode()
        Returns the current ActionMode for NPC attack options
        Returns:
        NPC attack options ActionMode
      • setDefaultZoom

        public static boolean setDefaultZoom()
        Sets the zoom to the default zoom value
        Returns:
        whether zoom matches default value after setting it
      • getZoomValue

        @Deprecated
        public static int getZoomValue()
        Deprecated.
        see Camera.getZoom() Scheduled for removal 04/01/2021
        Gets the current camera zoom value
      • isZoomingEnabled

        public static boolean isZoomingEnabled()
        Checks if scroll to zoom is enabled on the account
        Returns:
        true if enabled, false otherwise
      • isShiftInteractionEnabled

        public static boolean isShiftInteractionEnabled()