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

How to use Vaal skill on BOSS ONLY !!?

pimpek21

New Member
Joined
Mar 15, 2015
Messages
99
Reaction score
0
Hi there, as title says, is there any option to use Vaal skill only during boss fight ?? Ie Vall Haste ??. I have ticked AutoCastVallskill in example routine but just wondering if it`s possible :) and if yes what do i need to add and where in code :)
 
Hi there, as title says, is there any option to use Vaal skill only during boss fight ?? Ie Vall Haste ??. I have ticked AutoCastVallskill in example routine but just wondering if it`s possible :) and if yes what do i need to add and where in code :)

Code:
                [B]// Auto-cast any vaal skill at the best target as soon as it's usable.[/B]
                if (ExampleRoutineForkSettings.Instance.AutoCastVaalSkills && _vaalStopwatch.ElapsedMilliseconds > 1000)
                {
                    foreach (var skill in LokiPoe.InGameState.SkillBarPanel.Skills)
                    {
                        if (skill.SkillTags.Contains("vaal"))
                        {
							if (skill.CanUse())
							{
								if (skill.Name.Contains("Summon Skeletons"))
								{
									if (cachedRarity == Rarity.Unique)
									{
										await MiscTasks.DisableAlwaysHiglight();

										var err1 = LokiPoe.InGameState.SkillBarPanel.UseAt(skill.Slot, false, cachedPosition);
										if (err1 == LokiPoe.InGameState.UseError.None)
										{
											await Coroutine.Sleep(Utility.LatencySafeValue(250));
											await Coroutines.FinishCurrentAction(false);
											await Coroutine.Sleep(Utility.LatencySafeValue(250));

											return true;
										}

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

									var err1 = LokiPoe.InGameState.SkillBarPanel.UseAt(skill.Slot, false, cachedPosition);
									if (err1 == LokiPoe.InGameState.UseError.None)
									{
										await Coroutine.Sleep(Utility.LatencySafeValue(250));
										await Coroutines.FinishCurrentAction(false);
										await Coroutine.Sleep(Utility.LatencySafeValue(1000));

										return true;
									}

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

This is the part you need to find (in bold) and tweak, this is an example for Vaal Summon Skeletons, adjust it for anything else (care, it use ExampleRoutineFork namespace, which is different from the default one)
 
hello i want use ****Vaal Righteous Fire , can someone help me add code for meele use vaal gem ??? thank you
 
@toNyx if i understood correctly, in Oldroutine folder open OldRoutine.cs and find the code
// Auto-cast any vaal skill at the best target as soon as it's usable.
if (ExampleRoutineForkSettings.Instance.AutoCastVaalSkills && _vaalStopwatch.ElapsedMilliseconds > 1000)
{
foreach (var skill in LokiPoe.InGameState.SkillBarPanel.Skills)
{
if (skill.SkillTags.Contains("vaal"))
{
if (skill.CanUse())
And after that we should paste the Summon Skeletons code but replace the name with the Vaal Righteous Fire and it theory that should work?

What if i would just add && cachedRarity >= Rarity.Unique) after if (skill.CanUse() would that work for all vaal skills then?
 
Back
Top