Commit Graph

541 Commits

Author SHA1 Message Date
Giovanni van der Schelde
ce0ec535d1 chat commands: add shortnames for shayzien agility courses 2022-04-06 09:19:21 -04:00
Adam
92aac53f42 menu swapper: add custom object left click swap 2022-04-04 15:35:29 -04:00
Adam
9980c11296 chat commands: fix tob pb tracking
The word "wave" was removed from the message
2022-03-28 15:30:48 -04:00
Adam
5c77312edf chat commands: add gotr kc 2022-03-23 21:34:28 -04:00
Max Weber
3f6885999a config: associate account hashes to rsprofiles 2022-03-23 20:14:45 -04:00
Adam
e953631a08 chat message manager: fix gim rl-format messages
The rl-format messages aren't prepended with |, causing them to be sent to normal clan chat instead.
2022-03-15 15:42:17 -04:00
Adam
28d4ceb2b5 loottracker: refactor inv change events
Instead of having logic to set the event type and then pick it up again in the inv change event, store a callback to be called on inv change
2022-03-13 15:55:12 -04:00
Adam
64abf450d9 loot tracker: store loot in config
Since loot is now aggregated, the data is little enough to store in
config. This allows loot to persist between sessions even when not
logged in.
2022-03-06 15:12:52 -05:00
Adam
5d7edacd21 item manager: fix active price threshold calculation
This was meant to keep items within 5x of their Jagex price, but the
logic was only correct if activePriceThreshold <= 1.0.
2022-02-27 12:33:40 -05:00
Jordan Atwood
d94abb884d slayer: Fix name matching
The Slayer plugin highlights target monsters based on their name rather
than NPC ID, as many common monsters (skeletons, zombies, etc.) have
nearly endless variations for different models and combat levels.
Previously, this name matching was done via a simple
`String#contains()`, which led to some incorrect matches such as pirates
being highlighted while on rat tasks and Jonny the beard being
highlighted while on bear tasks.

This commit changes matching to use regex to match string boundaries or
whitespace at either end of the task string, ensuring these substring
matches can only happen when word breaks occur. The only known existing
case where this would apply is for baby dragons and brutal dragons,
which are valid alternatives for their respective chromatic dragon
tasks.
2022-02-25 12:40:43 -05:00
LootBagger
e17baf1aee plugin manager: fix plugins with multiple dependencies
If one plugin has multiple dependencies this would throw a concurrent
modification exception due to iterating the successors after removing
the edge

Fill out javadoc for topologicalSort

Co-authored-by: Adam <Adam@sigterm.info>
2022-02-05 23:17:43 -05:00
Adam
b37d46e488 client: add runtime config
A form of this was added in 1.7.11.2 in
e8ea616fc24691177cb2de18698f13ba17448a11, but did not bind the config to
the RuneLite guice module.
2022-02-02 22:34:01 -05:00
SirGirion
48a6d40418 itemcharges: Add support for blood essence
Co-authored-by: Adam <Adam@sigterm.info>
2022-01-18 15:49:13 -05:00
Adam
5960a2f43e chat message manager: format rl-messages at chat build time
This allows different final messages being built for split chat vs
normal chat, fixing <colNORMAL> incorrectly applying the default chatbox
color to split chat.
2022-01-13 09:52:12 -05:00
Adam
513c250d28 chat notifications: restore normal color after own name highlight 2022-01-11 21:32:41 -05:00
Adam
0a501429e6 Move okhttp client from http-api
The client has been recreated with a new builder off of the http-api
client for awhile anyway since runelite-client has multiple other
requirements (caching, tls, etc). This fully moves creation of the
okhttp client into both http-service and runelite-client separately.

I've kept the CLIENT field in http-api for now since a few external
plugins depend on it currently.
2021-12-23 12:36:05 -05:00
Adam
37d538f0db Move http-api clients to rl-client 2021-12-23 11:30:55 -05:00
Adam
b3c4465e73 Move hiscore client to rl-client
Thie removes the http-service hiscore api, which we haven't used in
awhile and doesn't work in practice due to upstream rate limits, as well
as the xp tracker which also hasn't been used in a long time since there
are now multiple quality community run xptrackers.
2021-12-14 20:24:22 -05:00
Adam
e04a6becd2 grandexchange: remove osb ge client 2021-12-14 18:48:37 -05:00
Ron Young
a0c14cf06a api: MenuEntry::setDeprioritized return self 2021-12-11 18:06:45 -05:00
Adam
4fe37f978c friendslist: add option to hide per-friend login notifications 2021-12-10 15:06:55 -05:00
Adam
409d0dda76 api: make MenuEntry an interface
This adds a new createMenuEntry api method to make MenuEntries instead.
Menu entries now have an associated callback called when they are
clicked on, avoiding most plugins from having to hook separately to
detect the menu click. Additionally get/set type has changed to take a
MenuAction.
2021-12-09 13:56:40 -05:00
Adam
a05655f412 screenshot plugin: test screenshot filenames 2021-12-05 12:13:18 -05:00
Adam
9564e13d0f screenshot plugin: add combat achievements
Co-authored-by: Evan <55665020+EvanDeadlySins@users.noreply.github.com>
2021-12-05 12:06:28 -05:00
Adam
90f200be53 chat message manager: don't apply color changes to message nodes
Apply the color changes at chat build time directly to the message being
set on the component, instead of prepending the color change onto the
message itself.

