Skip to content

feat: Further progress on the 530 branch.#59

Draft
FlenarnDev wants to merge 92 commits intoLostCityRS:530-wipfrom
FlenarnDev:530-wip
Draft

feat: Further progress on the 530 branch.#59
FlenarnDev wants to merge 92 commits intoLostCityRS:530-wipfrom
FlenarnDev:530-wip

Conversation

@FlenarnDev
Copy link
Copy Markdown
Contributor

@FlenarnDev FlenarnDev commented Dec 15, 2025

Add correct IDs for following client protocols:

  • NO_TIMEOUT (93)
  • IDLE_TIMER (245)
  • EVENT_MOUSE_CLICK (75)
  • EVENT_MOUSE_MOVE (123)
  • EVENT_APPLET_FOCUS (22)
  • EVENT_CAMERA_POSITION (21)
  • OPLOC1 (254)
  • OPLOC2 (194)
  • OPLOC3 (84)
  • OPLOC4 (247)
  • OPLOC5 (170)
  • IF_BUTTON1 (155)
  • IF_BUTTON2 (196)
  • IF_BUTTON3 (124)
  • IF_BUTTON4 (199)
  • IF_BUTTON5 (234)
  • MAP_BUILD_COMPLETE (110)
  • CLOSE_MODAL (184)
  • MOVE_OPCLICK (77)
  • MOVE_GAMECLICK (215)
  • MOVE_MINIMAPCLICK (39)
  • FRIENDLIST_ADD (120)
  • FRIENDLIST_DEL (57)
  • IGNORELIST_ADD (34)
  • IGNORELIST_DEL (213)
  • MESSAGE_PUBLIC (237)
  • MESSAGE_PRIVATE (201)
  • REPORT_ABUSE (99)

Added basic decoding support for the following client protocols:

  • CLAN_JOINCHAT_LEAVECHAT (104)
  • CLAN_KICKUSER (162)
  • FRIEND_SETRANK (188)
  • WINDOW_STATUS (243)
  • DETECT_MODIFIED_CLIENT (20)
  • TRANSMITVAR_VERIFYID (172)
  • SOUND_SONGEND (137)
  • OPOBJE (92)
  • OPLOCE (94)
  • IF_BUTTON6 (168)
  • IF_BUTTON7 (166)
  • IF_BUTTON8 (64)
  • IF_BUTTON9 (53)
  • IF_BUTTON10 (9)

Removed client protocol ordering by index as the left-over client array they were sourced from was removed by this point.
Corrected ctrlHeld read method in MoveClickDecoder to be g1b_alt1 instead of g1_alt1.
Swapped obj & count order in ObjRevealEncoder.
INV_BUTTON instances mostly renamed to IF_BUTTON, more to do however.
Skill counts updated to 24 from 21.
Handling of OPLOCE & OPOBJE implemented.

@FlenarnDev FlenarnDev marked this pull request as draft December 16, 2025 13:11
@FlenarnDev FlenarnDev changed the title feat: A bit more progress on the 530 branch. feat: Further progress on the 530 branch. Dec 17, 2025
Flenarn and others added 24 commits December 19, 2025 20:29
This makes the number generation/distribution match any Java-based code.
In a perfect world this has no measurable effect. Random should be random...
* fix: support categories in ai triggers

* chore: slight adjustment so we dont get type twice
test scenario: killing rat in lumbridge
previous behavior: consistently walking in the last direction on respawn
new behavior: remains idle, or moves in a different direction
Random.nextDouble is called by Math.random() in Java
Probably what they use!

note: Java random uses LCG, JS (V8) random uses xorshift128+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants