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!

Help with Situational Use of Vaal Skill

lyvewyre

Member
Joined
Jan 3, 2013
Messages
418
Hi Guys,

can someone who knows their C# help me out with a little request. I'd like to set the bot to use a Vaal skill (Vaal Cyclone, Vaal spark, Vaal Flameblast etc) whenever it comes across Rare or boss, instead of as soon as it is available.

is anyone able to throw some code at me that I could slot straight into ExampleRoutine.cs ?

Greatly apprecaite any help.

Cheers.
 
Hi,
in ExampleRoutine.cs around line 1790 add this:

// Auto-cast any vaal skill at the best target as soon as it's usable.
if (ExampleRoutineSettings.Instance.AutoCastVaalSkills && bestTarget.Rarity >= Rarity.Rare && _vaalStopwatch.ElapsedMilliseconds > 1000)
{

this should work...
good luck
 
Hi,
in ExampleRoutine.cs around line 1790 add this:



this should work...
good luck

Awesome, thanks for Jurrus!

Now a further question. I found the following in Totemizer routine that I would like to "use" (thanks to the author of Totemizer):

// Cast Vaal Discipline if we have it and energy shield falls below threshold.
if (_vaalDiscSlot != -1)
{
// See if we can use the skill.
var skill = LokiPoe.InGameState.SkillBarPanel.Slot(_vaalDiscSlot);
if (skill.CanUse() && (LokiPoe.Me.EnergyShieldPercent < TotemizerSettings.Instance.VaalDiscTrigger))
{
var err1 = LokiPoe.InGameState.SkillBarPanel.Use(_vaalDiscSlot, true);
if (err1 == LokiPoe.InGameState.UseError.None)
{
await Coroutine.Sleep(Utility.LatencySafeValue(500));

await Coroutines.FinishCurrentAction(false);

await Coroutine.Sleep(Utility.LatencySafeValue(100));

return true;
}

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

Is it going to be difficult to use one of those vaal skills I mentioned in tandem with Vaal Discipline? As I understand I would need to do something like this earlier:

var vd = LokiPoe.InGameState.SkillBarPanel.Skills.FirstOrDefault(s => s.Name == "Vaal Discipline");
if (IsCastableHelper(vd))
{
_vaalDiscSlot = vd.Slot;
}
I'm not sure how I would 'create' a slot like this for say vaal cyclone or vaal spark.

I realise I'm pretty much out of my depth if I want to use both, but in case someone has something similar already setup, thought I'd mention it.

But again, thanks for that Jurrus, I'll throw that into ER now.
 
Back
Top