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

Spell range?

Pochizzle

Member
Joined
Mar 5, 2012
Messages
204
Reaction score
0
Sorry for the noob question, and i can't seem to find it (in recent threads)

Certain ranged mobs my bot would do a lot more damage if moves up a bit so my LMP isn't only hitting with one stream.

I need to change the range of incinerate to move up just a bit.

Only see the option for chest distance in the options setting
 
This is currently a known limitation of how the current code is setup. The client attacks in place for certain skills, and the CR is relying on the client to move into correct range.

We're working on some updated logic to get around this, but it's pretty much a casting system / CR rewrite, so it's taking some time. Some users have used increased projectile speed to get around the issue for now, but that's about the best you can do if you're having issues with it.
 
You can set the spell logic in the combat routine, but it would require you to manually edit the file. No GUI option for this.

In your Exilebuddy folder, go into Routines folder, then Exile, and you should see an Exile.cs file. Open that in a text editor like Notepad, and search for 'Incinerate'. You should see a line that goes Register("Incinerate");. Not the totem one, that's something different.
You can change this line to add conditions for casting the spell. To make it only cast if you're within a certain range of the enemy, change the line to sometime like
Register("Incinerate", ret => BestTarget.Distance < 35);

Fiddle with the number as you like. Note that this will not make you move into range if you're out of range; you'll instead keep running down the list of spells until you reach an action you can take, ending at Default attack. So you probably want some other spells that you would cast, when you're far from the enemy. Personally, I have Lightning warp set to cast if I'm out of Incinerate range, with a long list of conditionals to minimize the chance I warp into a bad situation (huge pack of mobs, etc.) and die.
 
Could you possibly provide us with the code for lightning warp. As i currently have it set to my witch, but she never uses it. Also don't worry about the conditions she won't die lol
 
If you just want to warp in whenever you're out of range, put this line right above the line for Incinerate
Register("Lightning Warp", ret => BestTarget.Distance > XX);
where XX is the maximum range you used for incinerate.
In practice, this runs into a couple of complications, the biggest of which is warping into bad and dying. You'll also run into situations where a ranged mob will 'kite' you, backing up every time you get close, causing you to warp constantly instead of using incinerate.

The conditions I ended up using are in the line below. I'm sure that someone with more experience can make one less clunky, but this works well enough for my purposes.
Register("Lightning Warp", ret => BestTarget.Distance > 25 && LokiPoe.ObjectManager.Me.HealthPercent > 95 && !NumberOfMobsNear(BestTarget, 70, 1) && HasAura(LokiPoe.ObjectManager.Me, "incinerate_counter", 2));
The effect of the conditions, in order, is that it will use it when the distance is greater than 25, health % is greater than 95, no other mobs are within 70 of the primary target, and I have at least two stacks of incinerate (to avoid warping in at the start of the battle, and to avoid chain warping on mobs that constantly move).

It doesn't actually kick in too often; mostly against ranged rares and uniques, and normal ranged mobs that dont deal enough to trigger my CoDT Lightning Warp.
 
Last edited:
thanks for the help, was hoping it would go closer but oh well.
cant wait for the upgrade then.

Gotta find some tanky melee char to use until then
 
Back
Top