TicTac7x / runelite-plugins

External plugins for RuneLite
https://runelite.net/plugin-hub/
10 stars 13 forks source link

Possible to add infernal tool charges? #41

Open RivenSenpai opened 1 year ago

RivenSenpai commented 1 year ago

Don't know if this is able to be tracked but would be nice if it's possible to be added somehow, just thought i'd throw it out there to see :)

TicTac7x commented 1 year ago

Think i could manage to add them, but it would need some testing from someone else since I dont have the infernal items.

Bebop79 commented 1 year ago

If it helps I can test with an infernal axe. An example of the output is "Infernal axe: 99.9% remaining." I tried playing around with this but I'm unsure how to deal with the % being imprecise as it has 5000 charges(tested with 1 charge missing)

TicTac7x commented 1 year ago

It's still helpful, since we can get approximate number of charges. And for some percentages it would be correct.

Do you get any in game messages if the infernal effect takes place?

I could also decrease the charges based on the gained xp.

RivenSenpai commented 1 year ago

No in game message when the effect happens, the only print out the game provides for charges is when you right click check the item which prints the line @Bebop79 stated, idk if it's able to be checked other ways as I haven't setup RL with IntelliJ on my new setup

Edit: now that i think about it, a fix to checking charges would be to check if the infernal axe is equipped/in inv and you are in the action of woodcutting and get a fm+wc xp drop and then count that as a charge and subtract that from a base of 5000 charges and convert that to a % (or just have it track the charges remaining out of 5000 up to you on how you want to display it)

Hjaldr commented 1 month ago

I think all of them have a sound effect play when triggered. Isn't it possible to have an event listener for that? The harpoon has a cooking sound, the axe a log burning sound, and the pickaxe a smelting sound. Same goes for the ornamented variants.