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!

Vaal Disc

Pochizzle

Member
Joined
Mar 5, 2012
Messages
204
Need help with casting Vaal Disc with a specific routine.

I would like it to use it at a specific es% or when in short range of a unique mob.

I tried searching for a old plugin I had used before the major update changes, and it made it no longer work and sadly I've had no luck on the forums.

If anyone could help I would greatly appreciate it
 
You can edit OldRoutine.cs, go down to where all of the logic is and do something like this:

_vaalDiscSlot = -1;
var vd = LokiPoe.InGameState.SkillBarHud.Skills.FirstOrDefault(s => s.Name == "Vaal Discipline");
if (IsCastableHelper(vd))
{
_vaalDiscSlot = vd.Slot;
}
if (_vaalDiscSlot != -1)
{
// See if we can use the skill.
var skill = LokiPoe.InGameState.SkillBarHud.Slot(_vaalDiscSlot);
if (skill.CanUse(false, false, false) && ((LokiPoe.Me.EnergyShieldPercent <= 75) || (cachedNumberOfMobsNear > 5) || (cachedRarity >= Rarity.Rare)))
{
await DisableAlwaysHiglight();
await Coroutines.FinishCurrentAction();
var err1 = LokiPoe.InGameState.SkillBarHud.Use(_vaalDiscSlot, true);
if (err1 == LokiPoe.InGameState.UseResult.None)
{
await Coroutines.LatencyWait();
await Coroutines.FinishCurrentAction(false);
await Coroutines.LatencyWait();
return true;
}

Log.ErrorFormat("[Logic] Use returned {0} for {1}.", err1, skill.Name);
}
}

You can change the skill.CanUse checks to whatever you want.
 
You can edit OldRoutine.cs, go down to where all of the logic is and do something like this:



You can change the skill.CanUse checks to whatever you want.

Unfortunetly in the routine I'm using that hasn't been updated in yet.
Would that be all I need to add to the routine or is there more coding then that to get it to work?

View attachment vortexroutine.cs

E: Also, thank you very much for taking the time to reply. I have tried to do a bunch of small fixes I would normally do, but the routine just seems to be older but works really great for BV since it pre-casts
 
That's all you would need to put in, you'd just have to make sure autocast vaal skills is unchecked in the oldroutine settings GUI (it'll still autocast them, just based off whatever criteria you program in vice autocast them every time they're up).

Obviously if you have other vaal skills like haste you can pretty much just change "vaalDisc" to "vaalHaste" and "vd" to "vh" and you're good.
 
That's all you would need to put in, you'd just have to make sure autocast vaal skills is unchecked in the oldroutine settings GUI (it'll still autocast them, just based off whatever criteria you program in vice autocast them every time they're up).

Obviously if you have other vaal skills like haste you can pretty much just change "vaalDisc" to "vaalHaste" and "vd" to "vh" and you're good.

Thank you very much widds.

Going to try and get it set up a little bit later today, and wasn't sure if taking small parts out of old routine would work since I found multiple vaal disc in the old routine.
Should help me out so much, I'll let you know how it works out.
 
vortexroutine.cs is just oldroutine.cs renamed... with a small change to blade vortex. you can paste that code in either or, they're all the same.
 
vortexroutine.cs is just oldroutine.cs renamed... with a small change to blade vortex. you can paste that code in either or, they're all the same.

I've tried and I butchered it sadly.
Couldn't figure out which code precasted the BV and ended up copying part of the pcoc and curse on hit setup which obviously old routine already has, and kept getting some error.

I'll try again later, but do you recommend any program other then notepad?
I do believe that is a huge part of my problem.
 
Last edited:
Back
Top