This script adds features to show someone's CPR data based on TornStats and local data, adds status icons to your unavailable members and highlights unavailable and unfit members. It was a custom script request from Legaci [2100546], who agreed it would be useful to share this with the masses. You can thank him for the script idea as well as some of the design-aspects.
This script is PDA friendly
Please note that this script was tested on two accounts with OC perms available, so I'm unaware of any issues for those without OC perms.
The script adds an extra "CPR Data" button to the OC dropdown.
Upon clicking this button, a modal will appear with that person's CPR data. By default this will try fetching data from TornStats first, which is why your TornStats login key is recommended. If no TornStats data can be found, it will use local data. It is recommended to scroll through your list of planned and completed OCs if you want all data to be available. For those using TornStats, I'd recommend going through the Recruiting and Planning tabs for any data regarding OC levels to show up.
On top of that, this script also uses your API key to fetch the current online status of those not yet in an OC
Clicking on the online/idle/offline dot, will also bring up the same CPR data modal as shown above.
A new tab will also show up upon installing this script, where it's possible to configure minimum CPR requirements for each crime and role.
As of version 1.1.0, you are now also able to configure minimum CPR requirements by weight. Upon toggling this setting, the page needs to be refreshed for the changes to take effect.
As of version 1.2, you can now enable a setting to show a CPR button to see all CPRs for that role.
If you enable the "Highlight unavailable and unfit members" toggle (turned off by default), those who are below the minimum requirement or those who do not have the OC item or are in the hospital when the OC is due, will be highlighted. This gives you a clear indication that action might be required.
(Red = low CPR, Yellow = unavailable)
Mentions: Legaci [2100546]