What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

How to find if Vaal Spark is being cast

tozededao

Community Developer
Joined
Jan 15, 2010
Messages
1,225
Reaction score
5
Hey, I'm trying to figure how do I find with EB API that I am currently casting Vaal Spark.

When we cast Vaal Spark it keeps summoning Sparks for a duration, is there any way with the API to find if we are still summoning sparks?

Otherwise each time I cast it I need to start a watch and count up to Vaal Spark duration.
 
LokiPoe.Me.HasCurrentAction will check if there's a current action being performed. If so, you can get it with: LokiPoe.Me.CurrentAction.

CurrentAction is an ActionWrapper and provides info like the Skill (which can be nulll), the Target (can be null), and a Destination (should be valid).

However, depending on how the skill itself is cast, it's possible to miss the action because of the delay between the client executing the action and removing it, and the next bot tick. You'll have to do some debugging to see what works best, but you should most likely check the current skill in a Tick function (more overhead, but more frequent polling than inside the CR coroutine logic).
 
LokiPoe.Me.HasCurrentAction will check if there's a current action being performed. If so, you can get it with: LokiPoe.Me.CurrentAction.

CurrentAction is an ActionWrapper and provides info like the Skill (which can be nulll), the Target (can be null), and a Destination (should be valid).

However, depending on how the skill itself is cast, it's possible to miss the action because of the delay between the client executing the action and removing it, and the next bot tick. You'll have to do some debugging to see what works best, but you should most likely check the current skill in a Tick function (more overhead, but more frequent polling than inside the CR coroutine logic).

The thing is that, I can be casting Fireball while Sparks are coming out of me due to Vaal Spark. Vaal Spark cast is like 0.8 but then it keeps "casting" Sparks for a duration of 5. I wanted to track that duration of 5.
 
There's no way that I know of to track things like that. The server is creating the effects and telling the client where they are last I checked.
 
There's no way that I know of to track things like that. The server is creating the effects and telling the client where they are last I checked.
I'll start a startwatch eachtime it casts it then. The problem is that if I get stunned and it doesn't cast there is no way to know :\
 
Back
Top