This is a bit more robust since it doesn't break things which depend on
the chat message not starting with a color, which they would not
otherwise, such as the chat filter.
2021-11-28 17:34:21 -05:00
Adam
e36e362aa1 chat commands: update duel arena messages 2021-11-18 17:23:06 -05:00
Adam
58bc37f051 screenshot: update duel arena messages 2021-11-18 17:23:06 -05:00
Adam
1362af414a chat filter: Ignore character accents for matching
This lets plain latin-character filters to match messages with accents
and diacritics which are not easily typed on all keyboard layouts.

Co-authored-by: Jordan Atwood <jordan.atwood423@gmail.com>
2021-11-13 10:15:42 -05:00
Adam
67f7e7f488 clues test: remove unnecessary stubbing 2021-11-12 20:02:42 -05:00
Hydrox6
32ff64b30c clues: make item requirements work with the runepouch 2021-11-11 21:03:52 -08:00
Tal Skverer
e50b0f61a8 timers: Track imbued heart timer from varbit 2021-11-04 11:46:28 -07:00
Tal s
533bcd26be woodcutting: Add clue nest notification config (#14132) 2021-10-27 21:21:43 +00:00
Adam
4187db4059 prayer: fix sanfew prayer dose indicator
The plugin was incorectly computing the amount of prayer sanfews restore
2021-10-26 14:53:19 -04:00
Jordan Atwood
7b678b2afb skill calculator: Define actions and bonuses in Java
As the number of bonus types increases, the existing system of allowing
only a single type of bonus to be applied, and only allowing actions to
entirely opt out of having bonuses applied rather than more fine-grained
control, is showing its age. This commit redefines all bonus and action
entries in Java enums so that such systems can be better-defined.
Additionally, it comes with the benefit of easier change validation via
testing and enabling item and sprite ID referencing via runelite-api.
2021-09-28 22:05:00 -04:00
Jordan
1b49afa56b Merge pull request #14019 from superiorser9/notification-screenshot
ScreenshotPlugin: support collection log popup
2021-09-21 07:34:24 +00:00
superiorser9
8345f6c7bd screenshot: Capture collection log popup notifications 2021-09-21 00:28:13 -07:00
Jordan Atwood
d27f5f9a76 api: Add getMirrorPoint to WorldPoint API 2021-09-19 15:10:12 -04:00
Jordan Atwood
d58cecdb8d idle notifier: Support filling water vessels, Shades of Mort'ton
LOOKING_INTO is a generic animation used for numerous activities, and
was previously used as an intermediate animation in a test case. Now
that it is used to trigger idle notifications, a dummy animation has
been inserted to ensure the affected test case will not be broken in the
same way in the future.

Co-authored-by: Nick Wolff <nickwolff2@gmail.com>
Co-authored-by: Arnaud Peralta <arnaud.peralta@gmail.com>
2021-09-13 23:33:03 -07:00
Adam
c52667a5cc Move npc highlight overlay to core
This allows the other plugins which depend on the npc overaly to work
when npc highlight plugin is off, while still letting them use the
consistent highlight style of the central overlay.
2021-09-06 21:45:14 -04:00
Adam
c3c1222570 chat commands: update to parse new adv log pb counters 2021-08-23 17:03:07 -04:00
Adam
e9665f3504 implings plugin: use npc indicators for impling overlay 2021-08-22 16:51:51 -04:00
Adam
442c6105ce chat commands: rename tob story mode to entry mode 2021-08-22 15:33:08 -04:00
Adam
e9c252e227 chat channel: fix join/leave world hop detection
The ChatPlayers do not implement equals or hashCode, making them
unsuitable as a hashmap key. Instead just use a linked list and compare
the members using the comparable interface.
2021-08-21 15:41:53 -04:00
Cyborger1
bd762cc0da text: don't remove double spaces in toJagexName 2021-08-16 10:40:05 -04:00
Adam
33ff3a2749 npc indicators: add fill color config 2021-08-11 19:30:07 -04:00
Adam
c7b444d892 slayer plugin: use npchiglight for task highlights 2021-08-08 11:37:35 -04:00
Max Weber
b23a310832 itemstats: remove quest field
this has always been unused and isn't particularly useful to us anyway
2021-08-06 00:20:28 -06:00
Adam
e276d5e5ce Add interact highlight plugin
Co-authored-by: Eirik Leikvoll <12532870+LeikvollE@users.noreply.github.com>
2021-07-29 18:11:26 -04:00
Adam
87c72e94a3 chat commands: fix parsing nightmare pb 2021-07-28 16:32:08 -04:00
Adam
7854c6f096 chat commands: fix parsing nightmare nb 2021-07-23 17:19:39 -04:00