WA发布 发表于 2023-6-11 19:34:14

TrinketHotSwap

TrinketHotSwap


TrinketHotSwap was built to automatically swap your trinkets based on whether or not they're on cooldown, so that you don't have to think about it. It supports both on-use and proc-based trinkets with an internal cooldown. Partial support for this already exists in both ItemRack and TrinketMenu, however both frequently fail, unlike its predecessors this was developed with a single purpose...

Setup


Each trinket is currently tracked by a separate instance of the Trinket Template WeakAura. You will manually have to fill in the information in the Custom Options tab in order for the WeakAura to work, as per the picture below (which is setup for Shard of Contempt). All fields are required.

In order to add more trinkets, simply duplicate the Trinket Template and fill in the custom options.

Features



[*]Trinkets are swapped based on the priority you set in the custom options of each Trinket Template, with a lower number meaning a higher priority
[*]Trinkets will swap based on which has the shortest cooldown remaining and with the best priority
[*]Auto-swap on combat drop (PLAYER_REGEN_ENABLED event)
[*]Timer-based out of combat swapping (can be toggled in the custom options of the Receiver
[*]Supports on-use trinkets
[*]Supports proc-based trinkets
[*]Works on both trinket slots by default (can be changed in custom options)

Gotchas



[*]A /reload is required after adding a new trinket or updating the priorities
[*]Only works for trinkets that buff you (i.e not trinkets that damage an enemy)
[*]Priority order field values should be unique (i.e start with 1, 2, 3 and so on)
[*]Since WeakAuras are setup by account I recommend you load certain trinket templates only for certain characters. This can be done in the Load tab for each Trinket Template
[*]If a bunch of logs start spewing in your chat window, open the group and disable Debug Logging

If you run into any issues drop a comment and I'll see what I can do
页: [1]
查看完整版本: TrinketHotSwap