Tested in Tampermonkey (Chrome). Won't test on Greasemonkey, but it should work there.
- Notify when AP is above a given percentage
- Notify when HP is above a given percentage
- Notify on idling
- Notify on captcha
- Trigger events on the
document
when any Observable occurs - other script authors can use these as a kind of framework for their own scripts
Every observable property can be listened on. A list of properties can be found by opening the console (F12 on Chrome), clicking on the Tampermonkey extension icon, and selecting "Debug Battered Shield Helper":
It should then produce an output such as this:
Any key under observables
can be listened on, for example:
document.addEventListener('battered-shield-helper.lvl_combat', e => {
console.log(`I've reached combat level ${e.detail}!`);
});
document.addEventListener('battered-shield-helper.apPCT', e => {
console.log(`My AP is now at ${e.detail}%!`);
});