Mosrael
Newbie Beta Tester
Posts: 3
|
Post by Mosrael on Aug 6, 2007 13:50:38 GMT -5
Is it possible to add a type of gauge that will fill up when your next attack is coming.
Ex. 1 1. Start fighting, I use AutoShoot. 2. Gauge fills up every time AutoShoot can shoot again.
Ex. 2 1. Start fighting, use melee attack. 2. Guage fills up every time I'm about to swing again.
Sorry, if no one understands what I mean, or if this has already been posted. (I searched, but didn't see anything.)
|
|
|
Post by Moongaze on Aug 6, 2007 14:48:59 GMT -5
I understand and ... I suppose I could add that as well I honestly don't know how accurate I'll be able to make it though. I have to look into how those attacks and attacks in general are handled, timer wise, to see how easy I can do it.
|
|
wolftusk
Very Talkative Beta Tester
Posts: 140
|
Post by wolftusk on Aug 6, 2007 16:34:37 GMT -5
I understand and ... I suppose I could add that as well I honestly don't know how accurate I'll be able to make it though. I have to look into how those attacks and attacks in general are handled, timer wise, to see how easy I can do it. Quartz does this. I believe the way that it works is that it catches an event that is fired when the character attacks. If the player is still auto attacking after that event, it will display a progress bar with the speed of the weapon in seconds. So if your weapon speed is 2.8 seconds, it has a progress bar where 100% is 2.8 and fills it up over time. At the moment when the progress bar completes, your character swings again and the process starts over. as soon as auto attack is off, the bar disappears. if the user casts or what not, it is reset. It works for 1 handers and 2 handers but not if you are dual wielding (makes sense since its much more complex) I am not sure if the same thing is done for ranged weapons. this is my speculation anyway
|
|
|
Post by Moongaze on Aug 6, 2007 18:16:23 GMT -5
noob question from an ADDON AUTHOR:
Are there abilities that increase the speed of a weapon, be it an aura, spell, ability, or item? I thought there was, but I can't remember off the top of my head. Since all I ever play is a Priest (with other characters not even higher that 19 and one 24 druid), I'm new to that area, haha. Still, grabbing the weapon speed from the tooltip would be easy enough, and I could have the gauge work well with that idea.
Of course, if you can duel wield, I'll have to probably see which weapon will hit next and use that as the gauge, and then when that's done, fill the gauge with the difference of the next weapon, like so:
Weapon #1: 2.1 attack speed Weapon #2: 3.3 attack speed.
Weapon #1 hits first, thus the gauge will will based upon the 2.1 seconds data. Weapon #2 hits, and has to wait 3.3 seconds. When the first weapon's gauge (0 to 2.1 seconds) is finished, 2.1 seconds have passed so the gauge will reset to show: 3.3 - 2.1 = 1.2 seconds left. Instead of starting the gauge at "2.1 of 3.3 seconds have passed (being almost 66% full)" it would be 0 of 1.2 seconds left (empty gauge) and will fill VERY fast. At least, that's how I would do it.
God, what else will LunarSphere do? Haha. I swear, when it's finished, it will almost be like a complete UI overhaul... like those "UI Compilation Packs" people use that have tons of addons and a pre-set layout. Sad thing is that LS would be ONE addon, take care of 5-15 addons, and be smaller than most or all of them.
*grumbles "I can't wait to clean up my LUA code, it's getting messy" grumbles*
|
|
wolftusk
Very Talkative Beta Tester
Posts: 140
|
Post by wolftusk on Aug 9, 2007 8:43:57 GMT -5
noob question from an ADDON AUTHOR: Are there abilities that increase the speed of a weapon, be it an aura, spell, ability, or item? I thought there was, but I can't remember off the top of my head. Since all I ever play is a Priest (with other characters not even higher that 19 and one 24 druid), I'm new to that area, haha. Still, grabbing the weapon speed from the tooltip would be easy enough, and I could have the gauge work well with that idea. Of course, if you can duel wield, I'll have to probably see which weapon will hit next and use that as the gauge, and then when that's done, fill the gauge with the difference of the next weapon, like so: Weapon #1: 2.1 attack speed Weapon #2: 3.3 attack speed. Weapon #1 hits first, thus the gauge will will based upon the 2.1 seconds data. Weapon #2 hits, and has to wait 3.3 seconds. When the first weapon's gauge (0 to 2.1 seconds) is finished, 2.1 seconds have passed so the gauge will reset to show: 3.3 - 2.1 = 1.2 seconds left. Instead of starting the gauge at "2.1 of 3.3 seconds have passed (being almost 66% full)" it would be 0 of 1.2 seconds left (empty gauge) and will fill VERY fast. At least, that's how I would do it. God, what else will LunarSphere do? Haha. I swear, when it's finished, it will almost be like a complete UI overhaul... like those "UI Compilation Packs" people use that have tons of addons and a pre-set layout. Sad thing is that LS would be ONE addon, take care of 5-15 addons, and be smaller than most or all of them. *grumbles "I can't wait to clean up my LUA code, it's getting messy" grumbles* There are many things that can effect attack haste. I know that the paladin's seal of the crusader effects your attack speed. Items such as the Blackout Truncheon will also make you attack faster. The Shaman/Warrior's flurry will increase haste as well as the shaman's bloodlust. Looking at it now, i can see how this can start getting a little complicated. Having to adjust the haste rating to your level first, and then applying it to your weapon speed and when things stack is it stacking multiplicatively? geez. it can get complicated fast.
|
|
Narcle
Junior Beta Tester
Posts: 24
|
Post by Narcle on Aug 9, 2007 10:01:57 GMT -5
Duel wielding would make this very inaccurate as Moon posted. It would require 2 gauges for DWing. And as the attack speed increase goes, there is items as well, and enchants/abilities etc. tons of factors. Only plausible way I could see this done is if you had access to WoW code itself to see when your attack is ready. No accurate way that I see this happening. (unless you could read the inner scripts of WoW) Edit: Only weapons not effected (haste effects) that I know of is Wands, not much use there is it
|
|
|
Post by Moongaze on Aug 9, 2007 15:05:35 GMT -5
... and this is being pushed more and more into that "I'll take a look at it after the public release of LS is finished" catagory. This functionality is a little more complex that we think, haha.
|
|
wolftusk
Very Talkative Beta Tester
Posts: 140
|
Post by wolftusk on Aug 9, 2007 15:13:53 GMT -5
... and this is being pushed more and more into that "I'll take a look at it after the public release of LS is finished" catagory. This functionality is a little more complex that we think, haha. Agreed, that is the conclusion i came to when i started thinking about all that goes into it v2.0 feature!
|
|