- Replace deprecated Core Javacord implementation with a modern JDA 5.x Kotlin plugin
- Introduce event-driven architecture via ServerConfigEvent, ServerStartupEvent, ServerShutdownEvent, and CommandEvent
- Implemented global event posting functionality in Player class.
- Refactored PluginService to handle potential ClassNotFoundException more gracefully.
- Improved CustomPrintStream to better identify the caller context in log messages.
- Refactor server configuration into modular groups ("core" and "discord") with backward compatibility for legacy flat keys
- Updated NpcFirstClickEvent to include npcIndex for better handling of NPC interactions.
- Enhanced Npc and NpcHandler classes to support new interaction logic and ensure NPCs face players correctly.
- Refined packet handling for NPC clicks and button actions to integrate new dialogue and interaction flows.
- Implement O(1) AABB Chebyshev distance calculations in NpcData.goodDistanceNpc and inNpc.
- Enforce authentic 2006 RS2 1-tile melee rules: require cardinal alignment for 1x1 entities while permitting corner melee reach for multi-tile NPCs.
- Add multi-tile leading edge obstacle collision handling in NpcHandler.handleClipping.
- Prevent attacking from underneath NPC body and properly direct NPC step-off away from player.
- Clamp projectile LOS raycast checks to nearest perimeter tile on NPC bounding box.
- Update TzTok-Jad melee stance detection to use multi-tile perimeter reach.
- Update ClickNPC and PlayerAssistant to respect multi-tile bounds for interactions and following.
* Refactoring follow player/NPC variables
* Magic number refactoring
* Added more NPC refactoring
* More NPC refactoring
* More refactoring and removed GWD NPCs
GWD was added in 2007, not 2006, so there's absolutely no reason why this code should exist in the server.
* Removed more GWD NPCs
* Refactored remaining NPC IDs
Pazaz sent me the cache with the updated HQ logo for the login screen so it no longer has artifacts/a pink pixel, I'm creating a new branch with this even though I don't know if this is the right location for the cache, oh well. I think this also contains missing models/midis.
* Added cycle logging
* Use properties for cycle logging
We may not want it since it can be kinda spammy, so we can toggle this feature. We probably want it though.
* Improved cycle logging
* Added kill counts with message display
* Fixed barrows chest count
* Preserve insertion order of NPC IDs for Constants
* Added KC command and interfaces
* Added more robustness to KC command
* Added alias and documentation to new commands
* Added more aliases for new commands
* Merged slayer KC interface names
* Preserve slayerkc nameToKills insertion order and formatting fix
* Updated comment
* Added missing boss NPC id
* Moved giant mole up in set
* Emptied out quest interface properly for kc
* Fixed whitespace
* Fixed formatting
* Hide boss KC messages by default
* 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
* Fix Weight Calculation For Add/Remove Item In ItemAssistant
* Re-Add Simple Stuck Command That Logs To Discord To Prevent Abuse
* Update Discord Log Chanel Var
* Fix int/interface Command
* Add World ID Check To DiscordBot Link Command
* Fix Java Warnings in DiscordBot Link Command
* Fix Some NPC's That Shouldn't Turn When Clicked
* Fix Some NPC's That Shouldn't Turn When Clicked
* Make immobileNpcs private
* Npc.java IntelliJ Code Format
* Clean Old Log Files
* Various Changes
* Moved minutes.log to log folder
* Made SERVER_LOG_DIR constant
* Moved FILE_SYSTEM_DIR to GameConstants & Deleted org.apollo.jagcached.Constants
* Removed unused minutes.log from data/data
* Removed Duplicate RSAKeyGen
* Moved RSAKeyGen from com.rs2.net.rsa to com.rs2.util.rsa
* Removed data/net.xml & Created Moved NetworkConstants.java
* Add HTTP & Jaggrab Port's to ConfigLoader
* IntelliJ Reformat ConfigLoader.java
* Fix Mistake
* Attempt #2
* Woops, wrong port
* Use single method for level for XP
These methods are functionally identical. This was done via test from 0->13034431 and they always returned the same value.
* redundant access
* New xp and level methods
* Removed test command
* Object definition cleanup
* Update ShopAssistant.java
* stackables
* notables
* unused files
* more junk
* almost done
* working
* moving old methods to deprecated
* update
* fixed pickpocket typos
* Update Pickpocket.java
* Remove redundant method. Fix stall stealing
* Documentation for deprecated methods
* WIP commit partial removal. Has test and dump classes
* Final cleanup
* Move definitions from data folder to cfg
* Temporarily moving definition loaders to GameEngine
This is until loading can be done asynchronously.
* Correct indentation.