* Added more client settings for winter and hide roofs * Removed unnecessary local var and added Javadoc comment * Fixed dark wizards casting magic in melee range * Added AttackType enum * Removed extra asterisk * Removed attackType magic numbers * Enabled snow toggles by default * Combined snow month into one variable * Added option for fixes without custom settings Added option for fixes (and QoL tab) without overriding specific features. * Added more main args * Fixed typo * Added player sound saving We have it for music, so why not for sounds too? * Fixed typos * Added closed client exception to ignores * Fixed NPC definitions not loading * Replaced NPC definitions XML with JSON * Replaced NPCDefinition Array with HashMap * Use err for early exit output * Fixed KQ death causing client crash It had the wrong anims. * Added zoom level to debug info * Added zoom level messages option * Added fire breath attack type enum * Replaced remaining fire breath attack types * Fixed client lag This should technically not be necessary, but it's more of a workaround due to server inefficiencies (if you kill a bunch of cows, your client will start to lag and you will even stack hits, I suspect it's due to the ground items) until we fix the server inefficiencies. There's not really any downsides in changing this from 5 to 100, so it's a good change for now. * Make definitions private * Fixed dark wizards not attacking back * Improved comments * Removed extra giant mole spawns * Added mole lair rope action * Only send yes chat head when talking to NPC * Fixed removing item does not reset autocast * Fixed picking up stackable items with full inv * Fixed lvl 7 dark wizard anims * Added confirm param to xprate command and fixed players command * Removed usages of Misc.println This hides which file the println is actually called from, so it's actually better to remove this helper. * Don't move player when clicking on barrows check This is both unauthentic and unnecessary. * Removed unnecessary commented out code We don't even need it commented out tbh. * Fixed incorrect barrows NPC attack anims * Improved slayer points message * Fixed slayer task message cut off * Might as well make this naming consistent * Fixed typo * Fixed stronghold slayer dungeon getting stuck in wall * Require control key for zooming It's too easy to accidentally zoom in/out with the scroll wheel, so let's make it so you need the control key held to scroll wheel zoom in/out. * Added option for control key zooming This way, it's off by default so it works the way it always did by default. * Added alias for control key zoom * Fixed quest interface not emptying out completely * Updated slayer point dialogue to be more accurate * Fixed compile error * Fixed formatting * More formatting fixes * Added 5th click object handling (fixes pick-lock crash) * Fixed lower level NPCs always hitting 0 * Fixed NPCs having incorrect max hit Chickens were hitting 3's, ouch... * Fixed NPCs still hitting 0s This is much better now. Combat feels good. * Fixed boss max hits * Fixed al-kharid gate talking option * Copied over max hits from spawns.json to npcDefinitions.json This fixes a lot of NPCs. Many NPCs already seem to be correct. * Added workaround preventing players stuck in level 28 wildy * Changed comment to TODO * Added control key zoom toggle * Extracted config option to ClientSettings * added message for control key zooming
133 lines
4.2 KiB
Java
133 lines
4.2 KiB
Java
import java.math.BigInteger;
|
|
|
|
/**
|
|
* ClientSettings
|
|
*
|
|
* @author Andrew (I'm A Boss on Rune-Server and Mr Extremez on Mopar & Runelocus)
|
|
*/
|
|
|
|
public class ClientSettings {
|
|
/**
|
|
* @QoL
|
|
* Require control key to zoom the client
|
|
*/
|
|
public static boolean CONTROL_KEY_ZOOMING = false;
|
|
|
|
/**
|
|
* @QoL
|
|
* Show zoom level messages in chat when changing zoom levels
|
|
*/
|
|
public static boolean SHOW_ZOOM_LEVEL_MESSAGES = false;
|
|
/**
|
|
* @QoL
|
|
* Hide roofs
|
|
*/
|
|
public static boolean HIDE_ROOFS = false;
|
|
/**
|
|
* @QoL
|
|
* Hide buggy varrock sword shop snow
|
|
*/
|
|
public static boolean HIDE_BUGGY_VARROCK_SWORD_SHOP_SNOW = true;
|
|
/**
|
|
* @QoL
|
|
* Forces Server-Wide Snow floor
|
|
*/
|
|
public static boolean SNOW_FLOOR_FORCE_ENABLED = false;
|
|
/**
|
|
* @QoL
|
|
* Toggles Server-Wide Snow floor (for the designated month)
|
|
*/
|
|
public static boolean SNOW_FLOOR_ENABLED = true;
|
|
/**
|
|
* @QoL
|
|
* Forces Server-Wide Snow overlay
|
|
*/
|
|
public static boolean SNOW_OVERLAY_FORCE_ENABLED = false;
|
|
/**
|
|
* @QoL
|
|
* Toggles Server-Wide Snow overlay (for the designated month)
|
|
*/
|
|
public static boolean SNOW_OVERLAY_ENABLED = false;
|
|
/**
|
|
* @QoL
|
|
* Enables Server-Wide Snow In The Designated Month
|
|
*/
|
|
public static String SNOW_MONTH = ".12";
|
|
/**
|
|
* The Servers Name
|
|
*/
|
|
public final static String SERVER_NAME = "2006Scape";
|
|
/**
|
|
* The Servers Website
|
|
*/
|
|
public final static String SERVER_WEBSITE = "https://2006Scape.org/";
|
|
/**
|
|
* The Servers Ip
|
|
* You don't have to change this, the client will automatically connect to the server
|
|
* on localhost (Assuming you're running Client and LocalGame respectively)
|
|
*/
|
|
public static String SERVER_IP = "server.2006scape.org";
|
|
/**
|
|
* The Servers World
|
|
* This Determines The Port The Server Will Connect On
|
|
* World 1 Will Connect On Port 43594
|
|
* World 2 Will Connect On Port 43598
|
|
*/
|
|
public static int SERVER_WORLD = 1;
|
|
|
|
/**
|
|
* @QoL
|
|
* If false, the client will run the on demand fetcher based on SERVER_WORLD. If true it will
|
|
* only connect to the server on world 1/Port 43594.
|
|
*/
|
|
public static boolean SINGLE_ONDEMAND = true;
|
|
|
|
public static boolean SHOW_NAVBAR = true;
|
|
public static final String NAV_MAINMENU_LINK = SERVER_WEBSITE;
|
|
public static final String NAV_WORLDMAP_LINK = SERVER_WEBSITE + "img/worldmap.jpg";
|
|
public static final String NAV_MANUAL_LINK = SERVER_WEBSITE;
|
|
public static final String NAV_RULES_LINK = SERVER_WEBSITE + "kbase/rules.php";
|
|
|
|
/**
|
|
* @QoL
|
|
* Enables A Custom Tab With Various QoL Changes
|
|
*/
|
|
public static boolean CUSTOM_SETTINGS_TAB = false;
|
|
/**
|
|
* @QoL
|
|
* Enables Bilinear Minimap Filtering Which Smooths Out Lines And Sprites On The Minimap
|
|
*/
|
|
public static boolean BILINEAR_MINIMAP_FILTERING = false;
|
|
/**
|
|
* @QoL
|
|
* fixes overlapping lines drawn on transparent objects by post-incrementing the offset
|
|
* note: there's 2 other instances that haven't been updated in Texture.java (misnamed) because rarely used like this
|
|
*/
|
|
public static boolean FIX_TRANSPARENCY_OVERFLOW = false;
|
|
/**
|
|
* @QoL
|
|
* render the game to 512px instead of 511px (black line on right side)
|
|
*/
|
|
public static boolean FULL_512PX_VIEWPORT = false;
|
|
|
|
/**
|
|
* @QoL
|
|
* Enables/Disables FileServer CRC Checking For Cache Updates
|
|
* FileServer Must Be Running Before Starting The Client If This Is True
|
|
*/
|
|
public static boolean CHECK_CRC = true;
|
|
|
|
/**
|
|
* The Npc Bits for the Server
|
|
*/
|
|
public final static int NPC_BITS = 12;
|
|
/**
|
|
* The Servers Uid
|
|
*/
|
|
public final static int UID = 314268572;
|
|
|
|
public static final BigInteger RSA_MODULUS = new BigInteger("91553247461173033466542043374346300088148707506479543786501537350363031301992107112953015516557748875487935404852620239974482067336878286174236183516364787082711186740254168914127361643305190640280157664988536979163450791820893999053469529344247707567448479470137716627440246788713008490213212272520901741443");
|
|
public static final BigInteger RSA_EXPONENT = new BigInteger("65537");
|
|
|
|
}
|