• Visit Rebornbuddy
  • How do summoners use flesh offering etc?

    Discussion in 'Archives' started by tsheltonx, Aug 22, 2016.

    1. tsheltonx

      tsheltonx Member

      Joined:
      Aug 13, 2016
      Messages:
      94
      Likes Received:
      0
      Trophy Points:
      6
      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
       
    2. uupiits

      uupiits Member

      Joined:
      Oct 7, 2014
      Messages:
      335
      Likes Received:
      8
      Trophy Points:
      18
      cwdt ;/
       
    3. DontBeAfraid

      DontBeAfraid Active Member

      Joined:
      Oct 2, 2015
      Messages:
      742
      Likes Received:
      30
      Trophy Points:
      28
      i think the ouroboros routine had a logic for flesh offering.
      check the code, you might find what you need
       
    4. widds

      widds Member

      Joined:
      Nov 12, 2014
      Messages:
      316
      Likes Received:
      3
      Trophy Points:
      18
      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.
       

    Share This Page