Elitist Jerks
Register
Blogs
Urban Rivals
Forums
New Posts


Go Back   Elitist Jerks > Public Discussion > Public Discussion
Elitist Jerks Login

gamerDNA Login

Welcome to Elitist Jerks
We're testing some new features on the site regarding OpenID registration and coordination with gamerDNA. If you experience any issues with registering an account, please take the time to fill out a report and send it to this e-mail address. We would appreciate any assistance you could provide in making sure everything is functioning as intended. Thanks!

If this is your first visit, please be sure to check out the FAQ and the forum rules. Users must register to post and new registrations are subject to a one day "mute" period to get acquainted with the community.

Reply
 
LinkBack Thread Tools
Old 06/13/07, 8:20 PM   #1
Shocktar
Oh holy crap potatoes!
 
Troll Priest
 
Kel'Thuzad
5 second rule event in the API?

The author of Outfitter and I are trying to design a script that can automatically switch weapons based on whether or not one is in the 5 second rule.
Yes, I know this incurs a global cooldown.
Previously, we'd been using the event PLAYER_REGEN_DISABLED, but that is health regen, not mana. Is there a similar API call that uses mana regen, and fires when you're inside and outside the 5sr?
 
User is offline.
Reply With Quote
Old 06/13/07, 8:42 PM   #2
Polleke
Foobar
 
Polleke's Avatar
 
Troll Priest
 
Azjol-Nerub (EU)
I don't think this thread is in the right forum. I had a quick look in PittBull_Spark and it registers UNIT_MANA and UNIT_SPELLCAST_SUCCEEDED and bassicly checks if mana was used after a succesfull spellcast. And then counts for 5 seconds. That should work for your purpose aswell.

* Bla
 
User is offline.
Reply With Quote
Old 06/13/07, 8:45 PM   #3
Shocktar
Oh holy crap potatoes!
 
Troll Priest
 
Kel'Thuzad
You are absolutely right Polleke, thank you.

May I please have a mod move this into the Mods section?
Thank you.
 
User is offline.
Reply With Quote
Old 06/13/07, 9:04 PM   #4
Shadowed
Bald Bull
 
Tauren Druid
 
Mal'Ganis
Nope, theres no event for detecting the 5 second rule, as was said above you have to use a combination of events + timer to detect it.
 
User is offline.
Reply With Quote
Old 06/14/07, 3:44 AM   #5
Roywyn
Bald Bull
 
Roywyn's Avatar
 
Gnome Mage
 
Argent Dawn (EU)
Sorry if I derail a bit, but when exactly do the mana regeneration ticks happen?

Is it like energy for rogues, who get their energy ticks on a global timer?
(I.e. if you cast a spell that costs mana, you get your first tick 5-7s after your cast, depending on when your cast happens in the gloal timer.)
Or is it on a timer that ticks after spending mana?
(I.e. after you cast your spell, you always get your next tick of mana 7s (or 5s) after your cast, indepependant of exact timing.)

I'm still trying to figure that one out for evocation and weapon swapping.

Edit: Thanks for the replies that it's a global timer when all your mana regens ticks.

Last edited by Roywyn : 06/14/07 at 10:07 AM.
 
User is offline.
Reply With Quote
Old 06/14/07, 5:25 AM   #6
bobz0r
Glass Joe
 
Undead Priest
 
Cho'gall
Roywyn,
Maybe this can help clarify.


"The 5 second rule states that 5 seconds after your last spell cast you normally do not regenerate mana from spirit.
However, you do regenerate mana from mana every 5 second gear(mp5) and you can regenerate a reduced amount from spirit in the forum of talents, buffs (mage armor), and/or trinkets like Bangle of Endless Blessings.
In game, blizzard describes inside the 5 second rule as "while casting" and outside of the 5 second rule as "while not casting."
From: The Priest Mana Regeneration Model

http://forums.worldofwarcraft.com/th...11893046&sid=1

Last edited by bobz0r : 06/14/07 at 5:26 AM. Reason: added link
 
User is offline.
Reply With Quote
Old 06/14/07, 7:32 AM   #7
thorin5
Von Kaiser
 
thorin5's Avatar
 
Draenei Shaman
 
Hellscream
Originally Posted by Roywyn View Post
Sorry if I derail a bit, but when exactly do the mana regeneration ticks happen?

Is it like energy for rogues, who get their energy ticks on a global timer?
(I.e. if you cast a spell that costs mana, you get your first tick 5-7s after your cast, depending on when your cast happens in the gloal timer.)
Or is it on a timer that ticks after spending mana?
(I.e. after you cast your spell, you always get your next tick of mana 7s (or 5s) after your cast, indepependant of exact timing.)

