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

Combat Routine Question

Draffon

New Member
Joined
Jan 14, 2011
Messages
28
Reaction score
0
Hello, I am trying to create / modify a Combat Routine to cast an attack skill in a specific way. I am hoping someone can tell me if what i want to do is possible, and if so perhaps provide me with a code snipit that will get me going in the right direction.

I am wanting for the bot to cast his attack skill when enemies are within a certain range without targeting the enemy. More specific example: My guy enters area, gets to within a range of 50 of enemies, and stands in place casting spell until no enemies within range of 50.

I have noticed that my clearing is slowed quite a bit because the bot wants to target the enemy when attacking, and in most cases that is probably best. But i want it to just spam an ability when in range of enemies.

Does this make sense or am i out of luck?

Thanks for advice
Draff
 
Hello, I am trying to create / modify a Combat Routine to cast an attack skill in a specific way. I am hoping someone can tell me if what i want to do is possible, and if so perhaps provide me with a code snipit that will get me going in the right direction.

I am wanting for the bot to cast his attack skill when enemies are within a certain range without targeting the enemy. More specific example: My guy enters area, gets to within a range of 50 of enemies, and stands in place casting spell until no enemies within range of 50.

I have noticed that my clearing is slowed quite a bit because the bot wants to target the enemy when attacking, and in most cases that is probably best. But i want it to just spam an ability when in range of enemies.

Does this make sense or am i out of luck?

Thanks for advice
Draff

Do you want to share what skill you are trying to use for this? Sounds like a vaal spark kinda build. The problem with trying to cast spells at 50+ yards is generally line of sight issues.

When you say "cast his attack skill when enemies are within a certain range without targeting the enemy.", im assuming you mean without mousing over the enemy, since you cant actually target things in this game.


Just as a test, i set max combat range to 100 and max melee range to 100 with Ice Crash and "Attack in Place" checked. My character would stand in place as soon as a mob came onto the screen and smashed Ice Crash over and over in place without moving towards the mobs. This sounds like what you are wanting to me.
 
Hello, I am trying to create / modify a Combat Routine to cast an attack skill in a specific way. I am hoping someone can tell me if what i want to do is possible, and if so perhaps provide me with a code snipit that will get me going in the right direction.

I am wanting for the bot to cast his attack skill when enemies are within a certain range without targeting the enemy. More specific example: My guy enters area, gets to within a range of 50 of enemies, and stands in place casting spell until no enemies within range of 50.

I have noticed that my clearing is slowed quite a bit because the bot wants to target the enemy when attacking, and in most cases that is probably best. But i want it to just spam an ability when in range of enemies.

Does this make sense or am i out of luck?

Thanks for advice
Draff
Do you want to share what skill you are trying to use for this? Sounds like a vaal spark kinda build. The problem with trying to cast spells at 50+ yards is generally line of sight issues.

When you say "cast his attack skill when enemies are within a certain range without targeting the enemy.", im assuming you mean without mousing over the enemy, since you cant actually target things in this game.


Just as a test, i set max combat range to 100 and max melee range to 100 with Ice Crash and "Attack in Place" checked. My character would stand in place as soon as a mob came onto the screen and smashed Ice Crash over and over in place without moving towards the mobs. This sounds like what you are wanting to me.

No he wants an optimized clear calculation, which relies on maths & vectors :)

Basically what you need to consider is the distance from a point.

So, here are the steps :

1st idea :
- Find a target
- Draw a circle around her position (with wanted radius)
- Spot targets in this circle
- Now the hardest part, find a point (vector) in this circle having the highest enemies count around it (probably including the initial target)
- If you're not on the position move to it
- Use spell on yourself (pass LokiPoe.Me.Position into UseAt() instead of target's location)

2nd idea ("easiest" one) :
Note : If you're using a movement spell like leap slam or whirling blade or... i don't know. Without it it would run into mobs.

- Cache all monsters in radius of detection
- Find the one with highest amount of other monsters around
- Use his location as "destination"
- Move to it
- Cast spell on yourself

I guess you're searching for something like Righteous Fire, Shock nova, or anything AOE-Selfcast related :)
 
Ah i see. I like the idea and since i have been messing around with RF recently myself i was looking into turning off combat until my character was in range of X amount of mobs in a Y radius then enable combat to clear (since you need to actually attack with RF to apply the Elemental Equilibrium debuffs. Finding the "best target" like toNyx would be great.

Lets give toNyx 10-15 minutes to work something up! J/K ;p
 
Ah i see. I like the idea and since i have been messing around with RF recently myself i was looking into turning off combat until my character was in range of X amount of mobs in a Y radius then enable combat to clear (since you need to actually attack with RF to apply the Elemental Equilibrium debuffs. Finding the "best target" like toNyx would be great.

Lets give toNyx 10-15 minutes to work something up! J/K ;p

It's 1.30AM in my timezone, brain is dead sry :D

It's basically finding a "node" of mobs, but for mapping mobs are 90% of the time packed, wouldnt be hard to find a point.
 
Thanks for the ideas, i like where Tony has me going with it. But the skill is the very commonly used SRS. In the current Meta with a Pledge of Hands and a bit of Cast Speed i can Consistently have 30-40 Minions up while im mapping. The default CR targets an enemy and cast a few times, then next enemy, casts a few times, etc. Not very efficient since SRS is so good about finding targets right now, all you need to do is be in proximity and spam it...

Does that make sense?
 
Last edited:
Thanks for the ideas, i like where Tony has me going with it. But the skill is the very commonly used SRS. In the current Meta with a Pledge of Hands and a bit of Cast Speed i can Consistently have 30-40 Minions up while im mapping. The default CR targets an enemy and cast a few times, then next enemy, casts a few times, etc. Not very efficient since SRS is so good about finding targets right now, all you need to do is be in proximity and spam it...

Does that make sense?

Yeah, we talked about this core thing when people went with bladevortex (same playstyle) for now oldroutine doesnt provide a way to keep specific spells staks like srs/bv to a given amount.

Well it's just about looping spell usage on place. SRS have a mob detection range that is veryyyyyyy high.
So yeah, loop using a while cast the spell on yourself (no point casting it elsewhere) and add a property to check the SRS stacks, you should be good
 
Back
Top