• Visit Rebornbuddy
  • Orb of storms

    Discussion in 'Archives' started by kalanikila, Sep 11, 2017.

    1. kalanikila

      kalanikila Member

      Joined:
      Nov 28, 2012
      Messages:
      293
      Likes Received:
      5
      Trophy Points:
      18
      Anyone know a way to effectively use orb of storms with the bot?
       
    2. demonviper

      demonviper Active Member

      Joined:
      Apr 8, 2014
      Messages:
      534
      Likes Received:
      56
      Trophy Points:
      28
      as far as i know the bot doesnt. I keep telling them to add a delay feature so that OoS can be used but the devs don't/can't im not sure.
       
    3. lyvewyre

      lyvewyre Member

      Joined:
      Jan 3, 2013
      Messages:
      418
      Likes Received:
      12
      Trophy Points:
      18
      What would the delay feature allow?

      Pretty sure someone chopped something up for OoS the league it was introduced but I can't find it anymore as I wanted to use it. It worked off the same principle of curse detection, if something needed to be cursed it dropped the OoS. Not the most elegant solution but it worked at least.
       
    4. demonviper

      demonviper Active Member

      Joined:
      Apr 8, 2014
      Messages:
      534
      Likes Received:
      56
      Trophy Points:
      28
      a delay feature would mean that the bot gets within whatever melee range you set for say "AOE Melee" and drops an OoS but because you have a 5-10 second delay on that melee slot it does whatever is your main skill for the next 5-10 seconds until OoS come off cooldown.

      easy.
       
    5. lyvewyre

      lyvewyre Member

      Joined:
      Jan 3, 2013
      Messages:
      418
      Likes Received:
      12
      Trophy Points:
      18
      Couldn't you add a timer into it like the golem timer?
       
    6. demonviper

      demonviper Active Member

      Joined:
      Apr 8, 2014
      Messages:
      534
      Likes Received:
      56
      Trophy Points:
      28
      go ahead bud I'm no programmer
       
    7. lyvewyre

      lyvewyre Member

      Joined:
      Jan 3, 2013
      Messages:
      418
      Likes Received:
      12
      Trophy Points:
      18
      Neither am I unfortunately. Guess we can just try and hack something up and see if it works.
       
    8. Jimmyshotta

      Jimmyshotta Member

      Joined:
      Nov 16, 2011
      Messages:
      200
      Likes Received:
      3
      Trophy Points:
      18
      Was just trying to get it to work, would be nice to see this feature added!
       
    9. FragileAssassin

      FragileAssassin Member

      Joined:
      Apr 13, 2013
      Messages:
      218
      Likes Received:
      2
      Trophy Points:
      18
      Took me forever to figure this out as I am clueless about any kind of coding..
      But tested and working. This will drop OoS if you run into magic or higher mobs or if there are 10+ mobs within range. Adjust timer and range/mob count to your needs. Seems to be working very well for me.
      No, I will not upload a file.

      // Declare the variable
      private int _orbOfStormsSlot = -1;


      // Add the stopwatch
      private readonly Stopwatch _orbbuffStopwatch = Stopwatch.StartNew();


      // Get the ability
      var os = LokiPoe.InGameState.SkillBarHud.Skills.FirstOrDefault(s => s.Name == "Orb of Storms");
      if (IsCastableHelper(os))
      {
      _orbOfStormsSlot = os.Slot;
      }

      // Use it
      if (_orbOfStormsSlot != -1 && _orbbuffStopwatch.ElapsedMilliseconds > 4000)
      {
      // See if we can use the skill.
      var skill = LokiPoe.InGameState.SkillBarHud.Slot(_orbOfStormsSlot);

      if (skill.CanUse() && (NumberOfMobsNear(LokiPoe.Me, 70) >= 10) || (cachedRarity >= Rarity.Magic))
      {
      await Coroutines.FinishCurrentAction();

      var err1 = LokiPoe.InGameState.SkillBarHud.UseAt(_orbOfStormsSlot, true, targetPosition);

      _orbbuffStopwatch.Restart();

      if (err1 == LokiPoe.InGameState.UseResult.None)
      {
      await Coroutines.LatencyWait();

      await Coroutines.FinishCurrentAction(false);

      await Coroutines.LatencyWait();

      return LogicResult.Provided;
      }

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

      }
       
      Last edited: Sep 25, 2017
    10. demonviper

      demonviper Active Member

      Joined:
      Apr 8, 2014
      Messages:
      534
      Likes Received:
      56
      Trophy Points:
      28
      nice man!
       
    11. FragileAssassin

      FragileAssassin Member

      Joined:
      Apr 13, 2013
      Messages:
      218
      Likes Received:
      2
      Trophy Points:
      18
      yes!
      I was quite excited to get this working last night.
       

    Share This Page