I'm still trying to figure that one out for evocation and weapon swapping.
I'm pretty sure it behaves just like the regular energy ticks that rogues deal with. I'm not sure how often the energy ticks are, but for mana they happen every 2.5 seconds, which can easily be seen if you use Scrolling Combat Text and enable it to show all power gains(you'll see roughly half the mp5 listed on your character screen pop up every 2.5 seconds)
 
User is offline.
Reply With Quote
Old 06/14/07, 7:38 AM   #8
dakalro
Piston Honda
 
Human Warlock
 
Mazrigos (EU)
Regen ticks are every 2 seconds. Also confirmed ... somewhat, by having in combat regen % and seeing what the char screen says for your class regen formula. And as far as I saw from my druid it's a global tick, like energy.
 
User is offline.
Reply With Quote
Old 06/14/07, 9:23 AM   #9
Starbucks
Got 100 problems.
 
Starbucks's Avatar
 
Tauren Shaman
 
Al'Akir (EU)
I do not think you can automatically change the weapon, to be honest with you I think making a plugin which adds the 5 second rule to SCT would be something you can look for, though I could be wrong and it is possible, considering Wardrobe 2 looks for the combat flag to drop before switching items if you try midcombat
 
User is offline.
Reply With Quote
Old 06/14/07, 10:42 AM   #10
Nomad_Wanderer
Von Kaiser
 
Human Priest
 
Lothar
I do believe you can change your gear based on events.. I think there is a closetgnome_Bigwigs that does this.

Quartz and pitbull both have global cooldown display, and a mod like regenFu (or naboo5sec), have good 5SR counters..

It's probably feasible to borrow code from a few of these to accomplish what you want.
 
User is offline.
Reply With Quote
Old 06/14/07, 2:14 PM   #11
Shocktar
Oh holy crap potatoes!
 
Troll Priest
 
Kel'Thuzad
Thanks for all the thoughts everyone,

Currently, we're writing a script using Chronos's timers and the UNIT_MANA event that should accomplish what we're looking for. I'm testing it tonight, and will provide updates tomorrow.
 
User is offline.
Reply With Quote
Old 06/15/07, 1:13 PM   #12
Nomad_Wanderer
Von Kaiser
 
Human Priest
 
Lothar
Originally Posted by Nomad_Wanderer View Post
I do believe you can change your gear based on events.. I think there is a closetgnome_Bigwigs that does this.

Quartz and pitbull both have global cooldown display, and a mod like regenFu (or naboo5sec), have good 5SR counters..

It's probably feasible to borrow code from a few of these to accomplish what you want.
I was stupid yesterday. Closetgnome_Switcher actually changes gear out on events, like evocate..... You might want to try and use this as a base mod, borrowing most of the code, and just changing the 'trigger'.
 
User is offline.
Reply With Quote
Old 06/15/07, 1:28 PM   #13
Pater
Don Flamenco
 
Tauren Druid
 
Khadgar
I wrote some early 5sr mods. IIRC, the only way to know if 5sr begins is when UNIT_MANA ("player") goes down at the same time as a SPELL_STOP_CASTING. IIRC, he only other check you have to do is for channeling--regen disabled the entire channel time. I can't remember if it resumes immediately after channel ends (assuming you channeled 5+ seconds) or if it tacks on another 5 sec at the end.
 
User is offline.
Reply With Quote
Old 06/15/07, 1:35 PM   #14
Overhead
Glass Joe
 
Dwarf Hunter
 
Shattered Hand
Originally Posted by Roywyn View Post
I'm still trying to figure that one out for evocation and weapon swapping.
Don't bother for evocation, it's an even number of channeled seconds, so regardless of when you start you get the same number of ticks with the buff up.

Something like innervate or the Bangle, however, there is a small timing issue to maximize it. It makes me wonder, is everyone on the same global tick, or is it player specific? ie can a druid time innervating a priest with their own regen tick?
 
User is offline.
Reply With Quote
Old 06/15/07, 1:55 PM   #15
Zaroua
Piston Honda
 
Zaroua's Avatar
 
Dwarf Paladin
 
Sen'jin
I'll add a bit of info: the Pitbull power bar is for lack of better words, wrong. It's mainly a guide to help along. Spirit (and Energy) tick every 2 seconds:

0:00 Spirit tick. Oh shit tank needs a heal.
0:01 Start casting a 1.5 second spell.
0:02 Spirit tick. Still casting.
0:03 Spell finishes casting at 2.5 seconds.
0:04 Spirit tick but no gain due to 5sr.
0:05 Nothing.
0:06 Spirit tick but no gain due to 5sr.
0:07 Nothing.
0:08 Spirit tick outside of 5sr.
0:09 Nothing.
0:10 Spirit tick outside of 5sr.


Basically the heal casted at 2.5 seconds will put you inside the 5sr until the 8 seconds mark, not the 7.5 second. What would be really helpful is a mod that tracks every spirit tick (kinda like energy watch mods) and tracks the time of the last spell that landed the caster inside the 5sr until the next full spirit tick.



Edit: For the disbelievers, simply play a Warlock and use Life Drain. You'll see that it sometimes takes "a while" to get the first spirit tick after the spell finishes.

Dogma also claims that God has a sense of humor and at times presents Him as a joker of sorts, thus again lowering Him to human level. While I am certain God has a "sense of humor" since He gave it to us, I find it most difficult to believe He finds humor in sin since He will cast the unforgiven sinner into the lake of fire for eternity. Not very funny at all.
 
User is offline.
Reply With Quote
Old 06/15/07, 3:30 PM   #16
Belenos
Piston Honda
 
Dwarf Priest
 
Azuremyst
You can indeed swap weapons on an event, mods can change your weapons any time (but not the rest of your gear in combat).

I'm not sure what the exact goal of the OP is, but feel free to check out CasterWeaponSwapper. This mod swaps weapons based on mana levels, in addition to Evocation/Innervate/etc. I don't watch for 5sr ticks, but I did find a way to only swap weapons as you are casting a spell, which means you piggyback the global cooldown and don't have to interrupt the player, which is nice.

http://www.wowinterface.com/download...onSwapper.html
 
User is offline.
Reply With Quote
Old 06/17/07, 10:45 PM   #17
Crepusculu
Von Kaiser
 
Night Elf Priest
 
Stormrage
What would be really helpful is a mod that tracks every spirit tick (kinda like energy watch mods) and tracks the time of the last spell that landed the caster inside the 5sr until the next full spirit tick.
I spent quite a bit of my time attempting to create such a mod. The big problem was that the mana ticks aren't actually evenly spaced out. I discovered this while trying to predict ticks. Then there is the whole presentation of this data... how would you make a meaningful visual that doesn't clutter up the screen?

In the end a scrapped the on screen tick visuals and just made a tick tracking mod. You can see the results in my mod CrepMana
http://www.wowinterface.com/list.php?skinnerid=35267
 
User is offline.
Reply With Quote
Old 06/18/07, 7:24 PM   #18
 zeidrich
never simple
 
zeidrich's Avatar
 
Blood Elf Paladin
 
Mal'Ganis
Edit: Decided to test it before making OUTRAGEOUS claims.

Last edited by zeidrich : 06/18/07 at 7:34 PM.
 
User is offline.
Reply With Quote
Old 06/20/07, 1:58 PM   #19
Belenos
Piston Honda
 
Dwarf Priest
 
Azuremyst
Hmmm, upon looking at the code, RegenFu, NabuFiveSec, and the new Outfitter code all seem to only track 5 seconds after the player's mana decreases. It seems this would be inaccurate regarding long channeling spells, as well as mana burn effects. Does anyone know if a 5-sec mod that ccounts for these?
 
User is offline.
Reply With Quote
Old 06/20/07, 2:17 PM   #20
 Kalman
And It's Delicious
 
Kalman's Avatar
 
<>
Orc Shaman
 
No WoW Account
Originally Posted by Belenos View Post
Hmmm, upon looking at the code, RegenFu, NabuFiveSec, and the new Outfitter code all seem to only track 5 seconds after the player's mana decreases. It seems this would be inaccurate regarding long channeling spells, as well as mana burn effects. Does anyone know if a 5-sec mod that ccounts for these?
Channeling 5SR starts counting from start of channel; you're held in 5SR until you exit channel, but if channel > 5s, you exit 5SR immediately after end of channel.

Originally Posted by Vontre
Oh, nah, I just type things for the sake of typing things. ^_^
Originally Posted by Lyta
The dog nailed me like three times that day. It resulted in my ass hitting the ground and my legs waving in the air.
 
User is offline.
Reply With Quote
Reply

Go Back   Elitist Jerks > Public Discussion > Public Discussion

Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Event question Analyze User Interface and AddOns 3 05/31/07 3:48 PM
Bash'ir Landing event in BEM Pater Public Discussion 36 05/30/07 7:28 AM
A Simple Rule Praetorian Public Discussion 0 12/09/06 11:02 AM
5 Second Rule Arawethion Public Discussion 13 09/18/06 8:47 AM