|
Post by alerean on Apr 1, 2016 2:09:26 GMT
Hello. How would I go about forcing the script to cast Sweeping Wind only when it's not currently active, and to not refresh it once it is active? As it stands it's wasting a lot of my spirit needlessly in situations where my own attacks would have kept the buff up, and I only really need it to cast SW once if it happens to drop completely (or at the start of the rift).
|
|
|
Post by daleberkaspepi on Apr 1, 2016 11:30:23 GMT
There are at least 2 possible ways you can solve your problem. Ether you use the buffticksleft definition if you wan to recast it right BEVORE it runs out or you use the buffisnotactive definition if you want to cast it when sweeping wind already ran out.
For the the buffticksleft you need the sno forr sweeping wind the attribute id for buffendtick aswell the number of ticks it should cast it bevore it runs out. Ticks is related to the number calculations per sec the server calculates. 60 ticks = 1 sec
For buffisnotactive you only need the sno for sweeping wind and the attid for the buffcountvalue in the active power view (you find that in the skill editor in the lower left corner)
I prefer the buffticksleft variante because if some kind of buffer if it should lag.
|
|
|
Post by alerean on Apr 1, 2016 16:39:20 GMT
Alright, so it's now spamming SW until I run out of Spirit. I'm using IsBuffNotActive with the AttribID 756/757. What am I doing wrong? That ID seems to be the one for 0 stacks, so I don't get why it's not working. I've tried the rest of the ID's as well, but no dice.
|
|
|
Post by daleberkaspepi on Apr 2, 2016 13:15:11 GMT
|
|
|
Post by alerean on Apr 3, 2016 14:08:18 GMT
So IsBuffNotActive is working perfectly, but not BuffTicksLeft. I've even tried the same sort of thing for other skills and the same thing is happening (skill spam). I tried BuffTicksLeft for Barbarian Sprint, where there is only one AttribID, and entering different values makes no difference in-game. Literally nothing I've tried has changed how any of these types of skills are cast. Very confusing.
|
|
|
Post by daleberkaspepi on Apr 4, 2016 19:11:17 GMT
Yeah because you're doing it wrong....
The AttribID always has 3 digitis for your case it would be 618 instead of 8530. 8530 is the end tick. So for Example if you calculate the values xxxx like that {(BuffEndTick: XXXX) - (BuffStartTick: XXXX)}/60 you should get the duration of your sprint you specified
BTW the rune for sprint i was using in my example for the AttribId was Sprint - Hurricane.
|
|
|
Post by alerean on Apr 5, 2016 14:24:45 GMT
I'm confused, because you told me I'd need the ID for buffendtick earlier. I'll give it a go once the servers come up.
|
|
|
Post by daleberkaspepi on Apr 5, 2016 17:07:35 GMT
Dude i wrote that you need the Attribute ID for BuffEndTick not the BuffEndTick itself.... pls read it closely.... for clarification in case you missunderstood me: i hope you understand now what i ment with AttributeID for BuffEndTick.
|
|
|
Post by alerean on Apr 9, 2016 0:46:55 GMT
Thank you so much for being patient! I finally got it working, and you're right in that it's much better than IsBuffNotActive! Sorry for the confusion, the active powers just confused the hell out of me (and still does a bit >_>).
|
|