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

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

[Plugin Request] Power Charge on crit plugin or incorporate in old routine

roneo1

Member
Joined
Mar 21, 2014
Messages
480
Hey everyone, I think this is long overdue but there's so many builds today that use separate skills with pcoc to generate power charges and the bot doesn't seem to handle it.

I've found a thread with a discussion about it and some code as well here:

https://www.thebuddyforum.com/exile...-edit-default-routine-support-dual-totem.html

It would be great to have a plugin for this or integrate it into old routine.

What it should have:

- Option for user to specify which skill slot to have for the power charge skill generation
- Conditions for using specified skill (amount of power charges needed to use skill and perhaps duration left on power charges to reuse skill to refresh duration)

Thanks for reading I hope someone can use the code in the above thread to put together something for this.
 
Last edited:
Hey everyone, I think this is long overdue but there's so many builds today that use separate skills with pcoc to generate power charges and the bot doesn't seem to handle it.

I've found a thread with a discussion about it and some code as well here:

https://www.thebuddyforum.com/exile...-edit-default-routine-support-dual-totem.html

It would be great to have a plugin for this or integrate it into old routine.

What it should have:

- Option for user to specify which skill slot to have for the power charge skill generation
- Conditions for using specified skill (amount of power charges needed to use skill and perhaps duration left on power charges to reuse skill to refresh duration)

Thanks for reading I hope someone can use the code in the above thread to put together something for this.

I wish i had time to level up totems builds, sadly i don't.
 
I wish i had time to level up totems builds, sadly i don't.

No, the thread title is about totem builds, but if you scroll down you'll see the discussion about power charges generation with a certain skill, think ice spear in that case.
 
AdvancedRoutine should allow you to do this via GUI once it's released, in the mean time it's not that difficult and you can edit OldRoutine.cs to cater to your build quite easily.

Below is an example I made during Flashback to utilize a 4L (BV, CoH, PCoC, Warlord's Mark) to generate power charges and apply my second curse. Basically at the top of the routine under the comment "// Auto-set, you do not have to change these." I made a "private int _bladevortexSlot = 4;" line (you can replace the 4 in this line and in your logic to whatever skill slot you have manually setup your skill in) and under the stopwatch section just below that I made a "private readonly Stopwatch _bladevortexStopwatch = Stopwatch.StartNew();" line. Should also note you can name it whatever you want, or put any skill in that slot and it'll still follow the logic. The bot is just going to mash key 4, not caring whether BV is in that slot or not.. it's just good to have consistency in the file once you start adding in a bunch of stuff that way you can go back and remove it easily or edit it if you run a different build with that particular OldRoutine (because changes like below are static and global. If you started botting on another character that didn't use a CoH/PCoC setup it's still going to press the key every 9 seconds).

Logic:
// Blade Vortex CoH & PCoC
if (_bladevortexSlot == 4 && _bladevortexStopwatch.ElapsedMilliseconds > 9000)
{
var skill = LokiPoe.InGameState.SkillBarHud.Slot(_bladevortexSlot);
if (skill.CanUse() && NumberOfMobsNear(LokiPoe.Me, 15) >= 1)
{
await DisableAlwaysHiglight();
await Coroutines.FinishCurrentAction();

var err1 = LokiPoe.InGameState.SkillBarHud.Use(skill.Slot, true);
if (err1 == LokiPoe.InGameState.UseResult.None)
{
await Coroutines.FinishCurrentAction(false);
_bladevortexStopwatch.Restart();
return true;

}

_bladevortexStopwatch.Restart();
}
}

Stopwatch timer can be set (in milliseconds) to however long you want to pause between the action. My BV duration was 10 seconds so I set it up to recast every 9 seconds just to take into account potential latency or waiting for current actions to finish. On the line with NumberOfMobsNear(LokiPoe.Me, 15) you can customize that however you want to act as a trigger. I felt it was pointless having the bot stop moving every 9 seconds to cast BV if there were no mobs around, so that check only casts it if there is at least 1 mob within 15 yards.

Probably more elegant ways to accomplish it, but it worked.
 
Last edited:
AdvancedRoutine should allow you to do this via GUI once it's released, in the mean time it's not that difficult and you can edit OldRoutine.cs to cater to your build quite easily.

Below is an example I made during Flashback to utilize a 4L (BV, CoH, PCoC, Warlord's Mark) to generate power charges and apply my second curse. Basically at the top of the routine under the comment "// Auto-set, you do not have to change these." I made a "private int _bladevortexSlot = 4;" line (you can replace the 4 in this line and in your logic to whatever skill slot you have manually setup your skill in) and under the stopwatch section just below that I made a "private readonly Stopwatch _bladevortexStopwatch = Stopwatch.StartNew();" line. Should also note you can name it whatever you want, or put any skill in that slot and it'll still follow the logic. The bot is just going to mash key 4, not caring whether BV is in that slot or not.. it's just good to have consistency in the file once you start adding in a bunch of stuff that way you can go back and remove it easily or edit it if you run a different build with that particular OldRoutine (because changes like below are static and global. If you started botting on another character that didn't use a CoH/PCoC setup it's still going to press the key every 9 seconds).

Logic:


Stopwatch timer can be set (in milliseconds) to however long you want to pause between the action. My BV duration was 10 seconds so I set it up to recast every 9 seconds just to take into account potential latency or waiting for current actions to finish. On the line with NumberOfMobsNear(LokiPoe.Me, 15) you can customize that however you want to act as a trigger. I felt it was pointless having the bot stop moving every 9 seconds to cast BV if there were no mobs around, so that check only casts it if there is at least 1 mob within 15 yards.

Probably more elegant ways to accomplish it, but it worked.

Hi -

I tried to insert this into my oldroutine and am getting errors. It will take the int and stopwatch, but when I go to add the logic it isn't liking it. Is it possible I am adding it incorrectly into the logic lines?

thanks!
 
Yes, make sure there are no spaces like at var skill = LokiPoe.InGameState.SkillBarHud.Slot(_bladevortexS lot); ... S lot should obviously be Slot. Forum just puts spaces in sometimes for fun.
 
My old totemizer has power charge generation, feel free to check it for the snippet.
 
Back
Top