PDA

View Full Version : next bounty cooldown



oneillseanm
08-05-2013, 09:12 PM
Hey everyone. I'm trying to learn Ruby scripting from scratch. Over the last few days I've been building up my own bounty manager, layering in new functionality as I come across the need for it and learning it along the way.

The roadblock right now is next bounty cooldown. I see in my uberspells window that there's something being grabbed. Something is telling that script that I have x minutes of bounty cooldown left. What is that thing? How do I reference it? I can't figure it out reading through uberspells.

Thanks for reading!

DaCapn
08-05-2013, 10:05 PM
uberspells is responsible for displaying progress bars. infomon is responsible for actually tracking spell durations. You'll want to use the Spell class.

Some useful examples:
Spell['Next Bounty'].active?
Spell[9003].timeleft

Read lich.rbw for more things the Spell class can do and see spell-info.xml for some additional helpful information.

oneillseanm
08-06-2013, 12:08 AM
Awesome! It's a bingo. Thanks a lot!