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

How do summoners use flesh offering etc?

tsheltonx

Member
Joined
Aug 13, 2016
Messages
94
Reaction score
0
I have tried to work it into my keys, nothing has panned out. Its an AOE that targets corpses and makes my pet go nuts. Thanks
 
i think the ouroboros routine had a logic for flesh offering.
check the code, you might find what you need
 
You can edit OldRoutine.cs to do anything you want. Here's a snippet of code I added for Offerings:

Code:
// Bone Offering Support
				if (_boneOfferingSlot != -1)
				{
					var skill = LokiPoe.InGameState.SkillBarHud.Slot(_boneOfferingSlot);
					if (skill.CanUse() && !LokiPoe.Me.HasAura("Bone Offering"))
					{
						var target = BestDeadTarget;
						if (target != null)
						{
							await DisableAlwaysHiglight();
							await Coroutines.FinishCurrentAction();
							Log.InfoFormat("[Logic] using {0} on {1}.", skill.Name, target.Name);
							
							var err1 = LokiPoe.InGameState.SkillBarHud.UseAt(_boneOfferingSlot, false, target.Position);
						
							if (err1 == LokiPoe.InGameState.UseResult.None)
							{
								await Coroutines.LatencyWait();
								await Coroutines.FinishCurrentAction(false);
								await Coroutines.LatencyWait();
							
								return true;
							}
							
							Log.ErrorFormat("[Logic] UseAt returned {0} for {1}.", err1, skill.Name);
						}
						
						
					}
				}

It was meant to be used with the Necromancer talent so it would just monitor if I had the buff on me. If you're not a Necromancer you can edit the "!LokePoe.Me.HasAura("Bone Offering")" part and change it, granted I don't know if there's any way built-in to check pet buffs. If not you could just put a timer on it.
 
Back
Top