I am trying to work out if there is a way to detect when snipe is a 1 second cast time.
hiden peril looks like this
You attack your target using the forest for cover, inflicting 70% ranged weapon DPS on the target. There is a chance of reducing the casting time of Snipe to 1 second, the next time you cast it.
So it has a chance of making snipe 1 second. I have been testing this for a little bit now and their is no "buff" and the tooltip stays at 4 seconds but there must be a way to detect if when you go to use the skill it will be 1 sec or 4 sec.
Anyone have any ideas?
I couldn't find any functions that tell you cast time of a skill.
Remember no matter you do in life to always have a little fun while you are at it
At one point Voidmain was working at getting skills info from memory but he never finished it. Getting the actual skill casting time from memory would have worked. It would have been cool as any skill attribute that changed because of another skill or passive would get picked up.
I don't see a command to get a skills cast time either but I think I know how you could do it. If you set the skill cast time to 1 second then in your onSkillCast section of your profile do something like;
I thought it was weird there was nothing in game to say when the cast time is reduced. I just noticed a buff called Hidden Peril which indicates snipe is a 1 sec cast. Now I'll just add in a precastskill check for the buff when using snipe.
<onPreSkillCast><![CDATA[
if( arg1.Name == "SCOUT_SNIPE" ) then
if player:getBuff("504588") then
return true
else
return false
end
end
]]></onPreSkillCast>
Remember no matter you do in life to always have a little fun while you are at it
It's good to see you found the buff. I see you only want to cast Snipe when the buff is on. I thought you just didn't want to wait 4 seconds if the buff is on. That's what my code should do. It would cast Snipe either way but wait only 1 second if the buff is on and 4 seconds if the buff is off.
Anyway... I would have used hasBuff. It's essentially the same but reads better I think.
Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
Yeah snipe is normally a 4 second cast time which is bad really but with the hidden peril buff it is onlt 1 second which is basically instant as there is a 1 sec global cooldown. Now that this is working well I upgraded snipe to 20, cost a mere 8500 TP and snipe now does 400% weapon damage + 300 damage.
So basically it is doing double the damage of shoot even though shoot is upgraded to 40 +
Hidden peril only procs once a minute but that means every minute I do a basically instant skill that deals lots of damage and it only cost me 8500 tp at this stage, which is around 1 quest at lvl 50.
Remember no matter you do in life to always have a little fun while you are at it